/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ===== ROOT & GLOBAL ===== */
:root {
    --teal: #0d9488;
    --purple: #14213d;
    --dark: #0f1729;
    --light: #f5f7fb;
    --gray: #d6deed;
    --header-stack-height: 216px;

    /* Typography Scale */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--light);
    color: #0f172a;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
}

.header-middle {
    background: #000000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-middle .header-container {
    padding: 18px 28px;
    color: #ffffff;
}

.header-search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 999px;
    background: #000000;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.08), 0 26px 44px rgba(15, 18, 30, 0.55);
}

.header-search-select {
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f9 100%);
    border-radius: 999px;
    padding: 0 22px 0 20px;
    font-size: 14px;
    color: #0f172a;
    min-width: 170px;
    height: 52px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -4px 12px rgba(148, 163, 184, 0.18), 0 18px 32px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    font-weight: 600;
}

.header-search-select:focus {
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -4px 12px rgba(120, 113, 198, 0.25), 0 0 0 3px rgba(120, 113, 198, 0.25);
    transform: translateY(-1px);
}

.header-search-input {
    flex: 1;
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
    border-radius: 999px;
    font-size: 15px;
    padding: 0 22px;
    color: #0f172a;
    height: 52px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -6px 18px rgba(148, 163, 184, 0.25), 0 26px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.header-search-input:focus {
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -6px 18px rgba(120, 113, 198, 0.28), 0 0 0 3px rgba(120, 113, 198, 0.24);
}

.header-search-button {
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 100%);
    color: #0f172a;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -5px 14px rgba(148, 163, 184, 0.22), 0 22px 36px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search-button:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -5px 14px rgba(120, 113, 198, 0.3), 0 30px 44px rgba(0, 0, 0, 0.5);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #e2e8f0;
}

.header-contact {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 600;
    color: #cbd5f5;
}

.header-contact-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

.header-contact-phone {
    text-decoration: none;
    color: #38f2d6;
    font-weight: 700;
}

.header-contact-phone:hover {
    color: #27c7b1;
}

.header-action-link {
    color: #f8fafc;
    font-weight: 600;
    text-decoration: none;
}

.header-action-link:hover {
    color: #38f2d6;
}

.header-basket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    background: #1cdbb5;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(28, 219, 181, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-basket:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(28, 219, 181, 0.45);
}

.header-basket-icon {
    font-size: 18px;
}

.header-bottom {
    background: #ffffff;
    border-top: 1px solid #d6deed;
}

.header-bottom .header-container {
    justify-content: space-between;
    padding: 14px 28px;
    gap: 36px;
}

.category-dropdown {
    position: relative;
}

.category-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    border-radius: 14px;
    border: 1px solid #c8d2e4;
    
    .category-menu .megamenu.brand-grid {
        column-count: 2;
        min-width: 100%;
        max-width: none;
        padding: 16px 20px;
    }
    background: linear-gradient(180deg, #d1d5db, #9ca3af);
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-toggle-icon,
.category-toggle-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    .category-menu .megamenu.brand-grid {
        column-count: 1;
    }
    width: 16px;
    height: 16px;
}

.category-toggle:hover,
.category-dropdown[data-visible="true"] > .category-toggle {
    background: linear-gradient(180deg, #9ca3af, #6b7280);
    box-shadow: 0 10px 24px rgba(55, 65, 81, 0.28);
}

.category-toggle-icon::before {
    content: "\2630";
    font-size: 16px;
    line-height: 1;
}

.category-toggle-caret::before {
    content: "\25BE";
    font-size: 12px;
    line-height: 1;
}

.category-dropdown .dropdown-box {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 0;
    min-width: 320px;
    border: 1px solid #d6deed;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    z-index: 40;
    display: none;
}

.category-dropdown.show > .dropdown-box,
.category-dropdown[data-visible="true"] > .dropdown-box {
    display: block;
}

.category-dropdown .dropdown-box::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 44px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #d6deed;
    border-top: 1px solid #d6deed;
    transform: rotate(45deg);
}

.category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 260px;
    position: relative;
}

.category-menu > li {
    position: static;
}

.category-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-menu > li + li > a {
    border-top: 1px solid #eef2f9;
}

