:root {
    /* Colors */
    --color-primary: #000000;
    --color-secondary: #C19D60; /* Gold */
    --color-secondary-hover: #D4AF37;
    --color-bg: #FFFFFF;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #E5E5E5;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --container-width: 1200px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* GLOBAL */
body {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.main-header {
    background-color: var(--color-primary);
    padding: 20px 0;
    color: var(--color-white);
}

/* ─── Logo Text: Phương Án A — Champagne Gold Sweep (Concept C Nordic) ─── */
.logo-text {
    position: relative;
    display: inline-block;
    font-family: var(--font-heading, 'Cormorant Garamond', 'Playfair Display', Georgia, serif);
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: 2.5px;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
    padding: 4px 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Gradient Champagne Gold: #9B7E4B → #C19D60 → #E8D5A0 → #FAF8F5 → ngược lại */
    background: linear-gradient(
        110deg,
        #9B7E4B 0%,
        #C19D60 18%,
        #E8D5A0 34%,
        #FAF8F5 46%,
        #E8D5A0 58%,
        #C19D60 74%,
        #9B7E4B 90%,
        #C19D60 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #C19D60;

    /* Vệt sáng Champagne quét qua mỗi 5 giây */
    animation: champagneSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;

    /* Aura vàng Champagne tinh tế trên nền đen */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85))
            drop-shadow(0 0 12px rgba(193, 157, 96, 0.25));
}

/* Thanh kẻ chân Vàng Kim Champagne */
.logo-text::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(193, 157, 96, 0.3) 20%,
        #C19D60 50%,
        rgba(193, 157, 96, 0.3) 80%,
        transparent 100%
    );
    opacity: 0.6;
    transition: all 0.4s ease;
    -webkit-text-fill-color: initial;
    pointer-events: none;
    border-radius: 2px;
}

/* Hover: Tăng tốc animation + Aura vàng Champagne rực rỡ hơn */
a:hover .logo-text,
.logo-text:hover {
    transform: translateY(-2px) scale(1.025);
    letter-spacing: 3px;
    animation-duration: 2.2s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 18px rgba(193, 157, 96, 0.7))
            drop-shadow(0 0 32px rgba(155, 126, 75, 0.4));
}

a:hover .logo-text::before,
.logo-text:hover::before {
    opacity: 1;
    height: 2.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #E8D5A0 20%,
        #FAF8F5 50%,
        #E8D5A0 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px #C19D60, 0 0 20px rgba(193, 157, 96, 0.5);
}

@keyframes champagneSweep {
    0%        { background-position: 200% 0; }
    35%, 100% { background-position: -50% 0; }
}

.main-nav {
    border-bottom: 1px solid var(--color-border);
    padding: 0; /* Changed for better menu spacing */
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-link {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 1px;
    font-weight: 600;
    padding: 1.25rem 1rem !important; /* Increased padding */
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* DROPDOWN & MEGA MENU STYLES */
.nav-item.dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--color-secondary);
    border-radius: 0;
    margin-top: 0;
    padding: 10px 0;
}

/* Hover effect for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInUp 0.3s ease;
    }
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: transparent;
    color: var(--color-secondary);
    padding-left: 25px;
}

/* Mega Menu */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: 0 20px 45px -10px rgba(0,0,0,0.15);
    border: none;
    border-top: 3px solid var(--color-secondary, #f59e0b);
    border-radius: 0 0 14px 14px;
    display: none;
    padding: 28px 0 32px 0;
}

@media (min-width: 992px) {
    .has-mega-menu:hover .mega-menu,
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInUp 0.25s ease;
    }
}

.mega-column h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-primary, #0f172a);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.mega-column h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-column h4 a:hover {
    color: var(--color-secondary, #d97706);
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 6px;
}

