/* Style của bộ khung dải banner & tab chọn sản phẩm */

.text-primary-color {
    color: var(--main-color-hex) !important;
}

.hyundai-bg-primary-color {
    background-color: var(--main-color-hex);
    color: white;
}

.hyundai-bg-primary-color .nav-link {
    background-color: unset !important;
    color: white !important;
}

.hyundai-bg-primary-color.active {
    background-color: unset !important;
    color: var(--main-color-hex) !important;
}

.hyundai-bg-primary-color .nav-link.active {
    color: var(--main-color-hex) !important;
    background-color: white !important;
}

.hyundai-bg-white-color {
    background-color: white;
    color: var(--main-color-hex);
}

.hyundai-bg-hot-color {
     background-color: var(--bs-danger);
     color: white;
 }

.hyundai-bg-hot-color .nav-link {
    background-color: unset !important;
    color: white !important;
}

.hyundai-bg-hot-color.active {
    background-color: unset !important;
    color: var(--bs-danger) !important;
}

.hyundai-bg-hot-color .nav-link.active {
    color: var(--bs-danger) !important;
    background-color: white !important;
}

    /* 1. Sản phẩm bán chạy */
.best-selling-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 48, 158, 1);
}
.best-selling-wrap-bg, .deal-hot-wrap-bg {
    width: 100%;
}
.best-selling-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px;
    gap: 12px;
    justify-content: center;
    border-bottom: 3px solid #2271b1;
}
.best-selling-tab-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
}
.best-selling-tab-btn:hover, .best-selling-tab-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
}
.best-selling-tabs-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 25px 20px;
    border-radius: 0 0 8px 8px;
}
.best-selling-tab-pane {
    display: none;
}
.best-selling-tab-pane.active {
    display: block;
    animation: bestSellingFadeIn 0.4s ease;
}
@keyframes bestSellingFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.best-selling-wrap .woocommerce ul.products {
    margin-top: 0 !important;
}

/* 2. Deal hời giá tốt */
.deal-hot-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--bs-danger);
}
.deal-hot-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px;
    gap: 12px;
    justify-content: center;
    border-bottom: 3px solid #ff2d2d;
}
.deal-hot-tab-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
}
.deal-hot-tab-btn:hover, .deal-hot-tab-btn.active {
    background: #ff2d2d;
    color: #fff;
    border-color: #ff2d2d;
    box-shadow: 0 4px 12px rgba(255, 45, 45, 0.4);
}
.deal-hot-tabs-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 25px 20px;
    border-radius: 0 0 8px 8px;
}
.deal-hot-tab-pane {
    display: none;
}
.deal-hot-tab-pane.active {
    display: block;
    animation: dealHotFadeIn 0.4s ease;
}

@keyframes dealHotFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.deal-hot-wrap .woocommerce ul.products {
    margin-top: 0 !important;
}

.deal-hot-wrap .deal-hot-tabs-nav {
    display: none;
}

.deal-hot-wrap .deal-hot-tabs-nav li {
    margin: 0;
}

.deal-hot-wrap .deal-hot-tabs-nav:has(li + li) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.deal-hot-tabs-nav {
    background: rgb(6 30 42 / 85%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px;
}

.deal-hot-tabs-nav .deal-hot-tab-btn:hover,.deal-hot-tabs-nav .deal-hot-tab-btn.active {
    background: #00309e;
    color: #fff;
    border-color: #00309e;
    box-shadow: 0 4px 12px rgb(0 47 158 / 60%);
}

form.searchform {
    position: relative !important;
}

form.searchform .popover {
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    top: 100% !important;
    transform: none !important;
}

form.searchform .popover .popover-arrow {
    left: 20px !important;
    transform: unset !important;
}

.row-cate-custom .box-text h4 {
    color: #ffffff;
}

@media screen and (max-width: 800px) {
    form.searchform .popover {
        width: calc(100% - 20px);
    }
}

@media screen and (max-width: 849px) {
    #logo {
        width: 100% !important;
    }
}

.hyundai-home-footer-slogan:before {
    content: "";
    border: 1px solid #ffffff;
    width: 60%;
    height: 1px;
    display: block;
    margin-bottom: 10px;
}

/* ==========================================
   1. CẤU HÌNH SECTION & CHUNG
   ========================================== */
