/* ==========================================================================
   Neura Candle — Stylesheet
   Light, warm theme · Open Sans · responsive · mobile-first
   --------------------------------------------------------------------------
   1.  Design tokens (custom properties)
   2.  Reset & base
   3.  Layout primitives
   4.  Buttons & forms
   5.  Header / topbar / nav
   6.  Footer
   7.  Hero & marketing sections
   8.  Cards (product, collection, scent, category)
   9.  Shop & filters
   10. Product detail
   11. Article / prose pages
   12. Ad slots
   13. Utilities & helpers
   14. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
    /* Brand palette — pulled from the logo */
    --c-flame-yellow: #ffd23f;
    --c-flame:        #f7931e;
    --c-flame-deep:   #f26522;
    --c-amber:        #e8a13a;

    /* Light theme surfaces */
    --c-bg:        #fffdf9;
    --c-bg-warm:   #fff7ee;
    --c-bg-cream:  #fbf2e6;
    --c-surface:   #ffffff;
    --c-border:    #ece3d6;

    /* Text */
    --c-ink:       #2f2a24;
    --c-ink-soft:  #5d564c;
    --c-ink-mute:  #8a8175;

    /* Accents */
    --c-primary:        #e07b1f;
    --c-primary-dark:   #c2660f;
    --c-primary-tint:   #fcefdd;
    --c-link:           #c2660f;

    --c-success: #6f9b5f;

    /* Typography */
    --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Spacing / sizing */
    --maxw: 1200px;
    --gap: 1.5rem;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(47, 42, 36, .07);
    --shadow:    0 8px 28px rgba(47, 42, 36, .10);
    --shadow-lg: 0 18px 48px rgba(47, 42, 36, .14);
    --transition: .22s ease;
}

