* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -mos-box-sizing: border-box
}

:root {
    --red: #d71920;
    --red-dark: #b51218;

    --black: #111111;
    --black-2: #181818;
    --dark: #242424;

    --text: #333333;
    --muted: #777777;

    --border: #e5e5e5;
    --bg: #f7f7f7;

    --container: 98%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: var(--container);
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}


/* =========================================================
           TOP BAR
        ========================================================= */

.top-bar {
    background: #111;
    color: #bbb;
    font-size: 13px;
}

.top-bar-inner {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.top-left span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.top-left i {
    color: var(--red);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-right span {
    margin-right: 5px;
}

.top-social {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa;

    transition: .25s;
}

.top-social:hover {
    color: var(--red);
}


/* =========================================================
           HEADER
        ========================================================= */

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 110px;
    object-fit: contain;
}


/* Search */

.search-box {
    flex: 1;
    max-width: 450px;
    /* Yêu cầu của bạn: Giới hạn tối đa 400px */
    width: 100%;
    /* Đảm bảo co giãn tốt trên màn hình nhỏ */
    margin: 0 auto;
    /* Đẩy thanh tìm kiếm nằm chính giữa khoảng trống của Header */

    height: 44px;
    display: flex;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;

    border: none;
    outline: none;

    padding: 0 15px;

    font-size: 14px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    width: 55px;

    border: none;

    background: var(--red);
    color: #fff;

    cursor: pointer;

    font-size: 16px;

    transition: .25s;
}

.search-box button:hover {
    background: var(--red-dark);
}

.search-box.active {
    display: flex;
    /* Hiện lại cấu trúc flex của ô tìm kiếm */
    animation: slideDownMobile 0.25s ease-out forwards;
    /* Hiệu ứng xuất hiện */
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-8px);
        /* Trượt nhẹ từ trên xuống */
    }

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


/* Header right */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8e8e8;
    color: var(--red);

    border-radius: 50%;
}

.phone-info small {
    display: block;

    font-size: 11px;
    color: #888;

    text-transform: uppercase;
}

.phone-info strong {
    display: block;

    color: var(--red);
    font-size: 16px;
    font-weight: 700;
}

.mobile-search-toggle {
    display: none;
    /* Ẩn icon kích hoạt trên máy tính */
}


/* Cart */

.cart-link {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;

    color: #222;

    transition: .25s;
}

.cart-link:hover {
    color: var(--red);
}

.cart-count {
    position: absolute;

    top: 0;
    right: -2px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--red);
    color: #fff;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
           NAVIGATION
        ========================================================= */

.main-nav {
    background: #0D47A1;
}

.nav-inner {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    min-height: 52px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-transform: uppercase;

    transition: .25s;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    background: var(--red);
}


/* Product menu */

.product-menu>a {
    gap: 8px;
}

.product-menu>a .menu-arrow {
    font-size: 11px;

    transition: transform .25s;
}

.product-menu:hover>a .menu-arrow {
    transform: rotate(180deg);
}


/* Level 1 */

.submenu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 260px;

    background: #fff;

    border-top: 3px solid var(--red);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition: .25s;

    z-index: 1000;
}

.product-menu:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu>li {
    position: relative;
}

.submenu>li>a {
    min-height: 45px;

    padding: 11px 18px;

    display: flex;
    align-items: center;
    justify-content: left;

    color: #333;

    border-bottom: 1px solid #eee;

    font-size: 14px;

    background: #fff;

    transition: .2s;
}

.submenu>li>a:hover {
    color: var(--red);
    background: #f8f8f8;
    padding-left: 23px;
}

.submenu>li>a i {
    font-size: 10px;
    color: #999;
}

.submenu>li>a i.fa-chevron-right {
    margin-left: auto;
    /* Xóa float: right và thay bằng dòng này */
}


/* Level 2 */

.submenu .submenu {
    top: -3px;
    left: 100%;

    border-top: 3px solid var(--red);

    transform: translateX(8px);

    opacity: 0;
    visibility: hidden;
}

.submenu>li:hover>.submenu {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =========================================================
           BANNER SLIDER
        ========================================================= */

.hero {
    position: relative;

    height: 470px;

    overflow: hidden;

    background: #111;
}

.hero-slide {
    position: absolute;

    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition: opacity .8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";

    position: absolute;

    inset: 0;

}

.hero-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-content {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    max-width: var(--container);

    padding: 0 15px;

    transform: translate(-50%, -50%);

    color: #fff;
}

.hero-content small {
    display: block;

    margin-bottom: 10px;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 650px;

    margin-bottom: 15px;

    font-size: 46px;
    line-height: 1.15;

    font-weight: 800;

    text-transform: uppercase;
}

.hero-content p {
    max-width: 600px;

    margin-bottom: 28px;

    color: #ddd;

    font-size: 17px;
    font-weight: 300;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 25px;

    background: var(--red);
    color: #fff;

    border-radius: 3px;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;

    transition: .25s;
}

.hero-button:hover {
    background: #fff;
    color: #111;
}


/* Slider controls */

.slider-dots {
    position: absolute;

    bottom: 20px;
    left: 50%;

    display: flex;
    gap: 7px;

    transform: translateX(-50%);

    z-index: 10;
}

.slider-dot {
    width: 9px;
    height: 9px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .5);

    cursor: pointer;

    transition: .25s;
}

