/* Hullygully — storefront theme (modern editorial + warm food retail) */

:root {
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-display: "Fraunces", "Georgia", serif;

    --bg-page: #fffbf0;
    --bg-subtle: #fff5e6;
    --surface: #ffffff;
    --surface-warm: #fffbf7;

    --ink: #1a1814;
    --ink-secondary: #3d3a34;
    --muted: #6b6560;
    --muted-light: #9c9690;

    /* Brand aligned with Hully Gully logo — red + warm gold */
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --brand-soft: #fef2f2;
    --brand-gold: #f59e0b;
    --accent: #0f766e;
    --accent-soft: #ecfdf5;

    --danger: #b91c1c;
    --success: #047857;
    --warning: #d97706;

    --border: rgba(26, 24, 20, 0.09);
    --border-strong: rgba(26, 24, 20, 0.14);
    --ring: rgba(220, 38, 38, 0.25);

    --shadow-xs: 0 1px 2px rgba(26, 24, 20, 0.04);
    --shadow-sm: 0 4px 14px rgba(26, 24, 20, 0.06);
    --shadow-md: 0 12px 32px rgba(26, 24, 20, 0.1);
    --shadow-lg: 0 24px 60px rgba(26, 24, 20, 0.14);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.2s var(--ease);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: clip;
    max-width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: #fffbf0;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(220, 38, 38, 0.035), transparent),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(245, 158, 11, 0.028), transparent);
}

body.cart-open {
    overflow: hidden;
}

body.mobile-nav-open {
    overflow: hidden;
}

.muted {
    color: var(--muted);
}

/* ---------- Toast ---------- */
#toastContainer {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(380px, calc(100vw - 2rem));
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #047857, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.toast.warning {
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #fff;
}

.toast.info {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.65rem clamp(0.85rem, 3vw, 2rem);
    background: rgba(255, 252, 250, 0.92);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 3px solid #facc15;
    box-shadow: var(--shadow-xs);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: clamp(40px, 10vw, 52px);
    width: auto;
    max-width: min(200px, 48vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink-secondary);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--brand-soft);
    border-color: rgba(220, 38, 38, 0.28);
    color: var(--brand-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.75rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-secondary);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.35rem 0;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Bag control: icon + count only (no awkward label + brackets) */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(165deg, #292524 0%, #1c1917 100%);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.06);
}

.cart-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring), var(--shadow-md);
}

.cart-btn i {
    font-size: 1.15rem;
    color: #facc15;
}

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

.cart-count-pill {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand), #991b1b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
    border: 2px solid var(--surface);
}

@media (min-width: 769px) {
    .cart-btn {
        width: auto;
        height: auto;
        min-height: 2.65rem;
        padding: 0.5rem 0.85rem 0.5rem 0.95rem;
        gap: 0.5rem;
        border-radius: var(--radius-full);
    }

    .cart-btn-text {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        overflow: visible;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-size: 0.68rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.92);
    }

    .cart-count-pill {
        position: static;
        min-width: 1.35rem;
        height: 1.35rem;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
}

/* ---------- Hero + product showcase ---------- */
.hero--brand {
    margin: 0 auto 2rem;
    width: 100%;
    max-width: min(1200px, 100%);
    padding: 0 clamp(0.5rem, 3vw, 1.25rem);
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    background: linear-gradient(145deg, #1c1917 0%, #3f0f0f 42%, #7f1d1d 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.75rem);
    max-width: 36rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(254, 243, 199, 0.95);
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(253, 224, 71, 0.25);
}

.hero h2,
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.5vw, 2.85rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    text-wrap: balance;
    color: #fff;
}

.hero p,
.hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.25rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
    margin-top: 0.35rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.hero-cta-primary {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #1c1917;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-marketplaces {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-top: 0.25rem;
}

.hero-mp-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    width: 100%;
    margin-bottom: 0.15rem;
}

@media (min-width: 480px) {
    .hero-mp-title {
        width: auto;
        margin-bottom: 0;
        margin-right: 0.35rem;
    }
}

.hero-mp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    background: linear-gradient(180deg, #fde68a, #fbbf24);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), filter var(--transition);
}

.hero-mp-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.hero-mp-link--fk {
    background: linear-gradient(180deg, #fff, #e0e7ff);
    color: #312e81;
    padding: 0.35rem 0.75rem;
}

.hero-fk-logo {
    display: block;
    height: 18px;
    width: auto;
    max-width: 76px;
    object-fit: contain;
}

.hero-showcase {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0.75rem 0 0.5rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .hero-showcase {
        justify-content: center;
        padding: 1rem 0.5rem 0.75rem;
        min-height: 100%;
    }
}

.hero-slider-viewport {
    overflow: hidden;
    width: 100%;
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 900px) {
    .hero-slider-viewport {
        align-items: center;
        min-height: 280px;
    }
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s var(--ease);
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0.5rem clamp(0.75rem, 4vw, 1.5rem) 0.25rem;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .hero-slide {
        align-items: center;
        padding-bottom: 0.5rem;
    }
}

.hero-slide-hit {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: block;
    max-width: min(220px, 72vw);
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s var(--ease);
}

.hero-slide--clickable .hero-slide-hit {
    cursor: pointer;
}

.hero-slide-hit:hover,
.hero-slide-hit:focus-visible {
    transform: translateY(-4px) scale(1.02);
    outline: none;
}

.hero-slide-hit:focus-visible {
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.5);
    border-radius: var(--radius);
}

.hero-slide-hit img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Partner / marketplace logos in hero carousel */
.hero-slide--partner {
    align-items: center;
}

.hero-slide--partner .hero-slide-hit {
    max-width: min(280px, 85vw);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    padding: clamp(0.65rem, 3vw, 1.1rem) clamp(1rem, 4vw, 1.75rem);
}

.hero-slide--partner .hero-slide-hit img {
    max-height: min(120px, 22vw);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0 0.35rem;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

.hero-slider-dot.is-active {
    background: #fde68a;
    transform: scale(1.2);
}

@keyframes heroPuffFloat {
    0%,
    100% {
        transform: translate(0, 0) rotate(-6deg);
    }
    50% {
        transform: translate(10px, -18px) rotate(8deg);
    }
}

@keyframes heroPuffFloatAlt {
    0%,
    100% {
        transform: translate(0, 0) rotate(5deg) scale(1);
    }
    50% {
        transform: translate(-12px, -14px) rotate(-4deg) scale(1.05);
    }
}

@keyframes heroCrumbDrift {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.35;
    }
    50% {
        transform: translate(8px, -24px);
        opacity: 0.65;
    }
}

/* Cinematic hero: full-bleed photo right, gradient blend, motion, trust under CTA */
.hero--brand.hero--qc.hero--cinematic {
    max-width: none;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: none;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 88% 65% at 10% 42%, rgba(255, 250, 242, 0.98) 0%, transparent 50%),
        radial-gradient(ellipse 50% 45% at 94% 22%, rgba(254, 243, 199, 0.4) 0%, transparent 46%),
        linear-gradient(175deg, #fffdfb 0%, #fffbf4 45%, #fff5eb 100%);
}

.hero--brand.hero--qc.hero--cinematic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: multiply;
}

