/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
:root {
    --accent-text-color: var(--color-scheme-highlight, var(--color-g-highlight));
    --color-scheme-box-shadow-drop: 0 5px 20px rgba(84, 84, 84, 0.4);
    --color-scheme-highlight: linear-gradient(115deg, #e13623, #e1238f);
    --color-scheme-pattern: #b1b1b1;
    --color-scheme-primary-button-bg: #0056b3;
    --color-scheme-primary-button-bg-hover: #003d80;
    --color-scheme-primary-button-text: #ffffff;
    --color-scheme-primary-button-border: #175892;
    --color-scheme-secondary-button-bg: #f8f9fa;
    --color-scheme-secondary-button-bg-hover: #dae0e5;
    --color-scheme-secondary-button-text: #0056b3;
    --color-scheme-secondary-button-border: #0056b3;
    --color-scheme-icon: #383838;
    --color-scheme-links: #000000;
    --color-g-highlight: #e1234e;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0);
    background-image: radial-gradient(rgb(255, 255, 255) 12%, rgb(210, 247, 255) 100%, rgb(199, 244, 255) 100%);
}

.poppins,
.poppins * {
    font-family: "Poppins", sans-serif;
}

.roboto,
.roboto * {
    font-family: "Roboto", sans-serif;
}
.text-2-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.text-g {
    background: var(--accent-text-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-bar-nav .nav>li>a {
    padding-bottom: 9px;
    padding-top: 9px;
    font-size: 15px;
    color: #fff;
}
.header .header-top a.icon:not(.button) {
    font-size: 18px;
}

.header-main {
    background: linear-gradient(4deg, rgb(255, 255, 255), rgb(0, 44, 91) 100%);
}

#main,
#wrapper {
    background: transparent;
}

.page-title:not(.featured-title)+main .product-main {
    background: #fff;
}

.product-thumbnails a {
    border-radius: 5px;
    border-color: rgba(0, 0, 0, .2);
}

.product-thumbnails .is-nav-selected a,
.product-thumbnails a:hover {
    border-color: var(--color-scheme-primary-button-bg);
}

.product-thumbnails img {
    opacity: 1;
}

.product-info.summary {
    border-right: 0;
}

.product-info .is-divider {
    display: none;
}

@media (min-width: 850px) {
    .product-info.summary {
        border-left: 1px solid #ccc;
        padding-left: 60px;
    }
}

h1.product-title {
    font-size: 2em;
}

/* Styling cho khoang Social Share */
.custom-share-block {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-share-heading {
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    margin-bottom: 10px;
    margin-top: 0;
}

.custom-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.custom-share-buttons .share-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.custom-share-buttons .share-item:hover {
    opacity: 0.88;
    color: #ffffff !important;
}

.custom-share-buttons .share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Màu sắc chuẩn theo hình mẫu */
.custom-share-buttons .brand-facebook {
    background-color: #4267b2;
}

.custom-share-buttons .brand-twitter {
    background-color: #000000;
}

.custom-share-buttons .brand-pinterest {
    background-color: #e60023;
}

.custom-share-buttons .brand-email {
    background-color: #000000;
}

/* Tùy chỉnh Khung tổng quan Đánh giá */
.custom-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4fbfe;
    /* Màu nền xanh nhạt giống ảnh */
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.review-summary-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.big-rating {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
}

/* Thanh Phần Trăm Rating */
.review-summary-center {
    width: 35%;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 4px;
}

.bar-background {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #2b4a75;
    /* Màu thanh bar xanh đậm */
}

/* Nút Viết Đánh Giá */
.custom-write-btn {
    background-color: #2b4a75 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 10px 25px !important;
    font-weight: 600;
    text-transform: none !important;
}

/* Tùy chỉnh danh sách Comment bên dưới */
.commentlist li {
    border-bottom: 1px solid #eef2f5;
    padding: 20px 0;
}

h2.pr-sec-single {
    font-size: 2.2em;
    text-align: center;
}

.single-product .product-page-title {
    background: #fff;
}

.product-section {
    border: 0;
}

.product-footer {
    padding: 72px 0;
}

.related .slider-nav-reveal .flickity-prev-next-button {
    color: #000;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    padding: 9px;
    border-radius: 0.4rem;
    height: 45px;
    width: 45px;
    top: 50%;
    box-shadow: none;
    transform: translateY(-50%) !important;
}

.related .slider-nav-push.slider-nav-reveal .flickity-prev-next-button svg {
    margin-top: 0;
}

.section.why-choose {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
    background-color: rgb(136, 51, 172);
    background-image: linear-gradient(351deg, rgb(65, 87, 158) 3%, rgb(139, 23, 108) 35%, rgb(21, 21, 21) 88%);
}

.why-choose .section-bg {
    opacity: 0.36;
    background-image: url(images/pattern-line.svg);
}

.why-chose-acc {
    color: #fff;
}

.why-chose-acc .accordion-title {
    opacity: 0.6;
    border-top: 0;
    padding-left: 35px;
    display: flex;
    align-items: center;
    gap: min(9.6px, 1.92vmin);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}

.why-chose-acc .accordion-title.active,
.why-chose-acc .accordion-title:hover {
    color: #fff;
    opacity: 1;
}

.why-chose-acc .accordion-title:before {
    content: '';
    width: 1.2em;
    height: 1.2em;
    background: url(images/check.svg) no-repeat center center;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 10px;
}

.accordion .toggle {
    left: auto;
    right: 0;
    top: 0;
    font-size: 10px;
    height: 45px;
}


/* ================= POPUP MODAL STYLES ================= */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: none;
    /* Khởi tạo ẩn */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal-container {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 36px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.review-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.review-modal-close:hover {
    color: #111;
}

/* Header Modal */
.review-modal-header {
    margin-bottom: 20px;
}

.review-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0 !important;
}

.review-modal-required-note {
    font-size: 13px;
    color: #6b7280;
    display: block;
}

/* Modal Form Fields */
#review_form p {
    margin-bottom: 0 !important;
}

#review_form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

#review_form .comment-form-cookies-consent {
    display: flex;
}

#review_form .field-subtext {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 400;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea,
#review_form select {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
}

