/* ==========================================================================
   POISE storefront — light, airy, large type, big tap targets.
   Brand colours and fonts are tokens: swap them when the final branding lands.
   ========================================================================== */
:root {
  /* palette (placeholder until brand assets arrive) */
  --bg: #fff9f5;           /* warm ivory */
  --surface: #ffffff;
  --soft: #fbefe9;         /* blush wash */
  --soft-2: #eef3ec;       /* sage wash */
  --soft-3: #f1edf8;       /* lavender wash */
  --ink: #2a2320;          /* warm near-black */
  --ink-2: #6b605a;
  --line: #eadfd8;
  --accent: #c2577a;       /* rose */
  --accent-dark: #a2415f;
  --accent-ink: #ffffff;
  --sale: #b8325a;
  --ok: #2f7a55;
  --warn: #a15c00;

  /* type */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* shape */
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --wrap: 1280px;
  --tap: 56px;             /* minimum touch target */
  --shadow: 0 10px 30px -18px rgba(90, 50, 40, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } /* 18px base */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); padding: 0 1.75rem;
       border-radius: var(--pill); border: 2px solid transparent; font: 600 1.05rem/1 var(--font-body); text-decoration: none;
       cursor: pointer; transition: transform .15s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 60px; padding: 0 2.1rem; font-size: 1.1rem; }
