/* WPI site engine — RETAIL-family "Curated Retail" skin (recipe registry
   skinKey: 'retail-bright'). Same CLASS CONTRACT as the classic auto sheet (so
   app.js renders it unchanged and the engine stays one engine, N skins) — only
   the PRESENTATION is re-skinned for a shop: a bright, airy white/paper system
   where the per-merchant brand color is used as ACCENT CHROME (eyebrow, badges,
   chips, rules, focus) rather than as big dark fills. The hero is LIGHT and
   shop-first (no dark navy block), product cards are uniform with a hover lift +
   image zoom + a hover-reveal Add control, merchandising badges sit on the
   media, and a category rail reads as pill chips. Per-merchant --brand/--accent
   are still injected + AA-clamped by app.js at runtime on top of these defaults,
   so a shop's own colors win verbatim. Spirit: docs/recipe-mocks/retail.html.

   AA NOTE (the iter7 lesson): app.js clamps --brand to >=4.5:1 against BOTH pure
   white AND the hardcoded LIGHTEST_SURFACE (#f5f7fa) — so (a) brand-as-text is
   safe ONLY on surfaces at least that light, and (b) white-on-brand is always
   safe. This sheet therefore keeps every brand-tinted surface VERY light (>= the
   #f5f7fa luminance) wherever --brand is used as text, uses pure #fff on any
   solid --brand fill, and uses --ink (warm near-black) on the warm brand-wash
   chips so a brand-tinted chip can never dip below AA for any merchant hue. */

/* Display face: the engine bundles ONE self-hosted variable woff2 (Archivo),
   served same-origin so the strict 'self' CSP allows it. The retail skin uses
   it for BOTH UI and display headings — a tight, clean, retail-grotesk voice —
   with NO extra font request (fast CWV, font-src 'self'). */
@font-face{
  font-family:'Archivo';
  src:url('archivo.woff2') format('woff2');
  font-weight:500 900;
  font-style:normal;
  font-display:swap;
}

