/* Park Life Designs Wholesale: the shop (prototype).
   Same brand as the landing page: Oswald capitals for headings, Lato body, black and white,
   gold rules, teal accent. Light only. Built for phones first, with more columns on iPad and computers. */
:root {
  color-scheme: light;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --sunken: #f1f1ef;
  --fg: #111111;
  --muted: #666a6d;
  --faint: #9a9d9f;
  --line: #e4e4e1;
  --field: #cfcfcb;
  --accent: #2e7d84;
  --brand: #2e7d84;
  --brand-dark: #23646a;
  --accent-soft: #e7f2f2;
  --ink: #111111;
  --ink-fg: #ffffff;
  --gold: #bfa577;
  --gold-text: #8a7046;
  --ok: #2f7a4f;
  --ok-soft: #e8f3ec;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --pre: #4b5bb0;
  --pre-soft: #eceefa;
  --bad: #b03a2e;
  --bar-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.45; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 76rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 48rem) { .wrap { padding-inline: 28px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; margin: 0; }
.label { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: .5rem; padding: .5rem 1.1rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
/* Primary buttons in the brand color (teal, from the Park Life Designs guidelines) */
.btn.ink { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.ink:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.lg { min-height: 52px; font-size: 1.05rem; padding-inline: 1.5rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; padding: 0; min-height: 32px; }

.proto { background: var(--warn-soft); color: var(--warn); font-size: .8rem; padding-block: .4rem; }
.proto b { font-weight: 900; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .5rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 36px; height: 36px; }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-family: var(--display); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .86rem; white-space: nowrap; }
.brand i { font-style: normal; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.icon-btn { position: relative; color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); padding: 0 .7rem; font-weight: 700; }
.icon-btn .svg { width: 1.3rem; height: 1.3rem; }
.icon-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
.loc-btn { max-width: 14rem; }
.loc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 40rem) {
  .brand span { display: none; }
  .loc-btn { max-width: 11rem; font-size: .9rem; }
}

/* Welcome and offer */
.hello { padding-block: 1.2rem .4rem; }
.hello h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.hello p { margin: 0; color: var(--muted); }
.offer { display: flex; gap: .7rem; align-items: center; background: var(--ink); color: #fff; border-radius: .6rem; padding: .8rem 1rem; margin-top: .6rem; }
.offer .svg { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.offer b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; }

.search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--field); border-radius: .5rem; padding: 0 .8rem; }
.search .svg { color: var(--muted); }
.search input { border: 0; outline: none; background: transparent; min-height: 46px; flex: 1; min-width: 0; font-size: 16px; }

/* Main navigation: in the header on wide screens, its own row on phones */
.nav { display: flex; gap: .25rem; margin-right: auto; }
.nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: .5rem; text-decoration: none; color: var(--muted); font-weight: 700; }
.nav a .svg { width: 1.15rem; height: 1.15rem; }
.nav a[aria-current=page] { background: var(--sunken); color: var(--fg); }
.brand { margin-right: 1rem; }
.nav a { position: relative; }
.nav .dot { position: static; margin-left: .15rem; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 47.99rem) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .brand { margin-right: auto; }
  /* Phones: the five sections as a tab row, icon above a short label */
  .nav { order: 3; width: 100%; margin: 0 -4px; padding-bottom: .3rem; gap: 0; }
  .nav a { flex: 1; flex-direction: column; justify-content: center; gap: .1rem; padding: .3rem 0; min-height: 50px; font-size: .7rem; }
  .nav a .svg { width: 1.25rem; height: 1.25rem; }
  .nav .dot { position: absolute; right: calc(50% - 22px); top: 2px; margin: 0; }
}
@media (min-width: 48rem) and (max-width: 74rem) { .nav a { padding: 0 .6rem; } .nav a .svg { display: none; } }
/* iPad and small laptops: logo without the words, and icon-only location and account buttons, so the menu never overlaps */
@media (min-width: 48rem) and (max-width: 64rem) { .top .brand span { display: none; } .top .acct-name { display: none; } .top .loc-btn span { max-width: 5.5rem; } }

