/* ==========================================================================
   Ababeel — base styles
   Brown & white palette. Cormorant Garamond for display, Karla for text.
   ========================================================================== */

:root {
    --cocoa-900: #22140c;
    --cocoa: #3b2418;
    --cocoa-700: #5a3726;
    --milk: #87562f;          /* accent text — 5.4:1 on cream */
    --caramel: #a5704a;       /* decorative only, never for text */
    --muted: #7b6556;
    --line: #e6dacb;
    --cream: #f6efe5;
    --paper: #fffcf7;
    --white: #ffffff;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Karla", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 3px;
    --shadow-soft: 0 1px 2px rgba(34, 20, 12, .05), 0 8px 24px -12px rgba(34, 20, 12, .18);
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --dur: 200ms;
    --header-h: 76px;

    /* Fine paper grain (Nature Distilled) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .14 0 0 0 0 .09 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible {
    outline: 2px solid var(--cocoa);
    outline-offset: 3px;
    border-radius: 1px;
}
.gifting :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--cream); }

a, button, [role="button"], label[for] { cursor: pointer; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--cocoa);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    margin: 0;
    color: var(--cocoa-900);
}

p { margin: 0 0 1em; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--milk);
    font-weight: 600;
    margin-bottom: 18px;
}
.eyebrow--light { color: #d8b896; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    font: 600 14px/1 var(--sans);
    letter-spacing: .04em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
    white-space: nowrap;
}
.btn-dark { background: var(--cocoa); color: var(--paper); }
.btn-dark:hover { background: var(--cocoa-900); }
.btn-cream { background: var(--cream); color: var(--cocoa-900); }
.btn-cream:hover { background: var(--white); }
.btn-line { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn-line:hover { background: var(--cocoa); color: var(--paper); }
.btn-line--light { border-color: rgba(246, 239, 229, .5); color: var(--cream); }
.btn-line--light:hover { background: var(--cream); color: var(--cocoa-900); border-color: var(--cream); }

.link-arrow {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .03em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }

/* Top bar & header ------------------------------------------------------- */

.topbar {
    background: var(--cocoa);
    color: var(--cream);
    text-align: center;
    font-size: 13px;
    letter-spacing: .03em;
    padding: 9px var(--gutter);
}
.topbar p { margin: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cocoa-900);
}
.logo-mark { width: 38px; height: 24px; fill: currentColor; }
.logo-word {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
}
.logo--light { color: var(--cream); }

.main-nav {
    display: flex;
    gap: 30px;
    font-size: 15px;
}
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.icon-link {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
}
.icon-link svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 1.4;
    stroke-linecap: round; stroke-linejoin: round;
}
.cart-count {
    position: absolute;
    top: 3px; right: 1px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--cocoa);
    color: var(--paper);
    font-size: 10px;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    background: none; border: 0; padding: 0;
    cursor: pointer;
    flex-direction: column; justify-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--cocoa); transition: transform .25s; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero, .guide { background-color: var(--cream); background-image: var(--grain); }
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px);
}
.hero h1 {
    font-size: clamp(52px, 7.4vw, 104px);
    letter-spacing: -.01em;
    margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--cocoa-700); }
.lede {
    font-size: 18px;
    max-width: 440px;
    color: var(--muted);
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
    list-style: none;
    margin: 44px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 14px;
    color: var(--muted);
}
.hero-facts li::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--caramel);
    margin-right: 10px;
    vertical-align: middle;
}

.hero-media { margin: 0; position: relative; }
.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}
.hero-media figcaption {
    position: absolute;
    left: -1px; bottom: 28px;
    background: var(--paper);
    padding: 12px 18px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    box-shadow: var(--shadow-soft);
}

/* Categories ------------------------------------------------------------- */

.categories { padding: clamp(48px, 6vw, 72px) 0 0; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat { position: relative; overflow: hidden; border-radius: var(--radius); }
.cat img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .6s ease;
}
.cat:hover img { transform: scale(1.04); }
.cat span {
    position: absolute;
    left: 0; bottom: 0;
    background: var(--paper);
    padding: 8px 16px 6px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
}