.hero--brand.hero--qc.hero--cinematic::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background-image: radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.2) 0, transparent 2px),
        radial-gradient(circle at 78% 55%, rgba(234, 88, 12, 0.18) 0, transparent 2px),
        radial-gradient(circle at 45% 75%, rgba(251, 191, 36, 0.25) 0, transparent 1.5px),
        radial-gradient(circle at 60% 20%, rgba(220, 38, 38, 0.12) 0, transparent 2px);
    background-size: 120px 120px, 180px 160px, 100px 100px, 140px 130px;
}

.hero--cinematic .hero-inner--qc {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Phone: flush under header; edge-to-edge image — beat .hero--brand.hero--qc .hero-inner--qc from mobile nav */
@media (max-width: 767px) {
    .hero--brand.hero--qc.hero--cinematic .hero-inner--qc {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: 0;
        padding-bottom: clamp(0.35rem, 2vw, 0.65rem);
    }
}

/* Tablet + desktop: clear sticky header — tight horizontal rhythm */
@media (min-width: 768px) {
    .hero--cinematic .hero-inner--qc {
        padding-left: max(clamp(0.65rem, 1.8vw, 1.35rem), env(safe-area-inset-left));
        padding-right: 0;
        padding-top: max(
            0.2rem,
            calc(0.35rem + clamp(40px, 10vw, 52px) + 0.35rem + 3px + 0.2rem + env(safe-area-inset-top, 0px))
        );
        padding-bottom: clamp(0.35rem, 1.1vw, 0.65rem);
    }
}

.hero-cinematic-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
}

/* ~45% copy / 55% photo; trust bar full width on row 2 (overlaps photo) */
@media (min-width: 768px) {
    .hero-cinematic-grid {
        display: grid;
        grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
        grid-template-rows: minmax(260px, 1fr) auto;
        grid-template-areas:
            "copy visual"
            "trust trust";
        gap: 0;
        align-items: stretch;
        min-height: min(48vh, 520px);
        padding-bottom: 0.35rem;
    }
}

@media (min-width: 1200px) {
    .hero-cinematic-grid {
        min-height: min(46vh, 540px);
        grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    }
}

@media (max-width: 767px) {
    .hero--cinematic .hero-visual-block {
        order: -1;
    }
}

.hero--cinematic .hero-copy-block {
    grid-area: copy;
    position: relative;
    z-index: 4;
    min-width: 0;
    max-width: min(24rem, 100%);
    padding-right: clamp(0.25rem, 1.2vw, 0.65rem);
    padding-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

@media (max-width: 767px) {
    .hero--cinematic .hero-copy-block {
        max-width: none;
        justify-content: flex-start;
        padding: clamp(0.5rem, 2.5vw, 0.7rem) clamp(0.8rem, 3.5vw, 1.05rem) clamp(0.85rem, 3.5vw, 1.1rem);
        padding-left: max(clamp(0.8rem, 3.5vw, 1.05rem), env(safe-area-inset-left));
        padding-right: max(clamp(0.8rem, 3.5vw, 1.05rem), env(safe-area-inset-right));
    }
}

.hero-visual-block {
    position: relative;
    min-width: 0;
    min-height: min(36vh, 280px);
}

@media (min-width: 768px) {
    .hero-visual-block {
        grid-area: visual;
        min-height: 0;
        height: 100%;
    }

    .hero--cinematic .hero-visual-block {
        overflow: hidden;
        background: transparent;
    }
}

@media (max-width: 767px) {
    .hero--cinematic .hero-visual-block {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-height: min(42vh, 300px);
        max-height: min(48vh, 380px);
        background: transparent;
    }
}

.hero-visual-frame {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

/*
 * Photo frame: light tuck under blend only — huge negative left was shifting crop,
 * making the subject feel “stuck left” with dead space on the right of the frame.
 */
@media (min-width: 768px) {
    .hero--cinematic .hero-visual-frame {
        left: clamp(-4%, -2.5vw, -0.5rem);
        right: calc(50% - 50vw);
        top: 0;
        bottom: 0;
        width: auto;
    }
}

.hero-lifestyle-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
    filter: saturate(1.05) contrast(1.02);
}

/* Anchor to the right so the frame fills to the viewport edge (no dead strip) */
.hero--cinematic .hero-lifestyle-img {
    object-fit: cover;
    object-position: 88% 32%;
}

@media (min-width: 768px) {
    .hero--cinematic .hero-lifestyle-img {
        object-fit: cover;
        object-position: 90% 30%;
    }
}

@media (min-width: 1200px) {
    .hero--cinematic .hero-lifestyle-img {
        object-position: 92% 28%;
    }
}

.hero-media-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.35) 0%, transparent 14%),
        linear-gradient(0deg, rgba(255, 251, 244, 0.28) 0%, transparent 12%),
        linear-gradient(180deg, transparent 52%, rgba(67, 20, 6, 0.1) 100%);
}

.hero--cinematic .hero-media-shade {
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.45) 0%, transparent 16%),
        linear-gradient(0deg, rgba(255, 252, 248, 0.32) 0%, transparent 14%),
        linear-gradient(180deg, transparent 50%, rgba(67, 20, 6, 0.08) 100%);
}

.hero-media-blend {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(52%, 22rem);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 251, 240, 1) 0%,
        rgba(255, 247, 232, 0.97) 12%,
        rgba(255, 237, 213, 0.55) 38%,
        rgba(255, 220, 180, 0.12) 72%,
        transparent 100%
    );
}

@media (min-width: 768px) {
    .hero--cinematic .hero-media-blend {
        width: min(62%, 32rem);
        background: linear-gradient(
            90deg,
            rgba(255, 253, 250, 1) 0%,
            rgba(255, 251, 244, 0.97) 10%,
            rgba(255, 247, 236, 0.82) 22%,
            rgba(255, 240, 224, 0.45) 42%,
            rgba(255, 228, 205, 0.14) 62%,
            transparent 92%
        );
    }
}

@media (min-width: 1200px) {
    .hero--cinematic .hero-media-blend {
        width: min(58%, 34rem);
    }
}

@media (max-width: 767px) {
    .hero-media-blend {
        width: 100%;
        height: 48%;
        top: auto;
        bottom: 0;
        background: linear-gradient(
            0deg,
            #fff8f0 0%,
            rgba(255, 251, 240, 0.97) 18%,
            rgba(255, 247, 230, 0.72) 42%,
            rgba(255, 238, 210, 0.28) 68%,
            transparent 100%
        );
    }
}