/* 2. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { color: var(--c-ink-soft); }
p + p { margin-top: 1rem; }

a { color: var(--c-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dark); }

ul, ol { padding-left: 1.2rem; }

/* 3. Layout primitives --------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--warm  { background: var(--c-bg-warm); }
.section--cream { background: var(--c-bg-cream); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__head .eyebrow { margin-bottom: .6rem; }
.section__head p { font-size: 1.08rem; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* 4. Buttons & forms ----------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-size: .98rem; font-weight: 600; line-height: 1;
    padding: .85rem 1.5rem; border-radius: 50px; border: 1.5px solid transparent;
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-tint); color: var(--c-primary-dark); }
.btn--light { background: #fff; color: var(--c-ink); border-color: var(--c-border); }
.btn--light:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

input, textarea, select {
    font-family: inherit; font-size: 1rem; color: var(--c-ink);
    padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    background: #fff; width: 100%; transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-tint); }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .4rem; }

.newsletter { display: flex; gap: .5rem; margin-block: .8rem; }
.newsletter input { flex: 1; }

/* 5. Header / topbar / nav ----------------------------------------------- */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.topbar { background: var(--c-ink); color: #f7efe4; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; gap: 1rem; }
.topbar__inner > span { opacity: .9; }
.topbar__social { display: flex; gap: 1rem; }
.topbar__social a { color: #f7efe4; opacity: .85; font-weight: 600; }
.topbar__social a:hover { opacity: 1; color: var(--c-flame-yellow); }

.masthead { position: sticky; top: 0; z-index: 100; background: rgba(255,253,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand__logo { width: auto; height: 56px; }

.primary-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav-link {
    display: block; padding: .55rem .85rem; border-radius: var(--radius-sm);
    color: var(--c-ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-link:hover { color: var(--c-primary-dark); background: var(--c-primary-tint); }
.nav-link.active { color: var(--c-primary-dark); }
.nav-link.active::after { content: ''; display: block; height: 2px; background: var(--c-primary); border-radius: 2px; margin-top: 3px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Footer -------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: #d9d1c4; margin-top: 4rem; }
.site-footer a { color: #d9d1c4; }
.site-footer a:hover { color: var(--c-flame-yellow); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer__heading { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer__logo { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: .9rem; }
.site-footer__brand p { color: #b8b0a3; max-width: 32ch; }
.site-footer__social { display: flex; gap: 1rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; }
.site-footer__contact { margin-top: .6rem; font-weight: 600; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; flex-wrap: wrap; }
.site-footer__bar p { color: #9c948729; color: #aaa294; margin: 0; }
.site-footer__credit a { color: var(--c-flame-yellow); font-weight: 700; }

/* 7. Hero & marketing sections ------------------------------------------ */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 90% at 80% -10%, #ffe7c2 0%, rgba(255,231,194,0) 55%),
        radial-gradient(90% 80% at 0% 0%, #fff3e0 0%, rgba(255,243,224,0) 50%),
        var(--c-bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--c-primary); }
.hero__lead { font-size: 1.18rem; color: var(--c-ink-soft); max-width: 46ch; }
.hero__cta { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; color: var(--c-ink-mute); font-size: .9rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--c-bg-cream); }
.hero__badge {
    position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--radius);
    padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .9rem;
}
.hero__badge .dot { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--c-flame-yellow), var(--c-flame-deep)); }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature__icon {
    width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem;
    background: var(--c-primary-tint); color: var(--c-primary-dark);
}
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { font-size: .95rem; }

.cta-banner {
    background: linear-gradient(120deg, #2f2a24, #46362a);
    color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(247,147,30,.35), transparent 60%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #e7ddcf; max-width: 52ch; margin: 1rem auto 1.8rem; }

/* 8. Cards --------------------------------------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card__media { position: relative; aspect-ratio: 1/1; background: var(--c-bg-cream); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge { position: absolute; top: .8rem; left: .8rem; background: var(--c-ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 50px; }
.product-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card__cat { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-mute); }
.product-card__title { font-size: 1.08rem; font-weight: 700; }
.product-card__title a { color: var(--c-ink); }
.product-card__title a:hover { color: var(--c-primary-dark); }
.product-card__desc { font-size: .92rem; color: var(--c-ink-soft); flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.product-card__price { font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }

.scent-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--c-ink-soft); }
.scent-chip .swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; padding: 1.4rem; color: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62) 100%); z-index: 1; }
.tile__bg { position: absolute; inset: 0; z-index: 0; }
.tile__content { position: relative; z-index: 2; }
.tile__content h3 { color: #fff; font-size: 1.3rem; }
.tile__content p { color: rgba(255,255,255,.88); font-size: .9rem; margin-top: .2rem; }
.tile__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-flame-yellow); margin-bottom: .35rem; }

.scent-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.3rem; border-top: 5px solid var(--accent, var(--c-primary)); }
.scent-card h3 { font-size: 1.15rem; }
.scent-card .family { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: .5rem; }
.scent-card .notes { font-size: .88rem; color: var(--c-ink-soft); margin-top: .7rem; }
.scent-card .notes strong { color: var(--c-ink); }

.cat-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.6rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .cat-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.cat-card h3 { font-size: 1.15rem; color: var(--c-ink); }
.cat-card p { font-size: .9rem; margin-top: .3rem; }

/* 9. Shop & filters ------------------------------------------------------ */
.page-header { background: var(--c-bg-warm); border-bottom: 1px solid var(--c-border); padding-block: clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.page-header h1 { margin-bottom: .6rem; }
.page-header p { max-width: 60ch; margin-inline: auto; font-size: 1.05rem; }

.breadcrumbs { font-size: .85rem; color: var(--c-ink-mute); padding-block: 1rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--c-border); }
.breadcrumbs a { color: var(--c-ink-mute); }
.breadcrumbs a:hover { color: var(--c-primary-dark); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 90px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.3rem; }
.filters h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: .8rem; }
.filters__group + .filters__group { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--c-border); }
.filters__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.filters__list a { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: var(--radius-sm); color: var(--c-ink-soft); font-size: .92rem; font-weight: 600; }
.filters__list a:hover { background: var(--c-bg-warm); color: var(--c-primary-dark); }
.filters__list a.active { background: var(--c-primary-tint); color: var(--c-primary-dark); }
.filters__list .count { color: var(--c-ink-mute); font-weight: 600; font-size: .82rem; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.shop-toolbar .result-count { color: var(--c-ink-mute); font-size: .92rem; }
.shop-search { display: flex; gap: .5rem; max-width: 340px; width: 100%; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--c-ink-mute); }

/* 10. Product detail ----------------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; padding-block: 2rem 1rem; }
.product__gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-bg-cream); box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.product__cat { color: var(--c-primary); }
.product__title { margin: .4rem 0 .6rem; }
.product__price { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.product__short { font-size: 1.12rem; color: var(--c-ink-soft); }
.product__buy { display: flex; gap: .8rem; margin: 1.6rem 0; flex-wrap: wrap; }
.product__note { font-size: .85rem; color: var(--c-ink-mute); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--c-border); font-size: .95rem; vertical-align: top; }
.spec-table th { color: var(--c-ink-mute); font-weight: 600; width: 42%; }
.scent-pyramid { display: grid; gap: .6rem; margin-top: 1rem; }
.scent-pyramid .layer { display: flex; gap: .8rem; align-items: baseline; }
.scent-pyramid .layer .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-mute); font-weight: 700; min-width: 64px; }

.prose-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag { display: inline-block; background: var(--c-bg-warm); border: 1px solid var(--c-border); color: var(--c-ink-soft); padding: .35rem .8rem; border-radius: 50px; font-size: .85rem; font-weight: 600; }
.tag:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

/* 11. Article / prose pages --------------------------------------------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.prose p, .prose li { font-size: 1.06rem; color: var(--c-ink-soft); }
.prose ul, .prose ol { margin-block: 1rem; display: grid; gap: .4rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote { border-left: 4px solid var(--c-primary); background: var(--c-bg-warm); padding: 1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-block: 1.5rem; font-style: italic; color: var(--c-ink); }
.prose .lead { font-size: 1.22rem; color: var(--c-ink); line-height: 1.55; }

.timeline { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.8rem 2.2rem; border-left: 2px solid var(--c-border); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-tint); }
.timeline .era { font-weight: 800; color: var(--c-primary-dark); display: block; }
.timeline h3 { margin: .1rem 0 .3rem; }

.toc { background: var(--c-bg-warm); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink-mute); margin-bottom: .6rem; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 1.5rem; }
.toc a { font-weight: 600; font-size: .95rem; }

/* 12. Ad slots ----------------------------------------------------------- */
.ad-slot { margin-block: 2rem; text-align: center; }
.ad-slot__label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: .4rem; }
.ad-slot__placeholder {
    border: 1px dashed var(--c-border); border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, #faf5ed, #faf5ed 12px, #f5eee2 12px, #f5eee2 24px);
    min-height: 90px; display: grid; place-items: center; color: var(--c-ink-mute); font-size: .85rem; font-weight: 600;
}
.ad-slot--sidebar .ad-slot__placeholder { min-height: 600px; }
.ad-slot--in_content .ad-slot__placeholder { min-height: 250px; }

/* 13. Utilities ---------------------------------------------------------- */
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.flow > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--c-border); border: 0; margin-block: 3rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* 14. Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .feature-row { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff;
        box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s ease;
        padding: 5rem 1.5rem 2rem; z-index: 110; overflow-y: auto;
    }
    .primary-nav.open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav-link { padding: .8rem 1rem; }
    .nav-link.active::after { display: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 105; }

    .hero__inner, .split, .product { grid-template-columns: 1fr; }
    .product__gallery { position: static; max-width: 460px; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .topbar__inner > span { display: none; }
    .topbar__inner { justify-content: center; }
    .feature-row, .grid--2, .grid--3, .grid--4, .grid--auto { grid-template-columns: 1fr 1fr; }
    .grid--auto { grid-template-columns: 1fr; }
    .product__buy .btn { flex: 1; }
    .toc ul { columns: 1; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero__cta { width: 100%; }
    .hero__cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