/* Search, category and layout */
.tools { padding-block: 1rem .3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.tool-row { display: flex; gap: .6rem; align-items: center; }
.cat-pick { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--field); border-radius: .5rem; padding: 0 .8rem; }
.cat-pick .svg { color: var(--muted); }
.cat-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; min-height: 46px; flex: 1; width: 100%; min-width: 0; font-size: 16px; font-weight: 700; padding-right: 1.4rem; text-overflow: ellipsis; }
.cat-pick::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.seg { display: inline-flex; background: var(--sunken); border-radius: .5rem; padding: .2rem; flex: none; }
.seg button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; border-radius: .4rem; min-height: 42px; padding: 0 .8rem; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 30rem) { .seg button span { display: none; } }
.shop-layout { display: block; }
.cats { display: none; }
/* iPad landscape and up: the running order sits beside the products (and the bottom bar goes) */
.side-cart { display: none; }
@media (min-width: 64rem) {
  .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.4rem; align-items: start; }
  .side-cart { display: grid; gap: .7rem; position: sticky; top: 76px; margin-top: 1rem; max-height: calc(100dvh - 92px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; }
  body.on-shop { padding-bottom: 0; }
  body.on-shop .bar { display: none; }
}
/* Wide screens: the category list as a sidebar too */
@media (min-width: 80rem) {
  .shop-layout { grid-template-columns: 13rem minmax(0, 1fr) 19rem; }
  .cats { display: grid; gap: .15rem; position: sticky; top: 76px; padding-top: 1rem; }
  .cats .label { margin: .2rem 0 .5rem .7rem; }
  .cats button { display: flex; justify-content: space-between; gap: .5rem; text-align: left; border: 0; background: transparent; border-radius: .45rem; min-height: 40px; padding: 0 .7rem; color: var(--fg); }
  .cats button em { font-style: normal; color: var(--faint); font-size: .85rem; }
  .cats button[aria-pressed=true] { background: var(--ink); color: #fff; }
  .cats button[aria-pressed=true] em { color: rgba(255,255,255,.7); }
  .cats hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; width: 100%; }
  .cat-pick { display: none; }
  .tool-row { justify-content: flex-end; }
  .tools { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .9rem; padding-block: .4rem 1.5rem; }
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.1rem; } }
.card { position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: .6rem; overflow: hidden; padding: 0; }
.card:hover { border-color: #c9c9c4; }
.card .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: .7rem .8rem .8rem; display: grid; gap: .25rem; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.card h3 { font-size: .98rem; letter-spacing: .04em; }
.card .price { font-weight: 700; }
.card .price small { font-weight: 400; color: var(--muted); }
.card .meta { font-size: .8rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; max-width: 100%; font-size: .7rem; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: .15rem .55rem; background: var(--ok-soft); color: var(--ok); }
.badge.low { background: var(--warn-soft); color: var(--warn); }
.badge.pre { background: var(--pre-soft); color: var(--pre); }
.card .incart { position: absolute; top: .5rem; left: .5rem; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .6rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* List layout (quick order) */
.qo { padding-block: .4rem 1.5rem; }
.qo h2 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.qo-row { display: grid; grid-template-columns: 52px 1fr auto; gap: .4rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .7rem; margin-bottom: .4rem; }
.qo-row img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: .3rem; }
.qo-row .t b { display: block; font-size: .93rem; }
.qo-row .t small { color: var(--muted); font-size: .8rem; }
.qo-row .t .badge { margin-top: .2rem; }
@media (max-width: 34rem) { .qo-row { grid-template-columns: 44px 1fr; } .qo-row img { width: 44px; height: 44px; } .qo-row .step { grid-column: 1 / -1; justify-self: end; } }


/* Stepper (case packs) */
.step { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: .5rem; background: var(--surface); overflow: hidden; }
.step button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--fg); }
.step button:disabled { color: var(--faint); cursor: not-allowed; }
.step output { min-width: 3.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.step output small { display: block; font-size: .65rem; font-weight: 400; color: var(--muted); margin-top: -.2rem; }
.step.on { border-color: var(--ink); }

/* Bottom order bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; padding-bottom: env(safe-area-inset-bottom); }
.bar .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--bar-h); }
.bar .sum { flex: 1; min-width: 0; }
.bar .sum b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; }
.bar .sum small { display: block; color: rgba(255,255,255,.75); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .meter { height: 4px; background: rgba(255,255,255,.18); border-radius: 2px; margin-top: .35rem; overflow: hidden; }
.bar .meter i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; }
.bar .btn { background: #fff; color: var(--fg); border-color: #fff; }

/* Sheets */
dialog.sheet { border: 0; padding: 0; width: 100%; max-width: 44rem; height: 100dvh; max-height: 100dvh; margin: 0 auto; background: var(--bg); color: var(--fg); }
@media (min-width: 48rem) { dialog.sheet { height: auto; max-height: calc(100dvh - 3rem); margin-top: 1.5rem; border-radius: .8rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); } }
dialog.sheet.wide { max-width: 60rem; }
dialog.sheet.narrow { max-width: 28rem; }
dialog.sheet::backdrop { background: rgba(10,10,10,.55); }
.sheet-in { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.sheet-h { display: flex; align-items: center; gap: .6rem; background: var(--surface); border-bottom: 1px solid var(--line); padding: .7rem 16px; padding-top: max(.7rem, env(safe-area-inset-top)); }
.sheet-h h2 { font-size: 1.2rem; margin-right: auto; min-width: 0; }
.sheet-h small { display: block; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--muted); }
.x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); border-radius: .5rem; flex: none; }
.sheet-b { flex: 1; overflow-y: auto; padding: 1rem 16px 1.4rem; -webkit-overflow-scrolling: touch; }
.sheet-f { background: var(--surface); border-top: 1px solid var(--line); padding: .8rem 16px; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); display: flex; gap: .6rem; align-items: center; }
.sheet-f .tot { margin-right: auto; }
.sheet-f .tot b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.sheet-f .tot small { display: block; color: var(--muted); font-size: .8rem; }
@media (min-width: 48rem) { .sheet-h, .sheet-b, .sheet-f { padding-inline: 1.5rem; } }