.hero-crumb {
    position: absolute;
    top: 26%;
    right: 30%;
    width: 7px;
    height: 11px;
    border-radius: 50% 45% 55% 50%;
    background: linear-gradient(145deg, #fdba74, #ea580c 60%, #c2410c);
    box-shadow: 0 2px 4px rgba(180, 83, 9, 0.35);
    z-index: 3;
    animation: heroCrumbDrift 3.8s ease-in-out infinite;
}

.hero-crumb--2 {
    top: 18%;
    right: 22%;
    width: 5px;
    height: 8px;
    animation-delay: 0.6s;
    animation-duration: 4.4s;
}

.hero-crumb--3 {
    top: 38%;
    right: 12%;
    animation-delay: 1.1s;
    animation-duration: 3.2s;
}

.hero-crumb--4 {
    bottom: 28%;
    right: 35%;
    width: 6px;
    height: 9px;
    animation-delay: 0.3s;
}

.hero-crumb--5 {
    top: 52%;
    left: 8%;
    animation-delay: 1.8s;
    animation-duration: 5s;
}

.hero-crumb--6 {
    top: 62%;
    right: 6%;
    width: 4px;
    height: 7px;
    animation-delay: 2.2s;
}

.hero-float-puff {
    position: absolute;
    width: clamp(2rem, 4.2vw, 3.1rem);
    height: clamp(2.35rem, 4.8vw, 3.5rem);
    border-radius: 58% 42% 55% 45% / 52% 48% 51% 49%;
    background: radial-gradient(circle at 32% 28%, #fdba74 0%, #f97316 42%, #c2410c 88%);
    box-shadow:
        inset -4px -3px 8px rgba(255, 255, 255, 0.45),
        inset 3px 4px 10px rgba(127, 29, 29, 0.22),
        0 16px 32px rgba(234, 88, 12, 0.38),
        0 4px 0 rgba(180, 83, 9, 0.15);
    z-index: 4;
    animation: heroPuffFloat 5.2s ease-in-out infinite;
}

.hero-float-puff--a {
    top: 10%;
    right: 14%;
}

.hero-float-puff--b {
    top: 36%;
    right: 6%;
    width: clamp(1.65rem, 3.2vw, 2.4rem);
    height: clamp(1.9rem, 3.6vw, 2.75rem);
    animation: heroPuffFloatAlt 6s ease-in-out infinite 0.4s;
    opacity: 0.95;
}

.hero-float-puff--c {
    bottom: 22%;
    right: 20%;
    animation: heroPuffFloat 4.6s ease-in-out infinite 1s;
}

.hero-float-puff--overlap {
    top: 44%;
    left: clamp(-3rem, -8vw, -1rem);
    right: auto;
    z-index: 5;
    animation: heroPuffFloatAlt 5.5s ease-in-out infinite 0.2s;
}

@media (max-width: 899px) {
    .hero-float-puff--overlap {
        left: 8%;
        top: 38%;
    }

    .hero-crumb--5 {
        left: 18%;
    }
}

@media (min-width: 768px) {
    .hero--cinematic .hero-crumb,
    .hero--cinematic .hero-float-puff {
        display: none;
    }
}

/* Mockup-style checklist (copy column) */
.hero-mock-checks {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    font-size: clamp(0.82rem, 1.6vw, 0.92rem);
    font-weight: 600;
    color: #44403b;
    line-height: 1.35;
}

.hero-mock-checks li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-mock-checks__ic {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

@media (min-width: 768px) {
    .hero--cinematic .hero-mock-checks {
        margin-bottom: 0.55rem;
        gap: 0.28rem;
        font-size: clamp(0.78rem, 0.85vw + 0.35rem, 0.86rem);
    }

    .hero--cinematic .hero-mock-checks__ic {
        width: 1.2rem;
        height: 1.2rem;
    }

    .hero--cinematic .hero-mock-checks__ic svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 767px) {
    .hero--cinematic .hero-mock-checks {
        margin-bottom: 0.85rem;
    }
}

/* Full-width floating trust bar (mockup bottom chip) */
.hero-trust-bar {
    grid-area: trust;
    position: relative;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0 max(0.75rem, env(safe-area-inset-left)) 0.5rem;
    margin-right: max(0.75rem, env(safe-area-inset-right));
    margin-top: -2rem;
    padding: 0.5rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 10px 40px rgba(120, 53, 15, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

.hero-trust-bar__cell {
    flex: 1 1 auto;
    justify-content: center;
    min-width: min(100%, 9.5rem);
}

.hero-trust-bar__cell:not(:last-child) {
    border-right: 1px solid rgba(120, 53, 15, 0.12);
}

@media (max-width: 767px) {
    .hero-trust-bar {
        margin-top: 0.35rem;
        margin-bottom: 0.65rem;
        border-radius: 1.1rem;
        padding: 0.45rem 0.25rem;
    }

    .hero-trust-bar__cell {
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(120, 53, 15, 0.1);
        padding: 0.35rem 0.5rem;
    }

    .hero-trust-bar__cell:last-child {
        border-bottom: none;
    }
}

.hero-trust-bar .hero-trust-strip-item {
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.35rem 0.85rem;
    font-size: clamp(0.72rem, 1.5vw, 0.82rem);
    font-weight: 700;
    color: #431407;
    gap: 0.5rem;
}

.hero-trust-bar .hero-trust-strip-ic.hero-trust-bar__ic {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #c2410c;
}

@media (min-width: 768px) {
    .hero-trust-bar .hero-trust-strip-item {
        padding: 0.28rem 1rem;
        font-size: 0.72rem;
    }

    .hero-trust-bar .hero-trust-strip-ic.hero-trust-bar__ic {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(251, 146, 60, 0.28);
    pointer-events: auto;
}

.hero-trust-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.72rem, 2vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #431407;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 235, 0.88));
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.1);
}

.hero-trust-strip-ic {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .hero-float-puff,
    .hero-crumb {
        animation: none !important;
    }
}

.hero--qc .hero-eyebrow {
    color: #fff;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid rgba(127, 29, 29, 0.4);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}

.hero--qc .hero-title {
    color: #422006;
    font-size: clamp(2.1rem, 5.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-family: var(--font-display);
}

.hero--cinematic.hero--qc .hero-title {
    font-size: clamp(2.5rem, 7.5vw, 4.25rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: min(11.5em, 100%);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero--qc .hero-lead {
    color: #57534e;
    margin-bottom: 1.5rem;
    max-width: 36rem;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.65;
}

.hero--cinematic.hero--qc .hero-lead {
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.58;
    max-width: 36ch;
    color: #534339;
    margin-bottom: 1.65rem;
}

.hero--cinematic.hero--qc .hero-lead strong {
    font-weight: 800;
    color: #3d2f29;
}

@media (min-width: 768px) {
    .hero--cinematic .hero-copy-block {
        max-width: none;
        padding-right: clamp(0.5rem, 2.2vw, 1.35rem);
    }

    .hero--cinematic.hero--qc .hero-eyebrow {
        margin-bottom: 0.4rem;
        padding: 0.28rem 0.68rem;
        font-size: 0.6rem;
    }

    .hero--cinematic.hero--qc .hero-title {
        font-size: clamp(1.65rem, 2.8vw + 0.5rem, 2.65rem);
        font-weight: 700;
        line-height: 1.07;
        letter-spacing: -0.035em;
        margin-bottom: 0.35rem;
    }

    .hero--cinematic.hero--qc .hero-lead {
        font-size: clamp(0.88rem, 1.1vw + 0.4rem, 1.02rem);
        line-height: 1.48;
        margin-bottom: 0.5rem;
        max-width: 42ch;
    }

    .hero--cinematic .hero-cta-row {
        margin-top: 0;
        gap: 0.35rem 0.8rem;
    }

    .hero--cinematic .hero-qc-btn--primary {
        min-height: 44px;
        padding: 0 1.15rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 767px) {
    .hero--cinematic.hero--qc .hero-title {
        font-size: clamp(1.55rem, 6.2vw, 2.15rem);
        line-height: 1.08;
        margin-bottom: 0.45rem;
    }

    .hero--cinematic.hero--qc .hero-lead {
        font-size: clamp(0.92rem, 3.2vw, 1.05rem);
        line-height: 1.52;
        margin-bottom: 0.85rem;
    }

    .hero--cinematic.hero--qc .hero-eyebrow {
        margin-bottom: 0.55rem;
    }

    .hero--cinematic .hero-qc-btn--primary {
        min-height: 46px;
        font-size: 0.92rem;
    }
}

.hero-qc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-sans);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-qc-btn--primary {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 45%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
    border-radius: 14px;
    min-height: 52px;
    padding: 0 1.85rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-qc-btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 36px rgba(220, 38, 38, 0.45);
    filter: brightness(1.03);
}

.hero-qc-btn--primary:active {
    transform: translateY(0) scale(0.99);
}

.hero--cinematic .hero-qc-btn--primary {
    border: 2px solid rgba(127, 29, 29, 0.35);
    box-shadow:
        0 4px 0 #7f1d1d,
        0 18px 44px rgba(220, 38, 38, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero--cinematic .hero-qc-btn--primary:hover {
    transform: translateY(-4px) scale(1.045);
    box-shadow:
        0 6px 0 #7f1d1d,
        0 22px 50px rgba(220, 38, 38, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    filter: brightness(1.05);
}

.hero--cinematic .hero-qc-btn--primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 2px 0 #7f1d1d,
        0 10px 28px rgba(220, 38, 38, 0.45);
}

.hero-qc-btn--ghost {
    background: var(--surface-warm);
    color: var(--ink-secondary);
    border: 1.5px solid var(--border-strong);
}

.hero-qc-btn--ghost:hover {
    border-color: var(--ink);
    background: var(--surface);
}

.hero--qc .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.hero--qc .hero-cta-row .hero-qc-btn {
    width: 100%;
    justify-content: center;
}

.hero-cta-text-link {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    color: #9a3412;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.25rem;
    text-align: center;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.hero-cta-text-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 5px;
}

@media (min-width: 480px) {
    .hero--qc:not(.hero--lifestyle) .hero-cta-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.85rem 1.25rem;
    }

    .hero--qc:not(.hero--lifestyle) .hero-cta-row .hero-qc-btn {
        width: auto;
    }

    .hero--qc:not(.hero--lifestyle) .hero-cta-text-link {
        text-align: left;
    }

    .hero--lifestyle.hero--qc .hero-cta-row .hero-qc-btn {
        width: auto;
        align-self: flex-start;
    }

    .hero--lifestyle.hero--qc .hero-cta-text-link {
        text-align: left;
        padding-left: 0;
    }
}

/* Distributor modal */
.distributor-sheet {
    max-width: 520px;
    width: 100%;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.distributor-sheet-header {
    padding: 1.35rem 1.35rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fef2f2 0%, var(--surface) 100%);
}

.distributor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.distributor-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.distributor-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.distributor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 520px) {
    .distributor-grid {
        grid-template-columns: 1fr;
    }
}

.distributor-sheet .hg-field {
    margin-bottom: 0.85rem;
}

/* Distributor: OTP inline under work email */
.dist-email-otp-actions {
    margin-top: 0.5rem;
}

.dist-email-otp-actions__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.dist-email-otp-actions__row .btn {
    flex: 0 0 auto;
}

.dist-otp-field-wrap {
    margin-top: 0.65rem;
    max-width: 14rem;
}

.distributor-sheet .hg-input--otp {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
}

.distributor-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
}

.distributor-success-icon {
    font-size: 3rem;
    color: var(--success);
}

.distributor-sheet #distributorFormWrap {
    padding: 1rem 1.35rem 1.35rem;
}

@keyframes snackHeroSpiceDrift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.85;
    }
    50% {
        transform: translate(-6px, 4px) rotate(1.5deg);
        opacity: 1;
    }
}

/* ---------- Snack hero: full-bleed photo, texture, motion ---------- */
.snack-hero {
    position: relative;
    margin: 0 0 1.75rem;
    padding: 0;
    overflow-x: clip;
    overflow-y: visible;
    background: #fffbf0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 12px 36px rgba(154, 52, 18, 0.06);
}

/* Tablet / laptop: one continuous parchment field — matches photo left edge */
@media (min-width: 900px) {
    .snack-hero {
        background:
            radial-gradient(ellipse 95% 88% at 6% 48%, rgba(244, 231, 215, 0.99) 0%, transparent 58%),
            radial-gradient(ellipse 55% 48% at 96% 22%, rgba(255, 228, 196, 0.38) 0%, transparent 52%),
            radial-gradient(ellipse 70% 55% at 72% 100%, rgba(255, 220, 180, 0.12) 0%, transparent 45%),
            linear-gradient(100deg, #f3e5d6 0%, #f5e9dc 22%, #f8f0e4 48%, #fcf6ee 78%, #fffbf0 100%);
    }
}

@media (max-width: 899px) {
    .snack-hero {
        margin: 0 0 1rem;
        box-shadow: none;
        border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    }
}

.snack-hero__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
}

.snack-hero__spice-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    animation: snackHeroSpiceDrift 14s ease-in-out infinite;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(220, 38, 38, 0.35) 0, transparent 2px),
        radial-gradient(circle at 72% 62%, rgba(234, 88, 12, 0.4) 0, transparent 2.5px),
        radial-gradient(circle at 42% 78%, rgba(251, 191, 36, 0.45) 0, transparent 2px),
        radial-gradient(circle at 88% 38%, rgba(249, 115, 22, 0.3) 0, transparent 1.5px),
        radial-gradient(circle at 55% 12%, rgba(180, 83, 9, 0.25) 0, transparent 2px);
    background-size: 140px 130px, 180px 160px, 120px 110px, 100px 100px, 160px 140px;
}

.snack-hero__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "visual"
        "copy";
    gap: 0;
    row-gap: 0;
    column-gap: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 0;
}

@media (min-width: 900px) {
    .snack-hero__shell {
        grid-template-columns: minmax(280px, min(40rem, 56%)) minmax(0, 1fr);
        grid-template-rows: minmax(300px, 1fr);
        grid-template-areas: "copy visual";
        padding-left: max(clamp(1rem, 4vw, 2.75rem), env(safe-area-inset-left));
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        min-height: min(520px, 76vh);
        align-items: stretch;
        /* Pull photo under copy slightly so seam disappears */
        column-gap: 0;
    }
}

.snack-hero__copy {
    grid-area: copy;
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.45rem, 1.8vw, 0.95rem);
    padding: clamp(0.95rem, 3.2vw, 1.75rem) clamp(1.15rem, 4vw, 2.25rem);
    padding-left: max(clamp(1.15rem, 4vw, 2.25rem), env(safe-area-inset-left));
    padding-right: max(clamp(1.15rem, 4vw, 2.25rem), env(safe-area-inset-right));
    padding-bottom: clamp(0.5rem, 2vw, 0.85rem);
}

