/* ==========================================================================
    Raj Gharana — fixed-width storefront column (398px on desktop, fluid on mobile)
   Dark theme; the empty space either side is where AdSense side rails land.
   ========================================================================== */

/* Poppins is loaded from inc/header.php with preconnect hints, NOT @import.
   An @import here chains requests — the browser must finish downloading this
   file before it even discovers the font URL — which delays first paint on
   mobile by a full round trip. */

:root {
    --accent:       #4C9EFF;
    --accent-2:     #6EB4FF;
    --accent-dark:  #2F7FE0;
    --gradient:     linear-gradient(135deg, #4C9EFF 0%, #F0629B 100%);
    --ink:          #E8E9EE;
    --muted:        #9A9AA6;
    --line:         #2A2B36;
    --gold:         #E0A93B;
    --gold-2:       #C98F1E;
    --green:        #35C778;
    --play-blue:    #5AA5FF;
    --play-chip:    #1D2130;
    --play-ink:     #E8E9EE;
    --play-muted:   #9C9FAA;

    /* Surfaces — page background vs. raised cards. */
    --bg:           #0E0F14;
    --surface:      #171923;

    /* Width of the page column — the bottom nav matches it exactly. */
    --col-w:        398px;

    /* Single source of truth for the sticky tab bar. The safe-area inset is
       the home-indicator strip on notched iPhones; it must be added to the
       tap-target height, not just used as padding, or the last slice of page
       content ends up hidden behind the bar. */
    --nav-tap:      56px;
    --nav-h:        calc(var(--nav-tap) + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    /* `dvh` tracks the *visible* viewport as the mobile URL bar hides and
       shows. Plain `vh` is locked to the tallest state, which makes the page
       overshoot and jitter while scrolling. `vh` stays as the fallback. */
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image: none;
    background-size: auto;
    /* NOTE: no `background-attachment: fixed` here. On a long page it forces a
       full-height composited layer that Chrome drops mid-scroll, blanking the
       page to white. Scrolling the pattern with the page is the safe default. */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* The page column. Stays narrow so ad side-rails have room to render. */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px 20px;
    position: relative;
    z-index: 1;
    border: 0;
    background-color: var(--bg);
    background-image: none;
    background-size: auto;
    /* `overflow-x: clip` contains the negative-margin sections without creating
       a scroll container, which is what broke painting on long pages. */
    overflow-x: clip;
}

@media (min-width: 480px) {
    .container {
        max-width: 398px;
        padding: 0 16px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    }
}

/* --------------------------------------------------------------- header -- */

/* Brand row was removed, so the header no longer needs to hold space for it. */
.site-header { padding-top: 4px; }

/* -------------------------------------------------------- detail chrome -- */

.store-detail-main {
    margin: 0 -12px;
    padding: 0 24px 20px;
    overflow: hidden;
}
@media (min-width: 480px) {
    .store-detail-main { margin: 0 -16px; }
}
.store-detail-header { padding: 18px 0 8px; }
.store-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 18px 0;
}
.store-detail-actions > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-back {
    position: relative;
    width: 38px;
    height: 38px;
    border: 0;
    font: inherit;
    color: var(--play-muted);
    font-size: 2.7rem;
    line-height: .7;
    background: transparent;
    cursor: pointer;
}

/* -------------------------------------------------------------- titles -- */

.all-games-section { text-align: center; padding-top: 14px; }

.section-title {
    display: inline-block;
    width: auto;
    margin: 0 0 4px;
    padding-bottom: 8px;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 4px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
}
.section-title .count {
    margin-left: 6px;
    font-size: .6em;
    font-weight: 700;
    color: var(--muted);
}

.no-results { margin: 20px 0; font-size: .9rem; color: var(--muted); }
.no-results[hidden] { display: none; }

/* ---------------------------------------------------------------- misc -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border: 0;
    border-radius: 1rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
    transition: all .2s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--wide { width: 100%; padding: .75rem 1rem; }

/* Ad slots — matched to the reference placements. */
.ad-slot { margin: 10px 0; text-align: center; }
.ad-slot.ad-top { min-height: 280px; }
.ad-slot.ad-mid { min-height: 250px; }
.ad-slot.ad-bottom { min-height: 250px; }
.ad-slot > div[id^="gpt-ad-"] { min-height: inherit; }

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 100px;
    border: 1px dashed #383A48;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B6E7C;
    background: #161822;
}
.ad-top .ad-placeholder { min-height: 280px; }
.ad-mid .ad-placeholder,
.ad-bottom .ad-placeholder { min-height: 250px; }

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 16px 0;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}
.footer-copy { width: 100%; text-align: center; font-size: .68rem; color: #6B6E7C; }

.reward-section {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid rgba(76, 158, 255, .75);
    border-radius: 8px;
    background: var(--surface);
}
.coin-display {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 82px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--accent);
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    background: var(--bg);
}
.earn-coins-btn {
    position: relative;
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    padding: 8px 24px 8px 14px;
    border: 0;
    border-radius: 23px;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    background: var(--accent-dark);
    cursor: pointer;
}
.earn-coins-btn:hover { background: var(--accent); }
.earn-coins-btn:disabled { opacity: .65; cursor: wait; }
.earn-coins-btn .btn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-tag {
    position: absolute;
    top: 3px;
    right: 8px;
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .7);
    pointer-events: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 200;
    transform: translateX(-50%);
    padding: 11px 20px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    animation: popIn .2s ease;
}
.toast[hidden] { display: none; }