.category-menu > li:hover > a,
.category-menu > li.is-expanded > a,
.category-menu > li:focus-within > a {
    background: #f0f5ff;
    color: #0f1729;
}

.category-caret {
    margin-left: auto;
    color: #94a3b8;
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-caret::before {
    content: "\203A";
}

.category-menu > li:hover .category-caret,
.category-menu > li.is-expanded .category-caret,
.category-menu > li:focus-within .category-caret {
    color: #0f1729;
    transform: translateX(2px);
}

.category-menu > li > .megamenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: -1px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #d6deed;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    padding: 22px 28px;
    min-width: 320px;
    max-width: 420px;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-28px);
    transition: none;
}

.category-menu > li:hover > .megamenu,
.category-menu > li.is-expanded > .megamenu,
.category-menu > li:focus-within > .megamenu {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.7s ease;
}

.category-menu .megamenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 18px;
    font-size: 14px;
}

.category-menu .megamenu a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.category-menu .megamenu a:hover {
    color: #0d9488;
}

.category-menu .megamenu.brand-grid {
    column-count: 5;
    column-gap: 28px;
    min-width: 680px;
    max-width: 820px;
    font-size: 14px;
    transition: none;
}

.category-menu .megamenu.brand-grid li {
    break-inside: avoid;
    list-style: none;
    margin-bottom: 6px;
}

    transition: transform 0.7s ease;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.category-menu .megamenu.brand-grid li a:hover {
    color: #0d9488;
}

.category-menu .megamenu .brand-heading {
    display: block;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f1729;
    margin-top: 14px;
    margin-bottom: 6px;
}

.category-menu .megamenu .brand-heading:first-of-type {
    margin-top: 0;
}

.category-menu .megamenu .brand-heading::before {
    content: "\25E6";
    margin-right: 8px;
    font-weight: 400;
}

.category-menu .view-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    font-weight: 700;
    color: #0f1729;
    text-decoration: none;
    background: #f0f3f9;
}

.category-menu .view-all-link:hover {
    background: #e2e8f0;
}

.main-nav {
    flex: 1;
}

.main-nav .menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

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

.main-nav .menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1f2937;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav .menu a:hover {
    color: #0d9488;
    border-color: #0d9488;
}

.promotions-menu {
    position: relative;
}

.promotions-menu > a {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0d9488;
}

.promotions-menu > a .nav-caret::before {
    content: "\25BE";
    font-size: 12px;
    margin-left: 4px;
    color: #0d9488;
    transition: transform 0.2s ease;
}

.promo-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 680px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #d6deed;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22);
    padding: 24px;
    display: none;
    z-index: 55;
}

.promo-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-top: 1px solid #d6deed;
    border-left: 1px solid #d6deed;
    transform: translateX(-50%) rotate(45deg);
}

.promotions-menu:hover .promo-dropdown,
.promotions-menu:focus-within .promo-dropdown {
    display: block;
}

.promo-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 18px;
}

.promo-card {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
}