@media (max-width: 899px) {
    .snack-hero__copy {
        gap: 0.42rem 0.65rem;
        margin-top: -3.25rem;
        padding-top: 2.75rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        background: linear-gradient(
            180deg,
            rgba(255, 251, 240, 0) 0%,
            rgba(255, 251, 240, 0.55) 18%,
            rgba(255, 251, 240, 0.92) 38%,
            #fffbf0 58%
        );
    }
}

@media (min-width: 900px) {
    .snack-hero__copy {
        padding-left: 0;
        padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
        padding-top: clamp(0.5rem, 2vw, 1rem);
        padding-bottom: clamp(0.5rem, 2vw, 1rem);
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Same parchment as section + soft fade into image column */
        background: linear-gradient(
            90deg,
            #f3e5d6 0%,
            #f4e7d8 35%,
            rgba(245, 231, 216, 0.82) 72%,
            rgba(247, 234, 218, 0.28) 92%,
            transparent 100%
        );
        margin-right: clamp(-3.5rem, -7vw, -1.25rem);
        position: relative;
        z-index: 7;
    }

    .snack-hero__copy > * {
        position: relative;
        z-index: 1;
    }
}

.snack-hero__headline {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 5.8vw + 0.5rem, 3.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.038em;
    color: #2d1810;
    text-wrap: balance;
    max-width: 12ch;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9),
        0 12px 28px rgba(255, 240, 220, 0.9);
}

