/* =============================================================
   shop-theme.css  –  Moumachi Shop Modern Theme  v2
   ============================================================= */

/* ── TOKENS ── */
:root {
    --brand: #C8292A;
    --brand-hover: #a01f20;
    --brand-light: #FAEBEB;
    --ink: #1A1A1A;
    --ink-2: #4A4A4A;
    --ink-3: #888888;
    --surface: #FFFFFF;
    --surface-2: #F7F6F3;
    --surface-3: #EFEDE8;
    --border: #E4E2DC;
    --border-2: #CFCDC7;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 40px;
    --shadow-card: 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 8px 28px rgba(0,0,0,.12);
    --nav-h: 72px;
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: .2s ease;
}

/* ── RESET / BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--surface-2);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

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

/* ================================================================
   NAVBAR
   ================================================================ */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
    transition: box-shadow var(--transition);
}

    .top-navbar.scrolled {
        box-shadow: 0 2px 16px rgba(0,0,0,.08);
    }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

    .brand img {
        height: 44px;
        object-fit: contain;
    }

.btn-menu {
    background: none;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background var(--transition);
}

    .btn-menu:hover {
        background: var(--surface-2);
    }

    .btn-menu svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
    }

.search-wrap {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0 6px 0 18px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .search-wrap:focus-within {
        border-color: var(--border-2);
        box-shadow: 0 0 0 3px rgba(200,41,42,.08);
    }

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    padding: 10px 0;
    outline: none;
}

    .search-input::placeholder {
        color: var(--ink-3);
    }

.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), transform .1s;
}

    .search-btn:hover {
        background: var(--brand-hover);
    }

    .search-btn:active {
        transform: scale(.95);
    }

    .search-btn svg {
        width: 16px;
        height: 16px;
        stroke: #fff;
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

    .phone-link:hover {
        color: var(--brand);
    }

    .phone-link i {
        color: var(--brand);
        font-size: 14px;
    }

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 200;
    opacity: 0;
    transition: opacity .25s;
}

    .drawer-overlay.show {
        display: block;
        opacity: 1;
    }

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 300;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    transition: left .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

    .mobile-sidebar.open {
        left: 0;
    }

.mobile-sidebar-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.btn-close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

    .btn-close-sidebar:hover {
        background: var(--surface-2);
    }

    .btn-close-sidebar svg {
        width: 18px;
        height: 18px;
        stroke: var(--ink);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
    }

/* ================================================================
   SIDEBAR  –  desktop + mobile shared
   ================================================================ */
.desktop-sidebar-col {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

/* ================================================================
   SIDEBAR
   ================================================================

   _CategoryTree.cshtml generates this exact HTML:

   With children:
   <li class="category-item [open]">
     <div class="category-row">
       <a href="..." class="category-link [active|active-parent]">Name</a>
       <button type="button" class="menu-toggle">
         <span class="caret">+</span>
       </button>
     </div>
     <ul class="submenu">
       <ul class="category-list"> ← recursive partial
         ...
       </ul>
     </ul>
   </li>

   Leaf (no children):
   <li>
     <a href="..." class="category-link [active]">Name</a>
   </li>
*/

/* ── SIDEBAR CARD ── */
.sidebar-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

/* Footer attaches below the card, forming one seamless unit */
.desktop-sidebar-col > footer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 12px 20px;
    font-size: 12px;
    color: var(--ink-3);
    text-align: center;
}

.mobile-sidebar > footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    font-size: 12px;
    color: var(--ink-3);
    text-align: center;
    background: var(--surface);
    flex-shrink: 0;
}

/* ── SHOP LOGO ZONE ── */
.shop-logo {
    width: 100%;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shop-logo img {
        max-width: 160px;
        max-height: 160px;
        object-fit: contain;
    }

/* ── NAV WRAPPER ── */
.category-nav {
    padding: 8px 0;
}

.sidebar-scroll {
    overflow-y: auto;
}

/* ── HARD RESET — stop Bootstrap styling buttons/lists inside sidebar ── */
.sidebar-panel ul, .mobile-sidebar ul,
.sidebar-panel ol, .mobile-sidebar ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-panel a, .mobile-sidebar a {
    text-decoration: none;
}

.sidebar-panel button, .mobile-sidebar button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
    cursor: pointer;
}

/* ── "Home" static link (rendered directly in Index.cshtml above the partial) ── */
.category-list > li > a.category-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    border-left: 3px solid transparent;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

    .category-list > li > a.category-link:hover,
    .category-list > li > a.category-link.active {
        background: var(--brand-light);
        color: var(--brand);
        border-left-color: var(--brand);
    }