#review_form input:focus,
#review_form textarea:focus,
#review_form select:focus {
    border-color: #2b4a75 !important;
    box-shadow: 0 0 0 3px rgba(43, 74, 117, 0.1) !important;
}

/* Form Actions / Submit Button */
.form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    margin-bottom: 0 !important;
}

.submit-review-btn {
    background-color: #181d28 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-transform: none !important;
    transition: background-color 0.2s ease;
}

.submit-review-btn:hover {
    background-color: #2b3548 !important;
}

div#respond>small {
    display: none;
}

.product-small.box {
    background: #fff;
    border-radius: 6px;
}

.woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.product-small .grid-tools a {
    width: 80%;
    margin: auto;
    padding: 15px;
    font-size: 14px;
    opacity: 1;
    background-color: var(--fs-color-primary);
    color: #fff;
    box-shadow: 0 -.3em inset #0000004d;
    border-radius: 100px;
}

.product-small .grid-tools a:hover {
    background-color: var(--color-scheme-primary-button-bg);
}

.related .hero-subheading {
    margin-bottom: 10px;
    color: #000;
    opacity: 0.75;
}

.related .pr-sec-single {
    margin-bottom: 32px;
}

table {
    border-radius: 6px;
    border-collapse: collapse;
    overflow: hidden;
}

table tr:not(:last-child) td,
table tr:not(:last-child) td {
    border-bottom: 1px solid #d9d9d9;
}

table td:not(:last-child),
table td:not(:last-child) {
    border-right: 1px solid #d9d9d9;
}

table th {
    background: #1e3a8a;
    color: #ffffff;
    padding: 11px 13px;
    text-align: left;
    font-size: 12.5px;
    font-weight: bold;
}

table tr:nth-child(even) td {
    background: #eff6ff;
}

table td {
    padding: 10px 13px;
    color: #1f2937;
    font-size: 13.5px;
    line-height: 1.5;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

table [class$="-row-label"] {
    font-weight: bold;
    color: #1e3a8a;
    background: #dbeafe !important;
}

.blog-wrapper.blog-single.page-wrapper {
    padding-top: 0;
}

.blog-single .entry-image {
    margin-bottom: 30px;
}

.entry-category {
    opacity: 1;
}

.entry-category a {
    padding: .3em .5em;
    line-height: 1;
    color: #fff;
    background: #000;
    border-radius: 5px;
    font-size: 12px;
    text-transform: none;
    font-weight: 700;
    opacity: 1;
}

.single-page table td,
.single-page table th {
    padding: 10px 13px;
}

.single-page [class$="-section"] h2 {
    font-size: 23px;
    color: #1e3a8a;
    line-height: 1.3;
    font-weight: bold;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
}

.single-page [class$="-section"] ul li strong {
    color: #1d4ed8;
}

.single-page [class$="-section"] ul li strong {
    color: #1d4ed8;
}

[class$="-card"] {
    margin: 18px 0;
    padding: 16px 20px;
    background: #f5f9ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 0 6px 6px 0;
}

[class$="-card"] h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d4ed8;
}

[class$="-card"] p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #1f2937;
}

[class$="-conclusion"] {
    margin: 28px 0;
    padding: 22px 26px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

[class$="-conclusion"] h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1e3a8a;
    font-weight: bold;
    border: none;
    padding: 0;
}

[class$="-conclusion"] p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
}

