/* ================================================================
   MAISON DRIÉA — MOBILE DESKTOP-MIRROR
   Goal: mobile looks identical to the desktop / tablet layout.
   No restructuring. No layout swaps. Same grids, same order,
   same proportions — just tighter padding to fit a narrow screen.

   This file loads on all mobile viewports (≤ 768 px) AFTER
   style.css, so every rule here wins cleanly.
================================================================ */

@media (max-width: 768px) {


/* ════════════════════════════════════════════════════════════════
   § 1  HEADER — same transparent-over-hero behaviour as desktop
════════════════════════════════════════════════════════════════ */

    /* Hero pages: transparent header overlays the full-bleed image */
    body.homepage .site-header,
    body.page-template-page-our-ethos-php .site-header {
        background:    transparent !important;
        border-bottom: none !important;
        box-shadow:    none !important;
    }

    /* On scroll → frosted white (same as desktop .scrolled state) */
    body.homepage .site-header.scrolled,
    body.page-template-page-our-ethos-php .site-header.scrolled {
        background:              rgba(255,255,255,0.97) !important;
        border-bottom:           1px solid rgba(10,10,10,0.07) !important;
        backdrop-filter:         blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow:              none !important;
    }

    /* White icons while header is transparent (hero pages) */
    body.homepage .site-header:not(.scrolled) .menu-toggle-bar,
    body.page-template-page-our-ethos-php .site-header:not(.scrolled) .menu-toggle-bar {
        background: #ffffff !important;
    }

    body.homepage .site-header:not(.scrolled) .logo img,
    body.page-template-page-our-ethos-php .site-header:not(.scrolled) .logo img {
        filter: brightness(0) invert(1) !important;
    }

    body.homepage .site-header:not(.scrolled) .header-right img,
    body.page-template-page-our-ethos-php .site-header:not(.scrolled) .header-right img {
        filter: brightness(0) invert(1) !important;
    }

    body.homepage .site-header:not(.scrolled) .cart-count,
    body.page-template-page-our-ethos-php .site-header:not(.scrolled) .cart-count {
        color: #ffffff !important;
    }

    body.homepage .site-header:not(.scrolled) .header-right .header-icon-svg,
    body.page-template-page-our-ethos-php .site-header:not(.scrolled) .header-right .header-icon-svg {
        color: #ffffff !important;
    }

    /* Hero pages: body starts at top-0 so the hero fills underneath the transparent header */
    body.homepage,
    body.page-template-page-our-ethos-php,
    body.has-hero {
        padding-top: 0 !important;
    }

    /* Hero/video sections fill the entire viewport */
    body.homepage .mob-hero {
        height: 100svh !important;
    }

    body.homepage .hero,
    body.page-template-page-our-ethos-php .hero {
        height: 100svh !important;
        width: 100vw !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Ethos hero: landscape 16:9, exactly like desktop */
    body.page-template-page-our-ethos-php .ethos-hero {
        width: 100vw !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        background: #000;
    }

    body.homepage .hero video,
    body.homepage .hero img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.page-template-page-our-ethos-php .ethos-hero video,
    body.page-template-page-our-ethos-php .ethos-hero img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    /* Sticky shop toolbar adjusts to correct header height */
    .shop-toolbar {
        top: 56px !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 2  NOCTURNE COLLECTION — single layout, desktop structure
════════════════════════════════════════════════════════════════ */

    /* Collection intro: just enough top gap to clear the transparent header */
    body.page-template-page-nocturne .collection-intro {
        padding-top: 80px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Desktop product rows: minimal margin — gap is handled by ul.products padding */
    body.page-template-page-nocturne .product-row {
        margin: 4px 0 !important;
        padding: 0 !important;
    }

    body.page-template-page-nocturne .product-row .container {
        padding: 0 8px !important;
        max-width: 100% !important;
    }

    /* Editorial images on nocturne: full-width, natural height — no crop */
    body.page-template-page-nocturne .editorial-container img,
    body.page-template-page-nocturne .editorial img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.page-template-page-nocturne .editorial-container,
    body.page-template-page-nocturne .editorial-contained {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 3  PRODUCT GRIDS — keep 3-col on collection / nocturne pages
════════════════════════════════════════════════════════════════ */

    /* Nocturne + all editorial collection pages: 3-col, same as desktop */
    body.page-template-page-nocturne .collection-page .product-row ul.products,
    body.page-template-page-nocturne .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Product card text: scale down for narrower columns */
    body.page-template-page-nocturne .collection-page .product-row ul.products li.product h2,
    body.page-template-page-nocturne .woocommerce ul.products li.product h2 {
        font-size: 8px !important;
        letter-spacing: 0.06em !important;
        margin-top: 6px !important;
        padding: 0 4px !important;
    }

    body.page-template-page-nocturne .collection-page .product-row ul.products li.product .price,
    body.page-template-page-nocturne .woocommerce ul.products li.product .price {
        font-size: 8px !important;
        padding: 0 4px 4px !important;
        margin-top: 2px !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 4  SPLIT EDITORIAL GRID — keep 2-col side by side
════════════════════════════════════════════════════════════════ */

    .split-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px !important;
    }

    .split-grid img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    /* Ethos / Story split panels: same side-by-side */
    .ethos-split,
    .story-split,
    .two-col-editorial {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 5  SINGLE PRODUCT PAGE — keep gallery left + info right
════════════════════════════════════════════════════════════════ */

    /* Desktop: flex row with 60/40 split — keep it on mobile */
    .product-page .product-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
        padding: 16px 10px !important;
        align-items: flex-start !important;
    }

    /* Left: image grid — keep as static 2-col grid (not carousel) */
    .product-page .product-gallery {
        width: 55% !important;
        display: grid !important;
        flex-direction: unset !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: auto !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        scrollbar-width: auto !important;
    }

    /* Gallery scrollbar hidden again */
    .product-page .product-gallery::-webkit-scrollbar {
        display: none !important;
    }

    /* Gallery item: restore portrait aspect ratio, anchor bottom */
    .product-page .gallery-item {
        flex: unset !important;
        width: auto !important;
        scroll-snap-align: unset !important;
        aspect-ratio: 2 / 3 !important;
    }

    .product-page .gallery-item img {
        object-fit: cover !important;
        object-position: top center !important;
        height: 100% !important;
    }

    /* Dot carousel indicator: hide (no carousel on desktop) */
    .gallery-dots {
        display: none !important;
    }

    /* Right: product info */
    .product-page .product-info {
        width: 45% !important;
        position: static !important;
        padding: 0 !important;
    }

    /* Info typography: scale down for narrower column */
    .product-page .product-title-row h1 {
        font-size: 13px !important;
        letter-spacing: 0.04em !important;
        line-height: 1.3 !important;
    }

    .product-page .price {
        font-size: 11px !important;
    }

    .product-page .size-btn {
        font-size: 9px !important;
        padding: 8px 10px !important;
    }

    .product-page .drawer-trigger {
        font-size: 9px !important;
        padding: 14px 0 !important;
    }

    /* Accordion bodies: keep desktop drawer behaviour on mobile */
    .product-page .accordion-body {
        font-size: 10px !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 6  HOMEPAGE — preserve desktop editorial sections
════════════════════════════════════════════════════════════════ */

    /* ── Hero video: full viewport, cover crop (undo the mobile flatten) ── */
    .hero {
        position: relative !important;
        width: 100vw !important;
        height: 100svh !important;       /* full screen, not auto */
        min-height: 100svh !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    /* Ethos hero: landscape 16:9, exactly like desktop */
    .ethos-hero {
        position: relative !important;
        width: 100vw !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        background: #000;
    }

    .hero video,
    .hero img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;   /* cover, not contain */
        object-position: center center !important;
        pointer-events: none;
    }

    .ethos-hero video,
    .ethos-hero img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        pointer-events: none;
    }

    /* ── Split editorial (NOCTURNE panels): keep side-by-side ── */
    .split-editorial {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
    }

    .split-left,
    .split-right {
        position: relative !important;
        overflow: hidden !important;
        height: 60svh !important;       /* tall portrait panels on mobile */
    }

    .split-left img,
    .split-right img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        display: block !important;
    }

    /* Overlay text: scale down for narrower panels */
    .overlay-text--left {
        bottom: 20px !important;
        left: 12px !important;
    }

    .overlay-text--left-cta,
    .overlay-text--right {
        bottom: 20px !important;
        right: 12px !important;
    }

    .overlay-text .title {
        font-size: clamp(14px, 4.5vw, 22px) !important;
    }

    .overlay-text .cta {
        font-size: 9px !important;
        letter-spacing: 0.16em !important;
    }

    /* ── Full editorial (THE LIVING ARCHIVE): full width, natural image ── */
    .full-editorial {
        position: relative !important;
        width: 100% !important;
    }

    .full-editorial img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    .center-text {
        font-size: clamp(13px, 4.5vw, 22px) !important;
        letter-spacing: 0.14em !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* Mob-* classes (older mobile template helpers): keep compatible */
    .mob-hero {
        height: 100svh !important;
    }

    .mob-editorial {
        display: flex !important;
        flex-direction: row !important;   /* side-by-side, not stacked */
    }

    .mob-panel--nocturne,
    .mob-panel--secondary {
        height: 60svh !important;
        flex: 1 !important;
    }

    .mob-living {
        width: 100% !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 7  FOOTER — same column structure as desktop, proportionally
         tightened. The newsletter column is folded into the accordion
         drawer that already exists (same as before).
════════════════════════════════════════════════════════════════ */

    .site-footer {
        padding: 40px 16px 0 !important;
    }

    /* 4-col grid (newsletter column handled by mobile accordion) */
    .footer-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        gap: 20px 10px !important;
        padding: 0 0 24px !important;
        margin-top: 0 !important;
        align-items: start !important;
    }

    /* Newsletter desktop column: hidden — accordion drawer takes over */
    .footer-col.newsletter,
    .footer-col.footer-newsletter,
    .footer-col.footer-newsletter-desktop {
        display: none !important;
    }

    /* Column headings */
    .footer-inner .footer-col h4 {
        font-size: 8px !important;
        letter-spacing: 0.18em !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #0a0a0a !important;
        margin-bottom: 10px !important;
    }

    /* Links */
    .footer-inner ul li {
        margin-bottom: 6px !important;
    }

    .footer-inner ul li a {
        font-size: 9px !important;
        letter-spacing: 0.04em !important;
        line-height: 1.7 !important;
        color: #555 !important;
        text-decoration: none !important;
    }

    /* Bottom bar */
    .footer-bottom {
        padding: 16px 0 !important;
        margin-top: 0 !important;
        border-top: 1px solid rgba(10,10,10,0.07) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .footer-bottom span,
    .footer-left span {
        font-size: 8px !important;
        letter-spacing: 0.16em !important;
    }

    .footer-center img {
        height: 20px !important;
        width: auto !important;
    }

    .footer-right {
        padding-right: 16px !important;
    }

    .footer-right .shipping-label,
    .footer-right #footerCountryLabel,
    .footer-right #footerCurrencyLabel {
        font-size: 8px !important;
        letter-spacing: 0.08em !important;
    }

    #footerFlag {
        font-size: 11px !important;
    }


/* ════════════════════════════════════════════════════════════════
   § 8  GENERAL — small-screen layout preservation
════════════════════════════════════════════════════════════════ */

    /* Prevent anything from overflowing horizontally */
    body {
        overflow-x: hidden !important;
    }

    /* Container: full bleed with minimal side padding */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    /* Collection page row: match desktop vertical rhythm, scaled */
    .collection-page .product-row {
        margin: 24px 0 !important;
    }

    /* Ethos / Story: keep full-width image sections */
    .ethos-hero,
    .story-hero {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    /* Recommended products: 3-col same as desktop */
    .recommended-desktop ul.recommended-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .recommended-desktop ul.recommended-products li.product h2 {
        font-size: 8px !important;
        padding: 0 4px !important;
    }

    .recommended-desktop ul.recommended-products li.product .price {
        font-size: 8px !important;
        padding: 0 4px !important;
    }

} /* end @media (max-width: 768px) */


/* ================================================================
   MOBILE-ONLY TEMPLATES
   These classes ONLY exist on mobile templates (single-product,
   policy, my-account). No media-query wrapper needed — they are
   never loaded on desktop.
================================================================ */


/* ════════════════════════════════════════════════════════════════
   § 9  SINGLE PRODUCT — MOBILE TEMPLATE
        .mob-single-product   outer wrapper
        .mob-sp-gallery       scroll-snap carousel
        .mob-sp-slide         individual image frame
        .mob-sp-dots          dot indicators
        .mob-sp-info          stacked info column
        .mob-sp-drawers       accordion strip
        .mob-sp-recommended   3-col recommended row
════════════════════════════════════════════════════════════════ */

/*
 * Body offset: utility bar (--md-utility-bar-height = 34px on mobile) sits at top:0,
 * header (56px) sits below it. Combined = 90px. Override the global 56px so the
 * gallery starts exactly at the header's bottom edge — no visible gap.
 */
body.single-product {
    padding-top: calc(var(--md-utility-bar-height) + 56px) !important; /* 34+56 = 90px */
}

.mob-single-product {
    padding-top: 0;
    margin-top: 0;
    overflow-x: hidden;
}

/* ── Gallery ──────────────────────────────────────────────────── */
.mob-sp-gallery {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #f7f6f4;
}
.mob-sp-gallery::-webkit-scrollbar { display: none; }

.mob-sp-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1707 / 2560;
    overflow: hidden;
}

.mob-sp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── Dot indicators ───────────────────────────────────────────── */
.mob-sp-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 6px;
}

.mob-sp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.25s, transform 0.25s;
    cursor: pointer;
}

.mob-sp-dot.active {
    background: #0a0a0a;
    transform: scale(1.3);
}

/* ── Product info panel ───────────────────────────────────────── */
.mob-sp-info {
    padding: 20px 20px 0;
}

.mob-sp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mob-sp-title-row h1 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0;
    color: #0a0a0a;
    flex: 1;
}

