/* ============================================================
   LG Cool Store · store.css
   One stylesheet for the shop. Built from the case-study style guide:
   Paper #F4F2EE · Ink #1C1B19 · Stone #645E56 · Terracotta #A9532C
   Archivo (headings) + Inter (text). 8px spacing scale. 44px minimum targets.
   Terracotta is kept for the one action you need next, sale prices and focus.
   ============================================================ */

:root {
    --paper: #F4F2EE;
    --paper-2: #ECE8E1;
    --surface: #FFFFFF;
    --ink: #1C1B19;
    --ink-2: #3A3732;
    --stone: #645E56;
    --line: #DAD6CF;
    --line-2: #C9C3BA;
    --terra: #A9532C;
    --terra-dark: #8E4423;
    --terra-soft: #F7EDE7;
    --ok: #2F6B3F;
    --ok-soft: #E9F2EB;
    --err: #A3262A;
    --err-soft: #FBEDED;

    --display: "Archivo", "Inter", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1200px;
    --gutter: 24px;
    --shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 8px 24px rgba(28, 27, 25, .06);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.55 var(--body);
    font-feature-settings: "tnum" 0;
    -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: var(--s2); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s2); top: -100px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--s2); }
.muted { color: var(--stone); }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; }
.note { font-size: .9375rem; color: var(--stone); }
.eyebrow { font: 600 .8125rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: var(--s2); }
.label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.price, .totals, .line-total, .mini-items { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s6); }
.section--tight { padding-block: var(--s4) var(--s6); }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
    min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
    font: 600 .9375rem/1 var(--body); text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--terra); }