/* Product sheet */
.pd { display: grid; gap: 1.2rem; }
@media (min-width: 48rem) { .pd { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
/* A smaller photo, so colors and quantities are in view straight away */
.pd-photo { background: #fff; border: 1px solid var(--line); border-radius: .6rem; aspect-ratio: 4 / 3; max-height: 34vh; width: 100%; display: grid; place-items: center; overflow: hidden; }
@media (min-width: 48rem) { .pd-photo { aspect-ratio: 1; max-height: 52vh; } }
.pd-photo img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .4rem; overflow-x: auto; margin-top: .5rem; scrollbar-width: none; }
.thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: .4rem; background: #fff; overflow: hidden; }
.thumbs button[aria-current=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; margin: .2rem 0 .8rem; }
.pd-facts b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.pd p.desc { margin: 1rem 0 .8rem; color: var(--muted); font-size: .94rem; }
.rows { display: grid; gap: .45rem; }
.vrow { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .55rem .7rem; }
.vrow.sel { border-color: var(--ink); }
.vrow .c { text-align: left; border: 0; background: none; padding: 0; min-width: 0; }
.vrow .c b { display: block; }
.vrow .c small { color: var(--muted); font-size: .8rem; }
.vrow .badge { margin-top: .2rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .88rem; margin: 1rem 0 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* Order (cart) */
.cart-sec h3 { font-size: .95rem; margin: .4rem 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.cart-sec + .cart-sec { margin-top: 1.1rem; }
.cline { display: grid; grid-template-columns: 52px 1fr auto; gap: .3rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .55rem .7rem; margin-bottom: .4rem; }
.cline img { width: 52px; height: 52px; object-fit: contain; }
.cline .t b { display: block; font-size: .93rem; }
.cline .t small { color: var(--muted); font-size: .8rem; }
.cline .right { display: grid; justify-items: end; gap: .3rem; }
.cline .lt { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .cline { grid-template-columns: 44px 1fr; } .cline img { width: 44px; height: 44px; } .cline .right { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: center; justify-content: space-between; } }
.note { display: flex; gap: .6rem; align-items: flex-start; border-radius: .5rem; padding: .7rem .8rem; font-size: .9rem; margin-bottom: .8rem; background: var(--accent-soft); }
.note .svg { margin-top: .1rem; color: var(--accent); }
.note.ok { background: var(--ok-soft); } .note.ok .svg { color: var(--ok); }
.note.warn { background: var(--warn-soft); } .note.warn .svg { color: var(--warn); }
.note .meter { height: 5px; background: rgba(0,0,0,.08); border-radius: 3px; margin-top: .45rem; overflow: hidden; }
.note .meter i { display: block; height: 100%; background: var(--gold); }
.totals { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .8rem 1rem; margin-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; font-size: .94rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 900; color: var(--fg); border-top: 1px solid var(--line); padding-top: .45rem; }

/* Checkout */
.co-sec { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .9rem 1rem; margin-bottom: .8rem; }
.co-sec h3 { font-size: .95rem; margin-bottom: .6rem; }
.co-sec p { margin: 0; font-size: .93rem; }
.opt { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--field); border-radius: .5rem; padding: .7rem .8rem; margin-top: .5rem; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--ink); flex: none; }
.opt b { display: block; font-size: .94rem; }
.opt small { color: var(--muted); font-size: .84rem; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: .5rem; background: var(--surface); padding: .6rem .8rem; font-size: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.shopify { font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }

.done { text-align: center; padding: 1.5rem 0 .5rem; }
.done .badge-ok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--ok-soft); color: var(--ok); }
.done .badge-ok .svg { width: 36px; height: 36px; }
.done h2 { font-size: 1.8rem; }
.done .rule { width: 3rem; height: 2px; background: var(--gold); border: 0; margin: .9rem auto 1.1rem; }
.done p { color: var(--muted); max-width: 30rem; margin: 0 auto .7rem; }
/* Order placed: centred in the sheet, with a summary and what happens next */
#co .sheet-b:has(.placed) { display: flex; flex-direction: column; }
.done.placed { margin: auto 0; padding: 1rem 0; width: 100%; }
.placed-sum { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; text-align: left; max-width: 26rem; margin: 1.4rem auto 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; font-size: .95rem; }
.placed-sum dt { color: var(--muted); }
.placed-sum dd { margin: 0; text-align: right; }
.next-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 26rem; margin: 1.4rem auto 0; padding: 0; text-align: center; font-size: .85rem; }
.next-steps li { counter-increment: s; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.next-steps li::before { content: counter(s); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--fg); font-weight: 700; margin-bottom: .2rem; }
.next-steps span { color: var(--muted); line-height: 1.35; }
#coFoot:has([data-view]) { justify-content: center; }
#coFoot:has([data-view]) .btn { flex: 1; max-width: 13rem; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: #222; color: #fff; padding: .65rem 1rem; border-radius: .5rem; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

