/* ===== Trang sản phẩm ===== */
.product-page {
    background: #f4f4f6;
    padding: 40px 0 70px;
    font-family: 'Montserrat', Arial, sans-serif;
    min-height: 60vh;
}

.product-page .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-page-header {
    margin-bottom: 24px;
}

.product-eyebrow {
    display: inline-block;
    color: #1e3c72;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* ---- Trang riêng của 1 danh mục / dòng sản phẩm ---- */
.category-hero {
    background: linear-gradient(135deg, #fff 0%, #eaf1fb 100%);
    border: 1px solid #dbe7f8;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin-bottom: 14px;
    text-decoration: none;
}

.category-breadcrumb a {
    color: #888;
    font-size: 16px;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: #1e3c72;
    text-decoration: none;
}

.category-breadcrumb .crumb-sep {
    color: #ccc;
}

.category-breadcrumb .crumb-current {
    color: #1e3c72;
}

.category-hero .product-eyebrow {
    margin-bottom: 8px;
}

.category-hero-count {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #777;
}

/* ---- Bố cục trang danh mục riêng: sidebar lọc + nội dung ---- */
.category-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.category-sidebar>.sidebar-filter-group {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 20px;
}

.sidebar-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-filter-form .sidebar-filter-group {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 20px;
}

.sidebar-filter-title i {
    color: #1e3c72;
    margin-right: 6px;
}

/* Ô chọn dạng checkbox / radio trong sidebar (Dung lượng, Chuẩn kết nối, Mức giá) */
.sidebar-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 2px;
    font-size: 15px;
    font-weight: 600;
    color: #4d525d;
    cursor: pointer;
}

.sidebar-check-row input[type="checkbox"],
.sidebar-check-row input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #1e3c72;
    flex-shrink: 0;
    cursor: pointer;
}

.sidebar-check-row-muted {
    color: #999;
}

.sidebar-check-row .sidebar-filter-count {
    margin-left: auto;
}

.sidebar-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.sidebar-price-range input[type="text"] {
    width: 0;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
      font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    color: #111;
}

.sidebar-price-range span {
    font-size: 14px;
    color: #999;
}

.sidebar-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-filter-apply {
    border: none;
    background: #1e3c72;
    color: #ffd700;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.btn-filter-apply:hover {
    background: #2a5298;
}

.btn-filter-reset {
    display: block;
    text-align: center;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-filter-reset:hover {
    border-color: #1e3c72;
    color: #1e3c72;
}

/* Hộp "Hỗ trợ khách hàng" */
.support-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 20px;
}

.support-box-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.support-box-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.support-box-item i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eaf1fb;
    color: #1e3c72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.support-box-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    padding: 3px;

}

.support-box-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    padding: 5px;

}

.sidebar-filter-group+.sidebar-filter-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.sidebar-filter-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-filter-list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-filter-list a:hover {
    background: #f6f6f6;
}

.sidebar-filter-list a.active {
    background: #eaf1fb;
    color: #1e3c72;
    font-weight: 600;
}

.sidebar-filter-count {
    color:#475569;
    font-weight: 600;
}

.sidebar-filter-list a.active .sidebar-filter-count {
    color: #1e3c72;
}

.category-main {
    min-width: 0;
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.sort-bar-count {
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

.sort-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.sort-bar-label select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
      font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    background: #fff;
    cursor: pointer;
}

.sort-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 3px;
}

.view-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.view-toggle-btn:hover {
    color: #1e3c72;
}

.view-toggle-btn.active {
    background: #1e3c72;
    color: #ffd700;
}

/* Thanh thống kê */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .stat-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 10px;
    }

    .stat-label {
        padding: 0;
        font-size: 14px;
    }

    .stat-link {
        font-size: 14px;
    }
}

.stat-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
    padding: 5px;


}

.stat-link {
    font-size: 14px;
    font-weight: 600;
}



.mobile-filter-toggle {
    display: none;
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
        padding: 12px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        color: #1e3c72;
        font-size: 15px;
        font-weight: 700;
          font-family: 'Montserrat', Arial, sans-serif;
        cursor: pointer;
    }

    .mobile-filter-toggle.is-active {
        background: #1e3c72;
        border-color: #1e3c72;
        color: #ffd700;
    }

    .category-sidebar {
        display: none;
        position: static;
    }

    .category-sidebar.is-open {
        display: flex;
    }
}

/* ---- Thông báo (khi 1 danh mục/dòng chưa có sản phẩm, hiện fallback tất cả) ---- */
.product-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EFF6FF;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-notice i {
    font-size: 16px;
}

/* ---- Section nhóm danh mục ---- */
.product-section {
    margin-bottom: 52px;
}

.product-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
    white-space: nowrap;
}

.product-section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #1e3c72 0%, #f4f4f6 100%);
    border-radius: 999px;
}

/* ---- Toolbar ---- */
.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.product-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 320px;
    flex: 1 1 260px;
}

