/* Sungrace Custom — storefront styles.
   Palette is taken from the trade: indigo (the dye of workwear), chalk (the
   marking pencil on a cutting table), and a single thread-orange for anything
   the customer is meant to press. No webfonts: system stacks load instantly,
   and page speed is a Google Ads quality-score input. */

:root {
  /* Near-black rather than pure black: at large sizes #000 vibrates against
     white and reads harsh. This is the value premium hardware sites settle on. */
  --ink:      #1D1D1F;
  --ink-2:    #424245;
  --muted:    #6E6E73;
  --faint:    #86868B;
  --line:     #D2D2D7;
  --line-2:   #E8E8ED;
  --paper:    #FFFFFF;
  --chalk:    #F5F5F7;
  --sunk:     #F5F5F7;
  --cream:    #F5F5F7;
  --tintblue: #E8F0FE;

  --indigo:   #1E3054;
  --indigo-2: #2A4477;
  --thread:   #C2410C;
  --thread-2: #9A3412;
  --good:     #1F7A4D;
  --warn:     #9A6B10;
  --bad:      #B3261E;

  /* System UI first: on a Mac or iPhone this resolves to SF Pro, on Windows to
     Segoe UI Variable. Both are better than anything we could download, and
     they cost nothing to load — which is also why the pages score 99. */
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto,
            "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --r: 12px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px -8px rgba(0,0,0,.10);
  --shadow-2: 0 2px 8px rgba(0,0,0,.06), 0 20px 48px -24px rgba(0,0,0,.22);
  /* Near full-bleed, the way big catalogue sites run: on a 1920 monitor this
     leaves a slim margin rather than 740px of dead white, and it still caps
     before line lengths get silly on a 4K panel. */
  --wrap: 1760px;
  --wrap-text: 68ch;      /* prose keeps a readable measure inside the wide shell */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* Images must be genuinely crisp, not merely large. Photos get high-quality
   downscaling; the placeholder art is vector-clean already. */
img { image-rendering: auto; }
img[loading] { content-visibility: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Tracking tightens as size grows — the thing that separates a considered
   headline from a default one. */
h1, h2, h3, h4 { margin: 0; line-height: 1.07; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.026em; line-height: 1.1; }
h3 { font-size: 1.28rem; letter-spacing: -.018em; line-height: 1.2; }
h4 { letter-spacing: -.01em; }
p { margin: 0 0 1.1rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 2.4vw, 2.75rem); }
.wrap-narrow { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 2.4vw, 2.75rem); }

/* On a very large panel everything scales up a little rather than leaving the
   page marooned in the middle of the screen. */
@media (min-width: 2200px) {
  html { font-size: 18px; }
  :root { --wrap: 2040px; }
}
@media (min-width: 3000px) {
  html { font-size: 20px; }
  :root { --wrap: 2400px; }
}

/* ------------------------------------------------------------- header */

/* Three tiers: utility strip, search-led bar, category row. Sticky only from
   the bar down, so the utility strip scrolls away and does not eat the screen. */

.hdr { background: var(--paper); border-bottom: 1px solid var(--line); }

.util { background: var(--chalk); border-bottom: 1px solid var(--line-2); }
.util-in {
  max-width: var(--wrap); margin: 0 auto; padding: .4rem clamp(1rem, 2.4vw, 2.75rem);
  display: flex; gap: 1.5rem;
}
.util-in a { font-size: .78rem; color: var(--muted); text-decoration: none; }
.util-in a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .util { display: none; } }

.bar-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: .85rem clamp(1rem, 2.4vw, 2.75rem);
  display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem);
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--indigo); color: #fff;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  border-radius: var(--r);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 1.02rem; font-weight: 680; letter-spacing: -.022em; }
.brand-txt i { font-style: normal; font-size: .68rem; color: var(--faint); letter-spacing: .02em; }

/* The search field is the biggest thing on the bar on purpose — with a
   catalogue this size, searching beats browsing for most buyers. */
.search { flex: 1; display: flex; max-width: 920px; position: relative; }
.search input {
  width: 100%; font: inherit; font-size: .95rem;
  padding: .68rem 2.9rem .68rem 1rem;
  border: 1.5px solid var(--ink-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30,48,84,.12); }
.search button {
  position: absolute; right: 0; top: 0; bottom: 0; width: 2.9rem;
  background: none; border: 0; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center;
}
.search button:hover { color: var(--indigo); }
/* Search is the main way people navigate a catalogue, so it never disappears —
   below the breakpoint it drops onto its own full-width row instead. */