.promo-card-thumb {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.promo-theme-1 .promo-card-thumb {
    background: linear-gradient(140deg, #22d3ee, #0284c7);
}

.promo-theme-2 .promo-card-thumb {
    background: linear-gradient(140deg, #f97316, #ea580c);
}

.promo-theme-3 .promo-card-thumb {
    background: linear-gradient(140deg, #10b981, #047857);
}

.promo-theme-4 .promo-card-thumb {
    background: linear-gradient(140deg, #a855f7, #7c3aed);
}

.promo-theme-5 .promo-card-thumb {
    background: linear-gradient(140deg, #ef4444, #dc2626);
}

.promo-card-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: #0f1729;
}

.promo-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.88);
    background: rgba(148, 163, 184, 0.18);
}

.promo-theme-1 .promo-card-tag {
    color: #014f86;
    background: rgba(34, 211, 238, 0.22);
}

.promo-theme-2 .promo-card-tag {
    color: #9a3412;
    background: rgba(249, 115, 22, 0.22);
}

.promo-theme-3 .promo-card-tag {
    color: #065f46;
    background: rgba(16, 185, 129, 0.22);
}

.promo-theme-4 .promo-card-tag {
    color: #5b21b6;
    background: rgba(168, 85, 247, 0.22);
}

.promo-theme-5 .promo-card-tag {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.22);
}


@media (max-width: 1200px) {
    .header-bottom .header-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .main-nav .menu {
        flex-wrap: wrap;
        gap: 16px 20px;
    }

    .promo-dropdown {
        position: static;
        transform: none;
        margin-top: 12px;
        min-width: 0;
        width: 100%;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    }

    .promo-dropdown::before {
        display: none;
    }

    .promo-dropdown-inner {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

}

@media (max-width: 1023px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .header-middle .header-container {
        padding: 16px 20px;
        gap: 16px;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .header-bottom .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }

    .category-dropdown .dropdown-box {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        margin-top: 12px;
        padding: 0;
        border-radius: 16px;
        box-shadow: none;
        max-height: 70vh;
        overflow-y: auto;
        display: none;
    }

    .category-dropdown.show > .dropdown-box,
    .category-dropdown[data-visible="true"] > .dropdown-box {
        display: block;
    }

    .category-dropdown .dropdown-box::before {
        display: none;
    }

    .category-menu {
        width: 100%;
    }

    .category-menu > li > a {
        padding: 16px 20px;
    }

    .category-menu > li + li > a {
        border-top: 1px solid #e2e8f0;
    }

    .category-menu > li > .megamenu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 12px 20px 16px 20px;
        opacity: 1;
        visibility: visible;
        display: none;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .category-menu > li.is-expanded > .megamenu {
        display: block;
    }

    .category-menu > li.has-children .category-caret {
        transform: rotate(90deg);
    }

    .filter-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-bottom: 0;
        width: 100%;
    }

    .category-menu > li.has-children.is-expanded .category-caret {
        transform: rotate(-90deg);
    }
}

@media (max-width: 640px) {
    .header-top .header-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav .menu {
        justify-content: center;
    }

    .promo-dropdown {
        margin-top: 16px;
    }

}

/* ===== DEMO BAR (reference sizing) ===== */
.demo-bar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.demo-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 380px;
    gap: 24px;
    padding: 18px 28px 12px;
    align-items: center;
}

.demo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-logo-mark {
    background: #0b2a83;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.demo-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #0b2a83;
}

.demo-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-contact {
    font-size: 14px;
    color: #0b2a83;
    font-weight: 500;
}

.demo-search-wrap {
    display: grid;
    grid-template-columns: 1fr 52px;
    border: 1px solid #cfd4e1;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.demo-search {
    border: none;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.demo-search-btn {
    border: none;
    background: white;
    font-size: 18px;
    cursor: pointer;
    color: #0b2a83;
    border-left: 1px solid #cfd4e1;
}

.demo-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.demo-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0b2a83;
}

.demo-switch {
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2a83 50%, #eceef5 50%);
    border: 1px solid #cfd4e1;
    position: relative;
}

.demo-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.demo-chip {
    border: 1px solid #cfd4e1;
    background: #f7f8fb;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 700;
    color: #0b2a83;
    cursor: pointer;
    font-size: 14px;
}

.demo-cta {
    background: #062c9f;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
}

.demo-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    gap: 28px;
    font-weight: 700;
    color: #1a1a1a;
    background: #f4f4f6;
    border-top: 1px solid #e5e5e5;
    font-size: 15px;
}

.demo-menu-link {
    text-decoration: none;
    color: inherit;
}

/* Demo breadcrumb strip */
.demo-crumb-bar {
    background: #f6f6f6;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}

.demo-crumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 28px 14px;
}

.demo-crumb-trail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0b2a83;
    margin-bottom: 8px;
}

.demo-crumb-trail a {
    color: #0b2a83;
    text-decoration: none;
    font-weight: 700;
}

.demo-crumb-trail a:hover {
    text-decoration: underline;
}

.demo-crumb-sep {
    color: #9aa1b3;
    font-weight: 600;
}

.demo-crumb-current {
    color: #777;
    font-weight: 600;
}

.demo-crumb-title {
    font-size: 36px;
    color: #0b2a83;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

/* ===== DEMO BAR (reference sizing) ===== */
.demo-bar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.demo-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 380px;
    gap: 24px;
    padding: 18px 28px 12px;
    align-items: center;
}