.slider-dot.active {
    width: 25px;

    border-radius: 10px;

    background: var(--red);
}


/* =========================================================
           FEATURE BOX
        ========================================================= */

.features {
    background: #fff;

    border-bottom: 1px solid #eee;
}

.features-inner {
    min-height: 105px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    align-items: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 20px;

    border-right: 1px solid #eee;
}

.feature:first-child {
    padding-left: 0;
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--red);

    font-size: 24px;
}

.feature h4 {
    margin-bottom: 2px;

    color: #222;

    font-size: 14px;
    font-weight: 700;
}

.feature p {
    color: #888;

    font-size: 12px;
}


/* =========================================================
           SECTION HEADING
        ========================================================= */

.section {
    padding: 65px 0;
}

.section-heading {
    margin-bottom: 35px;

    text-align: center;
}

.section-heading span {
    display: block;

    margin-bottom: 7px;

    color: var(--red);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.section-heading h2 {
    color: var(--red);

    font-size: 30px;
    line-height: 1.3;

    font-weight: 800;

    text-transform: uppercase;
}

.heading-line {
    position: relative;

    width: 55px;
    height: 3px;

    margin: 14px auto 0;

    background: var(--red);
}

.heading-line::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 3px;

    left: 50%;

    transform: translateX(-50%);

    background: #111;
}


/* =========================================================
           DANH MỤC NỔI BẬT
        ========================================================= */

.featured-categories {
    padding: 65px 0 70px;

    background: #fff;
}

.category-list {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 18px;
}

.category-item {
    position: relative;

    min-height: 150px;

    padding: 25px 15px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #e2e2e2;
    border-radius: 7px;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.category-item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background: var(--red);

    transition: height .3s ease;
}

.category-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #151515;

    font-size: 34px;

    transition: .3s;
}

.category-item h3 {
    color: #333;

    font-size: 14px;
    font-weight: 600;

    text-align: center;

    transition: .3s;
}

.category-arrow {
    position: absolute;

    right: 12px;
    bottom: 10px;

    color: #aaa;

    font-size: 10px;

    opacity: 0;

    transform: translateX(-5px);

    transition: .3s;
}

.category-item:hover {
    border-color: var(--red);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    transform: translateY(-5px);
}

.category-item:hover::before {
    height: 100%;
}

.category-item:hover .category-icon {
    color: var(--red);

    transform: translateY(-3px);
}

.category-item:hover h3 {
    color: var(--red);
}

.category-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(182, 152, 152, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 99;
}

.category-item:hover::after {
    animation: flashLight 0.75s ease-in-out;
}

.category-item:hover .category-arrow {
    opacity: 1;

    color: var(--red);

    transform: translateX(0);
}


/* =========================================================
           PRODUCTS
        ========================================================= */

.products-section {
    padding: 70px 0;

    background: #f7f7f7;
}

.product-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}


/*
            QUAN TRỌNG:
            TOÀN BỘ CARD LÀ THẺ A
        */

.product-card {
    display: block;

    background: #fff;

    border: 1px solid #e3e3e3;

    border-radius: 7px;

    overflow: hidden;

    position: relative;
    /* BẮT BUỘC phải có thuộc tính này */
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.product-card:hover {
    border-color: var(--red);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);

    transform: translateY(-5px);

}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    /* Đẩy hẳn sang bên trái ngoài khung nhìn */
    width: 60%;
    /* Tăng độ rộng vệt sáng một chút */
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(239, 68, 68, 0.15) 30%,
            /* Màu Đỏ dịu nhẹ */
            rgba(6, 182, 212, 0.15) 70%,
            /* Màu Xanh dịu nhẹ */
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 99;
    /* Đảm bảo vệt sáng nằm đè lên trên cả ảnh và chữ */
}

/* 3. Kích hoạt hiệu ứng animation khi hover (Đã sửa lỗi ease-in-out) */
.product-card:hover::after {
    animation: flashLight 0.75s ease-in-out;
}

/* 4. Định nghĩa hành trình chuyển động */
@keyframes flashLight {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}


/* Product image */

.product-image {
    position: relative;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;

}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* Product badge */

.product-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 5px 10px;

    background: var(--red);
    color: #fff;

    border-radius: 3px;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


/* Product info */

.product-info {
    padding: 18px 18px 20px;
}

.product-category {
    margin-bottom: 6px;

    color: var(--red);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
}

.product-name {
    min-height: 48px;

    margin-bottom: 10px;

    color: #0D47A1;

    font-size: 15px;
    line-height: 1.5;

    font-weight: 600;

    transition: .2s;
}

.product-card:hover .product-name {
    color: var(--red);
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 12px;

    border-top: 1px solid #eee;
}

.product-price strong {
    color: #000;

    font-size: 17px;
    font-weight: 700;
}

.product-price span {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    color: #555;

    border-radius: 50%;

    font-size: 12px;

    transition: .25s;
}