@media (max-width: 900px) {
  .bar-in { flex-wrap: wrap; row-gap: .7rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand { margin-right: auto; }
}

.bar-cta { display: flex; gap: 1.2rem; align-items: center; flex-shrink: 0; }
.ico {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--ink); position: relative;
}
.ico:hover { color: var(--indigo); }
.ico span { display: flex; flex-direction: column; line-height: 1.2; }
.ico b { font-size: .8rem; font-weight: 600; }
.ico i { font-style: normal; font-size: .72rem; color: var(--faint); }
.ico .cart-count { position: absolute; top: -6px; left: 12px; }
@media (max-width: 1080px) { .ico span { display: none; } }
@media (max-width: 620px) { .bar-cta .ico:first-child { display: none; } }
@media (max-width: 900px) { .bar-cta { order: 2; } }

.cart-count {
  background: var(--thread); color: #fff; border-radius: 20px;
  font-size: .68rem; font-weight: 700; min-width: 1.15rem;
  padding: 0 .3rem; text-align: center; line-height: 1.15rem;
}

.cats { border-top: 1px solid var(--line-2); overflow-x: auto; }
.cats-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(1rem, 2.4vw, 2.75rem);
  display: flex; gap: clamp(1rem, 2.4vw, 1.9rem); white-space: nowrap;
}
.cats-in a {
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: .7rem 0; border-bottom: 2px solid transparent;
}
.cats-in a:hover { color: var(--indigo); }
.cats-in a.on { color: var(--indigo); border-bottom-color: var(--indigo); font-weight: 600; }
.cats-in a.hot { color: var(--thread); font-weight: 600; }
@media (max-width: 900px) { .cats { display: none; } }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.nav-sm { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: .5rem clamp(1rem,4vw,2rem) 1rem; }
.nav-sm a { text-decoration: none; padding: .65rem 0; border-bottom: 1px solid var(--line-2); font-weight: 500; }

@media (max-width: 900px) {
  .burger { display: flex; order: 2; }
  .nav-sm[hidden] { display: none; }
  .nav-sm:not([hidden]) { display: flex; }
}

/* the offer strip under the nav */
.promo { background: var(--ink); color: rgba(255,255,255,.9); }
.promo-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: .6rem clamp(1rem, 2.4vw, 2.75rem);
  font-size: .85rem; text-align: center;
}
.promo-in a { color: #fff; margin-left: .5rem; }


/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .95rem; font-weight: 500; letter-spacing: -.01em;
  padding: .68rem 1.35rem; border-radius: 980px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .13s ease, border-color .13s ease, color .13s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--thread); color: #fff; }