.btn-xl { min-height: 64px; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #d9c3ca; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: .82rem; padding: .5rem 1rem; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Logo | centred categories | search, account, bag — one line, never wrapping. */
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: .28em; text-decoration: none; margin: 0; justify-self: start; white-space: nowrap; }
.main-nav { display: flex; gap: clamp(1.1rem, 2.2vw, 2.25rem); flex-wrap: nowrap; white-space: nowrap; justify-content: center; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .45rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.search-mini input { min-height: 46px; width: clamp(150px, 15vw, 220px); border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); padding: 0 1.1rem; font: inherit; font-size: .95rem; }
.icon-link { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); }
.icon-link:hover { background: var(--soft); }
.icon-link[href="/search"] { display: none; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.mobile-nav a { text-decoration: none; font-size: 1.3rem; font-weight: 500; padding: .85rem 0; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; min-height: min(78vh, 720px); padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1.75rem; }
.promises { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0; margin: 0; font-weight: 500; }
.promises li::before { content: "✓"; color: var(--ok); margin-right: .45rem; font-weight: 700; }
.hero-art { position: relative; aspect-ratio: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { inset: 8% 18% 22% 6%; background: radial-gradient(circle at 35% 35%, #f6c9d4, #e8a3b6); }
.b2 { width: 46%; height: 46%; right: 2%; bottom: 8%; background: radial-gradient(circle at 40% 40%, #d9e6d4, #a8bfa3); }
.b3 { width: 30%; height: 30%; right: 18%; top: 2%; background: radial-gradient(circle at 40% 40%, #ece4f8, #c9b8e8); }

/* ---------------------------------------------------------------- sections */
.block { padding-top: clamp(3rem, 7vw, 5.5rem); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.block-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.more:hover { color: var(--accent); }
.band { margin-top: clamp(3rem, 7vw, 5.5rem); background: var(--soft-2); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; flex-wrap: wrap; }
.band h2 { margin-bottom: .35rem; }
.band .lead { margin: 0; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.category-tile { display: flex; align-items: flex-end; justify-content: space-between; min-height: 150px; padding: 1.4rem; border-radius: var(--radius);
                 text-decoration: none; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; transition: transform .2s; }
.category-tile:hover { transform: translateY(-3px); }
.category-tile .arrow { font-size: 1.5rem; transition: transform .2s; }
.category-tile:hover .arrow { transform: translateX(4px); }
.tone-0 { background: var(--soft); }
.tone-1 { background: var(--soft-2); }
.tone-2 { background: var(--soft-3); }
.tone-3 { background: #f6efe4; }

/* ---------------------------------------------------------------- product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem) clamp(.9rem, 1.8vw, 1.5rem); }
.card { min-width: 0; }
.card-link { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.card-media img.hover { opacity: 0; }
.card-link:hover .card-media img.hover { opacity: 1; }
.card-link:hover .card-media img.primary { transform: scale(1.03); }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center;
               background: radial-gradient(circle at 30% 25%, #fff 0%, transparent 55%), linear-gradient(160deg, var(--tint, #f2c4c4) 0%, #fbefe9 100%); }
.placeholder span { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: rgba(255,255,255,.85); text-shadow: 0 2px 20px rgba(0,0,0,.08); }
.placeholder.big span { font-size: 9rem; }
.badge { position: absolute; top: .8rem; left: .8rem; padding: .35rem .8rem; border-radius: var(--pill); font-size: .85rem; font-weight: 600; background: var(--surface); }
.badge-sale { color: var(--sale); }
.badge-sold { background: var(--ink); color: var(--bg); }
.badge-low { top: auto; bottom: .8rem; color: var(--warn); }
.card.is-sold-out .card-media { opacity: .6; }
.card-body { padding: .9rem .2rem 0; }
.card-title { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; letter-spacing: 0; margin: 0 0 .2rem; line-height: 1.3; }
.card-sub { font-size: .95rem; color: var(--ink-2); margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin: 0; }
.price .now { font-weight: 700; font-size: 1.2rem; }
.price .was { color: var(--ink-2); text-decoration: line-through; font-size: 1rem; }
.price .off { color: var(--sale); font-weight: 600; }
.swatches { display: flex; gap: .35rem; margin-top: .55rem; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* ---------------------------------------------------------------- listing */
.listing-page { padding-top: 2rem; padding-bottom: 2rem; }
.crumbs { color: var(--ink-2); font-size: .98rem; margin-bottom: .75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.listing-head { margin-bottom: 2rem; }
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 100px; }
.filter-toggle summary { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; cursor: pointer; list-style: none; margin-bottom: 1rem; }
.filter-toggle summary::-webkit-details-marker { display: none; }
.filter-body { display: flex; flex-direction: column; gap: 1.5rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 600; font-size: 1.05rem; margin-bottom: .7rem; }
.filters select { width: 100%; min-height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 1rem; font: inherit; }
.size-pills, .colour-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-pill, .colour-pill { position: relative; cursor: pointer; }
.size-pill input, .colour-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-pill span { display: grid; place-items: center; min-width: 58px; min-height: 52px; padding: 0 .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.size-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.size-pill input:focus-visible + span, .colour-pill input:focus-visible ~ span:last-child { outline: 3px solid var(--accent); outline-offset: 2px; }
.colour-pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .9rem 0 .5rem; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: .95rem; }
.colour-pill .dot { width: 26px; height: 26px; }
.colour-pill:has(input:checked) { border-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: .7rem; font-weight: 500; cursor: pointer; min-height: 48px; }
.toggle input { width: 24px; height: 24px; accent-color: var(--accent); }
.clear { color: var(--ink-2); font-size: .98rem; }
.result-count { color: var(--ink-2); margin-bottom: 1.25rem; }
.results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.load-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 1.5rem 0; }
.htmx-request.results, #results.htmx-swapping { opacity: .5; transition: opacity .2s; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state .lead { margin: 0 auto 1.5rem; }
.empty-state.tall { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.search-big { display: flex; gap: .75rem; flex-wrap: wrap; max-width: 760px; }
.search-big input { flex: 1 1 280px; min-height: 60px; border-radius: var(--pill); border: 1.5px solid var(--line); padding: 0 1.4rem; font: inherit; font-size: 1.15rem; background: var(--surface); }

/* ---------------------------------------------------------------- product page */
.product-page { padding-top: 1.5rem; padding-bottom: 2rem; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.gallery-set { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; position: relative; }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 100px; }
.buybox h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: .35rem; }
.subtitle { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.price.big .now { font-size: 1.9rem; }
.price.big .was { font-size: 1.2rem; }
.price.big .off { font-size: 1.15rem; }
.tax-note { font-size: .92rem; margin: .2rem 0 1.5rem; }
.sold-out-banner { background: var(--ink); color: var(--bg); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 500; }
.picker { border: 0; padding: 0; margin: 0 0 1.5rem; }
.picker legend { display: flex; justify-content: space-between; width: 100%; font-weight: 600; font-size: 1.08rem; margin-bottom: .8rem; }
.picker legend strong { font-weight: 500; color: var(--ink-2); margin-left: .35rem; }
.colour-choices { display: flex; gap: .75rem; flex-wrap: wrap; }
.colour-choice { position: relative; cursor: pointer; }
.colour-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.colour-choice .dot { width: 48px; height: 48px; border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.colour-choice input:checked + .dot { box-shadow: 0 0 0 2.5px var(--ink); }
.colour-choice input:focus-visible + .dot { box-shadow: 0 0 0 3px var(--accent); }
.colour-choice.is-sold-out .dot { opacity: .45; background-image: linear-gradient(135deg, transparent 46%, var(--ink-2) 47%, var(--ink-2) 53%, transparent 54%) !important; }
.size-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; }
.size-choice { position: relative; }
.size-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-choice span { display: grid; place-items: center; min-height: 60px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: 1.1rem; transition: border-color .15s, background .15s; }
.size-choice input:hover:not(:disabled) + span { border-color: var(--ink); }
.size-choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.size-choice.is-sold-out span { color: #b5aaa4; background: repeating-linear-gradient(135deg, transparent 0 8px, #f4ece7 8px 9px), var(--surface); text-decoration: line-through; cursor: not-allowed; }
.size-choice.is-sold-out input { cursor: not-allowed; }
.stock-note { min-height: 1.6em; margin: .7rem 0 0; font-weight: 600; color: var(--warn); }
#checkout-soon { font-size: .95rem; margin: .8rem 0 1.5rem; }
.assurances { list-style: none; padding: 1.25rem 1.4rem; margin: 0 0 1.5rem; background: var(--soft); border-radius: var(--radius); display: flex; flex-direction: column; gap: .55rem; font-size: 1rem; }
.accordion details { border-top: 1px solid var(--line); padding: 1rem 0; }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; min-height: 32px; align-items: center; }
.accordion summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion p, .accordion ul { margin-top: .8rem; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------------------------------------------------------------- size chart sheet */
.sheet { border: 0; border-radius: var(--radius); padding: 0; width: min(760px, 94vw); max-height: 88vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(42, 35, 32, .45); }
.size-chart { padding: 1.5rem clamp(1.1rem, 3vw, 2rem) 2rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sheet-head h2 { font-size: 1.6rem; margin: 0; }
.close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.1rem; cursor: pointer; }
.unit-toggle { display: inline-flex; background: var(--soft); border-radius: var(--pill); padding: 4px; margin: 1.1rem 0; }
.unit-toggle button { min-height: 44px; min-width: 88px; border: 0; background: none; border-radius: var(--pill); font: 600 1rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.unit-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.table-wrap { overflow-x: auto; }
.size-chart table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.size-chart th, .size-chart td { padding: .8rem .75rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-chart thead th { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.size-chart tbody th { font-family: var(--font-display); font-size: 1.15rem; }
.fit-notes { background: var(--soft-2); padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1.25rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(4rem, 8vw, 6rem); background: var(--surface); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-grid a { display: block; text-decoration: none; padding: .35rem 0; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-head { font-weight: 600; margin-bottom: .5rem; }
.copyright { margin-top: 2.5rem; font-size: .92rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .search-mini { display: none; }
  .icon-link[href="/search"] { display: grid; }
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .header-row { grid-template-columns: auto 1fr auto; gap: .5rem; min-height: 64px; }
  .logo { font-size: 1.5rem; justify-self: center; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-art { display: none; }
  .listing { grid-template-columns: 1fr; gap: 1rem; }
  .filters { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
  .filter-toggle summary { margin: 0; }
  .filter-toggle[open] summary { margin-bottom: 1rem; }
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .gallery-set { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .6rem; margin: 0 calc(-1 * clamp(1.1rem, 4vw, 2.5rem)); padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
  .gallery-item { flex: 0 0 86%; scroll-snap-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 106.25%; } /* 17px — still large on phones */
  .product-grid, .results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 1.02rem; }
  .price .now { font-size: 1.08rem; }
  .badge { font-size: .78rem; padding: .3rem .6rem; top: .55rem; left: .55rem; }
  .hero-cta .btn { width: 100%; }
  .band-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Bag, checkout, account
   ========================================================================== */
.icon-link.bag { position: relative; }
.bag-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.flash-wrap { padding-top: 1rem; }
.flash { margin: 0 0 .5rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.flash-ok { background: var(--soft-2); color: var(--ok); }
.flash-bad { background: var(--soft); color: var(--sale); }
.problem { color: var(--sale); font-weight: 600; margin: .25rem 0; }
.ok { color: var(--ok); }
.small-note { font-size: .85rem; }

.shop-page { padding-top: 2rem; padding-bottom: 4rem; }
.bag-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.bag-lines { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.bag-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.bag-line.has-problem { outline: 2px solid var(--soft); }
.bag-thumb { width: 96px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-thumb .placeholder { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.bag-name { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.bag-info p { margin: .15rem 0; }
.bag-qty { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.bag-qty select { min-height: 44px; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font: inherit; background: var(--surface); }
.link { background: none; border: 0; padding: 0; color: var(--accent-dark); font: inherit; cursor: pointer; text-decoration: underline; }

.summary-card, .form-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.summary-card { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.summary-card h2, .form-card h2 { font-size: 1.3rem; margin: .5rem 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 1.2rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.free-ship { background: var(--soft-3); border-radius: var(--radius-sm); padding: .6rem .8rem; margin: 0; font-size: .9rem; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-card label, .stack-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form-card input:not([type=radio]):not([type=checkbox]) { min-height: var(--tap); padding: 0 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font: inherit; background: var(--bg); }
.form-card input:focus { outline: 3px solid var(--soft); border-color: var(--accent); }
.form-card label.check { flex-direction: row; align-items: center; font-weight: 500; }
.pay-options { display: flex; flex-direction: column; gap: .75rem; }
.pay-option { flex-direction: row !important; align-items: flex-start; gap: .8rem !important; padding: 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 400 !important; }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.pay-option input { margin-top: .35rem; accent-color: var(--accent); width: 20px; height: 20px; }
.auth-page { padding: 3rem 1rem 5rem; }
.form-card.narrow { max-width: 480px; margin: 0 auto; }
.stack-form { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }

.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.order-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.order-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.order-right { text-align: right; }
.status { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.status-delivered { color: var(--ok); }
.status-cancelled { color: var(--sale); }
.placed-banner { background: var(--soft-2); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.placed-banner h1 { font-size: 1.8rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; counter-reset: step; }
.timeline li { padding: .7rem .5rem; text-align: center; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.timeline li.done { background: var(--accent); color: var(--accent-ink); }
.timeline li.off { opacity: .45; }
.mono { font-family: ui-monospace, Menlo, monospace; }

@media (max-width: 900px) {
  .bag-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .bag-line { grid-template-columns: 72px minmax(0, 1fr); }
  .bag-thumb { width: 72px; }
  .bag-qty { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   Sales, coupons, returns
   ========================================================================== */
.badge-sale.is-sale { background: var(--sale); color: #fff; }
.sale-tag { margin: .3rem 0 0; font-size: .85rem; font-weight: 600; color: var(--sale); }
.sale-ribbon { display: inline-block; margin: 0 0 .6rem; padding: .3rem .9rem; border-radius: var(--pill); background: var(--sale); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; }

.coupon-box { display: flex; flex-direction: column; gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coupon-entry { display: flex; gap: .5rem; }
.coupon-entry input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font: inherit; text-transform: uppercase; background: var(--bg); }
.coupon-entry .btn { min-height: 48px; padding: 0 1.1rem; }
.coupon-applied { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; margin: 0; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--soft-2); color: var(--ok); }
.coupon-applied .muted { font-size: .9rem; }
.offers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.offer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1.5px dashed var(--accent); border-radius: var(--radius-sm); background: var(--soft); }
.offer p { margin: .15rem 0 0; }
.offer .mono { margin-left: .35rem; color: var(--ink-2); }
.offer .btn { min-height: 44px; padding: 0 1rem; font-size: .95rem; white-space: nowrap; }
.offer-off { border-color: var(--line); background: var(--surface); opacity: .8; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.return-line { grid-template-columns: 96px minmax(0, 1fr) auto; }
.return-line.is-done { opacity: .55; }
.inline-field { display: flex !important; flex-direction: row !important; align-items: center; gap: .6rem !important; margin-top: .5rem; font-weight: 500 !important; }
.inline-field select, .bag-qty select, .form-card select, .form-card textarea { min-height: 44px; padding: .5rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font: inherit; background: var(--bg); }
.form-card textarea { resize: vertical; }
.steps-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.section-gap { margin-top: 2.5rem; }
.status-completed { color: var(--ok); }
.status-rejected, .status-cancelled { color: var(--ink-2); }
@media (max-width: 640px) {
  .two-up { grid-template-columns: 1fr; }
  .return-line { grid-template-columns: 72px minmax(0, 1fr); }
}

/* Sign-in, account and addresses */
.or { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); margin: 1.25rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dev-code { background: var(--soft-2); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 1rem 0; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.badge-ok, .badge-warn { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; margin-left: .25rem; }
.badge-ok { background: var(--soft-2); color: var(--ok); }
.badge-warn { background: var(--soft); color: var(--sale); }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { flex: 1 1 220px; }
.address-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.address-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column;
    justify-content: space-between; gap: .75rem; background: var(--surface, #fff); }
.address-card p { margin: .25rem 0 0; }
.address-new { align-items: center; justify-content: center; border-style: dashed; min-height: 120px; }
.address-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-card.narrow-wide { max-width: 640px; margin: 0 auto; }
.saved-addresses { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.pay-option.is-off { opacity: .55; }
.pin-status { margin: -.5rem 0 0; font-size: .88rem; color: var(--ink-2); min-height: 1.2em; }
.pin-status.ok { color: var(--ok); }
.pin-status.problem { color: var(--sale); }
.contact-email { margin-bottom: 1.5rem; }
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
}