@media (min-width: 900px) {
    .snack-hero__headline {
        max-width: 11ch;
    }
}

.snack-hero__sub {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.14rem);
    line-height: 1.55;
    color: #4b453f;
    max-width: 32ch;
    font-weight: 600;
}

.snack-hero__cta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    margin-top: 0.35rem;
    width: 100%;
    max-width: none;
}

@media (min-width: 900px) {
    .snack-hero__cta-row {
        max-width: 26rem;
        margin-top: 0.45rem;
    }
}

.snack-hero__cta--primary,
a.snack-hero__cta--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0.82rem 1.85rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: clamp(0.94rem, 2vw, 1.02rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    color: #fffbeb;
    cursor: pointer;
    background: linear-gradient(175deg, #5c1f1f 0%, #3f0f0f 38%, #1c1412 100%);
    border: 1px solid rgba(251, 191, 36, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07) inset,
        0 1px 0 rgba(253, 224, 71, 0.22) inset,
        0 10px 32px rgba(0, 0, 0, 0.28),
        0 16px 40px rgba(127, 29, 29, 0.22);
    transition:
        transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1),
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.snack-hero__cta--primary:hover,
a.snack-hero__cta--primary:hover {
    transform: translateY(-3px) scale(1.035);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(253, 224, 71, 0.35) inset,
        0 14px 36px rgba(0, 0, 0, 0.32),
        0 22px 48px rgba(185, 28, 28, 0.28);
}

.snack-hero__cta--primary:active,
a.snack-hero__cta--primary:active {
    transform: translateY(-1px) scale(1.015);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 8px 24px rgba(0, 0, 0, 0.26);
}

.snack-hero__cta--compact {
    min-height: 46px;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
}

.snack-hero__cta--secondary {
    box-sizing: border-box;
    align-self: center;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #7f1d1d;
    background: #ffffff;
    border: 2px solid rgba(180, 83, 9, 0.42);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(120, 53, 15, 0.08);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
    text-align: center;
}

.snack-hero__cta--secondary:hover {
    background: #fff7ed;
    border-color: #c2410c;
    color: #9a3412;
    box-shadow: 0 4px 16px rgba(120, 53, 15, 0.12);
}

.snack-hero__cta--secondary:active {
    transform: scale(0.98);
}

.snack-hero__cta--secondary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.snack-hero__visual {
    grid-area: visual;
    position: relative;
    min-width: 0;
    min-height: min(48vw, 240px);
    overflow: visible;
}

@media (max-width: 899px) {
    .snack-hero__visual {
        width: 100vw;
        max-width: none;
        margin: 0;
        margin-left: calc(50% - 50vw);
        height: clamp(420px, 96vw, 720px);
        min-height: 0;
        max-height: min(115vw, 780px);
    }

    .snack-hero__media {
        min-height: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 900px) {
    .snack-hero__visual {
        min-height: 0;
        height: 100%;
        margin-left: clamp(-2rem, -4vw, -0.5rem);
        width: auto;
        z-index: 1;
    }
}

.snack-hero__media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 900px) {
    .snack-hero__media {
        position: absolute;
        inset: 0;
        left: clamp(-12%, -6vw, -1.25rem);
        width: auto;
        min-height: 100%;
    }
}

.snack-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.snack-hero__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 72% 22%;
    transform: scale(1.12);
    transform-origin: 72% 24%;
}

/* Lifestyle desktop art: subjects + pack on the right; keep negative space on the left for copy */
@media (min-width: 900px) {
    .snack-hero__img {
        object-position: 88% 42%;
        transform: scale(1.04);
        transform-origin: 88% 42%;
        filter: saturate(1.06) contrast(1.03);
    }
}

@media (min-width: 1200px) {
    .snack-hero__img {
        object-position: 90% 40%;
        transform: scale(1.05);
        transform-origin: 90% 40%;
    }
}

/* Mobile / stacked tablet: larger frame + lighter zoom so more of the photo reads */
@media (max-width: 899px) {
    .snack-hero__img {
        object-position: 72% 28%;
        transform: scale(1.04);
        transform-origin: 72% 32%;
    }
}

.snack-hero__blend {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255, 251, 240, 0.4) 0%,
        transparent 22%,
        transparent 78%,
        rgba(255, 236, 210, 0.18) 100%
    );
}

@media (max-width: 899px) {
    .snack-hero__blend {
        background: linear-gradient(
            180deg,
            rgba(255, 251, 240, 0.12) 0%,
            transparent 18%,
            rgba(255, 251, 240, 0.22) 42%,
            rgba(255, 251, 240, 0.65) 62%,
            rgba(255, 251, 240, 0.95) 82%,
            #fffbf0 100%
        );
    }
}

@media (min-width: 900px) {
    .snack-hero__blend {
        inset: auto;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: min(82%, 46rem);
        background: linear-gradient(
            92deg,
            rgba(243, 229, 214, 0.98) 0%,
            rgba(244, 231, 215, 0.88) 9%,
            rgba(248, 237, 224, 0.62) 22%,
            rgba(252, 242, 232, 0.32) 38%,
            rgba(255, 245, 236, 0.1) 55%,
            transparent 78%
        );
    }
}

.snack-hero__subject-shadow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse 85% 35% at 72% 92%,
        rgba(120, 40, 10, 0.28) 0%,
        rgba(120, 40, 10, 0.08) 45%,
        transparent 70%
    );
}

@media (min-width: 900px) {
    .snack-hero__subject-shadow {
        background: radial-gradient(
            ellipse 68% 40% at 84% 90%,
            rgba(65, 28, 8, 0.22) 0%,
            rgba(110, 45, 12, 0.07) 50%,
            transparent 72%
        );
    }
}

.snack-hero__crumb {
    position: absolute;
    top: 24%;
    right: 22%;
    width: 8px;
    height: 12px;
    border-radius: 50% 45% 55% 50%;
    background: linear-gradient(145deg, #fdba74, #ea580c 58%, #9a3412);
    box-shadow: 0 2px 5px rgba(154, 52, 18, 0.45);
    z-index: 3;
    animation: heroCrumbDrift 3.6s ease-in-out infinite;
}

.snack-hero__crumb--2 {
    top: 16%;
    right: 14%;
    width: 6px;
    height: 9px;
    animation-delay: 0.5s;
    animation-duration: 4.2s;
}

.snack-hero__crumb--3 {
    top: 44%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 3.1s;
}

.snack-hero__crumb--4 {
    bottom: 26%;
    right: 28%;
    top: auto;
    width: 7px;
    height: 10px;
    animation-delay: 0.3s;
}

.snack-hero__puff-wrap {
    position: absolute;
    z-index: 3;
    width: clamp(2.1rem, 4.2vw, 3.1rem);
    pointer-events: none;
    opacity: 0.76;
    filter: blur(0.75px);
    animation: heroPuffFloat 5.2s ease-in-out infinite;
}

.snack-hero__puff-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(180, 83, 9, 0.35));
}