@media (prefers-reduced-motion: no-preference) {
  .toast { animation: up .2s ease-out; }
  @keyframes up { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
  .done .badge-ok { animation: pop .35s ease-out; }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* Home (dashboard) */
.hello { padding-block: 1.2rem .4rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; gap: .2rem; align-content: start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .9rem 1rem; color: inherit; text-decoration: none; }
a.tile:hover, button.tile:hover { border-color: #c9c9c4; }
.tile .k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.tile b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.tile small { color: var(--muted); font-size: .84rem; }
.inprog { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; background: var(--surface); border: 1px solid var(--ink); border-radius: .6rem; padding: .9rem 1rem; margin-top: 1rem; }
.inprog div { flex: 1; min-width: 12rem; }
.inprog b { display: block; }
.inprog small { color: var(--muted); }
.home-cols { display: grid; gap: 1.2rem; margin: 1.4rem 0 1.5rem; }
@media (min-width: 60rem) { .home-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; }
.panel + .panel { margin-top: 1.2rem; }
.panel-h { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.panel-h h2 { font-size: 1.1rem; margin-right: auto; }
.panel-h a { color: var(--accent); font-weight: 700; font-size: .9rem; }
.actions { display: grid; gap: .5rem; }
.action { display: flex; align-items: center; gap: .8rem; min-height: 52px; border: 1px solid var(--line); background: var(--surface); border-radius: .5rem; padding: .5rem .8rem; text-align: left; color: inherit; text-decoration: none; }
.action > .svg:first-child { color: var(--accent); width: 1.3rem; height: 1.3rem; }
.action span { flex: 1; }
.action span small { display: block; color: var(--muted); font-size: .82rem; }
.action > .svg:last-child { color: var(--faint); }
.new-list { display: grid; gap: .6rem; }
.new-item { display: grid; grid-template-columns: 56px 1fr; gap: .8rem; align-items: center; border: 0; background: none; padding: 0; text-align: left; }
.new-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: .4rem; }
.new-item small { display: block; color: var(--muted); font-size: .82rem; }
.start { text-align: center; padding: 1.4rem 1rem; }
.start p { color: var(--muted); margin: .4rem auto 1rem; max-width: 30rem; }

/* Orders */
.orders-h { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding-block: 1.2rem .6rem; }
.orders-h h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-right: auto; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 38px; padding: 0 .9rem; font-weight: 700; font-size: .88rem; color: var(--muted); }
.filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .75rem .9rem; margin-bottom: .45rem; color: inherit; }
.orow:hover { border-color: #c9c9c4; }
.orow b { font-size: 1rem; }
.orow small { color: var(--muted); font-size: .84rem; }
.orow .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.pill.prep { background: var(--warn-soft); color: var(--warn); }
.pill.ship { background: var(--accent-soft); color: var(--accent); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.pre { background: var(--pre-soft); color: var(--pre); }
.pill.issue { background: #f8e9e7; color: var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }

/* Order detail */
.timeline { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.timeline li { border-top: 3px solid var(--line); padding-top: .45rem; font-size: .84rem; color: var(--muted); }
.timeline li b { display: block; color: var(--fg); font-size: .9rem; }
.timeline li.on { border-color: var(--ok); }
.timeline li.now { border-color: var(--gold); }
.track { font-size: .9rem; margin: -.3rem 0 1rem; }
.track a { color: var(--accent); font-weight: 700; }
.ol { display: grid; grid-template-columns: 44px 1fr auto; gap: .2rem .8rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ol img { width: 44px; height: 44px; object-fit: contain; }
.ol small { display: block; color: var(--muted); font-size: .8rem; }
.ol > .num { text-align: right; }
.od-actions { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.od-actions .btn { flex: 1 1 9rem; }

/* Invoice, packing list and credit note: the same layout as Fetch's */
.doc { background: #fff; color: #111; border: 1px solid var(--line); border-radius: .4rem; padding: 1.5rem; font-size: .88rem; display: grid; gap: 1.1rem; }
.doc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.doc-h img { width: 72px; height: 72px; flex: none; }
.doc-from { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; }
.doc-from address { font-style: normal; font-size: .8rem; line-height: 1.5; color: #444; }
.doc-from address a { color: inherit; }
.doc-help { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: .4rem; padding: .7rem .9rem; font-size: .85rem; }
.doc-help p { margin: .3rem 0 0; color: #444; }
.doc-help a { color: var(--fg); font-weight: 700; }
.doc-title { text-align: right; display: grid; gap: .25rem; }
.doc-title h3 { font-size: 1.8rem; letter-spacing: .12em; line-height: 1; }
.doc-title h3::after { content: ""; display: block; width: 2.6rem; height: 3px; background: var(--gold); margin: .5rem 0 0 auto; }
.doc-title b { font-size: 1rem; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .8rem 1.2rem; margin: 0; background: var(--sunken); border-radius: .4rem; padding: .8rem 1rem; }
.doc-meta dt, .doc-parties .label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.doc-meta dd { margin: .2rem 0 0; font-weight: 700; }
.doc-meta dd small { display: block; font-weight: 400; color: var(--muted); }
.doc-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem 1.2rem; }
.doc-parties p { margin: .25rem 0 0; line-height: 1.5; }
.doc-lines { width: 100%; border-collapse: collapse; }
.doc-lines th { text-align: left; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid #111; padding: .4rem .35rem; white-space: nowrap; }
.doc-lines td { border-bottom: 1px solid var(--line); padding: .5rem .35rem; vertical-align: top; }
.doc-lines td small { display: block; color: var(--muted); font-size: .78rem; }
.doc .r { text-align: right; white-space: nowrap; }
.doc-note { margin: 0; font-size: .82rem; color: #444; background: var(--warn-soft); border-radius: .4rem; padding: .6rem .8rem; }
.doc-totals { margin-left: auto; width: min(100%, 19rem); display: grid; gap: .3rem; }
.doc-totals div { display: flex; justify-content: space-between; gap: 1rem; }
.doc-totals .grand { font-weight: 900; font-size: 1rem; border-top: 1.5px solid #111; padding-top: .4rem; margin-top: .1rem; }
.doc-status { display: flex; align-items: center; gap: .9rem; border-radius: .5rem; padding: .85rem 1rem; border: 1.5px solid; }
.doc-status .ds-ic { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.doc-status .ds-ic .svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.6; }
.doc-status > span:last-child { display: grid; gap: .1rem; }
.doc-status b { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.doc-status small { font-size: .82rem; color: #444; }
.doc-status.paid { background: #eef6f0; border-color: #2f7a4b; color: #1f5c37; } .doc-status.paid .ds-ic { background: #2f7a4b; }
.doc-status.credit { background: #f6f1e7; border-color: #a0804a; color: #6d5530; } .doc-status.credit .ds-ic { background: #a0804a; }
.doc-status.due { background: #f6f6f4; border-color: #999; color: #333; } .doc-status.due .ds-ic { background: #777; }
.doc-track { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.doc-track a { color: var(--accent); font-weight: 700; }
/* The friendly footer, as on Fetch's invoices, emails and printouts */
.doc-f { display: grid; justify-items: center; gap: .65rem; text-align: center; border-top: 1px solid #e6e6e3; padding-top: 1.3rem; margin-top: .4rem; }
.doc-thanks { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: #111; }
.brand-foot { display: grid; gap: .3rem; text-align: center; font-size: .8rem; color: #555; line-height: 1.5; max-width: 30rem; }
.brand-foot p { margin: 0; }
.brand-foot .q { font-weight: 700; color: #333; }
.brand-foot a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.brand-foot .promise { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--gold-text); margin-top: .2rem; }
.upc-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; margin-right: auto; cursor: pointer; }
.upc-toggle input { width: 20px; height: 20px; accent-color: var(--ink); }
@media (max-width: 34rem) {
  .doc { padding: 1rem; gap: .9rem; }
  .doc-h img { width: 56px; height: 56px; }
  .doc-title h3 { font-size: 1.4rem; }
  .doc-from { flex-direction: column; gap: .5rem; }
  .doc-lines th:nth-child(2), .doc-lines td:nth-child(2) { display: none; }   /* SKU column: hidden on phones (it's printed) */
}
@media print { .doc-lines th:nth-child(2), .doc-lines td:nth-child(2) { display: table-cell !important; } }

/* Report an issue */
.isl { display: grid; grid-template-columns: 44px 1fr auto; gap: .2rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .7rem; margin-top: .4rem; }
.isl img { width: 44px; height: 44px; object-fit: contain; }
.isl small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 34rem) { .isl { grid-template-columns: 44px 1fr; } .isl .step { grid-column: 1 / -1; justify-self: end; } }
.photo-pick { position: relative; display: flex; align-items: center; gap: .7rem; border: 1.5px dashed #bdbdb8; border-radius: .5rem; background: var(--surface); padding: .8rem; margin-top: .4rem; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.photo-pick .svg { color: var(--accent); width: 1.5rem; height: 1.5rem; }
.field textarea { width: 100%; min-height: 90px; border: 1px solid var(--field); border-radius: .5rem; background: var(--surface); padding: .6rem .8rem; font-size: 16px; resize: vertical; }
.err-msg { color: var(--bad); font-size: .86rem; margin-top: .4rem; }

/* Printing an invoice or credit note: only the document */
@media print {
  body.printing { padding: 0; background: #fff; }
  body.printing > :not(#od) { display: none !important; }
  body.printing #od { position: static; display: block; max-width: none; height: auto; max-height: none; margin: 0; box-shadow: none; background: #fff; }
  body.printing #od .sheet-h, body.printing #od .sheet-f { display: none; }
  body.printing #od .sheet-b { overflow: visible; padding: 0; }
  body.printing .doc { border: 0; }
}

/* Promotions */
.was { color: var(--faint); font-weight: 400; font-size: .85em; }
.badge.promo { background: #f6ecdc; color: #8a5a1c; }
.badge.promo .svg { width: .9em; height: .9em; }
.card .body .badge + .badge { margin-top: .1rem; }
.note.promo { background: #f6ecdc; } .note.promo .svg { color: #8a5a1c; }
.pill.low { background: var(--warn-soft); color: var(--warn); }
.promo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; background: var(--ink); color: #fff; border-radius: .6rem; padding: 1rem 1.1rem; margin-top: 1rem; }
.promo-banner > .svg { color: var(--gold); width: 1.6rem; height: 1.6rem; }
.promo-banner > div { flex: 1; min-width: 14rem; display: grid; gap: .2rem; }
.promo-banner .label { color: var(--gold); }
.promo-banner b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.promo-banner small { color: rgba(255,255,255,.8); }
.promo-banner .btn { background: #fff; color: var(--fg); border-color: #fff; }

/* What's new on Home */
.news-wrap { margin-top: 1.2rem; }
.news-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
@media (min-width: 60rem) { .news-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.news { display: grid; grid-template-rows: auto 1fr; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 0; overflow: hidden; scroll-snap-align: start; color: inherit; }
.news img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.news > span { display: grid; gap: .25rem; padding: .7rem .8rem .9rem; align-content: start; }
.news b { font-size: .98rem; }
.news small { color: var(--muted); font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* The running order */
.side-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.side-h h2 { font-size: 1.1rem; }
.side-h small { color: var(--muted); }
.side-prog { font-size: .84rem; color: var(--muted); }
.side-prog.ok { color: var(--ok); }
.side-prog .meter { height: 5px; background: var(--sunken); border-radius: 3px; margin-top: .35rem; overflow: hidden; }
.side-prog .meter i { display: block; height: 100%; background: var(--gold); }
.side-ev { display: flex; gap: .4rem; align-items: center; font-size: .82rem; background: #f6ecdc; color: #8a5a1c; border-radius: .4rem; padding: .4rem .55rem; }
.side-lines { display: grid; gap: .1rem; max-height: 40vh; overflow: auto; border-block: 1px solid var(--line); padding-block: .3rem; }
.side-lines p { font-size: .86rem; margin: .5rem 0; }
.sl { display: grid; grid-template-columns: 38px 1fr auto; gap: .55rem; align-items: center; padding: .35rem 0; font-size: .84rem; }
.sl + .sl { border-top: 1px solid var(--line); }
.sl img { width: 38px; height: 38px; object-fit: contain; }
.sl b { display: block; font-weight: 700; line-height: 1.25; }
.sl small { display: block; color: var(--muted); font-size: .76rem; }
.side-tot { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; margin: 0; font-size: .88rem; }
.side-tot dt { color: var(--muted); }
.side-tot dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.side-tot .g { font-weight: 900; color: var(--fg); border-top: 1px solid var(--line); padding-top: .3rem; }

/* My account */
.small { font-size: .84rem; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 .8rem; }
.three .field select { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: .5rem; background: var(--surface); padding: .6rem .8rem; font-size: 16px; }
@media (max-width: 30rem) { .three { grid-template-columns: 1fr 1fr; } .three > :first-child { grid-column: 1 / -1; } }
.field { margin-bottom: .8rem; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
@media (min-width: 60rem) { .acct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .acct-grid .span2 { grid-column: 1 / -1; } }
.acct-grid .panel + .panel { margin-top: 0; }
.panel-h h2 { display: flex; align-items: center; gap: .5rem; }
.panel-h h2 .svg { color: var(--accent); }
.kv { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem 1rem; margin: 0; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.arow { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.arow > span:first-child { flex: 1; min-width: 0; }
.arow b { display: block; }
.arow small { display: block; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.etable { overflow-x: auto; }
.erow { display: grid; grid-template-columns: minmax(10rem, 1fr) repeat(var(--n, 3), 4.5rem); align-items: center; border-top: 1px solid var(--line); min-height: 48px; font-size: .9rem; }
.erow.ehead { border-top: 0; font-size: .74rem; font-weight: 700; color: var(--muted); text-align: center; min-height: 32px; }
.erow.ehead span:first-child { text-align: left; }
.echk { display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.echk input { width: 20px; height: 20px; accent-color: var(--ink); }
.proto-panel { background: var(--warn-soft); border-color: transparent; }

/* Messages */
.mwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 60rem) { .mwrap { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } .back { display: none !important; } }
@media (max-width: 59.99rem) { .mwrap.showing .mlist { display: none; } .mwrap:not(.showing) .mpane { display: none; } }
.mlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; align-content: start; min-width: 0; }
.mpane { min-width: 0; }
.mrow { display: flex; gap: .7rem; align-items: flex-start; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .8rem; color: inherit; }
.mrow.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mrow > span:first-child { flex: 1; min-width: 0; }
.mrow b { display: block; }
.mrow small { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmeta { display: grid; justify-items: end; gap: .3rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.udot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); display: block; }
.mpane { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; display: flex; flex-direction: column; min-height: 22rem; }
.mempty { align-items: center; justify-content: center; }
.mhead { padding: .9rem 1rem; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.mhead h2 { font-size: 1.15rem; }
.mhead small { color: var(--muted); font-size: .84rem; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; }
.back .svg { transform: rotate(180deg); }
.bubbles { flex: 1; display: grid; gap: .7rem; align-content: start; padding: 1rem; max-height: 55vh; overflow-y: auto; background: var(--bg); }
.bub { max-width: 85%; border-radius: .8rem; padding: .6rem .8rem; }
.bub p { margin: .2rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.bub .who { font-size: .74rem; color: var(--muted); }
.bub.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: .2rem; }
.bub.me .who { color: rgba(255,255,255,.7); }
.bub.them { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: .2rem; }
.bub .att { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; margin-top: .3rem; opacity: .85; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; border: 1px solid var(--field); border-radius: .5rem; padding: .6rem .7rem; font-size: 16px; resize: vertical; }
.composer .icon-btn { cursor: pointer; }
@media (max-width: 30rem) { .composer .btn span { display: none; } }
.mform { padding: 1rem; }
.mform select { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: .5rem; background: var(--surface); padding: .6rem .8rem; font-size: 16px; }

/* Marketing kit */
.kit-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.kfile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .9rem 1rem; color: inherit; text-decoration: none; }
.kfile > .svg { color: var(--accent); width: 1.6rem; height: 1.6rem; }
.kfile > span:nth-child(2) { flex: 1 1 11rem; min-width: 0; }
.kfile > .btn { margin-left: auto; }
.kfile b { display: block; }
.kfile small { display: block; color: var(--muted); font-size: .82rem; }
.kit-h { font-size: 1.2rem; margin-bottom: .7rem; }
.kphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; }
.kphotos figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.kphotos img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.kphotos figcaption { display: flex; gap: .4rem; padding: .5rem; border-top: 1px solid var(--line); }
.kphotos figcaption .btn { flex: 1; padding: .4rem .5rem; font-size: .88rem; min-height: 40px; }

.opt.off { opacity: .55; cursor: not-allowed; }

/* Promo codes */
.promo-box { display: flex; align-items: flex-start; gap: .6rem; flex-wrap: wrap; background: var(--surface); border: 1px dashed var(--field); border-radius: .5rem; padding: .7rem .8rem; margin-top: .8rem; font-size: .92rem; }
.co-sec .promo-box { margin-top: 0; border-style: solid; border-color: var(--line); }
.promo-box > .svg { color: #8a5a1c; margin-top: .15rem; }
.promo-box > div { flex: 1; min-width: 12rem; }
.promo-box small { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.promo-box.ok { background: #f6ecdc; border-style: solid; border-color: transparent; }
.promo-box.warn { background: var(--warn-soft); border-style: solid; border-color: transparent; }
.promo-box.warn small { color: var(--warn); }
.promo-field { display: grid; gap: .3rem; width: 100%; margin: 0; }
.promo-field > span:first-child { font-weight: 700; font-size: .9rem; }
.promo-row { display: flex; gap: .5rem; }
.promo-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--field); border-radius: .5rem; padding: .5rem .7rem; font-size: 16px; text-transform: uppercase; }
.side-ev.warn { background: var(--warn-soft); color: var(--warn); }

.note-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.note-actions .btn { min-height: 40px; }

/* Sold-out colors stay visible (Oct 8, 2026) */
.badge.out { background: #eee; color: #666; }
/* The shop uses the full width of big screens: 3 to 5 product cards a row, not 2 large ones */
@media (min-width: 64rem) {
  body.on-shop .wrap { max-width: 110rem; }
  .shop-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
}
@media (min-width: 80rem) { .shop-layout { grid-template-columns: 12rem minmax(0, 1fr) 18rem; } }
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); } }
/* Live checkout: a problem opening Shopify's checkout */
.err-box { border: 1px solid #e3b4ae; background: #fbefed; color: #7a2018; border-radius: .5rem; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.err-box p { margin: .3rem 0 0; }
/* Live order: email the confirmation again */
.email-copy { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.email-copy label { font-weight: 700; }
.email-copy input { min-width: 0; text-transform: none; }
/* Product: one card per color (like Fetch), sizes as headings; the photo follows the color */
.vgroup { font-family: var(--display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem; margin: 1rem 0 .45rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .55rem; }
.vcard { display: grid; gap: .45rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .7rem; cursor: pointer; }
.vcard:hover, .vcard.sel { border-color: var(--ink); }
.vcard .vname { display: flex; align-items: center; gap: .5rem; border: 0; background: none; padding: 0; text-align: left; min-width: 0; font: inherit; color: inherit; }
.vcard .vname b { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.vcard .step { justify-self: start; }
.vmeta { color: var(--muted); font-size: .78rem; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .3rem; }
.vmeta .st { font-weight: 700; color: #2f6b43; }
.vmeta .st.low { color: #9a6a00; } .vmeta .st.pre { color: #a1453a; } .vmeta .st.out { color: var(--muted); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f8a55; display: inline-block; flex: none; }
.dot.low { background: #d39b1c; } .dot.pre { background: #c0392b; } .dot.out { background: #9a9a96; }
.sw { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; display: inline-block; object-fit: cover; background: #fff; }
.card .dots { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: .1rem 0 .15rem; }
.card .dots .sw { width: .95rem; height: .95rem; }
.card .dots em { font-style: normal; font-size: .75rem; color: var(--muted); }
@media (max-width: 34rem) { .vgrid { grid-template-columns: 1fr 1fr; } .vcard .step button { width: 38px; } .vcard .step output { min-width: 2.4rem; } }
.pd > * { min-width: 0; }
@media (max-width: 34rem) { .vgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Product photos: every thumbnail visible (they wrap), and arrows on the big photo */
.thumbs { flex-wrap: wrap; overflow: visible; }
.pd-photo { position: relative; }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); font-size: 1.6rem; line-height: 1; color: var(--fg); display: grid; place-items: center; padding: 0 0 .15rem; }
.ph-nav.prev { left: .5rem; } .ph-nav.next { right: .5rem; }
.ph-nav:hover { border-color: var(--ink); }
.ph-count { position: absolute; bottom: .5rem; right: .6rem; font-size: .75rem; color: var(--muted); background: rgba(255, 255, 255, .9); border-radius: 1rem; padding: .1rem .5rem; }
/* How it works */
.faqs { display: grid; gap: .5rem; max-width: 52rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; }
.faq summary { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; cursor: pointer; font-weight: 700; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 1.3rem; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq summary .svg { flex: none; color: var(--gold, #b08d57); }
.faq-a { padding: 0 1rem 1rem 3rem; font-size: .95rem; }
.faq-a p { margin: 0 0 .6rem; } .faq-a ul { margin: 0 0 .6rem; padding-left: 1.1rem; } .faq-a li { margin-bottom: .3rem; }
.faq-a .ftable { border-collapse: collapse; width: 100%; max-width: 30rem; margin: .2rem 0 .8rem; font-size: .9rem; }
.faq-a .ftable th, .faq-a .ftable td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.faq-a .ftable th small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
@media (max-width: 34rem) { .faq-a { padding-left: 1rem; } }
/* What's new cards like Fetch's: a strip of up to three photos, a type chip and the date */
.news-pics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #fff; }
.news-pics.n1 { grid-template-columns: 1fr; } .news-pics.n2 { grid-template-columns: 1fr 1fr; }
.news-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0; border-left: 1px solid var(--line); }
.news-pics img:first-child { border-left: 0; }
.news-pics.n1 img { aspect-ratio: 16 / 9; }
.news-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.news-meta .chip { background: #e4efe9; color: #2f6b55; border-radius: 1rem; padding: .15rem .6rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news b { font-size: 1.05rem; }
@media (min-width: 60rem) { .news-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-pics img { object-fit: contain; padding: .35rem; }
.news-pics.n1 img { object-fit: cover; padding: 0; }
/* My account › Emails (live): addresses for each email */
.erow-live { display: grid; gap: .45rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.erow-live .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-mail { display: inline-flex; align-items: center; gap: .2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; padding: .15rem .2rem .15rem .7rem; font-size: .88rem; max-width: 100%; overflow-wrap: anywhere; }
.chip-mail button { border: 0; background: none; width: 32px; height: 32px; font-size: 1.1rem; color: var(--muted); border-radius: 50%; }
.chip-mail button:hover { color: var(--fg); background: var(--surface); }
.add-mail input { text-transform: none; max-width: 22rem; }
#account .panel-h { flex-wrap: wrap; gap: .4rem .8rem; }

/* Shop: one lifestyle photo per category (Home uses the Featured photos instead) */
.cat-hero { position: relative; height: clamp(120px, 18vw, 200px); border-radius: .7rem; overflow: hidden; margin-bottom: 1rem; background: var(--sunken); }
.cat-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-hero > div { position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem; background: linear-gradient(0deg, rgba(10,10,10,.6), rgba(10,10,10,0)); color: #fff; }
.cat-hero .label { color: #fff; opacity: .85; }
.cat-hero h2 { margin: .2rem 0 0; color: #fff; }
.bar .meter i, .note .meter i { background: var(--brand); }
/* Phones: a shorter photo and one scrolling row of thumbnails, so colors and quantities show without scrolling */
@media (max-width: 47.99rem) {
  .pd-photo { max-height: 24vh; }
  .pd .thumbs { flex-wrap: nowrap; overflow-x: auto; }
  .pd .thumbs button { width: 44px; height: 44px; }
}

/* Featured products on Home: lifestyle photos fill the card */
.news.feat img { object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 60rem) { .news-row.feat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* iPad: two by two; phones: one row you swipe */
@media (min-width: 40rem) and (max-width: 59.99rem) { .news-row.feat-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } }
.news.feat small s { color: var(--muted); }

/* Account menu in the header: name, My account and Log out always one tap away */
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; }
.acct > summary::-webkit-details-marker { display: none; }
.acct-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 40rem) { .acct-name { display: none; } }
.acct-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60; min-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: .4rem; display: grid; }
.acct-pop a, .acct-pop button { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .7rem; border: 0; border-radius: .4rem; background: none; color: inherit; text-decoration: none; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.acct-pop a:hover, .acct-pop button:hover { background: var(--sunken); }
.acct-pop .svg { width: 1.15rem; height: 1.15rem; color: var(--muted); }
.acct-who { margin: .2rem .7rem .4rem; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.acct-who b { color: var(--fg); display: block; }
.acct-out { border-top: 1px solid var(--line) !important; border-radius: 0 0 .4rem .4rem !important; margin-top: .2rem; color: var(--warn, #9a3412) !important; }

/* Drafts on the Orders page: an order in progress, with Continue and Delete */
.orow.draft { border-style: dashed; }
.orow.draft .draft-act { grid-column: 1 / -1; display: flex; gap: .5rem; justify-content: flex-end; }