/* YITH wishlist button inside title row — mirrors desktop .yith-wishlist-btn-wrap */
.mob-sp-title-row .mob-sp-wishlist {
    flex-shrink: 0;
    line-height: 1;
}

/* Strip YITH button chrome — same as .product-title-row rules in style.css */
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-to-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inherit hover/active colour from the icon — same behaviour as desktop */
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-button > a,
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-button > a:hover,
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-button > a:focus {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 2px !important;
}

/* SVG icon sizing — YITH renders an SVG heart/star when using icon mode */
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-to-wishlist .yith-wcwl-icon,
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-add-to-wishlist svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Active / added state — YITH adds .yith-wcwl-wishlist-exists on the add button */
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-wishlist-exists .yith-wcwl-icon,
.mob-sp-title-row .yith-wishlist-btn-wrap .yith-wcwl-wishlist-exists svg {
    fill: #0a0a0a;
}

/* Price */
.mob-sp-price {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #0a0a0a;
    margin-bottom: 18px;
}

.mob-sp-price del {
    color: #aaa;
    margin-right: 6px;
}

/* ── Colour & size selectors ─────────────────────────────────── */
.mob-sp-info .color-swatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mob-sp-info .swatch-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(10,10,10,0.18);
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.mob-sp-info .color-swatch-btn.selected .swatch-circle,
.mob-sp-info .color-swatch-btn:focus .swatch-circle {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0a0a0a;
}