.product-card:hover .product-price span {
    background: var(--red);
    color: #fff;
}


/* =========================================================
           PRODUCT BANNER
        ========================================================= */

.product-banner {
    margin-top: 55px;

    min-height: 300px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 8px;

    background: #111;
}

.product-banner-image {
    position: absolute;

    inset: 0;

    opacity: .4;
}

.product-banner-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.product-banner-content {
    position: relative;

    z-index: 2;

    max-width: 650px;

    padding: 45px;
}

.product-banner-content span {
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.product-banner-content h2 {
    margin: 10px 0 15px;

    color: #fff;

    font-size: 32px;
    line-height: 1.25;

    text-transform: uppercase;
}

.product-banner-content p {
    margin-bottom: 22px;

    color: #ccc;

    font-size: 15px;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 22px;

    background: var(--red);
    color: #fff;

    border-radius: 3px;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

    transition: .25s;
}

.banner-button:hover {
    background: #fff;
    color: #111;
}


/* =========================================================
           PROJECT
        ========================================================= */

.projects-section {
    padding: 70px 0;

    background: #fff;
}

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.project-card {
    position: relative;

    height: 300px;

    overflow: hidden;

    border-radius: 6px;

    background: #111;
}

.project-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(transparent 25%,
            rgba(0, 0, 0, .85) 100%);
}

.project-overlay span {
    margin-bottom: 5px;

    color: #e8e8e8;

    font-size: 11px;
    text-transform: uppercase;
}

.project-overlay h3 {
    color: #fff;

    font-size: 19px;
    font-weight: 600;
}


/* =========================================================
           FOOTER
        ========================================================= */

footer {
    background: #111;

    color: #aaa;

    padding: 65px 0 20px;

    margin-top: 30px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 40px;

    padding-bottom: 45px;

    border-bottom: 1px solid #292929;
}

.footer-logo img {
    width: 165px;

    margin-bottom: 20px;

    filter: brightness(0) invert(1);
}

.footer-company {
    margin-bottom: 15px;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 10px;

    font-size: 13px;
}

.footer-info i {
    width: 20px;

    margin-right: 6px;

    color: var(--red);
}

.footer-col h4 {
    margin-bottom: 20px;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li a {
    color: #999;

    font-size: 13px;

    transition: .2s;
}

.footer-col li a:hover {
    color: var(--red);

    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;

    text-align: center;

    color: #666;

    font-size: 12px;
}

/* Tối ưu riêng cho khung chứa bản đồ */
.footer-map {
    width: 400px;
    height: 300px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    /* Bo tròn góc bản đồ cho tinh tế */
    border: 1px solid #292929;
    /* Thêm viền nhẹ tiệp màu với footer */
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* Xóa khoảng trống thừa dưới iframe */
}



/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 1100px) {

    .nav-menu>li>a {
        padding: 0 15px;

        font-size: 13px;
    }

    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature {
        min-height: 70px;
    }

    .feature:nth-child(2) {
        border-right: none;
    }

    .header-inner {
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-map {
        width: 100%;
        height: auto;
    }

}


@media (max-width: 850px) {

    .top-left span:last-child,
    .top-right span {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;

        padding: 15px 0;
        gap: 20px;
    }

    .logo img {
        width: 150px;
    }

    .search-box {
        order: 3;

        flex: 0 0 100%;

        max-width: 100%;
    }

    .header-right {
        margin-left: auto;
    }

    .phone-info {
        display: none;
    }

    .hero {
        height: 420px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }



}


@media (max-width: 650px) {

    .top-bar {
        display: none;
    }

    .header-inner {
        gap: 15px;
    }

    .logo img {
        width: 130px;
    }

    .cart-link {
        width: 35px;
    }

    .hero {
        height: 390px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .features-inner {
        grid-template-columns: 1fr;
    }

    .feature {
        min-height: 70px;

        padding: 10px 0;

        border-right: none;

        border-bottom: 1px solid #eee;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }

    .product-image {
        height: 190px;
    }

    .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price strong {
        font-size: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .product-banner-content {
        padding: 30px 25px;
    }

    .product-banner-content h2 {
        font-size: 25px;
    }



}


@media (max-width: 420px) {

    .header-right {
        gap: 5px;
    }

    .category-item {
        min-height: 130px;
    }

    .category-icon {
        font-size: 29px;
    }

    .category-item h3 {
        font-size: 13px;
    }

    .product-image {
        height: 160px;
    }

    .product-name {
        min-height: auto;

        margin-bottom: 12px;
    }

    .product-price {
        align-items: flex-end;
    }

}


/* =========================================================
           PARTNERS
        ========================================================= */
.partners-section {
    padding: 48px 0 42px;
    background: #fff;
    border-top: 1px solid #242424;
    position: relative;
    z-index: 1;
}

.partners-heading {
    margin-bottom: 28px;
    text-align: center;
}

.partners-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.partners-heading h3 {
    color: #222;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.partners-heading p {
    margin-top: 7px;
    color: #888;
    font-size: 13px;
}

.partners-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.partner-item {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    color: #444;
    transition: .25s;
}

.partner-item i {
    color: var(--red);
    font-size: 19px;
}

.partner-item strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.partner-item:hover {
    border-color: var(--red);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
    color: var(--red);
}

/* =========================================================
           BEST SELLING PRODUCTS SLIDER
        ========================================================= */
.best-selling-section {
    padding: 65px 0;
    background: #f7f7f7;
    overflow: hidden;
}

.best-selling-slider {
    position: relative;
    padding: 0 48px;
}

.best-selling-viewport {
    overflow: hidden;
}

.best-selling-track {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
    will-change: transform;
}

.best-selling-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    display: block;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 7px;
    overflow: hidden;
    color: #222;
    transition: .25s;
}

.best-selling-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}

.best-selling-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f1f1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.best-selling-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.best-selling-card:hover .best-selling-image img {
    transform: scale(1.04);
}

.best-selling-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    background: var(--red);
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.best-selling-info {
    padding: 16px;
}

.best-selling-category {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.best-selling-name {
    min-height: 44px;
    margin-bottom: 12px;
    color: #0D47A1;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.best-selling-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid #eee;
}

.best-selling-price {
    color: #000;
    font-size: 15px;
    font-weight: 800;
}

.best-selling-price small {
    display: block;
    margin-bottom: 2px;
    color: #999;
    font-size: 9px;
    font-weight: 400;
}

.best-selling-arrow {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #171717;
    color: #fff;
    font-size: 11px;
    transition: .2s;
}

.best-selling-card:hover .best-selling-arrow {
    background: var(--red);
}

.best-selling-nav {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: .2s;
}

.best-selling-nav:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.best-selling-prev {
    left: 0;
}

.best-selling-next {
    right: 0;
}

.best-selling-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
}

.best-selling-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: .2s;
}

.best-selling-dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--red);
}