/* ── CATEGORY ITEM (li with children) ── */
.category-item {
    list-style: none;
    border-left: 3px solid transparent;
    transition: border-color var(--transition);
}

    .category-item.open {
        border-left-color: var(--brand);
    }

/* ── CATEGORY ROW  — the div wrapping the link + toggle button ── */
.category-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

    /* The category name link inside .category-row */
    .category-row > a.category-link {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        padding: 10px 4px 10px 20px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
        transition: color var(--transition), background var(--transition);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .category-row > a.category-link:hover,
        .category-row > a.category-link.active-parent {
            color: var(--brand);
            background: var(--brand-light);
        }

        .category-row > a.category-link.active {
            color: var(--brand);
            font-weight: 600;
        }

/* The +/− toggle button */
.menu-toggle {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: var(--ink-3);
    transition: color var(--transition), background var(--transition);
}

    .menu-toggle:hover {
        color: var(--brand);
        background: var(--brand-light);
    }

/* The caret text (+/−) */
.caret {
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    display: block;
    transition: transform .2s, color .2s;
    color: var(--ink-3);
}

.category-item.open > .category-row .caret {
    transform: rotate(45deg);
    color: var(--brand);
}

/* Open state: tint the row */
.category-item.open > .category-row {
    background: var(--brand-light);
}

    .category-item.open > .category-row > a.category-link {
        color: var(--brand);
        background: transparent;
        font-weight: 600;
    }

    .category-item.open > .category-row > .menu-toggle {
        color: var(--brand);
        background: transparent;
    }

/* ── SUBMENU ── */
.submenu {
    display: none;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.category-item.open > .submenu {
    display: block;
}

/* Recursive nested .category-list inside submenu */
.submenu .category-list {
    padding: 4px 0;
}

    /* Leaf links inside submenu */
    .submenu .category-list > li > a.category-link {
        display: block;
        padding: 8px 16px 8px 36px;
        font-size: 13px;
        font-weight: 400;
        color: var(--ink-2);
        border-left: 3px solid transparent;
        transition: color var(--transition), background var(--transition), border-color var(--transition);
    }

        .submenu .category-list > li > a.category-link:hover,
        .submenu .category-list > li > a.category-link.active-parent {
            color: var(--brand);
            background: var(--brand-light);
            border-left-color: var(--brand);
        }

        .submenu .category-list > li > a.category-link.active {
            color: var(--brand);
            background: var(--brand-light);
            border-left-color: var(--brand);
            font-weight: 500;
        }

/* Nested category-item inside submenu (3rd level+) */
.submenu .category-item > .category-row > a.category-link {
    padding-left: 36px;
    font-size: 13px;
}

.submenu .submenu .category-list > li > a.category-link {
    padding-left: 52px;
    font-size: 13px;
}
footer .go-to-listing-link {
    display: block;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    padding: 8px 0;
    transition: opacity .15s;
}

    footer .go-to-listing-link:hover {
        opacity: .75;
        text-decoration: underline;
    }


.category-tree-scroll {
    height: 50vh;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .category-tree-scroll::-webkit-scrollbar {
        display: none;
    }

/* Advertisement Banner */
.adv-banner {
    border-radius: 12px;
    overflow: hidden;
}

.adv-banner-img {
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 576px) {
    .adv-banner-img {
        max-height: 200px;
    }
}
/* ================================================================
   MAIN SHELL
   ================================================================ */
.main-shell {
    padding-top: 32px;
}

.main-layout-row {
    align-items: flex-start;
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    background: none;
    padding: 0;
    margin-bottom: 24px !important;
}

    .breadcrumb a {
        color: var(--ink-3);
        text-decoration: none;
        transition: color var(--transition);
    }

        .breadcrumb a:hover {
            color: var(--brand);
        }

    .breadcrumb span {
        color: var(--border-2);
        font-size: 11px;
        margin: 0;
    }

/* ================================================================
   SECTION HEAD
   ================================================================ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.see-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    padding: 5px 16px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-pill);
    transition: background var(--transition), color var(--transition);
}

    .see-more:hover {
        background: var(--brand);
        color: #fff;
    }

/* ================================================================
   CATEGORY TOPBAR
   ================================================================ */
.category-topbar {
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

    .category-topbar .section-title {
        flex: 1;
        text-align: center;
    }

.go-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--surface);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

    .go-home:hover {
        background: var(--surface-3);
        color: var(--ink);
    }

.form-select {
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    color: var(--ink) !important;
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 36px 8px 14px !important;
    cursor: pointer;
    transition: border-color var(--transition);
}

    .form-select:focus {
        border-color: var(--border-2) !important;
        box-shadow: 0 0 0 3px rgba(200,41,42,.08) !important;
    }

/* ================================================================
   PRODUCT CARD  (listing grid)
   ================================================================ */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    height: 100%;
}

    .product-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-3px);
    }

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--surface-3);
    transition: transform .35s ease;
}

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