.mob-sp-info .size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.mob-sp-info .size-btn {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 9px 14px;
    border: 1px solid rgba(10,10,10,0.22);
    background: #fff;
    color: #0a0a0a;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
}

.mob-sp-info .size-btn.selected,
.mob-sp-info .size-btn:hover {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
}

.mob-sp-info .size-btn.out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Add-to-cart button */
.mob-sp-info .single_add_to_cart_button,
.mob-sp-info button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: #0a0a0a;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.mob-sp-info .single_add_to_cart_button:hover {
    opacity: 0.82;
}

/* ── Accordion drawers ───────────────────────────────────────── */
.mob-sp-drawers {
    border-top: 1px solid rgba(10,10,10,0.1);
    margin: 0 -20px;   /* bleed to edges */
    padding: 0 20px;
}

.mob-sp-drawer {
    border-bottom: 1px solid rgba(10,10,10,0.1);
}

.mob-sp-drawer-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0a0a0a;
    cursor: pointer;
    text-align: left;
}

.mob-sp-drawer-trigger .mob-sp-drawer-icon {
    font-size: 16px;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.mob-sp-drawer-trigger[aria-expanded="true"] .mob-sp-drawer-icon {
    transform: rotate(45deg);
}

.mob-sp-drawer-body {
    overflow: hidden;
    height: 0;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-sp-drawer-body-inner {
    padding: 0 0 18px;
    font-size: 11px;
    line-height: 1.7;
    color: #555;
    letter-spacing: 0.03em;
}

.mob-sp-drawer-body-inner p,
.mob-sp-drawer-body-inner li {
    font-size: 11px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 6px;
}

.mob-sp-drawer-body-inner table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.mob-sp-drawer-body-inner th,
.mob-sp-drawer-body-inner td {
    padding: 6px 8px;
    border: 1px solid rgba(10,10,10,0.1);
    text-align: center;
    letter-spacing: 0.06em;
}

.mob-sp-drawer-body-inner th {
    background: #f7f6f4;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 9px;
}

/* ── Product description ─────────────────────────────────────── */
.mob-sp-desc {
    padding: 24px 20px;
    font-size: 11px;
    line-height: 1.8;
    color: #555;
    letter-spacing: 0.03em;
}

/* ── Recommended products ────────────────────────────────────── */
.mob-sp-recommended {
    padding: 32px 16px 40px;
    border-top: 1px solid rgba(10,10,10,0.08);
}

.mob-sp-recommended h3 {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #0a0a0a;
}

.mob-sp-recommended ul.recommended-products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-sp-recommended ul.recommended-products li.product .product-info {
    margin-top: 4px !important;
}

.mob-sp-recommended ul.recommended-products li.product h2 {
    font-size: 8px;
    letter-spacing: 0.06em;
    padding: 0 4px;
    margin-top: 0;
}

.mob-sp-recommended ul.recommended-products li.product .price {
    font-size: 8px;
    padding: 0 4px 4px;
}


/* ════════════════════════════════════════════════════════════════
   § 10  POLICY PAGE — MOBILE TEMPLATE
         .mob-policy           main wrapper
         .mob-policy-nav       dropdown nav strip
         .mob-policy-content   full-width prose area
════════════════════════════════════════════════════════════════ */

.mob-policy {
    padding-top: 56px;   /* clear fixed header */
    min-height: 60vh;
}

/* ── Dropdown nav ────────────────────────────────────────────── */
.mob-policy-nav {
    position: relative;
    border-bottom: 1px solid rgba(10,10,10,0.1);
    margin-bottom: 32px;
}

.mob-policy-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.mob-policy-nav__chevron {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
    display: inline-block;
}

.mob-policy-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-top: 1px solid rgba(10,10,10,0.07);
    position: absolute;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(10,10,10,0.09);
}

.mob-policy-nav__menu[hidden] {
    display: none;
}

.mob-policy-nav__menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(10,10,10,0.05);
    transition: color 0.15s;
}