.snack-hero__puff-wrap--a {
    top: 11%;
    right: 11%;
    width: clamp(2.35rem, 4.8vw, 3.35rem);
    transform: rotate(-14deg);
}

.snack-hero__puff-wrap--b {
    top: 36%;
    right: 4%;
    width: clamp(1.75rem, 3.5vw, 2.55rem);
    opacity: 0.68;
    filter: blur(1.1px);
    animation: heroPuffFloatAlt 5.9s ease-in-out infinite 0.35s;
    transform: rotate(18deg);
}

.snack-hero__puff-wrap--c {
    bottom: 18%;
    right: 16%;
    width: clamp(1.95rem, 3.9vw, 2.85rem);
    opacity: 0.72;
    filter: blur(0.9px);
    animation: heroPuffFloat 4.5s ease-in-out infinite 0.85s;
    transform: rotate(-6deg);
}

.snack-hero__cross {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    z-index: 5;
    pointer-events: none;
    min-height: 0;
    align-self: stretch;
}

@media (max-width: 899px) {
    .snack-hero__cross {
        display: none;
    }
}

.snack-hero__puff-wrap--cross {
    position: absolute;
    left: clamp(30%, 38vw, 46%);
    top: 52%;
    width: clamp(1.9rem, 3.7vw, 2.8rem);
    animation: heroPuffFloatAlt 5.2s ease-in-out infinite 0.15s;
    opacity: 0.74;
    filter: blur(0.85px);
    transform: rotate(12deg);
}

.snack-hero__puff-wrap--cross-b {
    left: clamp(36%, 44vw, 52%);
    top: 36%;
    width: clamp(1.5rem, 2.9vw, 2.15rem);
    animation: heroPuffFloat 4.7s ease-in-out infinite 0.5s;
    opacity: 0.62;
    filter: blur(1.05px);
    transform: rotate(-22deg);
}

@media (prefers-reduced-motion: reduce) {
    .snack-hero__cta--primary,
    a.snack-hero__cta--primary {
        transition: none;
    }

    .snack-hero__cta--primary:hover,
    a.snack-hero__cta--primary:hover {
        transform: none;
    }

    .snack-hero__spice-dust {
        animation: none;
    }

    .snack-hero__crumb,
    .snack-hero__puff-wrap,
    .snack-hero__puff-wrap--cross,
    .snack-hero__puff-wrap--cross-b {
        animation: none !important;
    }
}

/* ---------- Categories ---------- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 2rem;
    padding: 0 clamp(1rem, 4vw, 2.25rem);
    background: #fffbf0;
}

@media (max-width: 899px) {
    .category-filter {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }
}

.category-btn {
    padding: 0.55rem 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--ink-secondary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.category-btn:hover {
    border-color: rgba(180, 83, 9, 0.35);
    color: var(--brand-dark);
    background: var(--surface-warm);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--brand), #c2410c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3);
}

/* ---------- Products toolbar + grid ---------- */
#products {
    max-width: 100%;
    overflow-x: clip;
    background: #fffbf0;
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 1400px;
    margin: 0 auto 1rem;
    padding: 0 clamp(1rem, 4vw, 2.25rem);
}

.products-toolbar-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 600;
    color: var(--ink);
}

.products-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.products-view-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-right: 0.15rem;
}

.grid-density-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}

.grid-density-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.grid-density-btn:hover:not(.is-active) {
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    padding: 0 clamp(1rem, 4vw, 2.25rem) 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-width: 0;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(180, 83, 9, 0.15);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--surface);
    color: var(--brand-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.product-image-container {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-subtle);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}

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

.product-info {
    padding: 1.15rem 1.25rem 1.35rem;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.product-rating i {
    color: #d97706;
}

.product-description {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-add {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.btn-add:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-add:disabled {
    background: var(--muted-light);
    cursor: not-allowed;
    transform: none;
}

/* ---------- Spinner ---------- */
.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Product modal (Blinkit-style sheet) ---------- */
.product-modal,
.checkout-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(26, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-modal[style*="flex"],
.checkout-modal[style*="flex"] {
    display: flex !important;
}

.checkout-content {
    width: 100%;
    max-width: 520px;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    display: block;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.35s var(--ease);
}

.product-modal-content.product-sheet {
    width: 100%;
    max-width: 920px;
    max-height: min(90vh, 880px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile: fixed image band · scroll body · sticky footer */
.product-sheet-visual {
    position: relative;
    flex: 0 0 auto;
    height: min(38vh, 300px);
    min-height: 200px;
    max-height: 340px;
    background: #f3f2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.product-sheet-visual-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-height: 0;
}

.product-sheet-visual-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem) 0.75rem;
}

.product-sheet-footer {
    flex: 0 0 auto;
    padding: 0.85rem clamp(1rem, 3vw, 1.75rem) max(1rem, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(26, 24, 20, 0.06);
}

.product-modal-close,
.checkout-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

button.product-modal-close {
    font-family: inherit;
    padding: 0;
}

.product-modal-close:hover,
.checkout-close:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: rgba(220, 38, 38, 0.22);
}

.product-modal-fs-toggle {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 15;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.product-modal-fs-toggle:hover {
    background: var(--surface);
    color: var(--brand-dark);
    border-color: rgba(220, 38, 38, 0.25);
}

/* Desktop: image column + scroll column + footer under text */
@media (min-width: 768px) {
    .product-modal-content.product-sheet {
        display: grid;
        grid-template-columns: minmax(260px, 42%) 1fr;
        grid-template-rows: 1fr auto;
        max-height: min(88vh, 760px);
        align-items: stretch;
    }

    .product-sheet-visual {
        grid-column: 1;
        grid-row: 1 / -1;
        height: auto;
        min-height: 320px;
        max-height: none;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .product-sheet-visual-frame {
        padding: 1.25rem;
    }

    .product-sheet-body {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        padding-top: clamp(1.25rem, 3vw, 1.75rem);
        padding-right: clamp(1.25rem, 3vw, 2rem);
    }

    .product-sheet-footer {
        grid-column: 2;
        grid-row: 2;
        box-shadow: none;
        padding-top: 0.65rem;
        padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
    }

    .product-modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .product-modal-fs-toggle {
        left: 0.75rem;
        top: 0.75rem;
    }
}

.product-modal.is-fullscreen {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.product-modal.is-fullscreen .product-modal-content.product-sheet {
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
    height: 100dvh;
    min-height: 100vh;
    border-radius: 0 !important;
    border: none;
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
}

.product-modal.is-fullscreen .product-sheet-visual {
    height: min(42vh, 380px);
    min-height: 220px;
    max-height: none;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    grid-column: unset;
    grid-row: unset;
}

.product-modal.is-fullscreen .product-sheet-visual-frame img {
    max-height: min(40vh, 360px);
}

.product-modal.is-fullscreen .product-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    grid-column: unset;
    grid-row: unset;
    padding-bottom: 0.5rem;
}

.product-modal.is-fullscreen .product-sheet-footer {
    flex: 0 0 auto;
    grid-column: unset;
    grid-row: unset;
}

@media (min-width: 768px) {
    .product-modal.is-fullscreen .product-modal-content.product-sheet {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        height: 100dvh;
        min-height: 100vh;
    }

    .product-modal.is-fullscreen .product-sheet-visual {
        grid-column: 1;
        grid-row: 1 / -1;
        height: auto;
        min-height: 0;
        max-height: none;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .product-modal.is-fullscreen .product-sheet-visual-frame {
        height: 100%;
        min-height: 50vh;
    }

    .product-modal.is-fullscreen .product-sheet-visual-frame img {
        max-height: 100%;
        max-width: 100%;
    }

    .product-modal.is-fullscreen .product-sheet-body {
        grid-column: 2;
        grid-row: 1;
    }

    .product-modal.is-fullscreen .product-sheet-footer {
        grid-column: 2;
        grid-row: 2;
    }
}

.product-modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.4rem;
    padding-right: 2.75rem;
}

.product-flavour-tag--sheet {
    margin-top: -0.15rem;
    margin-bottom: 0.5rem;
}

.product-modal-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.product-modal-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ink-secondary);
    margin-bottom: 1.1rem;
}

.nutrition-panel {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.nutrition-panel .nutrition-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.nutrition-panel .nutrition-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ink-secondary);
    white-space: pre-wrap;
}

.product-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-modal-meta--sheet {
    margin-bottom: 0;
}

.meta-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.product-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.product-modal-actions--sheet {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
}

.btn-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-quantity--sheet {
    flex-shrink: 0;
}

.product-sheet-add-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1rem;
    border: none;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(26, 24, 20, 0.15);
}

.product-sheet-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 24, 20, 0.2);
}