.mega-column ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.mega-column ul li a:hover {
    color: var(--color-secondary, #d97706);
    transform: translateX(4px);
    font-weight: 500;
}

/* Mega Banner Card (Cột 4 Khuyến Mãi) */
.mega-banner-card {
    background: linear-gradient(145deg, #fffbf5 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

.mega-banner-card::before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mega-banner-badge {
    display: inline-block;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
    align-self: flex-start;
}

.mega-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mega-banner-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 16px;
}

.mega-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.mega-banner-btn:hover {
    background: #ea580c;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* Dropdown Menu Chuẩn 1 Cột */
.navbar-nav .dropdown-menu:not(.mega-menu) {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    padding: 8px 0;
    min-width: 220px;
}

.navbar-nav .dropdown-menu:not(.mega-menu) .dropdown-item {
    font-size: 0.88rem;
    padding: 8px 18px;
    color: #334155;
    transition: all 0.15s ease;
}

.navbar-nav .dropdown-menu:not(.mega-menu) .dropdown-item:hover {
    background: #f8fafc;
    color: var(--color-secondary, #d97706);
    padding-left: 22px;
}

.menu-nav-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    margin-left: 4px;
    vertical-align: top;
    text-transform: uppercase;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* SLIDER FIXES */
.slick-slide {
    height: auto; 
    padding: 0 10px; /* Gap between slides */
}
.slick-track {
    display: flex;
    align-items: stretch;
}
.slick-list {
    margin: 0 -10px;
}

/* PRODUCT CARD - PROTOTYPE HYBRID FACETED FILTER */
.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(217, 119, 6, 0.4);
}

.product-badge-brand {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.product-image-box {
    position: relative;
    padding-top: 80%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    background: #ffffff;
    transition: transform 0.3s ease;
}

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

.product-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-code {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 2.7em;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: #d97706;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    min-height: 24px;
}

.spec-tag {
    font-size: 0.68rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.spec-tag i {
    margin-right: 4px;
    font-size: 0.65rem;
    opacity: 0.8;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #d97706;
}

.product-price .price-contact {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d97706;
}

.btn-view-detail {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-view-detail:hover {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    font-size: 14px;
}

.product-actions .btn-action:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Product Actions on Mobile (< 768px) */
@media (max-width: 767.98px) {
    .product-card img.card-img-top {
        padding: 5px; /* Giảm padding trên mobile */
    }

    .product-actions {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        gap: 6px;
        padding: 0 2px;
    }

    .product-actions .btn-action {
        width: 31px;
        height: 31px;
        font-size: 11px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.18);
        flex-shrink: 0;
    }
}


.product-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-top: 8px;
    margin-bottom: 6px;
    line-height: 1.35;
    height: 2.7em; /* Restrict to exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    width: 100%;
}

.product-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
}

.product-title a:hover {
    color: var(--color-secondary);
}

.product-sku-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-family: system-ui, -apple-system, sans-serif;
    color: #64748b;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.product-price {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto; /* Push to bottom */
    font-family: var(--font-heading) !important;
}

/* Enforce Heading Font on all Price elements */
.price, .amount, .money, 
.product-display-price, 
#product-display-price,
.item-info .fw-bold,
.bundle-summary .fs-3 {
    font-family: var(--font-heading) !important;
}

/* SECTIONS */
.section-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-secondary);
}

/* CATEGORY */
.cat-image {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s;
    border: 2px solid transparent;
}
.category-item:hover .cat-image {
    transform: scale(1.05);
    border-color: var(--color-secondary);
}
.cat-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* HERO */
.hero-slider .slick-slide {
    padding: 0; /* No padding for hero */
}
.hero-content h1 {
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-slide { height: 600px; width: 100%; position: relative; }

/* SHARED UTILS */
.text-gold { color: var(--color-secondary); }
.btn-gold { background: var(--color-secondary); color: white; border: none; }
.btn-hero { 
    background: transparent; 
    color: white; 
    border: 2px solid white; 
    padding: 12px 40px; 
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-hero:hover {
    background: white;
    color: var(--color-primary);
}
.object-fit-cover { object-fit: cover; }

/* Slick Customization */
.slick-prev:before, .slick-next:before { color: var(--color-primary); font-size: 24px; }

/* Brand Logo Hover */
.brand-logo { 
    transition: all 0.3s; 
    filter: grayscale(100%); 
    opacity: 0.7; 
}
.brand-logo:hover {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.1);
}

/* CATALOG STYLES */
.catalog-toolbar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    gap: 10px;
}
.sort-select {
    width: 160px;
}
@media (max-width: 575px) {
    .catalog-toolbar {
        padding: 8px 10px;
        gap: 5px;
    }
    .sort-select {
        width: 120px;
    }
}
.catalog-sidebar {
    background: #fff;
    padding-right: 20px;
}
.sidebar-widget {
    margin-bottom: 25px;
    border: 1px solid #f1f3f5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.sidebar-widget .widget-content {
    padding: 12px 16px 14px 16px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f8f9fa;
}
.sidebar-widget .widget-content::-webkit-scrollbar {
    width: 5px;
}
.sidebar-widget .widget-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}
.sidebar-widget .widget-content::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}
.sidebar-widget .widget-content::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}
.sidebar-widget .widget-content .form-check {
    padding-left: 1.65em;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
}
.sidebar-widget .widget-content .form-check:last-child {
    margin-bottom: 0;
}
.sidebar-widget .widget-content .form-check .form-check-input {
    float: none;
    margin-left: -1.65em;
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.sidebar-widget .widget-content .form-check .form-check-label {
    padding-left: 8px;
    cursor: pointer;
    user-select: none;
    flex-grow: 1;
    margin-bottom: 0;
}
.sidebar-widget .widget-content .form-check .badge {
    margin-left: auto;
    flex-shrink: 0;
}
.widget-title {
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    color: #343a40;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-item {
    background: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-item:hover {
    background: #e9ecef;
    color: var(--color-secondary);
}

#catalog-loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.spinner-border-custom { width: 3rem; height: 3rem; }

/* MOBILE SIDEBAR & MENU FIXES */
@media (max-width: 991px) {
    /* Filters Sidebar - Offcanvas Style */
    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hidden */
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .catalog-sidebar.active {
        left: 0; /* Show */
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Nav Adjustments */
    .main-nav .navbar-toggler {
        border: none;
        padding: 10px 0;
    }
    
    .main-nav .navbar-collapse {
        border-top: 1px solid #eee;
    }
    
    .main-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f8f9fa;
    }
}


/* MOBILE CART FIXES */
@media (max-width: 767px) {
    .cart-table thead { display: none; }
    
    .cart-table, 
    .cart-table tbody, 
    .cart-table tr, 
    .cart-table td { 
        display: block; 
        width: 100%; 
    }

    .cart-table tr {
        margin-bottom: 1rem;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        position: relative;
        padding-bottom: 0.5rem;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-bottom: 1px solid #f8f9fa;
        padding: 10px 15px;
    }
    
    .cart-table td:last-child {
        border-bottom: 0;
    }

    /* Column Specifics */
    /* 1. Product Info */
    .cart-table td:nth-child(1) {
        text-align: left;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        justify-content: flex-start;
        padding-right: 40px; /* Space for delete button */
    }
    
    .cart-table td:nth-child(1) h6 {
        white-space: normal;
        max-width: none !important;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    /* 2. Unit Price */
    .cart-table td:nth-child(2)::before { 
        content: "Đơn giá"; 
        font-weight: 600; 
        color: #6c757d;
        font-size: 0.9rem;
    }

    /* 3. Quantity */
    .cart-table td:nth-child(3)::before { 
        content: "Số lượng"; 
        font-weight: 600; 
        color: #6c757d;
        font-size: 0.9rem;
    }
    .cart-table td:nth-child(3) .quantity-input {
        width: 80px !important;
        flex: none;
    }
    
    /* 4. Subtotal */
    .cart-table td:nth-child(4) {
        background-color: #fcfcfc;
    }
    .cart-table td:nth-child(4)::before { 
        content: "Thành tiền"; 
        font-weight: 600; 
        color: #6c757d;
        font-size: 0.9rem;
    }
    .cart-table td:nth-child(4) {
        font-weight: bold;
        color: var(--color-primary);
        font-size: 1.1rem;
    }

    /* 5. Delete Button */
    .cart-table td:nth-child(5) { 
        position: absolute;
        top: 10px;
        right: 5px;
        width: auto;
        border: none;
        padding: 0;
        background: none;
    }
    .cart-table td:nth-child(5) button {
        color: #dc3545;
        opacity: 0.7;
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE OVERFLOW FIXES
   ========================================== */
@media (max-width: 991px) {
    /* Ẩn các nút Next/Prev của Slick Slider trên mobile/tablet để tránh tràn trang (người dùng dùng vuốt chạm) */
    .slick-prev, .slick-next {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Tránh cuộn ngang toàn trang triệt để */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Cân chỉnh padding của header và container */
    .main-header {
        padding: 10px 0 !important;
    }
    
    .main-header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Tối ưu hóa logo chữ trên di động không bị cắt */
    .logo-text {
        font-size: 1.05rem !important; /* Kích thước chữ chuẩn nét */
        letter-spacing: 0.3px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        max-width: calc(100vw - 90px) !important; /* Mở rộng toàn bộ diện tích bên trái */
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    /* Thiết lập cho cụm icons góc phải */
    .header-icons {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important; /* Khoảng cách đều và nhỏ gọn giữa giỏ hàng và user */
        flex-shrink: 0 !important; /* Không cho phép cụm icons bị co lại */
    }
    
    /* Tối ưu hóa nút giỏ hàng */
    .header-icons .cart-box {
        margin-right: 0 !important; /* Xóa margin-right của bootstrap 'me-4' */
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-icons .cart-box .fa-2x {
        font-size: 1.25rem !important; /* Thu nhỏ cỡ icon túi xách */
        margin-right: 0 !important;
    }
    
    /* Điều chỉnh vị trí badge giỏ hàng trên mobile nằm gọn gàng ngay trên icon */
    .header-icons .cart-box .badge {
        font-size: 0.55rem !important;
        padding: 0.2em 0.35em !important;
        top: -6px !important;
        left: 12px !important; /* Cân chỉnh vị trí so với start-100 */
    }
    
    /* Tối ưu hóa nút tài khoản (Đăng ký / Đăng nhập) */
    .header-icons .member-menu {
        display: flex !important;
        align-items: center !important;
    }
    
    .header-icons .member-menu .dropdown-toggle {
        margin-left: 0 !important; /* Xóa margin-left 'ms-3' của bootstrap */
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-icons .member-menu .fa-lg {
        font-size: 1.25rem !important; /* Thu nhỏ icon user cho đồng bộ với giỏ hàng */
    }
    
    /* Ẩn hoàn toàn mũi tên dropdown (caret arrow) trên mobile để tiết kiệm diện tích */
    .header-icons .member-menu .dropdown-toggle::after {
        display: none !important;
    }

    /* Tối ưu hóa khoảng cách Section trên Mobile */
    .section-categories, 
    .section-bestsellers, 
    .section-featured, 
    .section-brands, 
    .section-group-buy,
    .section-ads {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .section-title {
        font-size: 1.35rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 10px !important;
    }

    /* Tối ưu Slick Slider padding & gap trên Mobile */
    .slick-slide {
        padding: 0 4px !important;
    }
    .slick-list {
        margin: 0 -4px !important;
    }

    /* Tối ưu Danh mục sản phẩm trên Mobile (4 cột) */
    .cat-image {
        width: 68px !important;
        height: 68px !important;
        margin-bottom: 6px !important;
    }
    .cat-image i {
        font-size: 1.25rem !important;
    }
    .cat-name {
        font-size: 0.72rem !important;
        letter-spacing: 0 !important;
        margin-top: 4px !important;
        line-height: 1.2 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.4em;
    }

    /* Tối ưu Thẻ sản phẩm trên Mobile (2 cột) */
    .product-card {
        border-radius: 6px;
    }
    .product-card img.card-img-top {
        padding: 4px !important;
    }
    .product-card .card-body {
        padding: 8px 6px !important;
    }
    .product-title {
        font-size: 0.8rem !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        height: 2.4em !important;
        line-height: 1.2 !important;
    }
    .product-price {
        font-size: 0.88rem !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
    }
    .product-price .small {
        font-size: 0.72rem !important;
    }
    .product-rating {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }

    /* Tối ưu Breadcrumb 1 dòng trượt ngang trên Mobile */
    .catalog-container {
        margin-top: 6px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .catalog-breadcrumb {
        position: relative;
        margin-bottom: 4px !important;
        overflow: hidden;
    }
    .catalog-breadcrumb::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
        pointer-events: none;
    }
    .breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        padding-bottom: 2px !important;
        padding-right: 32px !important; /* Chừa khoảng trống cho lớp mờ ở mép phải */
    }
    .breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .breadcrumb-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.75rem !important;
    }
    .breadcrumb-item a {
        font-size: 0.75rem !important;
    }

    /* Tiêu đề & Header Danh mục trên Mobile */
    .category-header {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
    .category-title {
        font-size: 1.05rem !important; /* font-size: medium / 1.05rem nhỏ gọn */
        letter-spacing: 0.3px !important;
        margin-bottom: 2px !important;
        line-height: 1.3 !important;
    }

    /* Tối ưu Mô tả danh mục trên Mobile (2 dòng + Nút Xem thêm/Thu gọn) */
    .category-description-wrapper {
        position: relative;
        margin-top: 4px !important;
        margin-bottom: 0.25rem !important;
    }
    .category-description-top {
        max-height: 42px; /* Hiển thị dòng 1 và 2/3 dòng 2 */
        overflow: hidden;
        position: relative;
        line-height: 1.45;
        font-size: 0.88rem;
        transition: max-height 0.35s ease;
    }
    .category-description-top p {
        margin-bottom: 0 !important;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }
    .category-description-wrapper.is-collapsed .category-description-top::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 16px; /* Che phủ chính xác 1/3 hàng chữ cuối */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.98) 100%);
        pointer-events: none;
    }
    .category-description-top.expanded {
        max-height: 5000px !important;
        overflow: visible !important;
    }
    .btn-toggle-desc {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(254, 243, 199, 0.75);
        color: #b45309;
        border: 1px solid rgba(245, 158, 11, 0.35);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 3px 12px;
        border-radius: 20px;
        margin-top: 4px;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
        outline: none;
    }
    .btn-toggle-desc:hover, .btn-toggle-desc:active {
        background: #d97706;
        color: #ffffff;
        border-color: #d97706;
        box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
    }
    .btn-toggle-desc i {
        font-size: 0.68rem;
        transition: transform 0.25s ease;
    }
    .btn-toggle-desc.expanded i {
        transform: rotate(180deg);
    }

    /* Toolbar bộ lọc */
    .catalog-toolbar {
        margin-bottom: 12px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 380px) {
    /* Cho các máy màn hình rất nhỏ (<= 380px) */
    .cat-image {
        width: 58px !important;
        height: 58px !important;
    }
    .cat-name {
        font-size: 0.68rem !important;
    }
    .product-title {
        font-size: 0.75rem !important;
    }
    .product-price {
        font-size: 0.82rem !important;
    }
}

/* ==========================================================================
   PAGINATION STYLING (WARM AMBER / COHESIVE WITH BTN-TOGGLE-DESC)
   ========================================================================== */
.pagination {
    gap: 5px;
    align-items: center;
}
.pagination .page-item .page-link {
    border-radius: 8px !important;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #b45309;
    background-color: rgba(254, 243, 199, 0.55);
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.pagination .page-item .page-link:hover {
    background-color: rgba(254, 243, 199, 0.95);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.18);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28) !important;
}
.pagination .page-item.disabled .page-link {
    color: #9ca3af !important;
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    opacity: 0.7;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
}

/* ==========================================================================
   Zero CLS: Pre-Slick Carousel Layout Rules (Stops layout jump before JS loads)
   ========================================================================== */
.category-slider:not(.slick-initialized),
.product-slider:not(.slick-initialized),
.brand-slider:not(.slick-initialized) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.category-slider:not(.slick-initialized) > div {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .category-slider:not(.slick-initialized) > div {
        flex: 0 0 16.666% !important;
        max-width: 16.666% !important;
    }
}

.product-slider:not(.slick-initialized) > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .product-slider:not(.slick-initialized) > div {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

.product-slider .slick-track {
    display: flex !important;
}
.product-slider .slick-slide {
    height: inherit !important;
    display: flex !important;
}
.product-slider .slick-slide > div {
    width: 100%;
    display: flex;
}
.product-slider .product-card {
    width: 100%;
    height: 100%;
}

.brand-slider:not(.slick-initialized) > div {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .brand-slider:not(.slick-initialized) > div {
        flex: 0 0 16.666% !important;
        max-width: 16.666% !important;
    }
}

/* ==========================================================================
   VISUAL FACET SWIPER & HYBRID FILTER STYLES
   ========================================================================== */
.visual-facet-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.visual-facet-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.visual-facet-title i {
    color: #d97706;
}
.visual-facet-swiper {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.visual-facet-swiper::-webkit-scrollbar {
    height: 4px;
}
.visual-facet-swiper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.visual-facet-card {
    flex: 0 0 auto;
    min-width: 76px;
    max-width: 92px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    user-select: none;
}
.visual-facet-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 5px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}
.visual-facet-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.visual-facet-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.visual-facet-badge {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: normal;
}
.visual-facet-card:hover .visual-facet-circle {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.12);
}
.visual-facet-card:hover .visual-facet-circle img {
    transform: scale(1.08);
}
.visual-facet-card:hover .visual-facet-label {
    color: #d97706;
}
.visual-facet-card.is-active .visual-facet-circle {
    border-color: #d97706;
    background: #fef3c7;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}
.visual-facet-card.is-active .visual-facet-label {
    color: #b45309;
    font-weight: 700;
}
.visual-facet-card.is-active::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -2px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #d97706;
    color: #ffffff;
    font-size: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Horizontal Quick Filter Pills Bar */
.horizontal-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.quick-filter-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.quick-filter-scroll-wrapper .btn-all-filters,
.quick-filter-scroll-wrapper .filter-pill-dropdown {
    flex: 0 0 auto;
    white-space: nowrap;
}
.filter-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}
.filter-pill-dropdown {
    position: relative;
}
.filter-pill-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 13px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    user-select: none;
}
.filter-pill-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
.filter-pill-btn.is-active {
    background: #fef3c7;
    border-color: #d97706;
    color: #b45309;
    font-weight: 700;
}
.filter-pill-btn .active-count {
    background: #d97706;
    color: #ffffff;
    font-size: 0.68rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.filter-popover-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1070;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 260px;
    max-width: 320px;
    padding: 12px;
    display: none;
}
.filter-popover-menu.show {
    display: block;
    animation: popoverFadeIn 0.2s ease;
}
@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.filter-popover-options {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.filter-popover-options::-webkit-scrollbar {
    width: 4px;
}
.filter-popover-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.filter-popover-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.filter-popover-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(1px);
    z-index: 1055;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.filter-popover-backdrop.show {
    display: block;
    opacity: 1;
}

/* Ẩn triệt để backdrop trên Desktop để không che mờ màn hình */
@media (min-width: 768px) {
    .filter-popover-backdrop,
    .filter-popover-backdrop.show {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

/* Mobile Responsiveness for Quick Filters & Facets */
@media (max-width: 767.98px) {
    .horizontal-filter-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
        padding: 8px 10px;
    }
    .quick-filter-scroll-wrapper {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        padding: 2px 2px 6px 2px;
        scroll-behavior: smooth;
    }
    .quick-filter-scroll-wrapper::-webkit-scrollbar {
        display: none !important;
    }
    .quick-filter-scroll-wrapper::after {
        content: '';
        flex: 0 0 10px;
    }
    .filter-toolbar-actions {
        width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        padding-top: 6px;
        border-top: 1px dashed #f1f5f9;
    }
    .filter-popover-menu {
        position: fixed !important;
        z-index: 1060 !important;
        width: 290px !important;
        max-width: calc(100vw - 24px) !important;
        box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
    }
    .visual-facet-swiper {
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .visual-facet-swiper::after {
        content: '';
        flex: 0 0 10px;
    }
    .visual-facet-card {
        min-width: 70px;
        max-width: 80px;
    }
    .visual-facet-circle {
        width: 52px;
        height: 52px;
    }
    .btn-view-detail {
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0.72rem;
    }
    .btn-view-detail .btn-text {
        display: none;
    }
    .btn-view-detail i {
        margin: 0;
    }
    .product-price {
        font-size: 0.95rem;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
}

/* Active Tags Bar */
.active-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.active-tag-item {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s;
}
.active-tag-item:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
.active-tag-item i {
    font-size: 0.7rem;
}
.clear-all-filters-btn {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    cursor: pointer;
}
.clear-all-filters-btn:hover {
    text-decoration: underline;
}

/* --- BUTTON TẤT CẢ BỘ LỌC (DESKTOP QUICK BAR) --- */
.btn-all-filters {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #0f172a;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    user-select: none;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}
.btn-all-filters:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}
.btn-all-filters .all-filter-badge {
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- OFFCANVAS DRAWER BÊN PHẢI (MASTER TECHNICAL FILTER) --- */
.filter-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-drawer-backdrop.show {
    display: block;
    opacity: 1;
}
.filter-master-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.filter-master-drawer.open {
    right: 0;
}
.filter-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-drawer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.filter-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.15s;
}
.filter-drawer-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}
.filter-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
}
.filter-drawer-body::-webkit-scrollbar {
    width: 5px;
}
.filter-drawer-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.drawer-filter-group {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.drawer-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.drawer-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #343a40;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}
.drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #212529;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    margin-bottom: 2px;
    font-family: inherit;
}
.drawer-item-row:hover {
    background-color: #f8f9fa;
    color: #212529;
}
.drawer-item-row.active {
    background-color: #f8f9fa;
    color: #0d6efd;
    font-weight: 700;
}
.drawer-item-row .form-check-input {
    margin-right: 8px;
    margin-top: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.drawer-item-count {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #6c757d !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    line-height: 1.2 !important;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    text-align: center;
}
.filter-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}
.btn-drawer-reset {
    flex: 1;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.btn-drawer-reset:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-drawer-submit {
    flex: 2;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
    transition: all 0.2s;
}
.btn-drawer-submit:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}

/* --- Responsive Mobile Offset cho Tất cả bộ lọc thông số kỹ thuật (Master Filter Drawer) --- */
@media (max-width: 767.98px) {
    :root {
        --mobile-bottom-nav-height: 56px;
    }
    .filter-drawer-backdrop {
        z-index: 10004;
    }
    .filter-master-drawer {
        height: calc(100vh - var(--mobile-bottom-nav-height, 56px));
        height: calc(100dvh - var(--mobile-bottom-nav-height, 56px));
        bottom: var(--mobile-bottom-nav-height, 56px);
        max-height: calc(100vh - var(--mobile-bottom-nav-height, 56px));
        max-height: calc(100dvh - var(--mobile-bottom-nav-height, 56px));
        z-index: 10005;
    }
}

/* ==========================================================================
   MINIMALIST NORDIC THEME (CONCEPT 3 - PURE LUXURY & ARTISTIC DOSSIER)
   ========================================================================== */
:root {
    --bg-canvas: #faf8f5;
    --white: #ffffff;
    --charcoal: #121212;
    --charcoal-light: #262626;
    --gold-accent: #C19D60;
    --gold-matte: #9b7e4b;
    --border-neutral: #e7e5e0;
    --text-subtle: #737373;
    --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-clean: 'Be Vietnam Pro', -apple-system, sans-serif;
}

/* Đồng bộ màu nền Canvas cho trang Storefront */
.section-nordic-categories,
.section-nordic-brands,
.section-promotions,
.section-bestsellers,
.section-featured,
.section-ads {
    background-color: var(--bg-canvas) !important;
}

/* HEADERS */
.editorial-sub {
    font-size: 11.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-matte);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-clean);
}
.editorial-title {
    font-family: var(--font-editorial);
    font-size: 32px;
    letter-spacing: 0.8px;
    color: var(--charcoal);
    font-weight: 700;
    margin-bottom: 6px;
}
.editorial-divider {
    width: 44px;
    height: 2px;
    background: var(--gold-accent);
}
.editorial-subtitle {
    font-size: 13.5px;
    color: var(--text-subtle);
    max-width: 580px;
    margin: 0 auto;
}

/* CHIP TABS */
.category-parent-filter-bar,
.brand-category-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.mat-chip {
    background: #ffffff;
    border: 1px solid var(--border-neutral);
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}
.mat-chip.active, .mat-chip:hover {
    background: var(--charcoal);
    color: #ffffff;
    border-color: var(--charcoal);
}
.tab-badge-cnt {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
.mat-chip:not(.active) .tab-badge-cnt {
    background: #e2e8f0;
    color: #475569;
}

/* LƯỚI DANH MỤC THANH LỊCH (NORDIC GRID) */
.nordic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.nordic-card {
    background: var(--white);
    border: 1px solid var(--border-neutral);
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nordic-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}
.nordic-icon-box {
    width: 68px;
    height: 68px;
    margin: 8px auto 16px;
    background: var(--bg-canvas);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 24px;
    transition: all 0.3s;
}
.nordic-card:hover .nordic-icon-box {
    background: var(--gold-accent);
    color: #ffffff;
    transform: scale(1.08);
}
.nordic-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
    font-family: var(--font-clean);
}
.nordic-card-desc {
    font-size: 12.5px;
    color: var(--text-subtle);
    line-height: 1.45;
    margin-bottom: 14px;
}
.nordic-link-cta {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold-matte);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* KHU VỰC NÚT XEM THÊM (VỊ TRÍ 2) */
.load-more-section {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.progress-bar-wrap {
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-subtle);
    margin-bottom: 6px;
    font-weight: 600;
}
.progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-neutral);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-accent), var(--gold-matte));
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-load-more {
    background: #ffffff;
    border: 1.5px solid var(--charcoal);
    color: var(--charcoal);
    padding: 11px 32px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.btn-load-more:hover {
    background: var(--charcoal);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.btn-load-more.is-collapse {
    border-color: var(--gold-accent);
    color: var(--gold-matte);
}
.btn-load-more.is-collapse:hover {
    background: var(--gold-accent);
    color: #ffffff;
}

/* SECTION CAM KẾT 5 SAO CHÈN GIỮA */
.section-craft-guarantee {
    background: #ffffff !important;
    border-top: 1px solid var(--border-neutral);
    border-bottom: 1px solid var(--border-neutral);
    padding: 36px 0;
}
.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.craft-col {
    text-align: center;
    padding: 8px 12px;
}
.craft-num {
    font-family: var(--font-editorial);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 4px;
}
.craft-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
    font-family: var(--font-clean);
}
.craft-desc {
    font-size: 12px;
    color: var(--text-subtle);
    line-height: 1.45;
}

/* SECTION THƯƠNG HIỆU: CÁCH 3 (LƯỚI 4 CỘT x 4 DÒNG = 16 HÃNG) */
.brand-monochrome-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}
.brand-monochrome-grid.layout-4cols .brand-mono-card {
    flex: 0 0 calc(25% - 11px);
    max-width: calc(25% - 11px);
    min-height: 105px;
    padding: 20px 16px;
}
.brand-mono-card {
    background: var(--white);
    border: 1px solid var(--border-neutral);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.brand-mono-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(193, 157, 96, 0.15);
}
.mono-brand-title {
    font-family: var(--font-clean);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #262626;
    transition: color 0.2s;
}
.brand-mono-card:hover .mono-brand-title {
    color: var(--gold-accent);
}
.mono-brand-meta {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.mono-brand-tagline {
    font-size: 10.5px;
    color: var(--gold-accent);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TỐI ƯU GIAO DIỆN DI ĐỘNG (MOBILE <= 576px): 2 CARD / 1 DÒNG */
@media (max-width: 576px) {
    .editorial-title {
        font-size: 24px !important;
    }
    .editorial-subtitle {
        font-size: 12px !important;
        margin-bottom: 16px !important;
    }

    /* Tab cuộn ngang dạng native app */
    .category-parent-filter-bar,
    .brand-category-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 20px !important;
    }
    .category-parent-filter-bar::-webkit-scrollbar,
    .brand-category-filter-bar::-webkit-scrollbar {
        display: none;
    }
    .mat-chip {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    /* Lưới danh mục 2 Card / Dòng */
    .nordic-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .nordic-card {
        padding: 14px 10px !important;
        border-radius: 8px;
    }
    .nordic-icon-box {
        width: 48px !important;
        height: 48px !important;
        font-size: 19px !important;
        margin: 2px auto 8px !important;
    }
    .nordic-card-title {
        font-size: 13.5px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    .nordic-card-desc {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .nordic-link-cta {
        font-size: 10.5px !important;
        letter-spacing: 0.5px !important;
    }

    /* Nút xem thêm mobile */
    .load-more-section {
        margin-top: 20px !important;
        gap: 10px !important;
    }
    .btn-load-more {
        padding: 10px 22px !important;
        font-size: 12.5px !important;
    }
    .progress-bar-wrap {
        max-width: 260px !important;
    }

    /* Cam kết 2 Cột trên mobile */
    .section-craft-guarantee {
        padding: 24px 0 !important;
    }
    .craft-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .craft-col {
        padding: 6px 4px !important;
    }
    .craft-num {
        font-size: 20px !important;
    }
    .craft-title {
        font-size: 12.5px !important;
    }
    .craft-desc {
        font-size: 11px !important;
    }

    /* Thương hiệu 2 Cột trên mobile */
    .brand-monochrome-grid {
        gap: 10px !important;
        margin-top: 16px !important;
    }
    .brand-monochrome-grid.layout-4cols .brand-mono-card {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        padding: 14px 8px !important;
        min-height: 84px !important;
    }
    .mono-brand-title {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }
    .mono-brand-meta {
        font-size: 10px !important;
    }
    .mono-brand-tagline {
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
    }
}

/* ==========================================================================
   REALTIME DEAL TICKER MARQUEE (INDEX.TWIG)
   ========================================================================== */
.realtime-deal-ticker-bar {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.ticker-inner-flex {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
.ticker-pill-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.ticker-pulse {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    animation: tickerPulseAnim 1.4s infinite;
}
@keyframes tickerPulseAnim {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}
.ticker-marquee-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    position: relative;
    padding: 6px 0;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}
.ticker-track-items {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
    padding: 4px 0;
    will-change: transform;
    animation: tickerScrollAnim 85s linear infinite;
}
.ticker-track-items:hover {
    animation-play-state: paused;
}
@keyframes tickerScrollAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.825rem;
    transition: all 0.2s ease;
}
.ticker-chip:hover {
    background: #ffffff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}
.ticker-chip-name {
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ticker-chip-price {
    font-weight: 800;
    color: #dc2626;
}
.ticker-chip-disc {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}
.ticker-view-all-link {
    font-size: 0.825rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    margin-left: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.ticker-view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .ticker-pill-badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; margin-right: 0.75rem; }
    .ticker-chip-name { max-width: 120px; }
    .ticker-view-all-link span { display: none; }
}

/* ==========================================================================
   AMAZON QUAD-GRID CATEGORIES (100% CÙNG 1 KÍCH THƯỚC VUÔNG VẮN ĐỒNG NHẤT)
   ========================================================================== */
.section-quad-categories {
    background-color: var(--bg-canvas, #faf8f5) !important;
}

.quad-categories-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 1.5rem;
    align-items: stretch;
}

/* Thẻ Card Lớn Bao Quanh */
.pns-store-card {
    background: #ffffff;
    border: 1px solid var(--border-neutral, #e7e5e0);
    border-radius: 18px;
    padding: 22px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pns-store-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--gold-accent, #C19D60);
}

/* Tiêu Đề Thẻ */
.pns-card-header {
    margin-bottom: 16px;
    min-width: 0;
}

.pns-card-title-link {
    font-family: var(--font-clean, 'Be Vietnam Pro', -apple-system, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--charcoal, #121212);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
    max-width: 100%;
    transition: color 0.2s ease;
}

.pns-card-title-link span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pns-card-title-link:hover {
    color: var(--gold-accent, #C19D60);
}

.pns-card-title-link .arrow-chevron {
    color: var(--text-subtle, #737373);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pns-card-title-link:hover .arrow-chevron {
    transform: translateX(4px);
    color: var(--gold-accent, #C19D60);
}

/* Lưới 4 Ô Con 2x2 Cố Định Hàng Cột */
.pns-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    margin-bottom: 18px;
}

/* Từng Mục Con Căn Giữa Hoàn Hảo */
.pns-subcat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

/* KHUNG THUMBNAIL ĐỒNG BỘ 100% CÙNG MỘT KÍCH THƯỚC (126px x 126px) */
.pns-thumb-cover-box {
    width: 100%;
    height: 126px;
    min-height: 126px;
    max-height: 126px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-neutral, #e7e5e0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ẢNH SẢN PHẨM / ICON CÂN ĐỐI 92px x 92px Ở TÂM, KHÔNG BỊ CẮT VỠ LỞM CHỞM */
.pns-real-img-cover {
    max-width: 92px;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    mix-blend-mode: multiply;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* TÊN DANH MỤC PHÍA DƯỚI (CỐ ĐỊNH ĐỘ CAO, CĂN GIỮA, KHÔNG RỚT DÒNG) */
.pns-subcat-name {
    font-family: var(--font-clean, 'Be Vietnam Pro', -apple-system, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal, #121212);
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 8px;
    height: 18px;
    display: block;
    transition: color 0.2s ease;
}

/* HIỆU ỨNG HOVER */
.pns-subcat-block:hover .pns-thumb-cover-box {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), 0 0 0 1.5px var(--gold-accent, #C19D60);
    border-color: var(--gold-accent, #C19D60);
}

.pns-subcat-block:hover .pns-real-img-cover {
    transform: scale(1.09);
}

.pns-subcat-block:hover .pns-subcat-name {
    color: var(--gold-accent, #C19D60);
    font-weight: 700;
}

/* Footer Link Xem Tất Cả */
.pns-card-footer-anchor {
    font-family: var(--font-clean, 'Be Vietnam Pro', -apple-system, sans-serif);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gold-accent, #C19D60);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 6px;
    transition: all 0.2s ease;
}

.pns-card-footer-anchor:hover {
    color: var(--gold-matte, #9b7e4b);
    text-decoration: underline;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .quad-categories-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .quad-categories-container {
        grid-template-columns: 1fr;
    }
}