.btn-solid:hover { background: var(--thread-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--indigo); }
.btn-ghost { background: var(--paper); color: var(--indigo); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); background: var(--chalk); }
.btn-lg { font-size: 1.05rem; padding: .85rem 1.75rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- hero */

.hero {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  color: var(--indigo); margin-bottom: 1rem;
}
.hero h1 { color: var(--ink); max-width: 15ch; }
.hero p.lede { font-size: clamp(1.08rem, 1.4vw, 1.35rem); line-height: 1.42; color: var(--muted); max-width: 46ch; margin: 1.3rem 0 2.1rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-pts { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-pt b { display: block; font-size: 1.35rem; letter-spacing: -.02em; color: var(--indigo); }
.hero-pt span { font-size: .78rem; color: var(--faint); }

/* The product carries the page — no frame, no card, just the garment on white. */
.hero-shot { border-radius: 6px; }
.hero-shot img {
  border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: contain;
  background: var(--chalk); padding: 6%;
}
.hero-shot .cap { font-size: .82rem; color: var(--faint); margin-top: .9rem; text-align: center; }

/* ------------------------------------------------------------ sections */

.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-chalk { background: var(--chalk); }
.sec-head { max-width: var(--wrap-text); margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head .kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--thread); margin-bottom: .6rem;
}
.sec-head p { color: var(--muted); margin: .8rem 0 0; font-size: 1.03rem; }

/* --------------------------------------------------------- card grids */

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.g-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--paper); border: 0; border-radius: var(--r);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
a.card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.card-img { aspect-ratio: 4/5; background: var(--chalk); position: relative; overflow: hidden; border-radius: var(--r); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.card-img .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--faint); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.card-body { padding: 1rem .25rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body h3 { font-size: 1.02rem; }
.card-body .sub { font-size: .84rem; color: var(--muted); }
.card-body .price { margin-top: auto; padding-top: .6rem; font-size: .9rem; }
.card-body .price b { font-size: 1.12rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card-body .price span { color: var(--faint); font-size: .8rem; }

.swatches { display: flex; gap: .25rem; margin-top: .2rem; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(17,22,29,.18); }

/* ------------------------------------------------------------- badges */

.tag {
  display: inline-block; font-family: var(--f-mono); font-size: .67rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: .18em .5em; border-radius: 2px; border: 1px solid currentColor;
}
.t-good { color: var(--good); }
.t-warn { color: var(--warn); }
.t-bad  { color: var(--bad); }
.t-flat { color: var(--faint); }
.t-fill { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ------------------------------------------------------- product page */

.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem,4vw,2.8rem) 0 clamp(3rem,6vw,5rem); align-items: start; }
@media (max-width: 980px) { .pdp { grid-template-columns: 1fr; } }

.crumbs { font-size: .82rem; color: var(--muted); padding: 1rem 0 .2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pdp-title h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.pdp-title .sub { color: var(--muted); font-size: 1.02rem; margin-top: .5rem; }

.spec { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.2rem 0; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec div { font-size: .86rem; }
.spec div b { display: block; font-family: var(--f-mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: .1rem; }

.opt { margin: 1.4rem 0; }
.opt > label, .opt > .lbl {
  display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .55rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--r);
  padding: .45rem .85rem; font-size: .87rem; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: .45rem; transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.chip .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(17,22,29,.22); flex-shrink: 0; }
.chip .fee { font-size: .76rem; opacity: .72; font-variant-numeric: tabular-nums; }

/* size grid */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.size-cell { border: 1px solid var(--line); border-radius: var(--r); padding: .45rem; text-align: center; background: var(--paper); }
.size-cell label { display: block; font-size: .74rem; font-weight: 650; color: var(--muted); margin-bottom: .25rem; }
.size-cell input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none;
  text-align: center; font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums;
  padding: .12rem 0; color: var(--ink);
}
.size-cell input:focus { outline: none; border-bottom-color: var(--thread); }
.size-cell.has { border-color: var(--indigo); }

/* price ladder */
.ladder { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: .4rem; }
.ladder th, .ladder td { padding: .4rem .6rem; text-align: left; border-bottom: 1px solid var(--line-2); }
.ladder th { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.ladder td.n { font-variant-numeric: tabular-nums; text-align: right; }
.ladder tr.on td { background: var(--sunk); font-weight: 650; }

/* running total */
.total {
  background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.1rem; margin: 1.4rem 0;
}
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .89rem; padding: .2rem 0; }
.total-row.big { font-size: 1.06rem; font-weight: 650; border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .65rem; }
.total-row .n { font-variant-numeric: tabular-nums; }
.total-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* --------------------------------------------------------- designer */

.dz { position: sticky; top: 84px; }
.stage-wrap { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stage { position: relative; width: 100%; display: block; touch-action: none; cursor: grab; background: var(--sunk); }
.stage.dragging { cursor: grabbing; }
.stage-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 2rem; pointer-events: none;
}
.stage-empty p { color: var(--muted); font-size: .9rem; max-width: 30ch; margin: 0; }

.dz-bar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .75rem; border-top: 1px solid var(--line); background: var(--paper); }
.dz-bar .grow { flex: 1; }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 1.4rem 1rem;
  text-align: center; cursor: pointer; background: var(--paper);
  transition: border-color .13s, background .13s;
}
.drop:hover, .drop.over { border-color: var(--thread); background: #FFF8F4; }
.drop b { display: block; font-size: .95rem; margin-bottom: .2rem; }
.drop span { font-size: .82rem; color: var(--muted); }

.slider { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.slider input[type=range] { flex: 1; accent-color: var(--indigo); }

.logo-facts { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); padding: .7rem .75rem; border-top: 1px solid var(--line); background: var(--paper); }
.logo-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- quote page */

.quote-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; padding: 2rem 0 4rem; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

.line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.line img { width: 84px; height: 100px; object-fit: cover; border-radius: 3px; background: var(--sunk); }
.line h4 { font-size: .98rem; margin-bottom: .2rem; }
.line .meta { font-size: .82rem; color: var(--muted); }
.line .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line .amt b { font-size: 1.02rem; }
.line .rm { background: none; border: 0; color: var(--faint); font-size: .78rem; cursor: pointer; padding: .2rem 0; text-decoration: underline; }
.line .rm:hover { color: var(--bad); }

/* ------------------------------------------------------------- forms */

.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .82rem; font-weight: 570; margin-bottom: .3rem; color: var(--ink-2); }
.field .hint { font-size: .76rem; color: var(--faint); margin-top: .25rem; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: .93rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30,48,84,.1); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.panel.chalk { background: var(--chalk); }

.note { border-left: 3px solid var(--thread); background: var(--chalk); padding: .8rem 1rem; font-size: .88rem; margin: 1rem 0; }
.note b { display: block; margin-bottom: .2rem; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty h2 { margin-bottom: .5rem; }

/* --------------------------------------------------------- trust strip */

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.4rem; }
.trust div b { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.trust div p { font-size: .88rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- misc */

.steps { counter-reset: s; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  background: var(--indigo); color: #fff; border-radius: var(--r);
  font-family: var(--f-mono); font-size: .82rem; font-weight: 600;
}
.step b { display: block; margin-bottom: .3rem; }
.step p { font-size: .89rem; color: var(--muted); margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-2); text-decoration: none;
}
.wa-float:hover { background: #1FBA57; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r);
  font-size: .9rem; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; box-shadow: var(--shadow-2);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.tiny { font-size: .78rem; color: var(--faint); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.scroll-x { overflow-x: auto; }

/* -------------------------------------------------------------- footer */

.ftr { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 0; }
.ftr-in {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem,5vw,3.5rem) clamp(1rem,4vw,2rem) 2rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 800px) { .ftr-in { grid-template-columns: 1fr 1fr; } }
.ftr-col { display: flex; flex-direction: column; gap: .4rem; }
.ftr-col b { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.ftr-col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .88rem; }
.ftr-col a:hover { color: #fff; text-decoration: underline; }
.ftr-col p { font-size: .88rem; margin: 0; }
.ftr-btm {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem clamp(1rem,2.4vw,2.75rem);
  max-width: var(--wrap); margin: 0 auto; font-size: .8rem; color: rgba(255,255,255,.5);
}

/* --------------------------------------------------------------- admin */

body.admin { background: var(--chalk); }
.adm { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .adm { grid-template-columns: 1fr; } }
.adm-side { background: var(--ink); color: rgba(255,255,255,.7); padding: 1.2rem 0; }
.adm-side .lg { padding: 0 1.2rem 1.2rem; color: #fff; font-weight: 650; letter-spacing: -.02em; }
.adm-side a { display: block; padding: .55rem 1.2rem; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; border-left: 3px solid transparent; }
.adm-side a:hover { color: #fff; background: rgba(255,255,255,.05); }
.adm-side a.on { color: #fff; border-left-color: var(--thread); background: rgba(255,255,255,.06); }
.adm-main { padding: clamp(1.2rem,3vw,2.2rem); max-width: 1100px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }

.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; }
.tbl th, .tbl td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl th { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunk); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { font-variant-numeric: tabular-nums; text-align: right; }
.tbl img.thumb { width: 40px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--sunk); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--indigo); }
.login-card { background: var(--paper); border-radius: 6px; padding: 2rem; width: 100%; max-width: 380px; box-shadow: var(--shadow-2); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hdr, .ftr, .wa-float, .btn { display: none !important; }
}

/* ------------------------------------------------------- bake station */

.bake { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1050px) { .bake { grid-template-columns: 1fr; } }

.bake-stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
#stage {
  width: 100%; aspect-ratio: 4/5; min-height: 380px;
  /* a checker ground reads as "transparent output" and shows up stray
     background pixels in the render before they reach the shop */
  background:
    linear-gradient(45deg, #eceef0 25%, transparent 25%, transparent 75%, #eceef0 75%),
    linear-gradient(45deg, #eceef0 25%, #f7f8f9 25%, #f7f8f9 75%, #eceef0 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
#stage canvas { display: block; width: 100% !important; height: 100% !important; }
.bake-side { display: flex; flex-direction: column; gap: 1rem; }
.bake-side .panel { padding: 1rem; }
.bake-side .field { margin-bottom: .7rem; }
.bake-side .field label { display: block; }

/* ------------------------------------- category tiles (the shop-front row) */

/* The pattern the big print shops use: the product floats on a soft tinted
   square, and the LABEL SITS BELOW the tile, not inside a card. It reads as a
   shop shelf rather than a grid of boxes, and it lets uneven product photos
   share a row without looking ragged. */

.tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.3rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: .5rem;
  scrollbar-width: thin;
}
@media (max-width: 900px) { .tiles { grid-auto-columns: minmax(140px, 46vw); } }

.tile { text-decoration: none; color: inherit; scroll-snap-align: start; display: block; }
.tile-img {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  display: grid; place-items: center;
  transition: box-shadow .15s ease;
}
.tile:hover .tile-img { box-shadow: var(--shadow-2); }
.tile-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.tile-img .ph {
  color: var(--faint); font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.tile b { display: block; margin-top: .9rem; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.tile span { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }
.tile span.from { color: var(--ink); font-weight: 600; }

/* section header with a "see all" on the same line */
.sec-bar { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.sec-bar h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.sec-bar a { font-size: .89rem; font-weight: 550; color: var(--indigo); text-decoration: none; }
.sec-bar a:hover { text-decoration: underline; }

/* --------------------------------------------- three value props under hero */

.props { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.props-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.15rem clamp(1rem, 2.4vw, 2.75rem);
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.prop { display: flex; align-items: center; gap: .8rem; }
.prop .disc {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--tintblue); color: var(--indigo);
  display: grid; place-items: center;
}
.prop b { display: block; font-size: .95rem; font-weight: 620; }
.prop span { font-size: .84rem; color: var(--muted); }

/* ---------------------------------------------------- ops: order pipeline */

.chips-f { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip-f {
  font-size: .82rem; text-decoration: none; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  padding: .35rem .75rem; border-radius: 980px;
}
.chip-f b { color: var(--faint); font-weight: 600; margin-left: .2rem; }
.chip-f:hover { border-color: var(--ink-2); }
.chip-f.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-f.on b { color: rgba(255,255,255,.7); }

/* the whole pipeline as buttons — one click moves the order on, which is what
   the office does fifty times a day */
.pipeline { display: flex; flex-wrap: wrap; gap: .4rem; }
.step-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: .84rem; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line);
  padding: .45rem .85rem; border-radius: 980px; color: var(--muted);
}
.step-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.step-btn.done { color: var(--good); border-color: rgba(31,122,77,.35); }
.step-btn.done .dot { background: var(--good); }
.step-btn.now { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.step-btn.now .dot { background: #fff; }

.stage-mini { width: 96px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.stage-mini span { display: block; height: 100%; background: var(--good); }

.timeline { display: flex; flex-direction: column; gap: .5rem; }
.tl {
  border-left: 2px solid var(--line); padding: .1rem 0 .5rem .9rem;
}
.tl b { font-size: .92rem; }
.tl span { display: block; }
.tl p { margin: .2rem 0 0; }

/* ------------------------------------------------- use-case tiles & band */

.use-img { display: grid; place-items: center; }
.use-ico { display: block; width: clamp(46px, 5vw, 68px); }
.use-ico svg { width: 100%; height: auto; display: block; }
.tile.use b { margin-top: .8rem; }

/* A dark band breaks the run of white sections and gives the price ladder —
   the thing bulk buyers actually came for — somewhere to land. */
.band { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.band-in {
  display: grid; gap: clamp(1.8rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
}
@media (max-width: 900px) { .band-in { grid-template-columns: 1fr; } }
.band h2 { color: #fff; max-width: 16ch; }
.band p { color: rgba(255,255,255,.72); max-width: 46ch; margin: 1rem 0 1.6rem; font-size: 1.05rem; }
.band .btn-ink { background: #fff; color: var(--ink); }
.band .btn-ink:hover { background: var(--chalk); color: var(--ink); }

/* min-width:0 because a grid item defaults to min-width:auto and will refuse
   to shrink below its content, pushing the whole row off the page. */
.ladder-demo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; min-width: 0; }
.rung {
  background: rgba(255,255,255,.08); border-radius: 12px;
  padding: 1rem .35rem; text-align: center; min-width: 0;
}
.rung b { display: block; font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 500; }
.rung span { display: block; font-size: clamp(.95rem, 1.2vw, 1.3rem); font-weight: 650; letter-spacing: -.025em; margin-top: .25rem; white-space: nowrap; }
.rung.best { background: #fff; color: var(--ink); }
.rung.best b { color: var(--muted); }