.social-sticky-container {
    position: fixed;
    bottom: 100px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Khoảng cách giữa các nút */
    z-index: 9999;
}

/* Nút tròn màu vàng cam đậm chứa icon */
.social-button-inner {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #001F5D;
    /* Màu vàng cam */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Màu đen của icon */
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Tạo hiệu ứng vòng tròn lớn nhấp nháy, phóng to lan tỏa từ bên dưới nút */
.social-button-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 163, 115, 0.6);
    /* Quầng màu cam mờ */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    /* Gọi hiệu ứng hiệu ứng lặp đi lặp lại vô hạn */
    animation: pulse-effect 2s infinite ease-out;
}

/* Khi di chuột vào nút (Hover) */
.social-button-inner:hover {
    transform: scale(1.1) translateY(-3px);
    /* Phóng to nhẹ và nhích lên */
    background-color: #e6b89c;
    /* Đổi màu nút sáng hơn một chút */
    color: #000;
}

/* Nút Instagram sẽ chạy hiệu ứng lệch đi 0.7 giây để 2 nút không nhấp nháy cùng một lúc */
.instagram-btn::before {
    animation-delay: 0.7s;
}

.hidden {
    display: none !important;
}

/* Định nghĩa hiệu ứng phóng to nhấp nháy (Keyframes) */
@keyframes pulse-effect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        /* Phóng to gấp 1.8 lần vòng tròn nhỏ */
        opacity: 0;
        /* Ẩn dần đi khi lan ra xa */
    }
}