.text-link.center { display: block; text-align: center; margin-top: var(--s2); padding: 10px 0; }
.text-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 600 .9375rem var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--terra); }
.inline-form { display: inline; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 238, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-height: 44px; }
.brand-word { font: 800 1.0625rem/1 var(--display); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.brand--reversed .brand-word { color: var(--paper); }
.main-nav ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm); }
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--terra); border-radius: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-link, .bag-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); }
.icon-link:hover, .bag-link:hover { background: var(--paper-2); }
.bag-link { font-weight: 600; font-size: .9375rem; border: 1.5px solid var(--ink); padding: 0 14px; margin-left: 4px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 .75rem/1 var(--body); }
.icon-link .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: .6875rem; background: var(--terra); }
.count[hidden] { display: none; }
.bag-link .count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC9C0; padding-top: var(--s6); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--s4); padding-bottom: var(--s5); }
.footer-title { font: 600 .8125rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: #E6E1D9; text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { display: inline-flex; padding: 0; }
.site-footer .motto { margin-top: var(--s2); color: #E8A47E; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1); border-top: 1px solid #36332E; padding-block: var(--s3); font-size: .875rem; color: #A9A298; }
.footer-bottom p + p { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s5) var(--s6); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s5); align-items: center; }
.hero-copy h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 12ch; margin-bottom: var(--s3); }
.hero-copy .lead { margin-bottom: var(--s4); }
.hero-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--paper-2); aspect-ratio: 9 / 11; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-tile:hover img { transform: scale(1.03); }
.cat-label { position: absolute; left: var(--s2); right: var(--s2); bottom: var(--s2); display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.cat-label strong { font: 700 1.125rem/1.2 var(--display); }
.cat-label span { font-size: .875rem; color: var(--stone); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s2) var(--s2) var(--s2); gap: 4px; }
.card-title { font: 600 1rem/1.3 var(--body); min-height: 2.6em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { font-size: .875rem; color: var(--stone); }
.card .price { margin-top: var(--s1); }
.card-cta { margin-top: auto; padding-top: var(--s2); position: relative; z-index: 2; }
.fav-form { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.fav-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.fav-btn svg, .fav-btn-inline svg { fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill .15s, transform .2s var(--ease); }
.fav-btn[aria-pressed="true"] svg, .fav-btn-inline[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }
.fav-btn:hover svg { transform: scale(1.1); }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font: 700 .75rem/1 var(--body); letter-spacing: .02em; }
.tag--sale { position: absolute; top: 12px; left: 12px; background: var(--terra); color: #fff; z-index: 2; }
.tag--soft { background: var(--terra-soft); color: var(--terra-dark); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price-now { font: 700 1.125rem/1.2 var(--body); }
.price-now--sale { color: var(--terra); }
.price-was { color: var(--stone); font-size: .9375rem; }
.price--lg .price-now { font-size: 1.75rem; font-family: var(--display); }

/* ---------- Page heads, crumbs, chips, toolbar ---------- */
.page-head { padding-block: var(--s4) var(--s3); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: var(--s1); }
.page-head .lead { margin-top: var(--s1); }
.page-head .chips { margin-top: var(--s3); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--stone); }
.crumbs a { color: var(--stone); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.toolbar-fields { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.result-count { color: var(--stone); font-size: .9375rem; margin-bottom: var(--s3); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field--inline { flex-direction: row; align-items: center; gap: var(--s1); }
input[type=text], input[type=email], input[type=search], select {
    min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: 400 1rem var(--body); width: 100%;
}
select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1B19' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field--inline select, .field--inline input { width: auto; }
input[type=search] { min-width: 220px; }
input:hover, select:hover { border-color: var(--stone); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--terra); outline-offset: 1px; border-color: var(--ink); }
.has-error input { border-color: var(--err); border-width: 2px; background: var(--err-soft); }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--err); font-weight: 600; font-size: .9375rem; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--err); color: #fff; font-size: .75rem; font-weight: 800; }
.field-error[hidden] { display: none; }
.hint { font-size: .9375rem; color: var(--stone); }
.hint a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s3); align-items: start; }
.gallery { position: sticky; top: 92px; display: grid; gap: var(--s2); }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main img.is-swapping { opacity: 0; }
.gallery-thumbs { display: flex; gap: var(--s1); }
.thumb { display: block; width: 88px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line); outline-offset: -1px; }
.thumb.is-active { border-color: var(--ink); outline: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { display: flex; flex-direction: column; gap: var(--s2); }
.pdp-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pdp-desc { color: var(--ink-2); max-width: 52ch; }
.pdp-color, .pdp-onesize { display: flex; align-items: center; gap: 10px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.buy-form { display: grid; gap: var(--s3); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.size-field { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s1); min-width: 0; }
.size-field legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 2px; }
.required { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--terra-dark); background: var(--terra-soft); padding: 4px 8px; border-radius: 99px; }
.size-options { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 4px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-opt span { display: grid; place-items: center; min-width: 56px; height: 48px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.size-opt span:hover { border-color: var(--ink); }
.size-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-opt input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.size-field.has-error .size-opt span { border-color: var(--err); }
.size-field.shake .size-options { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.buy-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s2); align-items: end; }
.buy-btn { position: relative; }
.buy-btn.is-loading .btn-label { opacity: .4; }
.buy-btn.is-done { background: var(--ok); }
.fav-inline { margin: 0; }
.fav-btn-inline { min-height: 44px; }
.details { border-top: 1px solid var(--line); padding-top: var(--s3); display: grid; gap: var(--s2); }
.details-title { font-size: 1.125rem; }
.spec { margin: 0; display: grid; gap: 0; }
.spec > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--ink-2); }
.assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.assurances li { padding-left: 26px; position: relative; color: var(--ink-2); }
.assurances li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Checkout flow ---------- */
.page-head--flow { padding-block: var(--s3); }
.steps { list-style: none; margin: 0 0 var(--s2); padding: 0; display: flex; gap: var(--s1); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .875rem; color: var(--stone); }
.steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--stone); font-size: .8125rem; }
.steps li a { color: inherit; }
.steps .is-current { color: var(--ink); border-color: var(--ink); }
.steps .is-current span { background: var(--terra); color: #fff; }
.steps .is-done span { background: var(--ok); color: #fff; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s4); align-items: start; }
.summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s2); }
.summary-title { font-size: 1.25rem; }
.line-items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line-item { display: grid; grid-template-columns: 112px 1fr auto; gap: var(--s2); padding: var(--s2); align-items: start; transition: opacity .3s, transform .3s; }
.line-item + .line-item { border-top: 1px solid var(--line); }
.line-item.is-leaving { opacity: 0; transform: translateX(16px); }
.line-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); aspect-ratio: 1; }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font: 600 1.0625rem/1.3 var(--body); }
.line-title a { text-decoration: none; }
.line-title a:hover { text-decoration: underline; }
.line-meta { color: var(--stone); font-size: .9375rem; margin-top: 2px; }
.line-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.qty-form { display: flex; align-items: center; gap: var(--s1); margin: 0; }
.qty-form select { width: 84px; }
.line-total { font-weight: 700; font-size: 1.0625rem; }
.promo { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.promo-form { display: grid; gap: var(--s1); }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s1); }
.promo-row input { text-transform: uppercase; letter-spacing: .04em; }
.promo-applied { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); }
.promo-applied p { color: var(--ink); font-size: .9375rem; }
.promo-applied .text-btn { padding: 8px 4px; min-height: 40px; }
.totals { margin: 0; display: grid; gap: 10px; }
.totals-row { display: flex; justify-content: space-between; gap: var(--s2); }
.totals-row[hidden] { display: none; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals-row--discount dd, .totals-row--discount dt { color: var(--ok); }
.totals-row--total { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 4px; }
.totals-row--total dt, .totals-row--total dd { font: 800 1.375rem/1.2 var(--display); color: var(--ink); }
.totals .flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: var(--terra-soft); } 100% { background: transparent; } }
.totals-note { font-size: .875rem; color: var(--stone); background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; }
.totals-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.totals-note [hidden] { display: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin: 0 0 var(--s3); min-width: 0; display: grid; gap: var(--s2); }
.panel h2 { font-size: 1.375rem; }
fieldset.panel { display: block; }
fieldset.panel > * + * { margin-top: var(--s2); }
.panel-title { font: 700 1.25rem/1.2 var(--display); padding: 0; margin-bottom: var(--s1); float: left; width: 100%; }
.panel-title + * { clear: both; }
.panel--note { background: var(--paper-2); border-style: dashed; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.field--name, .field--email, .field--address { grid-column: span 6; }
.field--city { grid-column: span 3; }
.field--state { grid-column: span 1; }
.field--zip { grid-column: span 2; }
.ship-options { display: grid; gap: var(--s1); }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s2); padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.ship-opt input { width: 20px; height: 20px; accent-color: var(--terra); margin: 0; }
.ship-text { display: flex; flex-direction: column; }
.ship-text span { color: var(--stone); font-size: .9375rem; }
.ship-price { font-weight: 700; }
.mini-items { list-style: none; margin: 0; padding: 0 0 var(--s2); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.mini-items li { display: flex; justify-content: space-between; gap: var(--s2); font-size: .9375rem; }
.js [data-ship-update] { display: none; }

/* ---------- Alerts, empty states, toast ---------- */
.alert { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: var(--s3); font-weight: 600; }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--error { background: var(--err-soft); color: var(--err); }
.empty { text-align: center; padding: var(--s6) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: var(--s2); justify-items: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; display: flex; align-items: center; gap: var(--s2); max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast a, .toast button { color: #fff; font-weight: 700; white-space: nowrap; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9375rem; padding: 8px 0; }

/* ---------- Home: promise strip ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.promise-item { border-top: 3px solid var(--ink); padding-top: var(--s2); display: grid; gap: var(--s1); }
.promise-item h3 { font-size: 1.25rem; }
.promise-item p { color: var(--ink-2); }

/* ---------- Content pages ---------- */
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.prose-grid .panel { margin: 0; }
.prose-grid #pricing { grid-row: span 3; }
.steps-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.example { background: var(--paper); border-radius: var(--radius-sm); padding: var(--s2); display: grid; gap: var(--s2); }
.example h3 { font-size: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); border-bottom-color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: start; }
.prose { display: grid; gap: var(--s2); max-width: 62ch; }
.prose p + p { margin-top: 0; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--terra); text-underline-offset: 3px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s1); }
.check-list li { padding-left: 18px; border-left: 3px solid var(--terra); }
.about-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.contact-grid .panel { margin: 0; justify-items: start; }
.confirm-head { display: grid; justify-items: center; text-align: center; gap: var(--s1); margin-bottom: var(--s4); }
.confirm-check { color: var(--ok); }
.confirm-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm .panel-title { float: none; margin-top: var(--s1); }