.demo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-logo-mark {
    background: #0b2a83;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.demo-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #0b2a83;
}

.demo-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-contact {
    font-size: 14px;
    color: #0b2a83;
    font-weight: 500;
}

.demo-search-wrap {
    display: grid;
    grid-template-columns: 1fr 52px;
    border: 1px solid #cfd4e1;
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.demo-search {
    border: none;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.demo-search-btn {
    border: none;
    background: white;
    font-size: 18px;
    cursor: pointer;
    color: #0b2a83;
    border-left: 1px solid #cfd4e1;
}

.demo-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.demo-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0b2a83;
}

.demo-switch {
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2a83 50%, #eceef5 50%);
    border: 1px solid #cfd4e1;
    position: relative;
}

.demo-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.demo-chip {
    border: 1px solid #cfd4e1;
    background: #f7f8fb;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 700;
    color: #0b2a83;
    cursor: pointer;
    font-size: 14px;
}

.demo-cta {
    background: #062c9f;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
}

.demo-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    gap: 28px;
    font-weight: 700;
    color: #1a1a1a;
    background: #f4f4f6;
    border-top: 1px solid #e5e5e5;
    font-size: 15px;
}

.demo-menu-link {
    text-decoration: none;
    color: inherit;
}

/* Demo breadcrumb strip */
.demo-crumb-bar {
    background: #f6f6f6;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}

.demo-crumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 28px 14px;
}

.demo-crumb-trail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0b2a83;
    margin-bottom: 8px;
}

.demo-crumb-trail a {
    color: #0b2a83;
    text-decoration: none;
    font-weight: 700;
}

.demo-crumb-trail a:hover {
    text-decoration: underline;
}

.demo-crumb-sep {
    color: #9aa1b3;
    font-weight: 600;
}

.demo-crumb-current {
    color: #777;
    font-weight: 600;
}

.demo-crumb-title {
    font-size: 30px;
    color: #0b2a83;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    display: flex;
    gap: 24px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 32px 24px;
    align-items: flex-start;
}

/* ===== NAVBAR ===== */
.navbar {
    display: none; /* hidden per request for visual mock */
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--teal);
    margin: 0;
}

.search-box {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 14px;
}

.search-box:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.basket-link {
    font-size: 24px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ===== CONTAINER ===== */
.container {
    flex: 1;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #e8e8e8;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-stack-height, 188px) + 32px);
    align-self: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - (var(--header-stack-height, 188px) + 64px));
    padding-bottom: 24px;
}

/* Categories Section */
.filter-sidebar .categories-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 0;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.filter-sidebar .category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #0f1729;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.filter-sidebar .category-item + .category-item,
.filter-sidebar .category-item + .subcategories,
.filter-sidebar .subcategories + .category-item {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-sidebar .category-item:hover {
    background: #f1f5f9;
}

.filter-sidebar .category-item.expanded {
    background: #eef2ff;
    box-shadow: inset 4px 0 0 #6366f1;
}

.filter-sidebar .category-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.filter-sidebar .category-name {
    flex: 1;
}

.filter-sidebar .category-caret {
    width: 18px;
    height: 18px;
    position: relative;
    color: #6366f1;
    flex-shrink: 0;
}

/* Quick Filters */
.filter-toolbar {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.filter-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 24px 16px 24px;
}

.filter-toolbar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f1729;
}

.filter-clear-action {
    border: none;
    background: none;
    padding: 0;
    font-weight: 700;
    color: #0e7490;
    cursor: pointer;
}

.filter-clear-action:hover {
    color: #155e75;
}

.filter-toggle-list {
    display: flex;
    flex-direction: column;
}

.filter-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.filter-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
}