@media (max-width: 900px) {
    .best-selling-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .best-selling-image {
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .best-selling-section {
        padding: 48px 0;
    }

    .best-selling-slider {
        padding: 0 34px;
    }

    .best-selling-track {
        gap: 10px;
    }

    .best-selling-card {
        flex-basis: calc((100% - 10px) / 2);
        border-radius: 5px;
    }

    .best-selling-image {
        height: 155px;
    }

    .best-selling-info {
        padding: 11px;
    }

    .best-selling-category {
        font-size: 8px;
    }

    .best-selling-name {
        min-height: 48px;
        margin-bottom: 8px;
        font-size: 11.5px;
        line-height: 1.4;
    }

    .best-selling-price {
        font-size: 12px;
    }

    .best-selling-price small {
        font-size: 8px;
    }

    .best-selling-arrow {
        width: 27px;
        height: 27px;
        font-size: 9px;
    }

    .best-selling-badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 7px;
    }

    .best-selling-nav {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
}

@media (max-width: 420px) {
    .best-selling-slider {
        padding: 0 30px;
    }

    .best-selling-image {
        height: 140px;
    }

    .best-selling-name {
        font-size: 11px;
    }
}


/* =========================================================
           MOBILE — HEADER, HERO, GRIDS, FOOTER
        ========================================================= */
@media (max-width: 650px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* ---- Header ---- */

    .top-bar {
        display: none;
    }

    .header {
        border-bottom: 1px solid #eee;
    }

    .header-inner {
        padding: 15px 0;
        gap: 15px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 105px;
        max-height: 44px;
    }

    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #0D47A1;
        font-size: 16px;
        cursor: pointer;
        width: 34px;
        height: 34px;
        background: #f8e8e8;
        border-radius: 50%;
    }

    .search-box {
        display: none;
    }

    /* Hotline: giữ lại icon gọi nhanh trên mobile, chỉ ẩn phần chữ */
    .header-phone {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .phone-icon {
        width: 38px;
        height: 38px;
    }

    .phone-info {
        display: none;
    }

    .header-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 6px;
        height: 100%;
    }

    .cart-link {
        width: 38px;
        height: 38px;
    }

    /* ---- Hero ---- */

    .hero {
        height: 390px;
        margin-top: 0;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-content small {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: 29px;
        line-height: 1.18;
    }

    .hero-content p {
        max-width: 100%;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-button,
    .banner-button {
        padding: 11px 18px;
        font-size: 12px;
    }

    /* ---- Sections ---- */

    .section,
    .featured-categories,
    .products-section,
    .projects-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .section-heading span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    /* ---- Features ---- */

    .features-inner {
        grid-template-columns: 1fr 1fr;
    }

    .feature {
        min-height: 78px;
        padding: 10px 8px;
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .feature:nth-child(2n) {
        border-right: none;
    }

    .feature:nth-child(3),
    .feature:nth-child(4) {
        border-bottom: none;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 19px;
    }

    .feature h4 {
        font-size: 12px;
    }

    .feature p {
        font-size: 10px;
        line-height: 1.35;
    }

    /* ---- Categories ---- */

    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-item {
        min-height: 125px;
        padding: 18px 8px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 9px;
        font-size: 28px;
    }

    .category-item h3 {
        font-size: 12px;
        line-height: 1.35;
    }

    /* ---- Products ---- */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 175px;
    }

    .product-info {
        padding: 12px;
    }

    .product-category {
        font-size: 9px;
    }

    .product-name {
        min-height: 42px;
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .product-price {
        padding-top: 9px;
    }

    .product-price strong {
        font-size: 13px;
    }

    .product-price span {
        width: 27px;
        height: 27px;
        font-size: 10px;
    }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .product-banner {
        min-height: 330px;
        margin-top: 35px;
        border-radius: 6px;
    }

    .product-banner-content {
        max-width: 100%;
        padding: 28px 20px;
    }

    .product-banner-content h2 {
        font-size: 23px;
    }

    .product-banner-content p {
        font-size: 13px;
    }

    /* ---- Projects ---- */

    .project-card {
        height: 245px;
    }

    .project-overlay {
        padding: 18px;
    }

    .project-overlay h3 {
        font-size: 17px;
    }

    /* ---- Partners ---- */

    .partners-section {
        padding: 35px 0 30px;
    }

    .partners-heading {
        margin-bottom: 20px;
    }

    .partners-heading h3 {
        font-size: 20px;
    }

    .partners-heading p {
        font-size: 12px;
    }

    .partners-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .partner-item {
        min-height: 64px;
        padding: 10px 7px;
    }

    .partner-item i {
        font-size: 16px;
    }

    .partner-item strong {
        font-size: 10px;
        text-align: center;
    }

    /* ---- Footer ---- */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    footer {
        padding: 45px 0 18px;
    }

    .footer-logo img {
        width: 145px;
    }

    .footer-company {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 420px) {

    .logo img {
        width: 98px;
        max-height: 40px;
    }

    .cart-link {
        width: 34px;
    }

    .header-phone,
    .phone-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .hero {
        height: 360px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 13px;
    }



    .feature:last-child {
        border-bottom: none !important;
    }

    .category-item {
        min-height: 130px;
    }

    .category-icon {
        font-size: 29px;
    }

    .category-item h3 {
        font-size: 13px;
    }

    .product-image {
        height: 150px;
    }

    .product-name {
        font-size: 11.5px;
    }

    .product-price strong {
        font-size: 12px;
    }

    .partners-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
           MOBILE MENU — modern off-canvas drawer
           (single, clean implementation — replaces every previous
           mobile-menu experiment)
        ========================================================= */

/* Hamburger button: hidden on desktop */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 650px) {

    body.mobile-menu-lock {
        overflow: hidden;
    }

    /* ---------- Hamburger button ---------- */

    .header-right {
        gap: 8px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        order: 3;
        border: none;
        border-radius: 10px;
        background: #f4f4f4;
        color: #171717;
        font-size: 17px;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }

    .mobile-menu-toggle:active {
        transform: scale(.93);
    }

    .mobile-menu-toggle.is-active {
        background: var(--red);
        color: #fff;
    }

    .cart-link {
        order: 2;
    }

    /* ---------- Overlay ---------- */

    .main-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 15, 15, .55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        visibility: hidden;
        opacity: 0;
        overflow: hidden;
        z-index: 10000;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .main-nav.mobile-nav-open {
        visibility: visible;
        opacity: 1;
    }

    .main-nav .container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* ---------- Drawer panel ---------- */

    .nav-inner {
        display: flex;
        flex-direction: column;

        position: relative;
        width: 85vw;
        max-width: 330px;
        height: 100%;

        background: #fff;
        box-shadow: 18px 0 45px rgba(0, 0, 0, .25);

        transform: translateX(-100%);
        transition: transform .35s cubic-bezier(.22, .61, .36, 1);

        overflow: hidden;
    }

    .main-nav.mobile-nav-open .nav-inner {
        transform: translateX(0);
    }

    /* Scrollable menu list */

    .nav-menu {
        display: block;
        position: static;
        width: 100%;
        flex: 1 1 auto;
        margin: 0;
        padding: 14px 0 6px;
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu>li>a {
        min-height: 56px;
        width: 100%;
        padding: 0 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        background: #fff;
        color: #1c1c1c;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .2px;
        text-transform: none;
        border: 0;
        transition: background .2s ease, color .2s ease;
    }

    .nav-menu>li>a .nav-item-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 8px;
        background: #f7f7f7;
        color: var(--red);
        font-size: 14px;
        transition: background .2s ease, color .2s ease;
    }

    .nav-menu>li>a .nav-item-label {
        flex: 1 1 auto;
    }

    .nav-menu>li>a:active,
    .nav-menu>li.active>a {
        background: #fdf1f1;
        color: var(--red);
    }

    .nav-menu>li.active>a .nav-item-icon,
    .nav-menu>li.product-menu.menu-open>a .nav-item-icon {
        background: var(--red);
        color: #fff;
    }

    .nav-menu>li.active {
        border-left: 3px solid var(--red);
    }

    /* Product menu arrow */

    .nav-menu>li.product-menu>a .menu-arrow {
        font-size: 11px;
        color: #aaa;
        transition: transform .25s ease, color .25s ease;
    }

    .nav-menu>li.product-menu.menu-open>a {
        color: var(--red);
        background: #fdf1f1;
    }

    .nav-menu>li.product-menu.menu-open>a .menu-arrow {
        color: var(--red);
        transform: rotate(180deg);
    }

    /* ---------- Level 1 submenu (accordion) ---------- */

    .nav-menu>li.product-menu>.submenu {
        position: static;
        width: 100%;
        max-height: 0;
        background: #fafafa;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
        transition: max-height .35s ease;
    }

    .nav-menu>li.product-menu.menu-open>.submenu {
        max-height: 2000px;
    }

    .nav-menu>li.product-menu>.submenu>li {
        position: relative;
        border-bottom: 1px solid #ececec;
    }

    .nav-menu>li.product-menu>.submenu>li>a {
        min-height: 44px;
        width: 100%;
        padding: 0 16px 0 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: #fafafa;
        color: #444;
        font-size: 12.5px;
        font-weight: 500;
        border: 0;
    }

    .nav-menu>li.product-menu>.submenu>li>a i {
        font-size: 10px;
        color: #bbb;
        transition: transform .2s ease, color .2s ease;
    }

    .nav-menu>li.product-menu>.submenu>li>a:active,
    .nav-menu>li.product-menu>.submenu>li.submenu-open>a {
        color: var(--red);
    }

    .nav-menu>li.product-menu>.submenu>li.submenu-open>a i {
        color: var(--red);
        transform: rotate(90deg);
    }

    /* ---------- Level 2 submenu ---------- */

    .nav-menu>li.product-menu>.submenu>li>.submenu {
        position: static;
        width: 100%;
        max-height: 0;
        background: #fff;
        border: 0;
        border-left: 2px solid #eee;
        margin-left: 58px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-menu>li.product-menu>.submenu>li.submenu-open>.submenu {
        max-height: 900px;
    }

    .nav-menu>li.product-menu>.submenu>li>.submenu>li {
        border-bottom: 1px solid #f3f3f3;
    }

    .nav-menu>li.product-menu>.submenu>li>.submenu>li>a {
        min-height: 40px;
        width: 100%;
        padding: 0 16px 0 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        color: #777;
        font-size: 12px;
        font-weight: 400;
        border: 0;
    }

    .nav-menu>li.product-menu>.submenu>li>.submenu>li>a::before {
        content: "";
        width: 5px;
        height: 5px;
        flex: 0 0 5px;
        border-radius: 50%;
        background: var(--red);
        opacity: .6;
    }

    .nav-menu>li.product-menu>.submenu>li>.submenu>li>a:active {
        color: var(--red);
    }

    .nav-menu>li.product-menu>.submenu>li>.submenu>li>a:active::before {
        opacity: 1;
    }

    /* Drawer footer: hotline + socials */

    .nav-drawer-footer {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 16px;
        background: #fafafa;
        border-top: 1px solid #eee;
    }

    .nav-drawer-footer a.nav-drawer-phone {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #171717;
        font-size: 13px;
        font-weight: 700;
    }

    .nav-drawer-footer a.nav-drawer-phone i {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--red);
        color: #fff;
        font-size: 13px;
    }

    .nav-drawer-socials {
        display: flex;
        gap: 8px;
    }

    .nav-drawer-socials a {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e5e5e5;
        color: #555;
        font-size: 12px;
        transition: .2s;
    }

    .nav-drawer-socials a:hover {
        background: var(--red);
        border-color: var(--red);
        color: #fff;
    }
}

@media (min-width: 651px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

.disabled {
    pointer-events: none;
    cursor: not-allowed !important;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
    background: rgba(255, 255, 255, .75)
}

.preloader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
    background: rgba(255, 255, 255, .75)
}

#preloader i.loadings {
    top: calc(50% - 15px);
    left: calc(50% - 15px);
}

#preloader.show {
    display: block;
}

.error-ajax {
    background-color: #ffedef;
    background-image: url('../images/ic-error.svg');
    background-size: 1rem 1rem;
    background-position: .675rem center;
    background-repeat: no-repeat;
    color: var(--color-red);
    padding: .675rem .675rem .675rem 2rem;
    border-radius: .625rem;
    margin: 1rem 0;
    display: none;
}

.success-ajax {
    background: #ccc;
    color: #0fad00;
    border: 1px solid #0fad00;
    padding: .5rem 1rem;
    border-radius: .625rem;
    display: none;
}

.loading,
.loadings {
    display: none;
    margin: auto;
    border: 2px solid none;
    border-radius: 50%;
    border-top: 2px solid #ccc;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.main-nav.sticky {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 150;
    -webkit-animation: stuckMoveDown .6s;
    animation: stuckMoveDown .6s
}

@-webkit-keyframes stuckMoveDown {
    0% {
        transform: translateY(-100%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes stuckMoveDown {
    0% {
        transform: translateY(-100%)
    }

    to {
        transform: translateY(0)
    }
}

@-webkit-keyframes stuckMoveUp {
    0% {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes stuckMoveUp {
    0% {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

.fullscreen-swiper {
    width: 100%;
    aspect-ratio: 1600 / 700;
    position: relative;
    overflow: hidden;
}

.fullscreen-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.fullscreen-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-mobile);
}

/* Link phủ toàn bộ banner */
.fullscreen-swiper .slide-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Nút prev / next */
.fullscreen-swiper .swiper-button-next,
.fullscreen-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;

    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);

    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;

    z-index: 20;
}

.fullscreen-swiper .swiper-button-next::after,
.fullscreen-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

.fullscreen-swiper .swiper-button-prev {
    left: 20px;
}

.fullscreen-swiper .swiper-button-next {
    right: 20px;
}

.fullscreen-swiper .swiper-button-next:hover,
.fullscreen-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* Pagination */
.fullscreen-swiper .swiper-pagination {
    position: absolute;
    left: 0;
    bottom: 15px;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 30;
}

.fullscreen-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;

    margin: 0 4px !important;

    opacity: 1;
    background: #0D47A1;

    transition: all 0.3s ease;
}

.fullscreen-swiper .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 10px;
    background: var(--red);
}

@media (min-width: 768px) {
    .fullscreen-swiper .swiper-slide {
        background-image: var(--bg-desktop);
    }
}

/* Khung bọc ngoài cùng: Giữ nguyên để thẳng hàng với tiêu đề */
.bestselling-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    /* XÓA PADDING DƯ THỪA Ở ĐÂY */
    box-sizing: border-box;
}

/* Thẻ Swiper: Ép tràn lề */
.bestSellingSwiper {
    width: 100%;
    position: relative;
    padding: 10px 0 0 0;
    overflow: hidden;
}

/* Định dạng chung cho 2 nút bấm */
.bestselling-wrapper .swiper-button-prev,
.bestselling-wrapper .swiper-button-next {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
    color: #222;

    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    position: absolute;
    z-index: 10;
}

/* DÙNG MARGIN ÂM ĐỂ ĐẨY NÚT BẤM RA KHỎI KHUNG SLIDER */
.bestselling-wrapper .swiper-button-prev {
    left: 0;
    transform: translate(-50%, -50%);
    /* Đẩy một nửa nút ra ngoài rìa trái */
}

.bestselling-wrapper .swiper-button-next {
    right: 0;
    transform: translate(50%, -50%);
    /* Đẩy một nửa nút ra ngoài rìa phải */
}

.bestselling-wrapper .swiper-button-next:hover,
.bestselling-wrapper .swiper-button-prev:hover {
    background-color: var(--red);
}

/* Thu nhỏ mũi tên bên trong cho cân đối */
.bestselling-wrapper .swiper-button-prev::after,
.bestselling-wrapper .swiper-button-next::after {
    font-size: 16px;
}


.partners-list {
    width: 100%;
    position: relative;
    padding: 5px 0 0 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .bestselling-wrapper .swiper-button-prev {
        transform: translate(-15px, -50%);
    }

    .bestselling-wrapper .swiper-button-next {
        transform: translate(15px, -50%);
    }
}

.premium-featured {
    padding: 80px 0;
    background: #eef7f6;
    /* Màu xanh mint nhạt nhè nhẹ */
}

.premium-layout {
    display: flex;
    gap: 30px;
}

/* KHỐI ĐỎ CHỦ ĐẠO (BANNER) */
.premium-banner {
    flex: 0 0 300px;
    background: linear-gradient(135deg, #e4393c 0%, #b31c20 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(228, 57, 60, 0.2);
}

.banner-tag {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.banner-title {
    font-size: 32px;
    font-weight: 800;
    margin: 20px 0 15px;
    line-height: 1.2;
}

.banner-desc {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e4393c;
    background: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: .3s;
}

.banner-btn:hover {
    transform: translateY(-3px);
}

/* LƯỚI SẢN PHẨM BÊN PHẢI */
.premium-grid-wrapper {
    flex: 1;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* CẬP NHẬT: Thẻ sản phẩm sắp xếp NẰM NGANG */
.premium-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    /* Căn chữ và hình thẳng hàng ngang theo trục giữa */
    gap: 15px;
    /* Khoảng cách giữa hình và chữ */
    text-decoration: none;
    border: 1px solid rgba(24, 144, 120, 0.1);
    box-shadow: 0 4px 12px rgba(24, 144, 120, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Khung bọc hình ảnh sản phẩm */
.card-img-box {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    /* Giữ kích thước ảnh cố định, không bị bóp méo */
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ảnh tự động khít vào khung tròn/vuông vuông */
    transition: transform 0.3s ease;
}

/* Tên sản phẩm chữ */
.premium-card-text {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s;
}

/* --- HIỆU ỨNG TƯƠNG TÁC KHI DI CHUỘT --- */
.premium-card:hover {
    transform: translateY(-4px);
    border-color: #e4393c;
    /* Viền chuyển màu Đỏ chủ đạo */
    box-shadow: 0 10px 20px rgba(228, 57, 60, 0.08);
}

.premium-card:hover .premium-card-text {
    color: #e4393c;
    /* Chữ đổi sang màu Đỏ kích thích mua sắm */
}

.premium-card:hover .card-img-box img {
    transform: scale(1.08);
    /* Hình ảnh phóng to nhẹ cực kỳ cao cấp */
}


/* --- RESPONSIVE CHO THIẾT BỊ DI ĐỘNG --- */
@media (max-width: 1200px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .premium-layout {
        flex-direction: column;
    }

    .premium-banner {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .premium-featured {
        padding: 40px 0;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        /* Mobile thành 1 cột dọc, thẻ vẫn nằm ngang */
        gap: 12px;
    }

    .banner-title {
        font-size: 26px;
    }

    .premium-card {
        padding: 12px;
        /* Thu nhỏ padding trên mobile cho thoáng */
    }

    .card-img-box {
        width: 55px;
        height: 55px;
        flex: 0 0 55px;
    }

    .premium-card-text {
        font-size: 13.5px;
    }
}

.breadcrumb {
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem
}

.breadcrumb,
.breadcrumb-item {
    display: flex
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: .5rem
}

.breadcrumb-item+.breadcrumb-item:before {
    display: inline-block;
    padding-right: .5rem;
    color: #6c757d;
    content: "/"
}

.breadcrumb-item+.breadcrumb-item:hover:before {
    text-decoration: underline;
    text-decoration: none
}

.breadcrumb-item.active {
    color: #6c757d
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0d6efd;
}

.breadcrumb .separator {
    color: #bbb;
}

.breadcrumb .active {
    color: #222;
    font-weight: 600;
}

.medium-container {
    max-width: 1000px;
}

.min-container {
    max-width: 800px;
}

.contact-errors {
    margin-bottom: 25px;
    padding: 15px 18px;
    border: 1px solid #f1b5b5;
    border-radius: 6px;
    background: #fff5f5;
    color: #842029;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form {
    padding: 35px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.contact-form h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--red);
}

.contact-form-desc {
    margin-bottom: 28px;
    color: #888;
    font-size: 14px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.contact-form label span {
    color: #dc3545;
}

.contact-form .form-control {
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: none;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-submit {
    height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.contact-submit:hover {
    background: #000;
}


/* Contact info */

.contact-info {
    padding: 35px;
    background: #f8f8f8;
    border-radius: 12px;
}

.contact-info h3 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    color: var(--red);
}

.contact-intro {
    margin: 0 0 25px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid #e5e5e5;
}

.contact-info-item:last-child {
    border-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #222;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-icon i {
    color: var(--red);
}

.contact-info-item>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-info-item strong,
.contact-info-item a {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: #000;
}


/* Google Map */

.contact-map-wrapper {
    margin-top: 0;
}

.contact-map-title {
    margin-bottom: 18px;
}

.contact-map-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.contact-map {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}


/* Mobile */

@media (max-width: 767px) {

    .contact-form,
    .contact-info {
        padding: 25px 20px;
    }

    .contact-form h2 {
        font-size: 24px;
    }

    .contact-info h3 {
        font-size: 22px;
    }

    .contact-map-wrapper {
        margin-top: 35px;
    }

    .contact-map {
        height: 350px;
        border-radius: 8px;
    }

}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-primary {
    background-color: #00438A;
    border-color: #00438A;
    color: #fff;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table td,
.table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6
}

.table tbody+tbody {
    border-top: 2px solid #dee2e6
}

.table-sm td,
.table-sm th {
    padding: .3rem
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6
}

.table-bordered thead td,
.table-bordered thead th {
    border-bottom-width: 2px
}

.table-responsive>.table-bordered {
    border: 0
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.page-title-h,
.page-sidebar-title {
    color: var(--red) !important;
}