/* Sections & products ---------------------------------------------------- */

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.section-head h2, .guide-head h2, .story h2, .gifting h2, .newsletter h2 {
    font-size: clamp(36px, 4.4vw, 56px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 22px;
}
.product-media {
    position: relative;
    display: block;
    background: var(--cream);
    overflow: hidden;
    border-radius: var(--radius);
    transition: box-shadow 300ms var(--ease-out);
}
.product:hover .product-media { box-shadow: var(--shadow-soft); }
.product-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .6s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--paper);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 9px;
}
.product-body { padding-top: 16px; }
.product-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.product-title h3 { font-size: 25px; font-weight: 600; }
.product-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.product-note { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.btn-add {
    width: 100%;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--cocoa);
    font: 600 13px/1 var(--sans);
    letter-spacing: .05em;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-add:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--paper); }
.btn-add.added { background: var(--cocoa); border-color: var(--cocoa); color: var(--paper); }

/* Guide ------------------------------------------------------------------ */

.guide {
    padding: clamp(64px, 8vw, 104px) 0;
}
.guide-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 52px;
}
.guide-head p { color: var(--muted); max-width: 420px; justify-self: end; margin: 0; }

.scale {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--cocoa);
}
.scale li {
    padding: 26px 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.swatch {
    width: 100%;
    height: 64px;
    background: var(--c);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(59, 36, 24, .08);
}
.scale strong {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--cocoa-900);
}
.scale li > span:last-child { font-size: 14px; color: var(--muted); }

/* Story ------------------------------------------------------------------ */

.story { padding: clamp(64px, 9vw, 120px) 0; }
.story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 7vw, 110px);
    align-items: center;
}
.story-media { margin: 0; }
.story-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.story h2 { margin-bottom: 26px; max-width: 520px; }
.story-copy p { color: var(--muted); font-size: 17px; max-width: 500px; }
.story-copy .link-arrow { margin-top: 12px; color: var(--cocoa); }

/* Gifting ---------------------------------------------------------------- */

.gifting { background: var(--cocoa); color: var(--cream); }
.gifting-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.gifting-copy {
    padding: clamp(56px, 8vw, 110px) clamp(0px, 5vw, 80px) clamp(56px, 8vw, 110px) 0;
    align-self: center;
}
.gifting h2 { color: var(--paper); margin-bottom: 22px; }
.gifting-copy > p { color: #d9c7b5; max-width: 460px; margin-bottom: 34px; font-size: 17px; }
.gifting-media { margin: 0 calc(-1 * var(--gutter)) 0 0; }
.gifting-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* Promises --------------------------------------------------------------- */

.promises { border-bottom: 1px solid var(--line); }
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.promise-grid > div {
    padding: 44px 28px 40px 0;
}
.promise-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.promise-grid h3 { font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.promise-grid p { font-size: 14px; color: var(--muted); margin: 0; }

/* Newsletter ------------------------------------------------------------- */

.newsletter { padding: clamp(56px, 7vw, 96px) 0; }
.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: var(--muted); margin: 0; }
.newsletter-form label {
    flex-basis: 100%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--cocoa);
}
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.newsletter-form input[type="email"] {
    flex: 1 1 240px;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font: 400 15px var(--sans);
    color: var(--cocoa);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--cocoa); }
.form-msg { flex-basis: 100%; font-size: 14px; color: var(--cocoa-700) !important; }

/* Reviews ---------------------------------------------------------------- */