.filter-toggle + .filter-toggle {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.filter-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    height: 26px;
    padding: 0 4px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.65);
    background: #f8fafc;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.filter-toggle-thumb {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.8);
    transform: translateX(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.filter-toggle input:checked ~ .filter-toggle-switch {
    border-color: #334155;
    background: #334155;
}

.filter-toggle input:checked ~ .filter-toggle-switch .filter-toggle-thumb {
    background: #ffffff;
    transform: translateX(24px);
}

.filter-toggle input:checked ~ .filter-toggle-label {
    color: #0f1729;
}

.filter-toggle[data-theme="new-in"] input:checked ~ .filter-toggle-switch {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.filter-toggle[data-theme="bradeal"] input:checked ~ .filter-toggle-switch {
    background: #ef4444;
    border-color: #ef4444;
}

.filter-toggle[data-theme="offers"] input:checked ~ .filter-toggle-switch {
    background: #a855f7;
    border-color: #a855f7;
}

.filter-toggle[data-theme="new-in"] input:checked ~ .filter-toggle-label {
    color: #0b6cbf;
}

.filter-toggle[data-theme="bradeal"] input:checked ~ .filter-toggle-label {
    color: #b91c1c;
}

.filter-toggle[data-theme="offers"] input:checked ~ .filter-toggle-label {
    color: #7c3aed;
}

.filter-toggle[data-theme="in-stock"] input:checked ~ .filter-toggle-switch {
    background: #1f2937;
    border-color: #1f2937;
}

.filter-toggle[data-theme="in-stock"] input:checked ~ .filter-toggle-label {
    color: #1f2937;
}

.filter-toggle[data-theme="plus-sizes"] input:checked ~ .filter-toggle-switch {
    background: #facc15;
    border-color: #facc15;
}

.filter-toggle[data-theme="plus-sizes"] input:checked ~ .filter-toggle-label {
    color: #b45309;
}

.filter-toggle[data-theme="recycled"] input:checked ~ .filter-toggle-switch {
    background: #0d9488;
    border-color: #0d9488;
}

.filter-toggle[data-theme="recycled"] input:checked ~ .filter-toggle-label {
    color: #0f766e;
}

.filter-text-search {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: grid;
    gap: 8px;
}

.filter-text-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.filter-text-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-text-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* Accordion Filters */
.filter-accordion {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.filter-section + .filter-section {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0f1729;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.filter-section-caret {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.filter-section-caret::before {
    content: "\203A";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #475569;
    transition: transform 0.2s ease;
}

.filter-section.is-expanded .filter-section-caret::before {
    transform: rotate(90deg);
    color: #6366f1;
}

.filter-section-body {
    display: none;
    padding: 0 24px 24px 24px;
    background: #f8fafc;
}

.filter-section.is-expanded .filter-section-body {
    display: block;
}

.filter-price-display {
    margin-bottom: 16px;
    font-weight: 700;
    color: #1f2937;
}

.filter-price-slider {
    padding: 0 4px;
}

.filter-range {
    width: 100%;
    accent-color: #0ea5e9;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    padding: 10px 0;
}

.filter-option input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.filter-option input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.filter-option:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.filter-option:has(input:disabled) span {
    color: #94a3b8;
}

.filter-option + .filter-option {
    border-top: 1px solid rgba(203, 213, 225, 0.6);
}

.filter-option-more {
    display: inline-flex;
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
}

.filter-option-more:hover {
    color: #0b525b;
}

.filter-section-body .filter-field {
    margin: 0 0 12px 0;
}

.filter-colour-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 12px;
    padding: 8px 0 4px;
}

.filter-colour-swatch {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    background: #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-colour-swatch::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: inherit;
}

.filter-colour-swatch:focus-visible,
.filter-colour-swatch:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.filter-colour-swatch.is-active {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

.filter-colour-swatch.swatch-black {
    background: #111827;
}

.filter-colour-swatch.swatch-white {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.filter-colour-swatch.swatch-grey {
    background: #9ca3af;
}

.filter-colour-swatch.swatch-neutral {
    background: #d4a574;
}

.filter-colour-swatch.swatch-other {
    background: repeating-linear-gradient(
        45deg,
        #6b7280 0,
        #6b7280 4px,
        #9ca3af 4px,
        #9ca3af 8px
    );
}

.filter-colour-swatch.swatch-navy {
    background: #1e3a8a;
}

.filter-colour-swatch.swatch-blue {
    background: #2563eb;
}

.filter-colour-swatch.swatch-brown {
    background: #8b5a2b;
}

.filter-colour-swatch.swatch-red {
    background: #dc2626;
}

.filter-colour-swatch.swatch-orange {
    background: #f97316;
}

.filter-colour-swatch.swatch-yellow {
    background: #facc15;
}

.filter-colour-swatch.swatch-teal {
    background: #2dd4bf;
}

.filter-colour-swatch.swatch-lilac {
    background: #c084fc;
}

.filter-colour-swatch.swatch-pink {
    background: #ec4899;
}

.filter-colour-swatch.swatch-purple {
    background: #a855f7;
}

.filter-colour-swatch.swatch-green {
    background: #22c55e;
}

.filter-colour-swatch.swatch-pattern {
    background: repeating-linear-gradient(45deg, #e0f2fe 0, #e0f2fe 10px, #bfdbfe 10px, #bfdbfe 20px);
}

.filter-sidebar .category-caret::before {
    content: "\203A";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.filter-sidebar .category-item.expanded .category-caret::before {
    transform: rotate(90deg);
}

/* Subcategories */
.filter-sidebar .subcategories {
    background: #f8fafc;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    will-change: max-height, opacity;
}

.filter-sidebar .category-item.expanded + .subcategories {
    max-height: 1200px;
    opacity: 1;
}

.filter-sidebar .subcategory-heading {
    padding: 10px 20px 10px 72px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
}

.filter-sidebar .subcategory-item {
    padding: 10px 20px 10px 72px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.filter-sidebar .subcategory-item:hover {
    background: #e2e8f0;
    padding-left: 76px;
}

/* Nested subcategories support (if needed) */
.filter-sidebar .subcategory-expandable {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 72px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.filter-sidebar .subcategory-expandable:hover {
    background: #e2e8f0;
}

.filter-sidebar .subcategory-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    position: relative;
    color: #6366f1;
}

.filter-sidebar .subcategory-icon::before {
    content: "\203A";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.filter-sidebar .subcategory-expandable.expanded .subcategory-icon::before {
    transform: rotate(90deg);
}

.filter-sidebar .sub-subcategories {
    background: #eef2ff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    will-change: max-height, opacity;
}

.filter-sidebar .subcategory-expandable.expanded + .sub-subcategories {
    max-height: 600px;
    opacity: 1;
}

.filter-sidebar .sub-subcategory-item {
    padding: 8px 20px 8px 94px;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid rgba(203, 213, 225, 0.6);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.filter-sidebar .sub-subcategory-item:hover {
    background: #e0e7ff;
    padding-left: 98px;
}

/* Search Filters */
.search-filters {
    background: white;
    padding: 20px;
    border-top: 3px solid #d0d0d0;
}

.filter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-checkbox.sub-option {
    padding-left: 24px;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--purple);
}

.filter-checkbox span {
    user-select: none;
}

.color-square {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 4px;
}

.filter-expand {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    user-select: none;
}

.filter-expand:hover {
    color: var(--purple);
}

.price-inputs {
    display: flex;
    gap: 8px;
}

.price-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
}

.price-input:focus {
    outline: none;
    border-color: var(--purple);
}

.text-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
}

.text-search-input:focus {
    outline: none;
    border-color: var(--purple);
}

/* Price range slider */
.price-range-wrap {
    display: grid;
    gap: 10px;
    padding: 8px 0 4px;
}

.price-range-label {
    font-weight: 700;
    color: #1a1a1a;
}

.price-range-slider {
    width: 100%;
    accent-color: var(--purple);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0;
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
    border-color: #7c3aed;
}

.product-media {
    position: relative;
}

.product-figure {
    width: 100%;
    aspect-ratio: 0.92;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-colors {
    --color-gap: 8px;
    --color-size: calc((100% - (var(--color-gap) * 5)) / 6);
    display: grid;
    grid-template-columns: repeat(6, minmax(36px, var(--color-size)));
    grid-auto-flow: column;
    grid-auto-columns: minmax(36px, var(--color-size));
    gap: var(--color-gap);
    margin-bottom: 8px;
    padding: 10px 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #7a2ee6 rgba(248, 250, 252, 0.8);
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar per i colori */
.product-colors::-webkit-scrollbar {
    height: 6px;
}

.product-colors::-webkit-scrollbar-thumb {
    background: #7a2ee6;
    background-color: #7a2ee6;
    border-radius: 10px;
}

.product-colors::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.8);
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
}

.product-card .color-dot {
    width: 100%;
    min-width: 36px;
    max-width: 64px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.product-card .color-dot:hover {
    transform: scale(1.06);
    border-color: #ccc;
}

.product-card .color-dot.active {
    border-color: #7a2ee6;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7a2ee6;
    transform: scale(1.04);
}

.product-badges-left {
    display: none;
}

.product-badges-right {
    display: none;
}

.product-badges-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    z-index: 2;
}

.product-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.print {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.badge.embroidery {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.badge.brand-buy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Customization indicator on cards */
.cust-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 3px;
    z-index: 2;
}

.cust-indicator .cust-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cust-dot.emb {
    background: #14b8a6;
}

.cust-dot.prt {
    background: #7c3aed;
}

.product-info {
    padding: 10px 12px 12px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-code {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 26px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    object-fit: contain;
    mix-blend-mode: normal;
}

.brand-logo:hover {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    cursor: pointer;
    transform: scale(1.05);
}

.brand-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #4b5563;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.brand-text:hover {
    color: #9ca3af;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark);
    line-height: 1.2;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 14px;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price-label {
    font-size: 13px;
    font-weight: 700;
    color: #44d62c;
    text-transform: none;
    letter-spacing: 0.08em;
}

.product-card .color-dot {
    width: 100%;
    min-width: 52px;
    max-width: 72px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.product-card .color-dot:hover {
    transform: scale(1.06);
    border-color: #ccc;
}

.product-card .color-dot.active {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px white, 0 0 0 3px var(--purple);
    transform: scale(1.04);
}

.btn-primary,
.btn-secondary {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    height: auto;
}

.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover { background: #6a2aed; }
.btn-secondary { background: #f3f3f3; color: var(--dark); border: 1px solid #e5e5e5; }
.btn-secondary:hover { background: #e9e9e9; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: #f5f5f5;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-left img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
}

.modal-right h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.code {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    font-size: 24px;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 24px;
}

.section {
    margin-bottom: 24px;
}

.section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #333;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    background-size: cover;
    background-position: center;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--teal);
}

.section label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

.section input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.section input[type="number"] {
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 14px;
    width: 80px;
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #6a4ab8;
    box-shadow: 0 8px 24px rgba(122, 82, 204, 0.3);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

/* ===== RESPONSIVE - TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ===== RESPONSIVE - MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }
    
    /* Product Card Mobile */
    .product-card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    /* Force light background on product images */
    .product-figure {
        aspect-ratio: 1;
        background: #f8f9fa !important;
        padding: 8px;
    }
    
    .product-main-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
        mix-blend-mode: multiply; /* Helps remove white backgrounds */
    }
    
    /* Badges Mobile - più piccoli e compatti */
    .product-badges-top {
        top: 6px;
        right: 6px;
        gap: 3px;
    }
    
    .badge {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 4px;
    }
    
    /* Product Info Mobile */
    .product-info {
        padding: 10px 10px 12px;
        gap: 4px;
    }
    
    .product-code {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    /* Hide brand logo on mobile to save space */
    .product-code .brand-logo {
        display: none;
    }
    
    .product-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: 4px;
        /* Limit to 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .product-price-label {
        font-size: 10px;
    }
    
    .product-price-suffix {
        font-size: 10px;
    }
    
    /* Color Dots Mobile - più grandi per touch */
    .product-colors {
        gap: 6px;
        padding: 6px 4px;
        margin-bottom: 6px;
        grid-template-columns: repeat(5, 1fr);
    }
    
    .product-card .color-dot {
        min-width: 28px;
        max-width: 40px;
        border-width: 2px;
    }
    
    .product-card .color-dot.active {
        box-shadow: 0 0 0 1px white, 0 0 0 2px #7a2ee6;
    }
    
    /* Action Buttons Mobile */
    .product-actions {
        gap: 6px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .navbar-content {
        flex-wrap: wrap;
    }
}

/* ===== RESPONSIVE - SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 6px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 8px 8px 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-colors {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 4px;
    }
    
    .product-card .color-dot {
        min-width: 24px;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px;
        font-size: 12px;
    }
}

/* ===== PAGINATION ===== */
.pagination-container {
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.pagination-number:hover {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-number.active {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.pagination-number.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.pagination-number.ellipsis:hover {
    background: transparent;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-number {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}