/* ---------- Touch target fixes (44px) ---------- */
.crumbs { align-items: center; gap: 4px 8px; }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.text-link.center { display: flex; justify-content: center; }
.promo-applied .text-btn { min-height: 44px; }
.steps li { min-height: 44px; }
.steps li a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.page-head h1 { margin-top: 0; }

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    :root { --gutter: 16px; }
    .section { padding-block: var(--s5); }
    .header-row { grid-template-columns: auto 1fr; row-gap: 0; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 1px solid var(--line); }
    .main-nav a { padding: 0 12px; }
    .hero { padding-top: var(--s3); }
    .hero-grid, .pdp, .flow-grid, .about-grid, .prose-grid, .contact-grid { grid-template-columns: 1fr; }
    .prose-grid #pricing { grid-row: auto; }
    .hero-media { order: -1; }
    .pdp { gap: var(--s3); margin-top: var(--s2); }
    .gallery, .summary { position: static; }
    .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
    .cat-label { left: 8px; right: 8px; bottom: 8px; padding: 10px; }
    .cat-label span { display: none; }
    .promise { grid-template-columns: 1fr; }
    .toolbar { align-items: stretch; }
    .toolbar-fields { width: 100%; }
    .toolbar-fields .field--inline:first-child { flex: 1 1 100%; }
    input[type=search] { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
    .bag-label { display: none; }
    .bag-link { padding: 0 10px; }
    .brand-word { font-size: 1rem; }
    .card-body { padding: 12px; }
    .card-title { font-size: .9375rem; }
    .card-meta { font-size: .8125rem; }
    .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
    .cat-label strong { font-size: .9375rem; }
    .line-item { grid-template-columns: 84px 1fr; }
    .line-total { grid-column: 2; }
    .buy-row { grid-template-columns: 90px 1fr; }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .field--name, .field--email, .field--address, .field--city { grid-column: span 2; }
    .field--state, .field--zip { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
    .spec > div { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