.mob-policy-nav__menu li.active a,
.mob-policy-nav__menu li a:hover {
    color: #0a0a0a;
}

.mob-policy-nav__menu li:last-child a {
    border-bottom: none;
}

/* ── Content area ────────────────────────────────────────────── */
.mob-policy-content {
    padding: 0 20px 60px;
    max-width: 100%;
}

.mob-policy-content h1,
.mob-policy-content h2 {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 16px;
    color: #0a0a0a;
}

.mob-policy-content h3 {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 24px 0 10px;
    color: #0a0a0a;
}

.mob-policy-content p,
.mob-policy-content li {
    font-size: 12px;
    line-height: 1.8;
    color: #555;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.mob-policy-content a {
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ════════════════════════════════════════════════════════════════
   § 11  MY ACCOUNT — MOBILE TEMPLATE
         .mob-account-wrapper    outer wrapper
         .mob-account-hero       black banner with name
         .mob-account-nav        horizontal scrollable tabs
         .mob-account-content    full-width WC content
         .mob-account-service    customer service strip at bottom
════════════════════════════════════════════════════════════════ */

.mob-account-wrapper {
    min-height: 70vh;
}

/* ── Black hero ──────────────────────────────────────────────── */
.mob-account-hero {
    background: #0a0a0a;
    color: #fff;
    padding: 48px 20px 36px;
    text-align: center;
}

.mob-account-welcome {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.mob-account-name {
    font-size: 22px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

/* ── Horizontal tab nav ──────────────────────────────────────── */
.mob-account-nav {
    border-bottom: 1px solid rgba(10,10,10,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.mob-account-nav::-webkit-scrollbar { display: none; }

.mob-account-nav ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0 8px;
    gap: 0;
}

.mob-account-nav li a {
    display: block;
    padding: 14px 16px;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.mob-account-nav li.active a,
.mob-account-nav li a:hover {
    color: #0a0a0a;
    border-bottom-color: #0a0a0a;
}

/* ── Content area ────────────────────────────────────────────── */
.mob-account-content {
    padding: 28px 20px;
}

.mob-account-content table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.mob-account-content th,
.mob-account-content td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(10,10,10,0.07);
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.04em;
    vertical-align: top;
}

.mob-account-content th {
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    font-weight: 400;
}

.mob-account-content h2,
.mob-account-content h3 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    color: #0a0a0a;
    margin-bottom: 16px;
}

.mob-account-content p,
.mob-account-content label {
    font-size: 11px;
    line-height: 1.7;
    color: #555;
}

.mob-account-content input[type="text"],
.mob-account-content input[type="email"],
.mob-account-content input[type="password"],
.mob-account-content input[type="tel"],
.mob-account-content select {
    width: 100%;
    padding: 12px 14px;
    font-size: 11px;
    border: 1px solid rgba(10,10,10,0.18);
    background: #fff;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    -webkit-appearance: none;
}

.mob-account-content button[type="submit"],
.mob-account-content .button {
    display: inline-block;
    padding: 13px 24px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: #0a0a0a;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mob-account-content button[type="submit"]:hover,
.mob-account-content .button:hover {
    opacity: 0.8;
}

/* ── Customer service strip ──────────────────────────────────── */
.mob-account-service {
    border-top: 1px solid rgba(10,10,10,0.08);
    padding: 28px 20px 48px;
    text-align: center;
}

.mob-account-service__heading {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}

.mob-account-service p {
    font-size: 11px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 4px;
}

.mob-account-service a {
    color: #0a0a0a;
    text-decoration: none;
}

.mob-account-service__links {
    margin-top: 12px !important;
    font-size: 10px !important;
    letter-spacing: 0.1em;
}

.mob-account-service__links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   HOMEPAGE — MOBILE LAYOUT MIRRORING
   Retains the exact desktop editorial grid structure on narrow screens.
   Sections stay side-by-side; heights scale to the viewport gracefully.
   ========================================================================== */

@media (max-width: 768px) {

    /* Hero: natural height — video not cropped */
    .hp-hero,
    .hp-video-wrapper {
        height: auto !important;
    }

    .hp-video-wrapper .hp-media {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Split editorial: keep the 2-column grid — never stack, height from image */
    .hp-split-editorial {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 !important;
        height: auto !important;
        align-items: stretch !important;
    }

    .hp-split-block {
        height: auto !important;
    }

    .hp-split-block .hp-media {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Full marquee: natural image height — nothing cropped */
    .hp-full-editorial {
        height: auto !important;
    }

    .hp-full-block .hp-media {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Overlay text: tighter positioning for narrower panels */
    .hp-overlay-content {
        bottom: 7% !important;
        left: 5% !important;
        gap: 8px !important;
    }

    /* THE LIVING ARCHIVE: dead-center on mobile too */
    .hp-overlay-content--centered {
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Typography: scale down gracefully — tight letter-spacing preserved */
    .hp-title {
        font-size: clamp(16px, 5vw, 24px) !important;
        letter-spacing: -0.03em !important;
        animation-duration: 0.9s !important;
    }

    .hp-cta {
        font-size: 9px !important;
        letter-spacing: 0.16em !important;
    }

    /* Disable the slow zoom hover on touch devices */
    .hp-split-block .hp-media,
    .hp-full-block .hp-media {
        transition: none !important;
    }

} /* end mobile homepage mirror */

/* ==========================================================================
   HIGH-PRECISION NOCTURNE DOWN-SCALE MIRROR (MOBILE & TABLET ≤ 768px)
   Supersedes older §2–§4 rules above. Locks the desktop layout into a
   clean proportional down-scale — no stacking, no carousel, no reflow.
   ========================================================================== */
@media (max-width: 768px) {

    /* Body: standard fixed-header spacing, no layout shift */
    body.page-template-page-nocturne {
        padding-top: 72px !important;
    }

    /* 1. Header — solid white from the start, matching the policy page.
          style.css already sets background:#fff for all non-hero pages;
          we reinforce it here so no other mobile rule can override. */
    body.page-template-page-nocturne .site-header {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(10,10,10,0.1) !important;
        box-shadow: 0 2px 24px rgba(0,0,0,0.06) !important;
    }
    body.page-template-page-nocturne .site-header .logo img,
    body.page-template-page-nocturne .site-header .header-right img {
        filter: none !important;
    }
    body.page-template-page-nocturne .site-header .menu-toggle-bar {
        background: #0a0a0a !important;
    }
    body.page-template-page-nocturne .site-header .header-right .header-icon-svg {
        color: #0a0a0a !important;
    }
    body.page-template-page-nocturne .site-header .cart-count {
        color: #0a0a0a !important;
    }

    /* 2. Intro — tight top, clear bottom gap toward first product row */
    body.page-template-page-nocturne .collection-intro {
        padding: 12px 16px 0 !important;
        margin-top: 0 !important;      /* kill style.css margin-top:20px */
        margin-bottom: 20px !important; /* breathing room before product row 1 */
    }
    body.page-template-page-nocturne .collection-intro .sanskrit {
        font-size: 16px !important;
        letter-spacing: 0.04em !important;
    }
    body.page-template-page-nocturne .collection-intro p:not(.sanskrit) {
        font-size: 11px !important;
        letter-spacing: 0.02em !important;
    }

    /* 3. Strict 3-column grid — minimal gap so each column reaches ~130px at 400px */
    body.page-template-page-nocturne .collection-page .product-row ul.products,
    body.page-template-page-nocturne .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px 4px !important;   /* row-gap 14px | column-gap 4px */
        padding: 14px 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body.page-template-page-nocturne .woocommerce ul.products li.product,
    body.page-template-page-nocturne .collection-page .product-row ul.products li.product {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;    /* allows grid cells to shrink below content size */
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* 4. Product card typography — compact but legible at ~130px column width */
    body.page-template-page-nocturne .woocommerce ul.products li.product h2,
    body.page-template-page-nocturne .collection-page .product-row ul.products li.product h2 {
        font-size: 8px !important;
        letter-spacing: 0.04em !important;
        margin-top: 7px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 2px !important;
    }
    body.page-template-page-nocturne .woocommerce ul.products li.product .price,
    body.page-template-page-nocturne .collection-page .product-row ul.products li.product .price {
        font-size: 8px !important;
        margin-top: 2px !important;
        padding: 0 2px 4px !important;
        display: block !important;
    }

    /* 5. Editorial images — side breathing room, tight vertical margins */
    body.page-template-page-nocturne .editorial-contained {
        padding: 12px 20px !important;  /* 20px left/right whitespace, 12px top/bottom */
        margin: 12px 0 !important;
        box-sizing: border-box !important;
    }
    body.page-template-page-nocturne .editorial-container {
        width: 100% !important;
    }
    body.page-template-page-nocturne .editorial-container img,
    body.page-template-page-nocturne .editorial img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        max-height: 55vh !important;
        display: block !important;
    }

    /* 6. Split grid — strict side-by-side, portrait crop, tight margins */
    body.page-template-page-nocturne .split-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        margin: 12px 0 !important;
    }
    body.page-template-page-nocturne .split-grid img {
        width: 100% !important;
        height: 40vh !important;
        object-fit: cover !important;
    }

} /* end nocturne high-precision mirror */

/* ============================================================
   CART — PRADA-STYLE SINGLE COLUMN + STICKY SUMMARY
   Kill the desktop padding stack, then rebuild as:
   [items list] → scroll → [totals + checkout + terms + accordions]
   The summary col sticks to bottom so subtotal is always visible.
============================================================ */
@media (max-width: 768px) {

    /* ── Page shell: kill ALL conflicting top padding from style.css ── */
    .md-cart-page-wrap {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: auto !important; /* FIX: override the desktop calc(100vh-72px) */
    }

    /* The .page-template-template-cart specificity override */
    .page-template-template-cart .md-cart-page-wrap {
        min-height: auto !important;
    }

    .md-cart-page {
        padding: 0 0 120px !important; /* bottom room for sticky bar */
        background: #ffffff !important;
        min-height: auto !important;
    }

    /* ── Suppress WooCommerce notices wrapper height on cart page ── */
    .page-template-template-cart .woocommerce-notices-wrapper,
    .page-template-template-wishlist .woocommerce-notices-wrapper {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── Order-pay page: clear fixed header + proper mobile layout ── */
    .woocommerce-order-pay main.site-main,
    .woocommerce-order-pay .woocommerce {
        padding: 16px 20px 80px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* ── Order-pay: make the shop_table responsive on mobile ── */
    .woocommerce-order-pay .shop_table {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 12px !important;
    }

    .woocommerce-order-pay .shop_table th,
    .woocommerce-order-pay .shop_table td {
        padding: 8px 4px !important;
        word-break: break-word !important;
    }

    /* ── Suppress order-pay notices wrapper ── */
    .woocommerce-order-pay .woocommerce-notices-wrapper {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── Single column: items stacked, summary below ── */
    .md-cart-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        max-width: 100% !important;
    }

    /* ── Items column ── */
    .md-cart-items-col {
        padding: 16px 20px 0 !important;
        min-width: 0 !important;
    }

    /* Heading */
    .md-cart-heading {
        font-size: 12px !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        margin: 0 0 20px !important;
        padding-bottom: 16px !important;
        border-bottom: 1px solid rgba(10,10,10,0.1) !important;
    }

    /* Each cart item */
    .md-cart-item {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        gap: 16px !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid rgba(10,10,10,0.08) !important;
        align-items: flex-start !important;
    }

    .md-cart-item-thumb {
        flex: unset !important;
        width: 110px !important;
    }

    .md-cart-item-thumb img,
    .md-cart-item-thumb a img {
        width: 100% !important;
        aspect-ratio: 1707 / 2560 !important;
        object-fit: cover !important;
        object-position: top center !important;
        display: block !important;
    }

    .md-cart-item-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 148px !important; /* matches thumb at 3:4 */
    }

    .md-cart-item-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .md-cart-item-name,
    .md-cart-item-name a {
        font-size: 12px !important;
        letter-spacing: 0.04em !important;
        line-height: 1.4 !important;
        color: #0a0a0a !important;
        text-decoration: none !important;
        margin: 0 0 6px !important;
    }

    .md-cart-item-meta dl.variation dt,
    .md-cart-item-meta dl.variation dd {
        font-size: 11px !important;
        color: #666 !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }

    .md-cart-item-qty-label {
        font-size: 11px !important;
        color: #666 !important;
        margin: 4px 0 0 !important;
    }

    .md-cart-item-price {
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #0a0a0a !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .md-cart-item-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto !important;
        padding-top: 10px !important;
    }

    .md-cart-item-actions-left {
        display: flex !important;
        gap: 14px !important;
    }

    .md-cart-action,
    .md-cart-wishlist-link {
        font-size: 11px !important;
        color: #0a0a0a !important;
        text-decoration: underline !important;
        text-underline-offset: 3px !important;
        text-decoration-thickness: 1px !important;
    }

    .md-cart-action-pipe {
        display: none !important;
    }

    /* ── Summary column: sticky bar fixed to bottom ── */
    .md-cart-summary-col {
        position: static !important; /* scrolls with page — sits below items */
        padding: 0 !important;
        margin-top: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid rgba(10,10,10,0.1) !important;
    }

    /* Totals box: full-width, no extra padding */
    .md-cart-totals {
        padding: 0 20px 40px !important;
        background: #ffffff !important;
    }

    /* Subtotal row */
    .md-ct-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(10,10,10,0.1) !important;
    }

    .md-ct-label {
        font-size: 14px !important;
        letter-spacing: 0.02em !important;
        color: #0a0a0a !important;
    }

    .md-ct-value {
        font-size: 14px !important;
        font-weight: 400 !important;
        color: #0a0a0a !important;
    }

    /* Checkout CTA */
    .md-ct-checkout-area {
        margin: 20px 0 16px !important;
    }

    .md-ct-checkout-area .checkout-button,
    .md-ct-checkout-area a.checkout-button {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #0a0a0a !important;
        color: #ffffff !important;
        text-align: center !important;
        padding: 16px 20px !important;
        font-size: 11px !important;
        font-weight: 400 !important;
        letter-spacing: 0.18em !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Terms */
    .md-ct-terms {
        font-size: 10px !important;
        line-height: 1.6 !important;
        color: #888 !important;
        text-align: center !important;
        margin: 0 0 24px !important;
    }

    /* Accordions */
    .md-ct-accordions {
        border-top: 1px solid rgba(10,10,10,0.1) !important;
    }

    details.md-ct-accordion {
        border-bottom: 1px solid rgba(10,10,10,0.1) !important;
    }

    summary.md-ct-accordion-toggle {
        font-size: 11px !important;
        padding: 16px 0 !important;
        letter-spacing: 0.1em !important;
    }

    .md-ct-accordion-body {
        padding-bottom: 16px !important;
    }

    .md-ct-accordion-body p {
        font-size: 11px !important;
        line-height: 1.7 !important;
        color: #555 !important;
    }

    /* Wishlist page */
    .md-wishlist-outer {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Checkout page */
    .woocommerce-checkout .woocommerce {
        padding-top: 10px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 60px !important;
    }

    /* Account inner wrappers */
    .woocommerce-account .woocommerce {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Order received page */
    .woocommerce-order-received .woocommerce {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }

}