.product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    line-height: 1.3;
}

del {
    font-size: 13px;
    color: var(--ink-3);
    text-decoration: line-through;
}

.btn-details {
    display: block;
    text-align: center;
    padding: 9px 12px;
    margin-top: auto;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

    .btn-details:hover {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

/* ================================================================
   SHOP FOOTER
   ================================================================ */
.shop-footer {
    margin-top: 64px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0 24px;
}

.shop-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

    .footer-brand img {
        height: 32px;
        object-fit: contain;
    }

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.footer-copy {
    font-size: 13px;
    color: var(--ink-3);
}

    .footer-copy a {
        color: var(--brand);
    }

        .footer-copy a:hover {
            text-decoration: underline;
        }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.product-page-shell {
    padding-bottom: 48px;
}

/* ── Cover / Hero Slider ── */
.cover-block {
    background: var(--surface-3);
}

.cover-wrap {
    position: relative;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    border-radius: 0;
}

.cover-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.cover-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
}

    .cover-slide.active {
        opacity: 1;
    }

    .cover-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 28px;
    background: linear-gradient(to top, rgb(0 0 0 / 80%) 0%, #00000000 100%);
    pointer-events: none;
}

.cover-breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.cover-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.cover-dots {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cover-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}

    .cover-dot.active {
        background: #fff;
        transform: scale(1.3);
    }

/* ── Back button ── */
.btn.btn-light {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

    .btn.btn-light:hover {
        background: var(--surface-3);
        color: var(--ink);
    }

/* ── Product media card (image gallery) ── */
.product-media-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.media-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* Main image stage */
.image-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface-3);
    overflow: hidden;
}

.product-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
}

    .product-slide.active {
        opacity: 1;
    }

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

/* Prev / Next arrows */
.slider-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.slide-nav {
    pointer-events: all;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 20px;
    line-height: 1;
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: background var(--transition), color var(--transition);
}

    .slide-nav:hover {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
    }

/* Thumbnails */
.thumb-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.thumb-item {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .thumb-item.active {
        border-color: var(--brand);
    }

    .thumb-item:hover {
        border-color: var(--border-2);
    }

/* ── Product info card ── */
.product-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.product-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .06em;
}

    .product-label a {
        color: inherit;
        text-decoration: none;
    }

        .product-label a:hover {
            text-decoration: underline;
        }

.product-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}

/* Price block */
.price-block {
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.price-old {
    font-size: 16px;
    color: var(--ink-3);
    text-decoration: line-through;
}

.price-discount {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* Variant panel */
.variant-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.variant-panel-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-3);
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.variant-block {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.variant-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    min-width: 64px;
    padding-top: 4px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-chip {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: default;
    transition: border-color var(--transition), background var(--transition);
}

    .variant-chip:hover {
        border-color: var(--brand);
        background: var(--brand-light);
        color: var(--brand);
    }

/* Tag panel */
.tag-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-panel-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-3);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--ink-3);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

/* ── Description & Gallery detail cards ── */
.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.description-content {
    padding: 24px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
}

    .description-content h1, .description-content h2, .description-content h3 {
        font-family: var(--font-display);
        color: var(--ink);
        margin: 1.2em 0 .5em;
    }

    .description-content p {
        margin: 0 0 1em;
    }

    .description-content img {
        max-width: 100%;
        border-radius: var(--radius-sm);
    }

    .description-content a {
        color: var(--brand);
    }

/* Masonry gallery */
.masonry-grid {
    padding: 20px;
    columns: 3;
    column-gap: 12px;
}

.masonry-item {
    break-inside: avoid;
    margin: 0 0 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-3);
}

.gallery-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ================================================================
   SHOP FOOTER  (ShopFooter component)
   ================================================================ */
footer.site-footer,
.site-footer {
    margin-top: 64px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0 28px;
}

    .site-footer .container-xxl {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-brand img {
        height: 32px;
        object-fit: contain;
    }

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.footer-copy {
    font-size: 13px;
    color: var(--ink-3);
}

    .footer-copy a {
        color: var(--brand);
    }

        .footer-copy a:hover {
            text-decoration: underline;
        }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .masonry-grid {
        columns: 2;
    }

    .cover-slides {
        height: 300px;
    }

    .cover-wrap {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .main-shell {
        padding-top: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .product-info-card {
        position: static;
    }

    .masonry-grid {
        columns: 2;
    }

    .cover-slides {
        height: 220px;
    }

    .cover-wrap {
        max-height: 220px;
    }

    .cover-title {
        font-size: 20px;
    }

    .site-footer .container-xxl {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }
}