.product-search input[type="text"] {
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 15px;
      font-family: 'Montserrat', Arial, sans-serif;
    flex: 1;
    color: #111;
}

.product-search button {
    border: none;
    background: #1e3c72;
    color: #ffd700;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ---- Dải danh mục dạng vòng tròn ---- */
.category-strip {
    display: flex;
    justify-content: left;
    gap: 24px;
    overflow-x: auto;
    padding: 24px 28px;
    margin-bottom: 24px;
    /* background: #FEE2E2; */
    border-radius: 16px;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 100px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

/* Button reset cho filter-circle */
.filter-circle {
    background: none;
    border: none;
    padding: 0;
      font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    outline: none;
}

.category-circle-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-all {
    color: #1e3c72;
    font-size: 26px;
}

.category-strip-sub {
    margin-top: -10px;
    margin-bottom: 22px;
    padding-bottom: 10px;
}

.category-circle-sm {
    width: 76px;
}

.category-circle-sm .category-circle-img {
    width: 64px;
    height: 64px;
}

.category-circle-sm .category-circle-all {
    font-size: 20px;
}

.category-circle-sm .category-circle-name {
    font-size: 14px;
}

.category-circle:hover .category-circle-img {
    transform: translateY(-3px);
}

.category-circle.active .category-circle-img {
    border-color: #1e3c72;
}

.category-circle-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e3c72;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    border-radius: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-height: 2.6em;
    width: 100%;
}

.category-circle.active .category-circle-name {
    color: #1e3c72;
}

/* tin tức bài viết */

/* ---- Related articles ---- */
.product-related-articles {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.product-related-articles h2 {
    position: relative;
    font-size: 19px;
    font-weight: 800;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 12px;
}

.product-related-articles h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: #1e3c72;
}

.product-related-articles .article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 32px;
}

.article-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.article-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f3;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.article-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item:hover .article-title {
    color: #1e3c72;
}

.article-author,
.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.article-author {
    color: #2563eb;
    font-weight: 600;
}

.article-author i {
    color: #9b9ba1;
}

.article-date {
    color: #9b9ba1;
}

/* ---- Grid & Card ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* padding: 20px; */
    /* background: #FFF; */
    border-radius: 12px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,.08); */
    margin-top: 20px;
    margin-bottom: 24px;
}

/* Chế độ xem dạng danh sách (list view) */
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
    flex-direction: row;
}

.product-grid.list-view .product-media {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

.product-grid.list-view .product-body {
    padding: 16px 20px;
}

.product-grid.list-view .product-desc-text {
    -webkit-line-clamp: 3;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #ffd700;
    color: #1e3c72;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.product-badge-official {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.92);
    color: #1e3c72;
    font-size: 13.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.product-badge-official i {
    color: #059669;
    font-size: 14px;
}

.product-flash-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-flash-banner i {
    font-size: 14px;
}

.product-installment {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    color: #6b6b70;
    margin-bottom: 6px;
}

.product-installment b {
    color: #111;
}

.product-installment .dot {
    color: #d1d5db;
}

.product-prepay {
    font-size: 14px;
    color: #6b6b70;
    margin-bottom: 8px;
}

.product-prepay b {
    color: #111;
}

.product-rating {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 14px;
}

.product-media {
    position: relative;
    height: 200px;
    background: #f1f1f3;
}

.product-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-media .is-secondary {
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .product-card.has-hover-image:hover .product-media .is-primary {
        opacity: 0;
    }

    .product-card:hover .product-media .is-secondary {
        opacity: 1;
    }
}

.product-body {
    padding: 38px .75rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.product-brand {
    display: inline-block;
    font-size: 14px;
    color: #1e3c72;
    background: #eaf1fb;
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.4;
}

.product-spec {
    display: inline-block;
    font-size: 14px;
    color: #047857;
    background: #D1FAE5;
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}

.product-desc-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b70;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 14px;
}

.product-desc tr {
    border: none;
}

.product-desc th,
.product-desc td {
    padding: 7px 0;
    border: none;
    vertical-align: middle;
}

.product-desc th {
    text-align: left;
    font-weight: 400;
    color: #8a8a8a;
    white-space: nowrap;
    width: 1%;
}

.product-desc th i {
    width: 14px;
    margin-right: 8px;
    color: #b0b0b0;
    font-size: 14px;
    text-align: center;
}

.product-desc td {
    text-align: right;
    font-weight: 600;
    color: #222;
    white-space: normal;
    word-break: break-word;
    padding-left: 8px;
}

.product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}

.product-price {
    font-size: 17px;
    font-weight: 800;
    color: #1e3c72;
}

.product-price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-price-contact {
    color: #1e3c72;
    white-space: nowrap;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-wishlist,
.btn-share-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 50%;
    padding: 0;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.btn-wishlist:hover,
.btn-share-product:hover,
.btn-wishlist.active {
    color: #1e3c72;
    border-color: #9DBFE8;
    background: #eaf1fb;
}

.product-stock {
    font-size: 14px;
    font-weight: 600;
}

.in-stock {
    color: #10b981;
}

.out-stock {
    color: #9ca3af;
}

/* ---- Empty state (404 style) ---- */
.product-empty {
    /* background: #fff; */
    border-radius: 20px;
    padding: 25px 30px 50px;
    text-align: center;
    color: #444;
    /* box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07); */
    max-width: 700px;
    margin: 0 auto;
}

.empty-illustration {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 10px;
}

.empty-illustration svg {
    width: 100%;
    height: auto;
    display: block;
    animation: emptyFloat 3.5s ease-in-out infinite;
}

.empty-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e53935;
    margin: 0 0 10px;
}

.empty-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0 0 8px;
}