/* ------------------------------------------------------------- a11y ----- */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------- footer ------ */

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    width: 100%;
}
.footer-links a {
    font-size: .74rem;
    font-weight: 600;
    color: var(--accent);
}
.footer-links a:hover { text-decoration: underline; }

/* Simple content pages: about / contact / privacy / 404. */
.content-main { padding-top: 6px; }
.content-copy { padding: 4px 2px 20px; color: var(--play-ink); }
.content-copy h2 { margin: 22px 0 8px; font-size: 1.05rem; }
.content-copy p { margin: 0 0 12px; font-size: .88rem; line-height: 1.65; color: var(--play-muted); }
.content-copy a { color: var(--accent); text-decoration: underline; }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-item h2 { margin: 18px 0 6px; font-size: .95rem; }

/* ==========================================================================
   Raj Gharana storefront
   ========================================================================== */

.store-body {
    --store-plum: #702f70;
    --store-plum-dark: #4f1d50;
    --store-ink: #251d22;
    --store-muted: #7a706f;
    --store-line: #e7ded8;
    --store-paper: #fffaf7;
    --store-soft: #f6efeb;
    color: var(--store-ink);
    background: var(--store-paper);
    font-family: "Manrope", sans-serif;
}
.store-body { padding-bottom: var(--nav-h); background: #eee9e6; }
.store-body .container { width: 100%; max-width: var(--col-w); min-height: 100dvh; padding: 0; overflow: clip; z-index: auto; color: var(--store-ink); background: var(--store-paper); box-shadow: 0 8px 34px rgba(45, 29, 37, .14); }
.store-body .content-main { max-width: 860px; margin: 0 auto; padding: 50px 24px 80px; }
.store-body .content-copy { color: var(--store-ink); }
.store-body .content-copy p { color: var(--store-muted); }
.store-body .content-copy a { color: var(--store-plum); }
.store-body .section-title { border-image: none; border-color: var(--store-plum); color: var(--store-ink); font-size: 2.6rem; }
.store-body button, .store-body input, .store-body textarea { font: inherit; }
.store-body h1, .store-body h2, .store-body .store-logo strong, .store-body .footer-brand strong { font-family: "Cormorant Garamond", serif; letter-spacing: 0; }
.announcement { padding: 8px 20px; color: #fff; background: var(--store-plum-dark); text-align: center; font-size: .68rem; letter-spacing: 1.1px; text-transform: uppercase; }
.store-header { position: sticky; top: 0; z-index: 90; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; min-height: 64px; padding: 5px 10px; border-bottom: 1px solid rgba(90, 57, 67, .13); background: rgba(255, 250, 247, .96); backdrop-filter: blur(14px); }
.header-spacer { width: 76px; }
.store-logo { justify-self: center; display: flex; align-items: center; gap: 9px; min-width: 0; height: 42px; white-space: nowrap; }
.store-logo > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--store-plum); border-radius: 50%; font-family: "Cormorant Garamond", serif; font-size: 1.05rem; font-weight: 700; line-height: 1; color: var(--store-plum); }
.store-logo strong { display: flex; align-items: center; height: 36px; padding-top: 1px; font-size: 1.18rem; line-height: 1; }
.store-logo small { display: none; }
.store-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.store-nav a { position: relative; font-size: .78rem; font-weight: 600; }
.store-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--store-plum); transform: scaleX(0); transition: transform .2s; }
.store-nav a:hover::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; gap: 0; }
.header-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; color: var(--store-ink); background: transparent; cursor: pointer; }
.header-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu-button { display: none; }
.cart-count { position: absolute; top: 2px; right: 1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: #fff; background: var(--store-plum); font-size: .6rem; font-weight: 700; }
.cart-count[hidden] { display: none; }
.store-search { position: sticky; top: 82px; z-index: 80; padding: 18px clamp(20px, 8vw, 120px); border-bottom: 1px solid var(--store-line); background: var(--store-paper); }
.store-search[hidden] { display: none; }
.store-search label { display: block; margin-bottom: 7px; font-size: .72rem; font-weight: 700; }
.store-search div { display: flex; }
.store-search input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--store-line); background: #fff; }
.store-search button { padding: 0 24px; border: 0; color: #fff; background: var(--store-plum); cursor: pointer; }
.store-body .ad-slot { margin: 10px 12px; }
.store-body .ad-placeholder { border-color: var(--store-line); color: var(--store-muted); background: var(--store-soft); }

.store-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: var(--col-w);
    min-height: var(--nav-h);
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--store-line);
    background: rgba(255, 250, 247, .97);
    box-shadow: 0 -4px 18px rgba(45, 29, 37, .1);
    backdrop-filter: blur(12px);
}
.store-tab { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-width: 0; min-height: var(--nav-tap); padding: 5px 2px; border: 0; color: var(--store-muted); background: transparent; font: inherit; cursor: pointer; }
.store-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.store-tab span { font-size: .58rem; font-weight: 700; }
.store-tab.is-active { color: var(--store-plum); }
.tab-cart-count { position: absolute; top: 3px; left: calc(50% + 8px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; color: #fff; background: var(--store-plum); font-size: .52rem; }
.tab-cart-count[hidden] { display: none; }

.hero-slider { position: relative; height: min(74vh, 760px); min-height: 520px; overflow: hidden; background: #dcc9c4; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 12, 17, .7) 0%, rgba(25, 12, 17, .16) 58%, transparent 100%); }
.hero-content { position: absolute; top: 50%; left: max(7vw, 32px); width: min(520px, 70vw); color: #fff; transform: translateY(-50%); animation: storeReveal .65s ease both; }
.hero-content p, .section-heading p, .product-kicker { margin: 0 0 10px; font-size: .68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-content h1 { margin: 0 0 12px; font-size: clamp(3.3rem, 6vw, 6rem); line-height: .88; }
.hero-content > span { display: block; max-width: 440px; margin-bottom: 25px; font-size: .95rem; line-height: 1.6; }
.hero-dots { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dot.is-active { background: #fff; }
.store-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 25px; border: 1px solid var(--store-plum); border-radius: 2px; color: #fff; background: var(--store-plum); font-weight: 700; font-size: .78rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.store-button:hover { background: var(--store-plum-dark); transform: translateY(-1px); }
.store-button--light { border-color: #fff; color: var(--store-ink); background: #fff; }
.store-button--outline { color: var(--store-plum); background: transparent; }

.store-section { max-width: 1320px; margin: 0 auto; padding: 78px clamp(18px, 4vw, 60px) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading p, .product-kicker { color: var(--store-plum); }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: .95; }
.section-heading > a, .section-heading > span { padding-bottom: 4px; color: var(--store-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.category-row, .product-row, .filter-chips { scrollbar-width: none; }
.category-row::-webkit-scrollbar, .product-row::-webkit-scrollbar, .filter-chips::-webkit-scrollbar { display: none; }
.category-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--store-soft); }
.category-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 9, 14, .72)); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-tile:hover img { transform: scale(1.035); }
.category-tile strong { position: absolute; right: 14px; bottom: 14px; left: 14px; z-index: 1; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; }
.product-row { display: grid; grid-auto-columns: minmax(220px, 24%); grid-auto-flow: column; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.product-card { min-width: 0; scroll-snap-align: start; }
.product-card.is-hidden { display: none; }
.product-card-image { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--store-soft); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-image img { transform: scale(1.025); }
.sale-badge, .new-badge { position: absolute; z-index: 1; top: 10px; padding: 6px 9px; font-size: .58rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.sale-badge { right: 10px; color: #fff; background: var(--store-plum); }
.new-badge { left: 10px; color: var(--store-plum); background: #fff; }
.product-card-copy { padding: 13px 2px 4px; }
.product-card h3 { min-height: 42px; margin: 0 0 9px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .82rem; line-height: 1.5; font-weight: 600; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.product-price strong { font-size: .95rem; }
.product-price del { color: #a19895; font-size: .72rem; }
.catalog-section { padding-bottom: 80px; }
.filter-chips { display: flex; gap: 9px; margin: 0 0 28px; overflow-x: auto; }
.filter-chip { flex: none; padding: 9px 15px; border: 1px solid var(--store-line); border-radius: 20px; color: var(--store-muted); background: transparent; font-size: .72rem; cursor: pointer; }
.filter-chip.is-active { border-color: var(--store-plum); color: #fff; background: var(--store-plum); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
.load-more { display: flex; margin: 40px auto 0; }
.load-more[hidden] { display: none; }
.empty-catalog { padding: 50px 0; text-align: center; color: var(--store-muted); }
.store-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: #d9cbc3; }
.store-promise div { display: flex; flex-direction: column; gap: 5px; padding: 36px clamp(22px, 4vw, 55px); background: var(--store-soft); text-align: center; }
.store-promise strong { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; }
.store-promise span { color: var(--store-muted); font-size: .72rem; }

.breadcrumbs { max-width: 1320px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 60px); display: flex; gap: 8px; color: var(--store-muted); font-size: .7rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(34px, 6vw, 90px); max-width: 1320px; margin: 0 auto; padding: 10px clamp(18px, 4vw, 60px) 60px; }
.product-gallery { min-width: 0; }
.product-stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--store-soft); }
.product-stage > img { width: 100%; height: 100%; object-fit: contain; }
.detail-sale-badge { position: absolute; top: 16px; left: 16px; padding: 8px 12px; color: #fff; background: var(--store-plum); font-size: .67rem; font-weight: 700; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.product-thumb { flex: none; width: 72px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid transparent; background: var(--store-soft); cursor: pointer; }
.product-thumb.is-selected { border-color: var(--store-plum); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: 15px; }
.product-info h1 { margin: 0 0 8px; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: .98; }
.product-id, .tax-note { margin: 0; color: var(--store-muted); font-size: .68rem; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 24px 0 4px; }
.detail-price strong { font-size: 1.5rem; }
.detail-price del { color: #a19895; font-size: .88rem; }
.detail-price span { color: #28775c; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.option-group { margin: 28px 0 0; padding: 0; border: 0; }
.option-group legend { width: 100%; margin-bottom: 11px; font-size: .76rem; font-weight: 600; }
.text-button { float: right; padding: 0; border: 0; color: var(--store-plum); background: none; font-size: .7rem; text-decoration: underline; cursor: pointer; }
.color-options, .size-options { display: flex; flex-wrap: wrap; gap: 9px; }
.color-option { display: grid; place-items: center; width: 38px; height: 38px; padding: 4px; border: 1px solid var(--store-line); border-radius: 50%; background: transparent; cursor: pointer; }
.color-option span { width: 100%; height: 100%; border: 1px solid rgba(0,0,0,.09); border-radius: 50%; background: var(--swatch); }
.color-option.is-selected { border-color: var(--store-plum); box-shadow: 0 0 0 1px var(--store-plum); }
.size-option { min-width: 66px; height: 42px; padding: 0 13px; border: 1px solid var(--store-line); color: var(--store-ink); background: transparent; font-size: .72rem; cursor: pointer; }
.size-option.is-selected { border-color: var(--store-plum); color: #fff; background: var(--store-plum); }
.size-option:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.selection-error { margin: 8px 0 0; color: #ad3038; font-size: .7rem; }
.selection-error[hidden] { display: none; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 18px; font-size: .76rem; font-weight: 600; }
.quantity-control { display: grid; grid-template-columns: 38px 38px 38px; align-items: center; border: 1px solid var(--store-line); }
.quantity-control button { height: 38px; border: 0; background: transparent; cursor: pointer; }
.quantity-control output { text-align: center; font-size: .75rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-note { display: flex; flex-direction: column; gap: 4px; margin: 22px 0; padding: 17px; border-left: 3px solid var(--store-plum); background: var(--store-soft); }
.delivery-note strong { font-size: .78rem; }
.delivery-note span { color: var(--store-muted); font-size: .68rem; line-height: 1.5; }
.product-accordion { border-top: 1px solid var(--store-line); }
.product-accordion:last-of-type { border-bottom: 1px solid var(--store-line); }
.product-accordion summary { padding: 18px 0; font-size: .78rem; font-weight: 700; cursor: pointer; }
.product-accordion p, .description-copy { margin: 0; padding: 0 0 20px; color: var(--store-muted); font-size: .72rem; line-height: 1.75; }
.related-section { padding-bottom: 80px; }

.store-footer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; padding: 55px clamp(20px, 6vw, 90px) 28px; color: #f9f1ed; background: #2c2026; }
.footer-brand strong { font-size: 2.2rem; }
.footer-brand p { max-width: 420px; color: #bfaeb5; font-size: .72rem; line-height: 1.7; }
.store-footer nav { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; }
.store-footer nav a { color: #dcced3; font-size: .72rem; }
.store-footer > p { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid #4c3c43; color: #9f8e95; font-size: .62rem; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(25, 15, 20, .46); }
.drawer-backdrop[hidden] { display: none; }
.checkout-flow { position: fixed; top: 0; right: max(0px, calc((100vw - var(--col-w)) / 2)); bottom: 0; z-index: 120; width: min(var(--col-w), 100%); overflow: hidden; color: var(--store-ink); background: var(--store-paper); box-shadow: 0 0 45px rgba(30,18,23,.22); transform: translateY(102%); transition: transform .3s ease; }
.checkout-flow.is-open { transform: translateY(0); }
.flow-screen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.flow-screen[hidden] { display: none; }
.flow-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; flex: 0 0 auto; min-height: 72px; padding: max(8px, env(safe-area-inset-top, 0px)) 14px 8px; border-bottom: 1px solid var(--store-line); background: var(--store-paper); }
.flow-header h2 { margin: 0; font-size: 2rem; line-height: 1; }
.flow-back, .flow-icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; color: var(--store-ink); background: transparent; font-size: 1.55rem; cursor: pointer; }
.flow-icon-button { color: var(--store-plum); font-size: .58rem; font-weight: 700; }
.flow-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.flow-content { flex: 1; padding: 18px 14px 28px; }
.cart-items { flex: 1; padding: 8px 18px; }
.cart-item { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--store-line); }
.cart-item > img { width: 104px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--store-soft); }
.cart-item h3 { margin: 2px 0 4px; font-size: .76rem; line-height: 1.45; }
.cart-item p { margin: 0 0 5px; color: var(--store-muted); font-size: .65rem; }
.cart-item strong { font-size: .77rem; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-item-actions button:not(.remove-item) { width: 25px; height: 25px; padding: 0; border: 1px solid var(--store-line); background: transparent; cursor: pointer; }
.cart-item-actions span { min-width: 12px; text-align: center; font-size: .7rem; }
.cart-item-actions .remove-item { margin-left: auto; padding: 0; border: 0; color: var(--store-muted); background: transparent; font-size: .62rem; text-decoration: underline; cursor: pointer; }
.cart-empty { display: flex; flex: 1; min-height: 190px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 28px 20px; color: var(--store-muted); }
.cart-empty strong { color: var(--store-ink); font-family: "Cormorant Garamond", serif; font-size: 1.6rem; }
.cart-empty span { font-size: .72rem; }
.cart-empty[hidden] { display: none; }
.flow-footer { flex: 0 0 auto; padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--store-line); background: #fff; }
.cart-summary { padding: 15px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--store-line); background: #fff; }
.cart-summary[hidden] { display: none; }
.cart-summary > div, .order-summary-card > div { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .74rem; }
.summary-total { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--store-line); font-size: .86rem !important; font-weight: 700; }
.cart-summary .store-button, .flow-footer .store-button, .flow-form-footer .store-button { width: 100%; margin-top: 12px; }
.drawer-open { overflow: hidden; }
.store-body.drawer-open .container { overflow: visible; }

.checkout-form { flex: 1; padding: 20px 14px 28px; }
.address-type { margin: 0 0 18px; padding: 0; border: 0; }
.address-type legend { margin-bottom: 10px; font-size: .78rem; font-weight: 700; }
.address-type > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.address-type input { position: absolute; opacity: 0; pointer-events: none; }
.address-type span { display: grid; place-items: center; min-height: 40px; border: 1px solid #cdbfb4; border-radius: 20px; color: var(--store-muted); font-size: .68rem; font-weight: 700; }
.address-type input:checked + span { border-color: #f6e8da; color: #6a4028; background: #f9ecdf; }
.flow-card { margin-bottom: 16px; padding: 18px 16px; border: 1px solid var(--store-line); border-radius: 8px; background: rgba(255,255,255,.72); }
.flow-card h3 { margin: 0 0 18px; font-family: "Cormorant Garamond", serif; font-size: 1.65rem; font-weight: 600; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h3 { margin-bottom: 12px; }
.delivery-card { min-height: 0; }
.checkout-form .flow-card { display: grid; gap: 13px; }
.checkout-form label:not(.payment-option) { display: grid; gap: 5px; color: var(--store-muted); font-size: .64rem; }
.checkout-form label span { color: var(--store-muted); }
.checkout-form input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #cdbfb4; border-radius: 4px; color: var(--store-ink); background: #fff; }
.checkout-form small, .payment-option small { color: var(--store-muted); font-size: .6rem; line-height: 1.5; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.default-address { display: flex !important; align-items: center; justify-content: space-between; margin: 20px 4px; color: var(--store-ink) !important; font-size: .76rem !important; }
.default-address input { width: 42px; height: 23px; accent-color: var(--store-plum); }
.flow-form-footer { padding-top: 10px; }
.payment-option { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; margin: 15px 0; font-size: .75rem; }
.payment-option input { width: 21px; height: 21px; margin: 1px 0 0; accent-color: var(--store-plum); }
.payment-option span { display: grid; gap: 4px; }
.payment-option strong { font-weight: 600; }
.payment-note { margin: 16px 0 0; padding: 12px; border: 1px solid var(--store-line); border-radius: 6px; color: var(--store-muted); font-size: .64rem; line-height: 1.5; }
.order-summary-card > div:last-child { margin-bottom: 0; }
.order-reference-label { margin: 0 0 4px; color: #c58e6a; font-size: .6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.order-reference { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.order-reference-copy { margin: 5px 0 18px; color: var(--store-muted); font-size: .64rem; line-height: 1.55; }
.review-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--store-line); }
.review-item:last-child { padding-bottom: 0; border-bottom: 0; }
.review-item div { display: grid; gap: 4px; }
.review-item strong, .review-item b { font-size: .7rem; line-height: 1.45; }
.review-item span, .review-address span, #reviewPayment { color: var(--store-muted); font-size: .64rem; }
.review-address { display: grid; gap: 4px; }
.review-address strong { margin-bottom: 3px; }
.review-actions { display: grid; gap: 8px; }
.whatsapp-button { border-color: #22c96b; background: #22c96b; }
.text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 12px; border: 0; color: var(--store-plum); background: transparent; font-size: .7rem; font-weight: 700; cursor: pointer; }
.order-sent-screen { text-align: center; }
.order-sent-content { display: flex; align-items: center; flex: 1; flex-direction: column; padding: 42px 24px 28px; }
.order-sent-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 14px; color: #fff; background: #338b58; font-size: 2.2rem; font-weight: 700; }
.order-sent-screen h2 { margin: 0 0 8px; font-size: 3rem; }
.order-sent-content > strong { font-size: .9rem; }
.order-sent-content > p { max-width: 310px; margin: 18px 0 28px; color: var(--store-muted); font-size: .72rem; line-height: 1.6; }
.order-sent-content .flow-ad { width: 100%; }
.order-sent-actions { display: grid; gap: 8px; width: 100%; }
.order-sent-actions .store-button { margin-top: 0; }

.size-guide { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 30px; border: 0; border-radius: 4px; color: var(--store-ink); background: var(--store-paper); box-shadow: 0 25px 80px rgba(31,18,24,.25); }
.size-guide::backdrop { background: rgba(25,15,20,.6); }
.size-guide .dialog-close { position: absolute; top: 12px; right: 12px; }
.size-guide h2 { margin: 0 35px 5px 0; font-size: 2.2rem; line-height: 1; }
.size-guide p { color: var(--store-muted); font-size: .72rem; line-height: 1.6; }
.size-guide table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.size-guide th, .size-guide td { padding: 10px; border-bottom: 1px solid var(--store-line); text-align: left; }

@keyframes storeReveal { from { opacity: 0; transform: translateY(calc(-50% + 18px)); } to { opacity: 1; transform: translateY(-50%); } }

@media (max-width: 800px) {
    .announcement { padding: 7px 12px; font-size: .57rem; }
    .store-header { grid-template-columns: 42px 1fr auto; min-height: 64px; padding: 5px 10px; }
    .mobile-menu-button { display: grid; }
    .store-logo { justify-self: center; grid-template-columns: 34px auto; min-width: 0; }
    .store-logo > span { width: 34px; height: 34px; font-size: 1rem; }
    .store-logo strong { font-size: 1.15rem; }
    .store-logo small { display: none; }
    .store-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--store-line); background: var(--store-paper); }
    .store-nav.is-open { display: flex; }
    .store-nav a { padding: 12px 0; }
    .header-actions { gap: 0; }
    .header-icon { width: 38px; height: 38px; }
    .store-search { top: 64px; padding: 14px; }
    .hero-slider { height: 72vh; min-height: 500px; max-height: 670px; }
    .hero-slide > img { object-position: 58% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(26,12,18,.78) 0%, rgba(26,12,18,.08) 65%); }
    .hero-content { top: auto; right: 22px; bottom: 56px; left: 22px; width: auto; transform: none; animation-name: storeRevealMobile; }
    .hero-content h1 { max-width: 360px; font-size: clamp(3rem, 14vw, 4.4rem); }
    .hero-content > span { margin-bottom: 19px; font-size: .78rem; }
    .hero-dots { right: 18px; bottom: 18px; }
    .store-section { padding: 54px 14px 0; }
    .section-heading { margin-bottom: 18px; }
    .section-heading h2 { font-size: 2.35rem; }
    .category-row { display: flex; gap: 11px; margin-right: -14px; overflow-x: auto; padding-right: 14px; }
    .category-tile { flex: 0 0 42%; }
    .category-tile strong { right: 10px; bottom: 10px; left: 10px; font-size: 1.2rem; }
    .product-row { grid-auto-columns: 44%; gap: 12px; margin-right: -14px; padding-right: 14px; }
    .product-card h3 { font-size: .73rem; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
    .filter-chips { margin-right: -14px; padding-right: 14px; }
    .catalog-section { padding-bottom: 58px; }
    .store-promise { grid-template-columns: 1fr; }
    .store-promise div { padding: 25px 18px; }
    .breadcrumbs { padding: 14px; }
    .product-layout { display: block; padding: 0 0 30px; }
    .product-stage { aspect-ratio: 4 / 5; }
    .product-thumbnails { padding: 0 14px; }
    .product-info { padding: 28px 18px 0; }
    .product-info h1 { font-size: 2.4rem; }
    .product-actions { position: sticky; bottom: 0; z-index: 20; margin: 22px -18px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,250,247,.97); box-shadow: 0 -8px 22px rgba(40,22,30,.08); }
    .product-actions .store-button { min-height: 46px; padding: 10px 8px; }
    .related-section { padding-bottom: 60px; }
    .store-footer { grid-template-columns: 1fr; padding: 40px 20px 24px; }
    .store-footer > p { grid-column: auto; }
    .size-guide { padding: 25px 20px; }
}

@media (min-width: 700px) and (max-width: 800px) {
    .store-section { padding: 64px 28px 0; }
    .category-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }
    .category-tile { aspect-ratio: 4 / 5; }
    .product-row {
        grid-auto-columns: calc((100% - 28px) / 3);
        gap: 14px;
        margin-right: 0;
        padding-right: 0;
    }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 14px; }
    .filter-chips { margin-right: 0; padding-right: 0; }
    .breadcrumbs { padding: 20px 28px; }
    .product-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 28px;
        padding: 10px 28px 60px;
    }
    .product-stage { aspect-ratio: 4 / 5; }
    .product-thumbnails { padding: 0; }
    .product-info { padding: 4px 0 0; }
    .product-info h1 { font-size: 2.25rem; }
    .detail-price { margin-top: 18px; }
    .option-group { margin-top: 22px; }
    .quantity-row { margin-top: 22px; }
    .product-actions {
        position: static;
        margin: 18px 0 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .related-section { padding-bottom: 70px; }
}

@media (max-width: 359px) {
    .size-guide {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        padding: 20px 16px;
    }
    .size-guide h2 { font-size: 1.85rem; }
}

@keyframes storeRevealMobile { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .category-tile img, .product-card-image img, .checkout-flow { transition: none; }
    .hero-content { animation: none; }
}

/* The storefront is intentionally a mobile app column at every viewport.
   Wider screens leave the surrounding gutters free for side-rail ads. */
.store-body .store-header { grid-template-columns: 76px minmax(0, 1fr) 76px; min-height: 64px; padding: 5px 10px; }
.store-body .header-spacer { display: block; width: 76px; }
.store-body .store-logo { justify-self: center; display: flex; grid-template-columns: none; height: 42px; min-width: 0; }
.store-body .store-logo > span { width: 36px; height: 36px; }
.store-body .store-logo strong { display: flex; align-items: center; height: 36px; padding-top: 1px; font-size: 1.18rem; }
.store-body .header-actions { width: 76px; justify-content: flex-end; }
.store-body .store-search { top: 64px; padding: 14px; }
.store-body .hero-slider { height: 72vh; min-height: 500px; max-height: 670px; }
.store-body .hero-slide > img { object-position: 58% center; }
.store-body .hero-shade { background: linear-gradient(0deg, rgba(26,12,18,.78) 0%, rgba(26,12,18,.08) 65%); }
.store-body .hero-content { top: auto; right: 22px; bottom: 56px; left: 22px; width: auto; transform: none; animation-name: storeRevealMobile; }
.store-body .hero-content h1 { max-width: 354px; font-size: clamp(3rem, 14vw, 4.4rem); }
.store-body .hero-content > span { margin-bottom: 19px; font-size: .78rem; }
.store-body .hero-dots { right: 18px; bottom: 18px; }
.store-body .store-section { padding: 54px 14px 0; }
.store-body .section-heading { margin-bottom: 18px; }
.store-body .section-heading h2 { font-size: 2.35rem; }
.store-body .category-row { display: flex; grid-template-columns: none; gap: 11px; margin-right: -14px; padding-right: 14px; overflow-x: auto; }
.store-body .category-tile { flex: 0 0 42%; }
.store-body .category-tile strong { right: 10px; bottom: 10px; left: 10px; font-size: 1.2rem; }
.store-body .product-row { grid-auto-columns: 44%; gap: 12px; margin-right: -14px; padding-right: 14px; }
.store-body .product-card h3 { font-size: .73rem; }
.store-body .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
.store-body .filter-chips { margin-right: -14px; padding-right: 14px; }
.store-body .catalog-section { padding-bottom: 58px; }
.store-body .store-promise { grid-template-columns: 1fr; }
.store-body .store-promise div { padding: 25px 18px; }
.store-body .breadcrumbs { padding: 14px; }
.store-body .product-layout { display: block; padding: 0 0 30px; }
.store-body .product-stage { aspect-ratio: 4 / 5; }
.store-body .product-thumbnails { padding: 0 14px; }
.store-body .product-info { padding: 28px 18px 0; }
.store-body .product-info h1 { font-size: 2.4rem; }
.store-body .product-actions { position: sticky; bottom: calc(var(--nav-h) + 1px); z-index: 20; margin: 22px -18px 0; padding: 10px 14px; background: rgba(255,250,247,.97); box-shadow: 0 -8px 22px rgba(40,22,30,.08); }
.store-body .product-actions .store-button { min-height: 46px; padding: 10px 8px; }
.store-body .related-section { padding-bottom: 60px; }
.store-body .store-footer { grid-template-columns: 1fr; padding: 40px 20px 24px; }
.store-body .store-footer > p { grid-column: auto; }
.store-body .content-main { padding: 36px 18px 70px; }

@media (max-width: 359px) {
    .store-body .store-header { grid-template-columns: 70px minmax(0, 1fr) 70px; padding-inline: 6px; }
    .store-body .header-spacer, .store-body .header-actions { width: 70px; }
    .store-body .store-logo { gap: 6px; }
    .store-body .store-logo > span { width: 32px; height: 32px; font-size: .95rem; }
    .store-body .store-logo strong { font-size: 1.04rem; }
}
