/* 1. TRANG CHỦ */


.hero {   
    isolation: isolate;
    overflow: hidden ;
    position: relative;
    padding: 65px clamp(24px, 6vw, 90px);
    min-height: 420px;
    display: flex;
    align-items: center;
    text-align: left;
    color: #ffffff;
    border: none;
    margin-top: -1px;
    background:
        radial-gradient(
            circle at 15% 150px,
            rgba(37, 99, 235, 0.35),
            transparent 85%
        ),
        linear-gradient(
            120deg,
            
            #172b46 100%,
            #111827 100%
        );
}



.hero-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 55px;
}

.hero-copy {min-width: 0;}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.2;
    font-weight: bold;
}

.hero h2 span {
    display: block;
    margin-top: 8px;
    color: #fbbf24;
}

.hero p {
    max-width: 600px;
    margin-bottom: 28px;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.8;
}

/* Ô TÌM KIẾM */

.hero .search-box {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    max-width: 620px;
}

.hero .search-box input {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
}

.hero .search-box input:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.hero .search-box button {
    flex-shrink: 0;
    padding: 15px 22px;
    border: none;
    border-radius: 6px;
    background: #fbbf24;
    color: #111827;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.hero .search-box button:hover {
    background: #f59e0b;
}

/* CÁC ĐIỂM NỔI BẬT */

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 24px;
}

.hero-benefits span {
    color: #e5e7eb;
    font-size: 13px;
}

/* KHỐI THƯƠNG HIỆU BÊN PHẢI */

.hero-visual {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.hero-visual-label {
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-visual-title {
    margin-bottom: 25px;
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: bold;
    line-height: 1.4;
}

.hero-visual-title span {
    display: block;
    color: #fbbf24;
}

.hero-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-brand-card {
    min-height: 90px;
    padding: 18px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-brand-card span {
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-brand-card small {
    color: #cbd5e1;
    font-size: 12px;
}

.hero-visual-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d5db;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

a.hero-brand-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

a.hero-brand-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fbbf24;
    transform: translateY(-2px);
}

a.hero-brand-card:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

/* DANH MỤC */

.categories {
    max-width: 1800px;
    margin: auto;
    padding: 60px 20px;
}

.categories h2,
.products h2 {
    margin-bottom: 30px;
    text-align: center;
}

.category-list-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-list-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    font-weight: bold;
}

.category:hover {
    transform: translateY(-3px);
}


/* CAROUSEL SẢN PHẨM TRANG CHỦ */

.product-category-section {
    width: 100%;
    max-width: 1800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

/* Tiêu đề và nút xem tất cả */
.product-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-category-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.view-all {
    flex-shrink: 0;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.view-all:hover {
    text-decoration: underline;
}

/* Khung carousel */
.product-carousel {
    position: relative;
    width: 100%;
}

/* Lưới 4 sản phẩm */
.carousel-product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.carousel-product-list .product {
    width: 100%;
    min-width: 0;
}

/* Nút chuyển sản phẩm */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%, -50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 25, 50, 0.72);
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;

}
.carousel-button:hover {
    background: #e5a900;
}
.carousel-prev {left: 16px;}

.carousel-next {right: 16px;}

/* Hiện nút khi rê chuột vào khu vực carousel */
.product-carousel:hover .carousel-button,
.carousel-button:focus-visible {opacity: 1;}

/* Màn hình nhỏ */
@media (max-width: 900px) {
    .carousel-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .carousel-button {
        width: 30px;
        height: 38px;
        font-size: 22px;
        border-radius: 50%;
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .product-category-section {
        padding: 0 12px;
    }

    .product-category-header h2 {
        font-size: 20px;
    }

    .carousel-product-list {
        gap: 10px;
    }

    .carousel-button {
        width: 28px;
        height: 36px;
        font-size: 20px;
        border-radius: 50%;
    }
}

.home-category-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.home-category-heading h2 {
    margin: 0;
}

.home-category-heading a {
    margin: 0;
    flex-shrink: 0;
}


/* =========================================================
   BANNER CAROUSEL - XUÂN THANH
   ========================================================= */

.xt-banner-section {
    width: 100%;
    max-width: 1800px;
    margin: 45px auto;
    padding: 0 20px;
}

.xt-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #08294d;
    isolation: isolate;
}

.xt-banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.xt-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}

.xt-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Nút chuyển banner */

.xt-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 25, 50, 0.72);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.xt-banner-arrow:hover {
    background: #e5a900;
}

.xt-banner-prev {
    left: 16px;
}

.xt-banner-next {
    right: 16px;
}

/* Các chấm chỉ vị trí banner */

.xt-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    z-index: 2;
}

.xt-banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.xt-banner-dot.active {
    width: 25px;
    border-radius: 8px;
    background: #ffc42e;
}

/* Hiển thị trên điện thoại */

@media (max-width: 768px) {
    .xt-banner-section {
        margin: 28px auto;
        padding: 0 12px;
    }

    .xt-banner-carousel {
        border-radius: 8px;
    }

    .xt-banner-slide {
        aspect-ratio: 4 / 3;
    }

    .xt-banner-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .xt-banner-prev {
        left: 8px;
    }

    .xt-banner-next {
        right: 8px;
    }

    .xt-banner-dots {
        bottom: 9px;
        gap: 7px;
    }

    .xt-banner-dot {
        width: 8px;
        height: 8px;
    }

    .xt-banner-dot.active {
        width: 20px;
    }
}

/* Tôn trọng cài đặt giảm chuyển động của người dùng */

@media (prefers-reduced-motion: reduce) {
    .xt-banner-track,
    .xt-banner-dot,
    .xt-banner-arrow {
        transition: none;
    }
}