#section_870778230 {
    padding: 0;
    background-color: #ffffff;
}

#gap-1470901508 {
    padding-top: 30px;
    display: block;
    height: auto;
}

.footer-blue-text,
.footer-blue-text * {
    color: var(--main-color-hex) !important;
}

/* ==========================================
   2. HỆ THỐNG FLEXBOX 4 CỘT (DESKTOP)
   ========================================== */
@media (min-width: 850px) {
    .hyundai-footer-row-5-cols {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
    }

    .hyundai-footer-row-5-cols > .col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        padding: 0 15px;
    }
}

/* ==========================================
   3. CỘT 1: CẮT GÓC XANH & SLOGAN
   ========================================== */
.footer-hyundai-home-logo-col {
    background-color: var(--main-color-hex);
    position: relative;
    padding: 20px 35px 20px 50px !important;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    margin-top: 30px !important;
}

#image_1068037512 {
    width: 80%;
}

/* Đường gạch ngang trắng phía trên slogan */
.hyundai-home-footer-slogan {
    color: #ffffff !important;
    position: relative;
    padding-top: 15px;
    margin-top: 10px;
}

.hyundai-home-footer-slogan p {
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.4;
    padding-right: 20px;
}

/* ==========================================
   4. ĐƯỜNG KẺ DỌC PHÂN CÁCH GIỮA CÁC CỘT
   ========================================== */
.hyundai-home-footer-vertical-border, .footer-hyundai-home-fanpage-col {
    position: relative;
    padding: 30px !important;
}

@media (min-width: 850px) {
    .hyundai-home-footer-vertical-border:after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 70%;
        background-color: #e0e0e0;
    }
}

.custom-fa-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
}

.custom-fa-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--main-color-hex);
}

/* 3. Chèn Icon FontAwesome bằng ::before */
.custom-fa-list li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free", serif;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--main-color-hex);
    font-size: 14px;
}

/* ==========================================
   FLEXBOX RESPONSIVE BREAKPOINTS (HYUNDAI FOOTER)
   ========================================== */

/* 1. Màn hình Mobile nhỏ (< 680px): 1 CỘT (100%) */
@media (max-width: 679px) {
    .hyundai-footer-row-5-cols {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .hyundai-footer-row-5-cols > .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
    /* Ẩn đường kẻ dọc trên mobile */
    .hyundai-home-footer-vertical-border:after {
        display: none !important;
    }
    /* Mở rộng góc vát logo trên mobile cho cân đối */
    .footer-hyundai-home-logo-col {
        clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%) !important;
    }
}

/* 2. Màn hình Tablet nhỏ (680px - 919px): 2 CỘT (50%) */
@media (min-width: 680px) and (max-width: 919px) {
    .hyundai-footer-row-5-cols {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .hyundai-footer-row-5-cols > .col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 25px;
    }
    /* Ẩn đường kẻ dọc khi chia 2 cột để tránh vỡ giao diện */
    .hyundai-home-footer-vertical-border:after {
        display: none !important;
    }
}

.header-button i.icon-shopping-basket::after {
    background-color: #fff !important;
    color: var(--main-color-hex) !important;
}

.badge-container .badge-circle {
    padding: 0 !important;
}

/* .product .price span, .product .price del {
    color: #fff !important;
} */

#contactModal h4 {
    color: #fff;
}

.ux-swatch--label.tooltip {
    opacity: 1 !important;
}

.ux-swatch.selected {
    background: var(--main-color-hex) !important;
    border-color: var(--main-color-hex) !important;
    color: white !important;
}

.ux-swatch:hover:not(.selected):not(.disabled) {
    box-shadow: 0 0 0 .07rem var(--main-color-hex) !important;
}

.slick-dots li {
    width: auto;
}

.slick-dots li .dash {
    display: block;
    width: 15px;
    height: 4px;
    background: rgba(var(--main-color-rgb), .5);
    border-radius: 2px;
}

.slick-dots li.slick-active .dash {
    background: var(--main-color-hex);
}

.hyundai-home-addresses-pin {
    background-color: var(--bs-white);
}

.hyundai-home-addresses-pin.btn:hover {
    color: var(--bs-dark) !important;
    background-color: var(--bs-white) !important;
}

.hyundai-footer-menu-wrapper .mobile-menu-item.active {
    border: 1px solid var(--main-color-hex) !important;
}