:root{
  /* ---- Brand (runtime-injected + WCAG-clamped by app.js; never hardcode) ----
     Defaults are the retail family's teal/orange so a shop that never touches
     its colors still ships a bright boutique look; a merchant's own
     --brand/--accent override these at runtime. */
  --brand:#0F766E;          /* curated teal — eyebrow, badges, chips, rules, primary fill */
  --brand-fg:#ffffff;
  --accent:#EA580C;          /* warm merchandising orange (>=4.5:1 with white text) */
  --accent-fg:#ffffff;
  --accent-on-dark:#F6A06A;  /* accent tint for eyebrow/text over a photo-hero scrim */

  /* ---- Neutrals (bright paper-white structural palette; all >=4.5:1 where used) ---- */
  --ink:#1b1714;             /* headings, prices, names — warm near-black */
  --body:#494139;            /* body text — warm graphite */
  --muted:#6e6358;           /* secondary; >=4.5:1 on #fff + the warm alt surface */
  --line:#ece5db;            /* hairlines on paper */
  --line-strong:#d8cdbf;     /* heavier dividers / input borders */
  --bg:#ffffff;              /* crisp white page (airy) */
  --bg-alt:#faf6f0;          /* alt sections — barely-warm paper (lum >= #f5f7fa) */
  --bg-sunken:#f3ece2;       /* deeper panel wells */

  /* ---- Foundation scales (one clean grotesk for UI + display) ---- */
  --display:'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale (1.25 major-third, fluid where it earns it) */
  --fs-eyebrow:.76rem;
  --fs-sm:.875rem;
  --fs-base:1rem;
  --fs-lg:1.125rem;
  --fs-h3:1.22rem;
  --fs-h2:clamp(1.7rem,3.3vw,2.5rem);
  --fs-h1:clamp(2.3rem,5.4vw,3.9rem);

  /* Spacing scale (4 / 8 px rhythm) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;

  /* Derived brand ramp (tenant color flows through via color-mix) */
  --brand-strong:color-mix(in srgb, var(--brand) 84%, #000);   /* hover fill */
  --brand-wash:color-mix(in srgb, var(--brand) 6%, #fff);       /* faint tint (lum stays high) */
  --brand-chip:color-mix(in srgb, var(--brand) 12%, #fff);      /* icon chip */
  --brand-ring:color-mix(in srgb, var(--brand) 40%, transparent);
  --focus-ring:var(--brand);

  /* "Dark" hero palette — kept for class-contract parity (token names match the
     auto sheet so app.js is unchanged). Retail's DEFAULT hero is LIGHT (see
     .hero below); these warm-charcoal tones are used ONLY when a merchant adds a
     hero PHOTO (.hero--has-image) so the white hero copy stays AA over the scrim. */
  --navy-900:#1c130b;
  --navy-800:#2a1d12;
  --navy-700:color-mix(in srgb, var(--brand) 22%, #34251a);

  /* Elevation — soft, warm-tinted so cards lift cleanly off the white */
  --sh-sm:0 1px 2px rgba(27,23,20,.05), 0 1px 4px rgba(27,23,20,.06);
  --sh-md:0 4px 12px rgba(27,23,20,.07), 0 16px 34px rgba(27,23,20,.10);
  --sh-lg:0 12px 26px rgba(27,23,20,.12), 0 34px 66px rgba(27,23,20,.18);
  /* Card-hover lift gets a faint brand tint so the merchandising read is warm */
  --sh-card:0 18px 40px -16px color-mix(in srgb,var(--brand) 26%, rgba(27,23,20,.5));
  --shadow:var(--sh-md);     /* back-compat alias for the original token */

  /* Radii — clean, modern shop corners */
  --radius:16px;
  --r-sm:11px;
  --r-pill:999px;

  --maxw:1240px;
  font-synthesis:none;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;color:var(--body);background:var(--bg);
  font-family:var(--sans);font-size:var(--fs-base);
  line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3{font-family:var(--display);color:var(--ink);line-height:1.06;margin:0 0 .4em;letter-spacing:-.02em;font-weight:800}
p{margin:0 0 1em}
a{color:var(--brand);text-decoration:none}
.muted{color:var(--muted)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;border-radius:8px;
}

/* ---------------- Buttons (clean retail pills) ---------------- */
.btn{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--sans);font-weight:700;font-size:.95rem;letter-spacing:.005em;
  border:1.5px solid transparent;border-radius:var(--r-pill);padding:.82em 1.6em;
  cursor:pointer;line-height:1;white-space:nowrap;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn--lg{padding:1em 1.95em;font-size:1.05rem}
.btn--block{width:100%}
.btn--primary{background:var(--brand);color:var(--brand-fg);box-shadow:0 8px 20px color-mix(in srgb,var(--brand) 26%,transparent)}
.btn--primary:hover{background:var(--brand-strong);transform:translateY(-2px);box-shadow:0 14px 30px color-mix(in srgb,var(--brand) 34%,transparent)}
.btn--accent{background:var(--accent);color:var(--accent-fg);box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 28%,transparent)}
.btn--accent:hover{background:color-mix(in srgb,var(--accent) 86%,#000);transform:translateY(-2px);box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 36%,transparent)}
.btn--ghost{background:#fff;border-color:var(--line-strong);color:var(--ink)}
.btn--ghost:hover{border-color:color-mix(in srgb,var(--brand) 55%,var(--line-strong));background:var(--brand-wash);transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.99)}
.btn--phone{font-variant-numeric:tabular-nums}

/* ---------------- Topbar (airy, glassy on white) ---------------- */
.topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,#fff 84%,transparent);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid var(--line)}
.topbar__inner{display:flex;align-items:center;gap:26px;height:72px}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--display);font-weight:800;color:var(--ink)}
.brand__badge{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(150deg,var(--brand),color-mix(in srgb,var(--accent) 70%,var(--brand)));color:var(--brand-fg);font-size:.92rem;font-weight:800;letter-spacing:.01em;box-shadow:var(--sh-sm)}
.brand__logo{height:42px;max-height:42px;width:auto;max-width:190px;object-fit:contain;display:block}
.brand__name{font-size:1.16rem;letter-spacing:-.015em}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{position:relative;color:var(--body);font-weight:600;font-size:.94rem;padding:9px 14px;border-radius:var(--r-pill);transition:color .15s ease, background .15s ease}
.nav a:hover{color:var(--ink);background:var(--brand-wash)}
.topbar .btn--phone{margin-left:8px}

/* ---------------- Hero (LIGHT + airy, shop-first; brand as accent chrome) ----------------
   Retail's signature departure from the auto/food DARK hero: a bright paper
   block with dark-on-light copy, a soft brand-tinted radial glow, and the quote
   /add card floating with strong elevation. Over a merchant PHOTO the sheet
   swaps to a dark scrim (.hero--has-image) so the copy goes white + AA-safe. */
.hero{
  position:relative;overflow:hidden;color:var(--ink);
  padding:72px 0 64px;
  background:
    radial-gradient(820px 520px at 88% -10%, color-mix(in srgb,var(--accent) 16%,transparent), transparent 60%),
    radial-gradient(720px 520px at 4% 8%, var(--brand-wash), transparent 56%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
/* faint paper-grid texture (very low contrast, decorative only) */
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(27,23,20,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(27,23,20,.025) 1px,transparent 1px);
  background-size:46px 46px;mask-image:radial-gradient(120% 100% at 50% 0,#000,transparent 80%);
}
.hero::after{content:"";position:absolute;right:-160px;bottom:-160px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--brand) 14%,transparent),transparent 70%);pointer-events:none}
/* Merchant hero background image (optional): app.js sets --hero-image + adds
   this class and the AA-clamped scrim vars. The token names match the auto sheet
   so app.js is unchanged; over a photo the copy goes WHITE and the scrim keeps
   >=4.5:1 over ANY image at any setting. */
.hero--has-image{
  color:#fff;
  background:
    radial-gradient(900px 540px at 84% 10%, color-mix(in srgb,var(--accent) 24%,transparent), transparent 58%),
    linear-gradient(160deg, color-mix(in srgb,var(--navy-900) var(--hero-ov-top,90%),transparent) 0%, color-mix(in srgb,var(--navy-800) var(--hero-ov-mid,82%),transparent) 52%, color-mix(in srgb,var(--navy-900) var(--hero-ov-bot,87%),transparent) 100%),
    var(--hero-image) center / cover no-repeat,
    var(--navy-900);
}
.hero--has-image::before{opacity:.18}
.hero--has-image h1{color:#fff}
.hero--has-image .lede{color:#f3ece2}
.hero--has-image .hero__trust{color:#efe6da;border-top-color:rgba(255,255,255,.18)}
/* Over a photo the eyebrow goes a warm accent tint (AA over the dark scrim);
   on the LIGHT default hero it is the brand color (AA on the light paper). */
.hero--has-image .eyebrow{color:var(--accent-on-dark)}
.hero--has-image .eyebrow::before{background:var(--accent-on-dark)}
.hero__inner{display:grid;grid-template-columns:1.06fr .94fr;gap:52px;align-items:center;position:relative;z-index:1}
.hero__inner:has(> .hero__copy:only-child){grid-template-columns:1fr;max-width:880px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.18em;font-size:var(--fs-eyebrow);font-weight:800;font-family:var(--sans);color:var(--brand);margin:0 0 16px}
.eyebrow::before{content:"";width:26px;height:2px;border-radius:2px;background:var(--brand)}
.hero h1{color:var(--ink);font-size:var(--fs-h1);font-weight:800;line-height:1;letter-spacing:-.028em;margin:0 0 .2em}
.lede{font-size:clamp(1.06rem,1.6vw,1.28rem);color:var(--body);margin:0 0 30px;max-width:44ch;line-height:1.55}
.hero__cta{display:flex;gap:13px;flex-wrap:wrap}
.hero__trust{margin-top:30px;display:flex;align-items:center;gap:14px;color:var(--body);font-size:.96rem;font-weight:600;flex-wrap:wrap;padding-top:26px;border-top:1px solid var(--line)}
.stars{color:var(--accent);letter-spacing:2px}
.hero--has-image .stars{color:#ffc24b}

/* Hero quote/add card — floats on white with strong elevation + an accent edge */
.hero__card{background:#fff;color:var(--ink);border-radius:var(--radius);padding:28px;box-shadow:var(--sh-lg);position:relative;overflow:hidden;border:1px solid var(--line)}
.hero__card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--brand),color-mix(in srgb,var(--brand) 55%,var(--accent)))}
.hero__card h2{margin:0 0 .15em;font-size:1.34rem;font-weight:800}
.qform{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.qfield{display:flex;flex-direction:column;gap:6px}
.qfield label{font-size:.82rem;font-weight:700;color:var(--ink);font-family:var(--sans)}
.req{font-weight:400;color:var(--ink)}
.qform input,.qform select{width:100%;box-sizing:border-box;padding:.82em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.qform input:focus,.qform select:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
.qform__note{font-size:.8rem;color:var(--muted);margin:.8em 0 0}
.qfield--hp{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:fixed;top:0;left:0;z-index:1000;background:var(--ink);color:#fff;padding:10px 16px;border-bottom-right-radius:10px;font-weight:700;transform:translateY(-120%);transition:transform .15s ease}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}

/* ---------------- Trust strip (LIGHT + airy: white surface, brand icon chips) ----------------
   Retail keeps the trust strip BRIGHT (matches the mock) rather than a solid
   brand band: --ink text on the warm alt surface (AA for any merchant brand,
   since text never depends on --brand) with brand-tinted icon chips. Chip text
   is never brand-on-brand, so the iter7 trustbar AA trap can't occur. */
.trustbar{background:var(--bg-alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trustbar__inner{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 44px;padding:22px 0}
.trustbar__item{display:inline-flex;align-items:center;gap:11px;font-family:var(--sans);font-weight:700;font-size:.92rem;color:var(--ink)}
.trustbar__item svg{width:38px;height:38px;padding:8px;border-radius:11px;background:var(--brand-chip);color:var(--brand);flex:none}

/* ---------------- Sections ---------------- */
.section{padding:84px 0}
.section--alt{background:var(--bg-alt)}
.section__title{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.022em;position:relative;padding-top:20px}
/* accent marker rule above each section title (brand) */
.section__title::before{content:"";position:absolute;top:0;left:0;width:50px;height:4px;border-radius:3px;background:var(--brand)}
.section__sub{color:var(--muted);margin:.55em 0 40px;font-size:var(--fs-lg);max-width:62ch;line-height:1.55}

/* ---------------- Grids / cards ---------------- */
.grid{display:grid;gap:24px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--sh-sm);transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.card:hover{transform:translateY(-5px);box-shadow:var(--sh-card);border-color:transparent}
.card__icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--brand-chip);color:var(--brand);margin-bottom:18px}
.card__icon svg{width:26px;height:26px}
.card h3{font-size:var(--fs-h3);font-weight:700;margin-bottom:.32em;letter-spacing:-.01em}
.card p{margin:0;color:var(--body)}
.card--media{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card__media{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--bg-alt)}
.card--media .card__body{padding:22px 24px 24px;flex:1}

/* ---------------- Reviews ---------------- */
.reviews__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:36px;flex-wrap:wrap}
.card.review{display:flex;flex-direction:column}
.review .review__stars{color:#b45309;letter-spacing:2px;margin-bottom:10px;font-size:1.05rem} /* >=4.5:1 on white */
.review p{font-size:1.04rem;color:var(--body);line-height:1.5}
.review__name{font-weight:800;font-family:var(--sans);color:var(--ink);margin-top:16px}
.review-attrib{grid-column:1/-1;margin:0 0 4px;font-size:.9rem;font-weight:700}
.review__author{display:flex;align-items:center;gap:10px;margin-top:16px}
.review__author .review__name{margin-top:0}
a.review__name{text-decoration:none}
a.review__name:hover,a.review__name:focus-visible{text-decoration:underline}
.review__avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.empty-state{grid-column:1/-1;padding:20px 0}

/* ---------------- Gallery (lookbook tiles) ---------------- */
.tile{aspect-ratio:1/1;border-radius:var(--radius);background:linear-gradient(140deg,color-mix(in srgb,var(--brand) 30%,#caa),color-mix(in srgb,var(--brand) 60%,#5e4636));position:relative;overflow:hidden;display:flex;align-items:flex-end;color:#fff;box-shadow:var(--sh-sm)}
.tile:nth-child(2n){background:linear-gradient(140deg,#d8cdbf,#8a7d6c)}
.tile:nth-child(3n){background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 36%,#e8c4a8),color-mix(in srgb,var(--accent) 62%,#7a4a2e))}
.tile__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.tile:hover .tile__img{transform:scale(1.05)}
.tile span{position:relative;padding:26px 14px 13px;font-weight:600;font-size:.9rem;background:linear-gradient(transparent,rgba(20,13,8,.62) 38%);width:100%}

/* ---------------- Products catalog == THE SHOP FLOOR ----------------
   Uniform merchandising cards: square media on a soft wash, a hover lift + image
   zoom, badges pinned to the media, brand-colored price, and a hover-reveal Add
   control (the .btn--add the engine renders inside the card). */
/* Category/section heading renders as a full-width shop aisle label with a
   brand marker + a trailing hairline (mirrors the mock's category rows). */
.catalog__section{grid-column:1/-1;margin:26px 0 4px;font-family:var(--display);font-size:1.34rem;font-weight:800;letter-spacing:-.015em;color:var(--ink);display:flex;align-items:center;gap:16px}
.catalog__section::before{content:"";width:14px;height:14px;border-radius:4px;background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--accent) 70%,var(--brand)));flex:none}
.catalog__section::after{content:"";flex:1;height:1px;background:var(--line-strong)}
.catalog__section:first-child{margin-top:0}
.card--product{position:relative;padding:0;overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--sh-sm);transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
.card--product:hover{transform:translateY(-6px);box-shadow:var(--sh-card);border-color:transparent}
.product__media{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--bg-alt);transition:transform .5s ease}
.card--product:hover .product__media{transform:scale(1.05)}
.product__media--ph{display:grid;place-items:center;background:radial-gradient(120% 90% at 60% 10%,var(--brand-wash),var(--bg-alt));color:var(--brand);transition:transform .5s ease}
.product__media--ph svg{width:46px;height:46px;opacity:.55}
.product__body{display:flex;flex-direction:column;gap:5px;padding:18px 18px 20px;flex:1}
.card--product .product__name{font-size:1.08rem;font-weight:700;font-family:var(--display);margin:0;letter-spacing:-.01em;line-height:1.2}
.product__desc{margin:0;font-size:.9rem;color:var(--muted);line-height:1.45}
.product__price{margin-top:auto;padding-top:12px;color:var(--ink);font-weight:800;font-size:1.18rem;font-variant-numeric:tabular-nums}
.card--out{filter:saturate(.45)}
.card--out .product__media{transform:none}
/* Merchandising badge pinned to the media (New / Best seller / Low stock etc.).
   Solid brand fill with pure #fff text (white-on-brand is AA-guaranteed by the
   runtime clamp), so any merchant hue stays legible. */
.product__badge{position:absolute;top:13px;left:13px;z-index:2;background:var(--brand);color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:.42em .85em;border-radius:var(--r-pill);box-shadow:0 2px 8px rgba(27,23,20,.18)}
/* Optional display-only tag chips (parity with the food sheet; never emitted on
   auto). --ink text on the warm brand wash keeps AA for ANY merchant brand. */
.product__tags{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.product__tag{display:inline-flex;align-items:center;font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);background:var(--brand-chip);border:1px solid var(--brand-ring);padding:.28em .7em;border-radius:var(--r-pill)}

/* ---------------- Cart (Add-to-cart + sticky drawer) ---------------- */
/* The in-card Add control: a confident accent pill at the foot of the card,
   nudged on hover for the merchandising read. */
.btn--add{margin-top:14px;align-self:stretch;justify-content:center;background:var(--accent);color:var(--accent-fg);border-color:transparent;box-shadow:0 6px 16px color-mix(in srgb,var(--accent) 26%,transparent)}
.btn--add:hover{background:color-mix(in srgb,var(--accent) 86%,#000);transform:translateY(-2px);box-shadow:0 12px 26px color-mix(in srgb,var(--accent) 34%,transparent)}
.cart__count{display:inline-grid;place-items:center;min-width:1.5em;padding:.05em .45em;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums}
dialog.cartdrawer{margin:0 0 0 auto;width:min(420px,100%);max-width:420px;height:100dvh;max-height:100dvh;border-radius:0;animation:slidein .22s ease;overflow-y:auto;background:var(--bg)}
@keyframes slidein{from{transform:translateX(28px);opacity:.4}to{transform:none;opacity:1}}
.cartdrawer__inner{display:flex;flex-direction:column;min-height:100%}
.cartdrawer__inner > div{display:flex;flex-direction:column;flex:1}
.cartitem{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.cartitem__info{flex:1;min-width:0}
.cartitem__name{font-weight:700;color:var(--ink)}
.cartitem__price{font-size:.88rem;color:var(--muted)}
.cartitem__qty{display:flex;align-items:center;gap:8px}
.qtybtn{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line-strong);background:#fff;color:var(--ink);font-size:1.05rem;line-height:1;cursor:pointer;display:grid;place-items:center;transition:border-color .15s,background .15s}
.qtybtn:hover{background:var(--bg-alt);border-color:var(--brand)}
.cartitem__count{min-width:2ch;text-align:center;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.cartitem__remove{display:inline-flex;align-items:center;min-height:24px;border:0;background:none;color:var(--muted);cursor:pointer;font-size:.85rem;font-weight:600;text-decoration:underline;text-underline-offset:2px;padding:.3em .2em}
.cartitem__remove:hover{color:var(--ink)}
.cart__subtotal{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;color:var(--ink);font-size:1.14rem;padding:18px 0 4px}
.cart__note{font-size:.82rem;color:var(--muted);margin:.4em 0 16px}
.cart__error{color:#b3362e;font-size:.9rem;margin:0 0 10px}
.cart__actions{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:16px}

/* ---------------- Contact ---------------- */
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.contact__line{display:flex;gap:14px;align-items:center;font-size:var(--fs-lg);margin:.6em 0}
.ico{width:40px;height:40px;border-radius:12px;display:inline-grid;place-items:center;background:var(--brand-chip);color:var(--brand);flex:none}
.ico svg{width:20px;height:20px}
.hours__title{margin-top:32px;font-size:var(--fs-h3);font-weight:800;letter-spacing:-.01em}
.hours{border-collapse:collapse;width:100%;max-width:400px}
.hours td{padding:.55em 0;border-bottom:1px solid var(--line)}
.hours td:last-child{text-align:right;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.holidays{margin-top:24px;max-width:400px}
.holidays__title{margin:0 0 8px;font-size:1.05rem;font-weight:800}
.holidays__list{list-style:none;margin:0;padding:0}
.holiday{padding:.45em 0;border-bottom:1px solid var(--line);font-size:.98rem}
.holiday__when{font-weight:700;color:var(--ink)}
.holiday__label{color:var(--muted)}
.contact__cta{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.map{min-height:380px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-sunken);box-shadow:var(--sh-sm)}
.map iframe{width:100%;height:100%;border:0;min-height:380px}

/* ---------------- Footer (warm charcoal, not navy) ---------------- */
.footer{background:#1c130b;color:#cabba9;padding:44px 0}
.footer__inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.92rem;align-items:center}
.footer__powered{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.6em}
.footer__powered strong{color:#fff}
.wpi-credit{height:18px;width:auto;display:inline-block;vertical-align:middle}
.footer__links{display:inline-flex;flex-wrap:wrap;gap:.6em;font-size:.86rem}
.footer__links a:not(:last-child)::after{content:"·";margin-left:.6em;color:#a08c75;text-decoration:none}
.footer a{color:#e2d4c2;text-decoration:underline;text-underline-offset:2px}
.footer a:hover{color:#fff}

/* ---------------- Sticky mobile pay/cart bar ---------------- */
.paybar{position:fixed;bottom:0;left:0;right:0;z-index:45;display:none;gap:10px;padding:10px 14px;background:color-mix(in srgb,#fff 96%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(27,23,20,.08)}
.paybar .btn{flex:1}

/* ---------------- Dialog / modal ---------------- */
dialog.modal{border:0;border-radius:20px;padding:0;max-width:460px;width:calc(100% - 40px);box-shadow:var(--sh-lg);animation:pop .18s ease;background:var(--bg)}
dialog.modal:not([open]){display:none}
dialog.modal::backdrop{background:rgba(20,13,8,.5);backdrop-filter:blur(2px)}
.modal__inner{position:relative;padding:30px;border-radius:inherit}
@keyframes pop{from{transform:translateY(10px) scale(.98);opacity:.5}to{transform:none;opacity:1}}
.modal__x{position:absolute;right:8px;top:8px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:none;font-size:1.8rem;line-height:1;cursor:pointer;color:var(--muted)}
.modal__x:hover{color:var(--ink)}
.modal h3{margin-top:0}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-size:.85rem;font-weight:700;color:var(--ink)}
.field input,.field select,.field textarea{padding:.8em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
.secured{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted);margin-top:16px;justify-content:center}
.success{text-align:center;padding:12px 0}
.success__check{width:64px;height:64px;border-radius:50%;background:#15803d;color:#fff;display:grid;place-items:center;font-size:2rem;margin:0 auto 18px;box-shadow:0 8px 20px rgba(21,128,61,.28)}
.redirect-note{font-size:.8rem;word-break:break-all;text-align:center;margin-top:10px}

/* ---------------- Draft-preview banner ---------------- */
.draftbar{background:var(--accent);color:#fff;text-align:center;font-size:.85rem;font-weight:700;padding:10px 14px;position:relative;z-index:50}

/* ---------------- Responsive ---------------- */
@media (max-width:1040px){
  .grid--4{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px){
  .hero__inner{gap:40px}
  .contact__grid{gap:40px}
}
@media (max-width:880px){
  .hero{padding:52px 0 48px}
  .hero__inner{grid-template-columns:1fr;gap:36px}
  /* Phase 2 — mobile contact/quote form: form (phone field) leads, details below. */
  .hero__card{order:-1}
  .grid--3{grid-template-columns:1fr 1fr}
  .grid--4{grid-template-columns:1fr 1fr}
  .contact__grid{grid-template-columns:1fr}
  .nav{display:none}
  .btn--cart{margin-left:auto}
  .section{padding:60px 0}
}
@media (max-width:560px){
  .wrap{padding:0 18px}
  .grid{gap:16px}
  .grid--3{grid-template-columns:1fr}
  /* Retail keeps a 2-up product grid on small phones (merchandising density);
     the service/media grids drop to 1-up. */
  .grid--4{grid-template-columns:1fr 1fr}
  .paybar{display:flex}
  .topbar .btn--phone{display:none}
  body{padding-bottom:64px}
  .trustbar__inner{gap:14px 24px}
  .product__body{padding:14px 14px 16px}
  .card--product .product__name{font-size:1rem}
}
@media (max-width:380px){
  /* Below ~360px, even the dense product grid drops to a single column so cards
     never overflow the viewport. */
  .grid--4{grid-template-columns:1fr}
}

/* ---------------- Securely-charging overlay (checkout / pay / book) ---------------- */
.charge-overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,var(--ink) 55%,transparent);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:co-fade .2s ease}
.charge-overlay__card{background:#fff;border-radius:var(--radius);padding:34px 30px;max-width:340px;width:100%;text-align:center;box-shadow:var(--sh-lg)}
.charge-overlay__spinner{width:48px;height:48px;margin:0 auto 18px;border-radius:50%;border:3px solid var(--bg-sunken);border-top-color:var(--brand);animation:co-spin .8s linear infinite}
.charge-overlay__title{margin:0 0 6px;font-family:var(--display);font-weight:800;font-size:1.08rem;color:var(--ink)}
.charge-overlay__note{margin:0;font-size:.9rem;color:var(--muted);line-height:1.5}
.charge-overlay__lock{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:.78rem;font-weight:600;color:var(--muted)}
.charge-overlay__lock svg{width:13px;height:13px}
@keyframes co-spin{to{transform:rotate(360deg)}}
@keyframes co-fade{from{opacity:0}to{opacity:1}}

/* ---------------- Reduced motion (WCAG 2.3.3) ---------------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
  dialog.modal,dialog.cartdrawer{animation:none}
  .btn:hover,.card:hover,.card--product:hover{transform:none}
  .card--product:hover .product__media{transform:none}
  .tile:hover .tile__img{transform:none}
  .charge-overlay,.charge-overlay__spinner{animation:none}
}

/* ---------------- Kanopy Token.js card step (checkout.html) ---------------- */
.cardstep{display:flex;flex-direction:column;gap:14px}
.cardstep__row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cardstep .qfield > div{min-height:44px;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);padding:.4em .55em;background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.cardstep .qfield > div:focus-within{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring)}

/* ---------------- Pay-invoice page ---------------- */
.invoice__summary{font-weight:800;color:var(--ink);font-size:1.12rem;margin:0 0 .4em}

/* ---------------- Checkout-style pages (checkout/pay/book) ---------------- */
.checkout-page{background:var(--bg-alt)}
.checkout{padding:48px 0 88px}
.checkout__wrap{max-width:640px}
.checkout__panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;margin-bottom:22px;box-shadow:var(--sh-sm)}
.checkout__panel h2{font-size:var(--fs-h3);font-weight:800;margin-bottom:.65em;letter-spacing:-.01em}
.summary__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.summary__name{font-weight:700;color:var(--ink)}
.summary__qty{font-size:.88rem;color:var(--muted)}
.summary__line{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;color:var(--ink)}
.checkout .qfield{margin-bottom:16px}
.checkout .qfield input,.checkout .qfield select,.checkout .qfield textarea{width:100%;box-sizing:border-box;padding:.85em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.checkout .qfield input:focus,.checkout .qfield select:focus,.checkout .qfield textarea:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
.qfieldset{border:0;margin:0 0 16px;padding:0;min-width:0}
.qfieldset legend{padding:0;margin-bottom:10px;font-family:var(--display);font-weight:800;font-size:1rem;color:var(--ink)}
.summary__subtotal,.summary__tax{color:var(--muted);font-size:.92rem}
.summary__subtotal span:last-child,.summary__tax span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.topbar__back{margin-left:auto}

/* ---------------- Transactional step indicator (checkout/book/pay) ---------------- */
.steps{display:flex;gap:10px;list-style:none;margin:0 0 28px;padding:0;counter-reset:step}
.step{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:13px 15px;border-radius:13px;background:#fff;border:1px solid var(--line);box-shadow:var(--sh-sm);font-family:var(--sans);font-weight:700;font-size:.85rem;color:var(--muted);counter-increment:step;transition:background .15s ease, border-color .15s ease, color .15s ease}
.step__n{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg-alt);border:1.5px solid var(--line-strong);color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums;transition:background .15s ease, border-color .15s ease, color .15s ease}
.step__n::before{content:counter(step)}
.step__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.steps .step--pay{display:none}
.checkout__wrap:has(#cardStep) .steps .step--pay{display:flex}
.steps .step--1{color:var(--ink);background:var(--brand-wash);border-color:color-mix(in srgb,var(--brand) 38%,var(--line))}
.steps .step--1 .step__n{background:var(--brand);border-color:var(--brand);color:var(--brand-fg)}
.checkout__wrap:has(#cardStep:not([hidden])) .step--1,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--1,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--pay{color:var(--ink);background:#fff;border-color:var(--line)}
.checkout__wrap:has(#cardStep:not([hidden])) .step--1 .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--1 .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--pay .step__n{background:#15803d;border-color:transparent;color:#fff}
.checkout__wrap:has(#cardStep:not([hidden])) .step--pay,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--done{color:var(--ink);background:var(--brand-wash);border-color:color-mix(in srgb,var(--brand) 38%,var(--line))}
.checkout__wrap:has(#cardStep:not([hidden])) .step--pay .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--done .step__n{background:var(--brand);border-color:var(--brand);color:var(--brand-fg)}
@media (max-width:560px){.step__label{display:none}.step{justify-content:center;padding:11px}}

/* ---------------- Secure-payment trust treatment ---------------- */
.secured svg{width:16px;height:16px;flex:none;color:var(--ink)}
.cardstep .secured{margin-top:8px}

/* ---------------- Inline validation (only after the field is touched) ---------------- */
.checkout .qfield input:user-invalid,
.checkout .qfield textarea:user-invalid,
.checkout .qfield select:user-invalid{border-color:#b3362e}

/* ---------------- Product variants picker (migration 0027) ----------------
 * Pick-one options (size / color) rendered by app.js ONLY when a product ships
 * variants — a retail-family concern, so the styling lives in the RETAIL sheet
 * (the frozen base styles.css stays byte-for-byte). Native radios keep full
 * keyboard + focus-ring behavior; rows are comfortable tap targets; sold-out
 * options read clearly as unavailable. Tokens (--ink/--muted/--line/--brand)
 * resolve to the retail palette and are AA-clamped per the iter7 lesson. */
.product__variants{margin:10px 0 2px;padding:0;border:0;display:flex;flex-direction:column;gap:7px}
.product__variants-legend{padding:0;font-size:.78rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.product__variant{display:flex;align-items:baseline;gap:9px;font-size:.94rem;color:var(--ink);cursor:pointer;line-height:1.3}
.product__variant-input{margin:0;flex:0 0 auto;accent-color:var(--brand)}
.product__variant-label{font-weight:600}
.product__variant-price{color:var(--muted);font-variant-numeric:tabular-nums}
.product__variant--out{color:var(--muted);cursor:not-allowed}
.product__variant--out .product__variant-label{text-decoration:line-through}

/* About / story (Phase 2) — appended only when the merchant wrote one. */
.about{max-width:760px}
.about__text{margin-top:6px;font-size:var(--fs-lg);color:var(--body);line-height:1.75}
.about__text p{margin:0 0 1em}
.about__text p:last-child{margin-bottom:0}

/* ---- RETAIL: homepage catalog card → PDP name link ---- */
.product__name-link{text-decoration:none;color:inherit;display:inline-block}
.product__name-link:hover .product__name,
.product__name-link:focus-visible .product__name{text-decoration:underline;text-underline-offset:2px}
.product__name-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* ---- RETAIL: dedicated per-product detail page (PDP) ---- */
.product-detail{padding-top:34px}
.pdp{display:flex;gap:40px;align-items:flex-start}
.pdp__media{flex:0 0 46%;max-width:46%;border-radius:var(--radius);overflow:hidden;background:var(--bg-alt);box-shadow:var(--sh-sm)}
.pdp__media img{display:block;width:100%;height:auto;object-fit:cover}
.pdp__media--ph{aspect-ratio:4/3;display:grid;place-items:center;color:var(--line-strong)}
.pdp__media--ph svg{width:64px;height:64px}
.pdp__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px}
.pdp__name{margin:0;font-family:var(--display);font-size:2rem;font-weight:800;letter-spacing:-.015em;color:var(--ink);line-height:1.12}
.pdp__price{margin:0;font-family:var(--display);font-weight:700;font-size:1.5rem;color:var(--accent);font-variant-numeric:tabular-nums}
.pdp__price-from{font-size:.7em;font-weight:600;color:var(--body);margin-right:6px;text-transform:uppercase;letter-spacing:.06em}
.pdp__desc{margin:0;font-size:1.02rem;color:var(--body);line-height:1.6;max-width:60ch;white-space:pre-line}
.pdp__cta{align-self:flex-start;margin-top:8px}
@media (max-width:720px){
  .pdp{flex-direction:column;gap:24px}
  .pdp__media{flex-basis:auto;max-width:100%;width:100%}
  .pdp__name{font-size:1.6rem}
}