.product-sheet-add-btn i {
    font-size: 1rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-warm);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--brand-soft);
    border-color: rgba(180, 83, 9, 0.3);
    color: var(--brand-dark);
}

/* ---------- Checkout ---------- */
.checkout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.checkout-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 2.5rem;
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
}

.checkout-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.5;
}

.checkout-steps {
    display: flex;
    gap: 0.35rem;
    padding: 0.85rem 1.5rem 0;
    margin: 0;
}

.checkout-steps .cstep {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.35rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--bg-page);
    border: 1px solid transparent;
    transition: var(--transition);
}

.checkout-steps .cstep.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: rgba(180, 83, 9, 0.2);
}

.checkout-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
    animation: fadeStep 0.3s var(--ease);
}

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

.checkout-step > h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1rem;
}

/* ---------- Forms (global) ---------- */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink);
    background: var(--surface-warm);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

textarea.form-input {
    min-height: 5.5rem;
    resize: vertical;
}

.form-input::placeholder {
    color: var(--muted-light);
}

.form-input:hover {
    border-color: rgba(26, 24, 20, 0.18);
    background: var(--surface);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-input[readonly] {
    background: var(--bg-page);
    color: var(--muted);
    cursor: default;
}

.checkout-step > .form-group:has(.btn-secondary) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.checkout-step > .form-group:has(.btn-secondary) .btn {
    flex: 1;
    min-width: min(100%, 160px);
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #991b1b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink-secondary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-page);
    border-color: var(--muted-light);
}

.btn-success {
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}

.btn-success:hover {
    transform: translateY(-1px);
}

.checkout-step .form-group:last-of-type + .form-group,
.checkout-step > .form-group:has(+ .form-group) {
    margin-bottom: 1rem;
}

/* OTP */
.otp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-start;
}

.otp-input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
    border: 1px solid transparent;
}

.alert i {
    margin-top: 0.15rem;
    opacity: 0.85;
}

.alert-info {
    background: #eff6ff;
    color: #1e3a5f;
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-success {
    background: var(--accent-soft);
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.2);
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Shipping options */
.shipping-options {
    margin-top: 0.75rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.shipping-option:hover {
    border-color: rgba(220, 38, 38, 0.28);
    background: var(--brand-soft);
}

.shipping-option.selected {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand);
}

/* Summary */
.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    font-size: 0.875rem;
    color: var(--ink-secondary);
    border-bottom: 1px solid var(--border);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-strong);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* Cart overlay — tap outside to close */
.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(12, 10, 8, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    pointer-events: none;
}

.cart-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---------- Cart drawer ---------- */
.cart {
    --cart-pad-x: clamp(1rem, 4vw, 1.35rem);
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 420px);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--border-strong);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.14);
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) var(--cart-pad-x) max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    will-change: transform;
}

.cart.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 600;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.cart-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
    max-width: 16rem;
}

.close-cart {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: rgba(220, 38, 38, 0.2);
}

.cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 calc(var(--cart-pad-x) * -0.25);
    padding: 0 calc(var(--cart-pad-x) * 0.25);
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-image {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.cart-item-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.5rem;
}

.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-warm);
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.cart-item-quantity .quantity-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--ink-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.cart-item-quantity .quantity-btn:hover {
    background: var(--border);
}

.cart-item-quantity span {
    min-width: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.cart-item-remove {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-top: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-footer {
    flex-shrink: 0;
    padding-top: 1.1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-strong);
    background: linear-gradient(180deg, transparent, var(--surface) 12%);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cart-min-hint {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0 0 0.85rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand), #991b1b);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(185, 28, 28, 0.32);
    transition: var(--transition);
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(185, 28, 28, 0.38);
}

.checkout-btn:disabled {
    background: var(--muted-light);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.empty-cart {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, #1c1917 0%, #0f0e0c 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 3rem clamp(1rem, 4vw, 2.25rem);
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #fff;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.65rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fdba74;
}

.footer-mp-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 1rem 0 0.5rem;
}

.footer-marketplaces {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.35rem;
    margin-bottom: 0.35rem;
}

/* Logo-only links — no pill “button” chrome */
.footer-mp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 0;
    opacity: 0.88;
    transition:
        opacity var(--transition),
        transform var(--transition);
}

.footer-mp-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-mp-link:focus-visible {
    outline: 2px solid #fdba74;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-mp-logo {
    display: block;
    height: clamp(26px, 5vw, 34px);
    width: auto;
    max-width: min(118px, 28vw);
    object-fit: contain;
    object-position: left center;
}

.social-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Unified content modals (contact, about, policy, custom) ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1150;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-overlay[style*="flex"] {
    display: flex !important;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1150;
    overflow-y: auto;
    padding: 3rem 1rem 2rem;
    background: rgba(26, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal[style*="block"] {
    display: block !important;
}

.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1150;
    overflow-y: auto;
    padding: 2.5rem 1rem;
    background: rgba(26, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-modal[style*="block"] {
    display: block !important;
}

#privacyPolicyModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1160;
    overflow-y: auto;
    padding: 2.5rem 1rem;
    background: rgba(26, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#privacyPolicyModal[style*="block"] {
    display: block !important;
}

.modal .modal-content,
.modal-overlay .modal-content,
.custom-modal .custom-modal-content,
#privacyPolicyModal .modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: min(100%, 720px);
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2rem);
    animation: modalIn 0.35s var(--ease);
}

.custom-modal .custom-modal-content {
    max-width: 900px;
}

.modal-content h2,
.custom-modal-content h2,
#privacyPolicyModal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.75rem;
    padding-right: 2.5rem;
}