.reviews { padding: 0 0 clamp(64px, 8vw, 110px); }
.reviews .section-head { margin-bottom: 28px; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.review {
    margin: 0;
    padding: 30px 28px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.stars { display: flex; gap: 3px; color: var(--cocoa); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.review blockquote {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.35;
    color: var(--cocoa-900);
    flex: 1;
}
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption strong { color: var(--cocoa); font-weight: 600; }

/* Scroll reveal (subtle; skipped for reduced motion) ------------------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .cat:hover img, .product:hover .product-media img { transform: none; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
    background: var(--cocoa-900);
    color: #cdb9a6;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 56px;
}
.footer-brand p { max-width: 320px; margin-top: 18px; }
.site-footer .footer-h {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--cream); }
.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(205, 185, 166, .18);
    padding-top: 22px;
    padding-bottom: 26px;
    font-size: 13px;
}
.footer-base p { margin: 0; }

/* Toast ------------------------------------------------------------------ */

.toast {
    position: fixed;
    left: 50%; bottom: 24px;
    transform: translate(-50%, 20px);
    background: var(--cocoa-900);
    color: var(--cream);
    padding: 12px 20px;
    font-size: 14px;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
    .header-inner { gap: 24px; }
    .main-nav { gap: 22px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .scale { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr 1fr; }
    .review:last-child { grid-column: 1 / -1; }
    .promise-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .promise-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    :root { --header-h: 64px; }
    .header-inner { gap: 4px; }
    .logo { margin: 0 auto 0 4px; }
    .logo-word { font-size: 26px; }
    .header-actions { margin-left: 0; }
    .hide-sm { display: none; }

    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
        display: none;
    }
    .menu-open .main-nav { display: flex; }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    .main-nav a::after { display: none; }

    .hero-inner, .story-inner, .gifting-inner, .newsletter-inner, .guide-head { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .hero-media img { aspect-ratio: 4 / 3; }
    .guide-head p { justify-self: start; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gifting-copy { padding-right: 0; }
    .gifting-media { margin: 0 calc(-1 * var(--gutter)); }
    .gifting-media img { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
    .product-grid { gap: 32px 12px; }
    .product-title { flex-direction: column; gap: 2px; }
    .product-title h3 { font-size: 21px; }
    .product-note { font-size: 13px; }
    .scale { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: 1fr; }
    .promise-grid > div, .promise-grid > div + div { padding: 24px 0; border-left: 0; }
    .promise-grid > div + div { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 56px; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-actions .btn { flex: 1 1 auto; }
    .cat span { font-size: 19px; padding: 6px 12px 4px; }
    .topbar { font-size: 12px; }
    .topbar .hide-xs { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .review-grid { grid-template-columns: 1fr; }
    .review:last-child { grid-column: auto; }
    .review blockquote { font-size: 20px; }
}

/* ==========================================================================
   Store pages: shop, product, cart, checkout, account
   ========================================================================== */

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--cocoa); color: var(--paper);
    padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.main-nav a.is-active::after { transform: scaleX(1); }
.nav-account { display: none; }
.cart-count.is-empty { background: transparent; color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--line); }

/* Header search */
.header-search { display: flex; align-items: center; position: relative; }
.header-search button.icon-link { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.header-search input {
    width: 0; opacity: 0; padding: 0; border: 0;
    height: 38px; font: 400 14px var(--sans); color: var(--cocoa);
    background: var(--white); border-radius: var(--radius);
    transition: width 250ms var(--ease-out), opacity 200ms, padding 250ms;
}
.header-search:focus-within input, .header-search.is-open input {
    width: 180px; opacity: 1; padding: 0 12px; border: 1px solid var(--line);
}
.header-search input:focus { outline: none; border-color: var(--cocoa); }

/* Notices */
.notice {
    margin: 20px 0 0;
    padding: 12px 16px;
    background: var(--cream);
    border-left: 3px solid var(--cocoa);
    font-size: 15px;
    border-radius: var(--radius);
}
.notice--error { background: #fbeeea; border-left-color: #a23b22; color: #6e2414; }

/* Page heads & breadcrumbs */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.page-head--plain { border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.page-lede { color: var(--muted); font-size: 17px; margin: 10px 0 0; max-width: 620px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.text-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Shop */
.shop { padding-bottom: clamp(64px, 8vw, 110px); }
.shop-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 14px; font-weight: 500;
    transition: border-color var(--dur), background-color var(--dur), color var(--dur);
}
.chip:hover { border-color: var(--cocoa); }
.chip.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--paper); }
.chip-count { font-size: 12px; opacity: .7; }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-form select, .field select, .field input, .field textarea {
    height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); color: var(--cocoa);
    font: 400 15px var(--sans);
}
.result-count { font-size: 13px; color: var(--muted); margin: 18px 0 24px; }

.product-title s, .pdp-price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.stock-note { font-size: 13px; color: var(--milk); font-weight: 600; margin: -8px 0 12px; }
.stock-note--out { margin: 18px 0; font-weight: 400; color: var(--cocoa-700); }
.badge--muted { background: var(--cocoa); color: var(--paper); }
.btn-add:disabled, .btn-add:disabled:hover { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-add.is-loading { opacity: .7; }

.empty { text-align: center; padding: clamp(40px, 8vw, 90px) 0; max-width: 520px; margin: 0 auto; }
.empty h1, .empty h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
.empty p { color: var(--muted); margin-bottom: 24px; }
.empty--left { text-align: left; margin: 0; padding: 24px 0; }

.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 56px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-btn {
    background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: 500 13px var(--sans); color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--cocoa); }

/* Product page */
.pdp { padding: clamp(24px, 3vw, 36px) 0 clamp(56px, 7vw, 96px); }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.pdp-media { margin: 0; position: relative; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.pdp-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-info h1 { font-size: clamp(40px, 4.6vw, 60px); margin-bottom: 10px; }
.pdp-note { color: var(--muted); font-size: 17px; }
.pdp-price { font-size: 24px; font-weight: 600; margin: 22px 0 2px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pdp-weight { font-size: 14px; font-weight: 400; color: var(--muted); }
.tax-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pdp-buy { display: flex; gap: 10px; margin-bottom: 18px; }
.qty {
    display: inline-flex; align-items: stretch;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.qty input {
    width: 48px; border: 0; text-align: center; background: transparent;
    font: 600 15px var(--sans); color: var(--cocoa);
    -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
    width: 44px; min-height: 48px; border: 0; background: none;
    font-size: 18px; color: var(--cocoa); cursor: pointer;
}
.qty-btn:hover { background: var(--cream); }
.qty--sm .qty-btn { min-height: 40px; width: 40px; }
.qty--sm input { width: 40px; }
.pdp-points { list-style: none; margin: 8px 0 28px; padding: 0; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.pdp-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--caramel); margin-right: 10px; vertical-align: middle; }
.pdp-details details { border-top: 1px solid var(--line); }
.pdp-details details:last-child { border-bottom: 1px solid var(--line); }
.pdp-details summary {
    cursor: pointer; list-style: none; padding: 16px 0;
    font-weight: 600; font-size: 15px; display: flex; justify-content: space-between;
}
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.pdp-details details[open] summary::after { content: "\2212"; }
.pdp-details details p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.section--tight { padding-top: 0; }

/* Cart */
.cart-page { padding-bottom: clamp(64px, 8vw, 110px); }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.line-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 20px;
    padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.line-img img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.line-info h2 { font-size: 23px; font-weight: 600; }
.line-meta { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.line-actions { display: flex; align-items: center; gap: 18px; }
.line-total { font-weight: 600; margin: 4px 0 0; }
.cart-update { margin-top: 18px; }
.js .cart-update { display: none; }

.summary {
    background: var(--cream); background-image: var(--grain);
    padding: 28px; border-radius: var(--radius);
}
.summary h2 { font-size: 28px; margin-bottom: 18px; }
.summary--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.ship-meter { font-size: 14px; margin-bottom: 18px; }
.ship-meter p { margin-bottom: 8px; }
.ship-meter--done { color: var(--cocoa-700); font-weight: 600; }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--cocoa); }
.totals { margin: 0 0 22px; }
.totals div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.totals-grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; }
.totals-grand dt, .totals-grand dd { color: var(--cocoa-900); font-weight: 600; font-size: 18px; }
.continue { display: block; text-align: center; margin-top: 14px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.mini-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.mini-lines li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.mini-lines li > span:last-child { margin-left: auto; font-weight: 500; white-space: nowrap; }
.mini-img { position: relative; flex: none; }
.mini-img img { width: 52px; height: 65px; object-fit: cover; border-radius: var(--radius); background: var(--white); }
.mini-qty {
    position: absolute; top: -7px; right: -7px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--cocoa); color: var(--paper); font-size: 11px; font-weight: 600;
    display: grid; place-items: center;
}
.mini-name { display: flex; flex-direction: column; }
.mini-name small { color: var(--muted); font-size: 13px; }

/* Forms */
.checkout { padding-bottom: clamp(64px, 8vw, 110px); }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.checkout-form legend { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--cocoa-900); margin-bottom: 16px; padding: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(59, 36, 24, .12); }
.field-hint { font-size: 13px; color: var(--muted); margin: 0; }
.field-error { font-size: 13px; color: #a23b22; font-weight: 600; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: #a23b22; }
.pay-options { display: grid; gap: 10px; }
.pay-option {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
    cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--cocoa); }
.pay-option input { margin-top: 4px; accent-color: var(--cocoa); width: 18px; height: 18px; }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { color: var(--muted); font-size: 14px; }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.fine-print { font-size: 13px; color: var(--muted); margin-top: 14px; }
.fine-print a { text-decoration: underline; }

/* Auth */
.auth { padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.auth-inner { max-width: 440px; }
.auth h1 { font-size: clamp(40px, 5vw, 56px); }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-switch { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* Account */
.account { padding-bottom: clamp(64px, 8vw, 110px); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.account-side { display: grid; gap: 20px; }
.block-title { font-size: 26px; margin-bottom: 14px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.panel .block-title { margin-bottom: 0; }
.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    transition: background-color var(--dur);
}
.order-row:hover { background: var(--cream); }
.order-row span:first-child { display: flex; flex-direction: column; }
.order-row small { color: var(--muted); font-size: 13px; }
.order-total { font-weight: 600; }
.status {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
    background: var(--cream); color: var(--cocoa);
}
.status--pending   { background: #f8ecd6; color: #6b4a12; }
.status--confirmed { background: #e9eef6; color: #2c4466; }
.status--packed    { background: #eee8f3; color: #4c3566; }
.status--shipped   { background: #e4f0f1; color: #1f5257; }
.status--delivered { background: #e6f1e6; color: #2a5a2c; }
.status--cancelled { background: #f6e3df; color: #7a2a1a; }

.tracker {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    counter-reset: step; font-size: 13px; color: var(--muted);
}
.tracker li { position: relative; padding-top: 26px; text-align: center; }
.tracker li::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%; background: var(--line); z-index: 1;
}
.tracker li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tracker li:first-child::after { display: none; }
.tracker li.is-done { color: var(--cocoa); font-weight: 600; }
.tracker li.is-done::before, .tracker li.is-done::after { background: var(--cocoa); }
.tracking { font-size: 15px; }
.order-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 24px; }
.order-detail p { color: var(--muted); font-size: 15px; margin: 0; }

/* Order confirmation */
.confirm { padding: clamp(48px, 8vw, 100px) 0; }
.confirm-inner { max-width: 640px; text-align: center; }
.confirm-mark { width: 56px; height: 56px; fill: none; stroke: var(--cocoa); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 20px; }
.confirm h1 { font-size: clamp(42px, 5vw, 60px); }
.confirm .page-lede { margin: 14px auto 32px; }
.confirm-card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.confirm-address h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--milk); margin-bottom: 8px; }
.confirm-address p { margin: 0; color: var(--muted); }
.confirm-actions { justify-content: center; margin-top: 28px; }

/* Content pages */
.prose-wrap { padding-bottom: clamp(64px, 8vw, 110px); }
.prose { max-width: 720px; font-size: 17px; }
.prose p { color: var(--cocoa); }
.prose a { text-decoration: underline; }

@media (max-width: 1080px) {
    .cart-grid, .checkout-grid { grid-template-columns: 1fr 340px; }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-account { display: block; }
    .header-search input { display: none; }
    .header-search.is-open input {
        display: block; position: absolute; right: 0; top: calc(100% + 12px); width: calc(100vw - 2 * var(--gutter));
        height: 44px; z-index: 60; box-shadow: var(--shadow-soft);
    }
    .pdp-grid, .cart-grid, .checkout-grid, .order-detail { grid-template-columns: 1fr; }
    .pdp-info, .summary--sticky { position: static; }
    .checkout-grid .summary { order: -1; }
    .shop-bar { flex-direction: column; align-items: stretch; }
    .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
    .chip { flex: none; }
}

@media (max-width: 560px) {
    .field-grid { grid-template-columns: 1fr; }
    .line { grid-template-columns: 76px 1fr; }
    .line-img img { width: 76px; }
    .line-total { grid-column: 2; margin: 0; }
    .line-info h2 { font-size: 20px; }
    .order-row { grid-template-columns: 1fr auto; }
    .order-row .status { grid-row: 2; grid-column: 1; justify-self: start; }
    .tracker { font-size: 11px; }
    .summary { padding: 22px; }
    .pdp-buy { flex-wrap: wrap; }
}

/* Cookie consent */
.consent {
    position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px;
    max-width: 560px; margin-left: auto;
    background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
    box-shadow: 0 10px 40px -10px rgba(34, 20, 12, .35);
    padding: 18px 20px; display: grid; gap: 14px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; color: var(--cocoa); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { min-width: 110px; }
.link-btn--light { color: inherit; font-size: inherit; padding: 0; }
.link-btn--light:hover { color: var(--cream); }

/* Content pages: headings inside page bodies */
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--line); font-family: var(--serif); font-size: 22px; }

/* Contact page */
.contact { padding-bottom: clamp(64px, 8vw, 110px); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-form { display: grid; gap: 20px; }
.contact-side h2 { font-size: 26px; margin: 0 0 12px; }
.contact-side h2 + * { margin-bottom: 28px; }
.contact-side p { color: var(--muted); }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--milk); font-weight: 600; }
.contact-list a { font-size: 17px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cocoa); flex: none; }
.check a { text-decoration: underline; }
.tool-list { font-weight: 500; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