.empty-desc {
    font-size: 0.9625rem;
    color: #888;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 0.9625rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    cursor: pointer;
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
    opacity: 0.92;
}

.empty-btn-primary {
    background: #e53935;
    color: #fff;
}

.empty-btn-secondary {
    background: #e53935;
    color: #fff;
}

.empty-btn-outline {
    background: #fff;
    color: #e53935;
    border: 2px solid #e53935;
}


/* banner  */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 1;
}

.hero-slider {
    position: relative;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 60px;
    color: #fff;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.btn-purple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7c3aed;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-purple:hover {
    background: #6d28d9;
}

.hero-credit {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.7;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-arrow:hover {
    background: #fff;
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

/* Chấm tròn chỉ số slide (tuỳ chọn) */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.hero-dot.active {
    background: #fff;
}


/* ---- Chọn sản phẩm theo nhu cầu (Needs Card + Pills) ---- */
.needs-card {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    scroll-margin-top: 90px;
    margin-top: 20px;
}

.needs-card-header {
    margin-top: 12px;
    background: #fff;
    padding: 14px 22px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.needs-card-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.3px;
}

.needs-card-title i {
    margin-right: 8px;
    opacity: 0.9;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 22px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.category-pill:hover {
    border-color: #1e3c72;
    color: #1e3c72;
    background: #eaf1fb;
    box-shadow: 0 2px 6px rgba(30, 60, 114, 0.12);
    transform: translateY(-1px);
}

.category-pill.active {
    border-color: #1e3c72;
    color: #1e3c72;
    background: #eaf1fb;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

/* List card */
.contact-card-info-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeef3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    padding-bottom: 10px;
}

/* Style cho tiêu đề (cart-title) */
.cart-title {
    background: #f8f9fa;
    padding: 15px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #1e3c72;
    /* Màu xanh nổi bật giống tiêu đề trong ảnh */
    border-bottom: 1px solid #eaeef3;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Danh sách dạng lưới */
.info-list {
    display: flex;
    flex-direction: column;
    padding: 6px 10px 14px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 6px;
}

.info-row-secondary {
    border-top: 1px solid #eee;
}

/* Từng ô thông tin */
.info-icon {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 20%;
    width: 20%;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.info-icon:hover {
    background-color: #f5faff;
}

/* Icon tròn */
.info-icon>i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e3f2fd, #dbe7f8);
    color: #1e3c72;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.info-row-secondary .info-icon>i {
    background: linear-gradient(135deg, #fdece0, #fbdccb);
    color: #e0602c;
}

/* Nội dung chữ */
.info-content .info-label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.info-content .info-text {
    font-size: 14px;
    color: #8a94a6;
    font-weight: 600;
    line-height: 1.35;
}

@keyframes emptyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 500px) {
    .empty-title {
        font-size: 1.3rem;
    }

    .empty-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Responsive cho điện thoại */
@media (max-width: 600px) {
    .info-icon {
        flex: 0 0 33.33%;
        width: 33.33%;
        /* 3 cột trên điện thoại */
    }

    .info-content .info-text {
        display: none;
        /* Ẩn mô tả trên điện thoại cho gọn (Tùy chọn) */
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-slides-wrapper {
        height: 320px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-desc {
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-slide-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0.35) 100%);
    }
}

@media (max-width: 480px) {
    .hero-slides-wrapper {
        height: 200px;
    }

    /* Banner ở màn hình rất nhỏ đã có sẵn tên thương hiệu trong breadcrumb phía trên,
       và ảnh banner thường có sẵn chữ thiết kế bên trong nên ẩn chữ chồng lên ảnh cho đỡ rối. */
    .hero-slide-content {
        display: none;
    }

    /* Ảnh banner thường thiết kế chữ bên trái, ảnh sản phẩm bên phải (dành cho khung ngang rộng).
       Trên màn hình hẹp, lệch điểm cắt sang phải để tránh cắt ngang chữ, ưu tiên hiện phần ảnh sản phẩm. */
    .hero-slide {
        background-position: right center;
    }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-search {
        max-width: none;
    }
}