.modal-content h3,
.custom-modal-content h3,
#privacyPolicyModal h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.25rem 0 0.5rem;
}

.modal-content p,
.modal-content ul,
.custom-modal-content p,
.custom-modal-content ul,
#privacyPolicyModal p,
#privacyPolicyModal ul {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ink-secondary);
}

.modal-content ul,
.custom-modal-content ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

#privacyPolicyModal ul {
    list-style: disc;
}

#aboutUsModal .modal-content ul {
    list-style: none;
    padding-left: 0;
}

#privacyPolicyModal .modal-content {
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close,
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
    float: none;
    font-weight: 400;
}

.modal-close:hover,
.close-btn:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* Contact sheet */
.contact-sheet {
    width: min(100%, 440px) !important;
    padding: 0 !important;
    overflow: hidden;
}

.contact-sheet-header {
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

.contact-sheet-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--ink);
}

.contact-sheet-lead {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--muted);
}

.contact-sheet-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--ink-secondary);
    margin-top: 0.75rem;
}

.contact-sheet-meta strong {
    color: var(--ink);
    font-weight: 600;
}

.contact-form-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.hg-field {
    margin-bottom: 1rem;
}

.hg-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.label-soft {
    display: inline;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--muted);
    font-size: 0.72rem;
}

.hg-input,
.hg-textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-warm);
    transition: var(--transition);
}

.hg-textarea {
    min-height: 6rem;
    resize: vertical;
}

.hg-input:focus,
.hg-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
    background: var(--surface);
}

.contact-submit {
    width: 100%;
    margin-top: 0.25rem;
}

#contactFormMsg {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* Policy long-form inside modals */
.shipping-policy h1,
.shipping-policy h2 {
    font-family: var(--font-display);
    color: var(--ink);
}

.shipping-policy h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.shipping-policy h2 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.shipping-policy p,
.shipping-policy li {
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    color: var(--ink-secondary) !important;
}

/* ---------- Mobile nav ---------- */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 350;
    background: rgba(26, 24, 20, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop.show {
    display: block;
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: nowrap;
        gap: 0.5rem 0.65rem;
    }

    .logo {
        min-width: 0;
        flex: 0 1 auto;
    }

    .cart-btn {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        padding: 4.5rem 1.25rem 2rem;
        background: var(--surface-warm);
        border-left: 1px solid var(--border);
        box-shadow: -12px 0 40px rgba(26, 24, 20, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        z-index: 2;
        gap: 0;
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        position: relative;
        z-index: 1;
    }

    .nav-link::after {
        display: none;
    }

    .hero--brand:not(.hero--qc) {
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(0.75rem, 4vw, 1.25rem);
        padding-right: clamp(0.75rem, 4vw, 1.25rem);
    }

    .hero--brand.hero--qc .hero-inner--qc {
        padding-left: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left));
        padding-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
    }

    .product-modal[style*="flex"] {
        align-items: flex-end;
        padding: 0;
    }

    .checkout-modal[style*="flex"] {
        align-items: flex-end;
    }

    .product-modal-content.product-sheet {
        max-height: min(92dvh, 92vh);
        border-radius: 22px 22px 0 0;
    }

    .product-sheet-visual {
        border-radius: 22px 22px 0 0;
        overflow: hidden;
    }

    .otp-input {
        width: 42px;
        height: 48px;
    }

    .product-modal-meta {
        grid-template-columns: 1fr;
    }

    .product-grid--cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.65rem;
        padding-left: clamp(0.65rem, 3vw, 1.25rem);
        padding-right: clamp(0.65rem, 3vw, 1.25rem);
    }

    .product-grid--cols-2 .product-info {
        padding: 0.75rem 0.65rem 0.9rem;
    }

    .product-grid--cols-2 .product-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .product-grid--cols-2 .product-description {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-grid--cols-1 {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .product-grid--cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .otp-container {
        justify-content: center;
    }
}

/* ----- My orders page (my_orders.php) ----- */
.mo-page {
    min-height: 100vh;
}

.mo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
    background: rgba(255, 251, 247, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mo-header a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition);
}

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

.mo-header a:last-child {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.mo-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.75rem clamp(1rem, 4vw, 2rem) 3rem;
}

.mo-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.mo-lead {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.mo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.mo-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.mo-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-warm);
    transition: var(--transition);
}

.mo-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
    background: var(--surface);
}

.mo-btn-row .btn {
    width: 100%;
    margin-top: 0.75rem;
}

.mo-otp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.mo-otp-row .otp-digit {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: var(--transition);
}

.mo-otp-row .otp-digit:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

.mo-err {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mo-order-id {
    font-weight: 700;
    color: var(--brand-dark);
}

.mo-muted {
    color: var(--muted);
    font-size: 0.875rem;
}

.mo-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.mo-table {
    width: 100%;
    font-size: 0.8125rem;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.mo-table th,
.mo-table td {
    text-align: left;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}

a.mo-track {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
}

a.mo-track:hover {
    text-decoration: underline;
}

/* OTP / email hints (shared storefront + account) */
.hully-otp-email-hint {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
}
.hully-otp-email-hint.is-ok {
    color: var(--success);
}
.hully-otp-email-hint.is-bad {
    color: var(--danger);
}
.otp-resend-timer {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    vertical-align: middle;
}

/* Product flavour + rich description */
.product-flavour-line {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0.15rem 0 0.35rem;
}
.product-flavour-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}
.review-count-pill {
    font-weight: 500;
    opacity: 0.85;
}
.product-desc-prose {
    line-height: 1.65;
    color: var(--ink-secondary);
}
.product-desc-prose p {
    margin: 0 0 0.65em;
}
.product-desc-prose ul,
.product-desc-prose ol {
    margin: 0 0 0.65em 1.1em;
    padding-left: 0.2em;
}
.product-desc-prose h2,
.product-desc-prose h3,
.product-desc-prose h4 {
    font-family: var(--font-display);
    margin: 0.75em 0 0.35em;
    font-size: 1.05rem;
}
.product-desc-prose a {
    color: var(--brand-dark);
    font-weight: 600;
}
.product-reviews-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.reviews-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0 0 0.75rem;
}
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}
.review-card {
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
}
.review-card-top {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.review-card-meta {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}
.review-stars {
    color: var(--brand-gold);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}
.review-body {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    white-space: pre-wrap;
}
.btn-review-like {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    color: var(--ink-secondary);
}
.btn-review-like:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.btn-review-like.liked,
.btn-review-like:disabled {
    opacity: 0.85;
    cursor: default;
}

/* My account tabs + profile */
.mo-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.mo-tab {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--muted);
}
.mo-tab.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.mo-profile-heading {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}
.mo-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 640px) {
    .mo-profile-grid {
        grid-template-columns: 1fr;
    }
}
.mo-profile-avatar-wrap {
    margin: 0.5rem 0;
}
.mo-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.mo-textarea {
    min-height: 100px;
    resize: vertical;
}
.mo-ok {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.mo-review-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--muted);
}
.mo-review-badge--ok {
    background: var(--accent-soft);
    color: var(--success);
}
.mo-review-badge--no {
    background: #fef2f2;
    color: var(--danger);
}
.mo-rate-btn {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}
.mo-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.mo-modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 420px;
    width: 100%;
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.mo-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}
.mo-modal-title {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}