[class$="-faq"] {
    margin: 14px 0;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #3b82f6;
    border-radius: 0 6px 6px 0;
}

[class$="-faq-q"] {
    font-weight: 700;
}

.single-page [class$="-section"] p {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 14px 0;
}

.single-page [class$="-section"] p {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 14px 0;
}

.single-page [class$="-section"] ul[class$="-fixes"] {
    margin: 0 0 14px 0;
    padding-left: 22px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.7;
    list-style: none;
    counter-reset: fbfix;
}

.single-page ul[class$="-fixes"] li {
    margin: 0;
    margin-bottom: 7px;
    padding: 13px 16px 13px 52px;
    position: relative;
    background: #fdf5f9;
    border: 1px solid #fbcfe8;
    border-radius: 6px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #1f2937;
}

.single-page ul[class$="-fixes"] li::before {
    counter-increment: fbfix;
    content: counter(fbfix);
    position: absolute;
    left: 14px;
    top: 13px;
    width: 26px;
    height: 26px;
    background: #db2777;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    font-size: 14px;
}

.nav-dots-small .flickity-page-dots .dot,
.row-slider .flickity-page-dots .dot {
    border: 0;
    height: 6px;
    opacity: .6;
    width: 6px;
    margin: 0 3px;
    border-radius: 5px!important;
}
.nav-dots-small .flickity-page-dots .dot.is-selected, .row-slider .flickity-page-dots .dot.is-selected {
    width: 20px;
}
.slider-wrapper .flickity-page-dots .dot {
    height: 15px;
    width: 15px;
    border-color: #fff;
    background: #fff;
    border-radius: 5px!important;
    box-shadow: 3px 3px 10px rgb(0 0 0 / 20%);
}
.slider-wrapper .flickity-page-dots .dot.is-selected {
    width: 50px;
}
.slider-wrapper .flickity-prev-next-button{
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    display: block;
    color: #000;
    padding: 9px;
    background-color: #fff;
    opacity: .6;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 14px;
}
.slider-wrapper .flickity-prev-next-button svg {
    width: 20px;
    padding: 0;
}
.box-text.text-center .is-divider {
    display: none;
}
.col.post-item .post-title {
    font-weight: 400;
    margin: 0;
}
.col.post-item .post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    font-weight: 400;
    margin: 0;
}
.btn-black.primary {
    color: #000;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.68px;
}
.btn-black.primary span {
    text-decoration: underline;
}
.col-light-fade .col-inner {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.col-light-fade .col-inner p {
    margin: 0;
}
.col-light-fade .col-inner p:first-child {
    margin-bottom: 8px;
}
.section.policy-footer {
    background: radial-gradient(rgb(255, 255, 255) 12%, rgb(210, 247, 255) 100%, rgb(199, 244, 255) 100%);
}
.section.policy-footer > .section-bg {
    opacity: 0.3;
    background-size: 300px;
    background-image: url(images/pattern-footer.svg);
}
.section.policy-footer p {
    margin: 0;
}
.pl-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pl-tier {
    background: #fff;
    border: 1px solid #e7e0f5;
    border-radius: 20px;
    padding: 26px 20px;
    text-align: center;
    position: relative;
}
.pl-tier .tq {
    font-weight: 600;
    font-size: .9rem;
    color: #6b6382;
}
.pl-tier .tp {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    margin: .35rem 0;
    color: #111;
}
.pl-tier .ts {
    font-size: .84rem;
    color: #6b6382;
}
.pl-tier .flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6c3bf4;
    color: #fff;
    font-weight: 600;
    font-size: .72rem;
    padding: .28rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pl-tier.feat .tp {
    color: #6c3bf4;
}
.pl-tier.cust .tp {
    font-size: 1.8rem;
    line-height: 2;
    color: #ff9a3d;
}
.tabs-product.tabbed-content .nav {
    margin-bottom: 15px;
    border-bottom: 1px solid #e6e3f0;
}
.tabs-product .nav-line-bottom>li>a:before,
.tabs-product .nav-line-grow>li>a:before,
.tabs-product .nav-line>li>a:before {
    background-color: #000;
    bottom: -1px;
    height: 2px;
}
.promo-sec {
    background: linear-gradient(319deg, rgb(15, 27, 47), rgb(159, 162, 173) 100%);
    color: #fff;
}
.promo-sec > .section-bg {
    opacity: 0.1;
    background-size: 50px;
    background-image: url(images/pattern-waves.svg);
}
.\#product-payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.\#product-payment-methods-item {
    display: flex;
}
.\#product-payment-methods-item > svg {
    height: 2.2rem;
    width: auto;
}
.footer-main .row {
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.footer-main .menu a {
    font-size: 18px;
    line-height: 1.5;
}
.footer-main .menu li {
    border: 0;
}
.footer-main .widget-title {
    font-size: 21px;
}
