/* Allegra Apparel Shop — shared styles for the public pages and the admin. */
:root{
  --ink:#0F172A;--ink-2:#334155;--muted:#64748B;--faint:#94A3B8;
  --line:#E2E8F0;--line-2:#CBD5E1;--bg:#F6F7F9;--card:#FFFFFF;
  --teal:#0F766E;--teal-d:#115E59;--teal-bg:#F0FDFA;
  --ok:#0F766E;--ok-d:#115E59;--ok-bg:#F0FDFA; /* success / design help: stays green on every page */
  --amber-bg:#FFFBEB;--amber-line:#FDE68A;--amber-ink:#92400E;
  --red-bg:#FEF2F2;--red-line:#FECACA;--red-ink:#B91C1C;
  --radius:10px;
}
/* Public shop pages use <body class="shop"> — the "Apparel by Allegra" look at the end of this file. The admin keeps teal. */
/* (brand variables for body.shop: see "Apparel by Allegra" at the end of this file) */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.45}
a{color:var(--teal)}
img{max-width:100%}

/* Header */
.site-head{background:#fff;border-bottom:1px solid var(--line)}
.site-head .in{max-width:1120px;margin:0 auto;padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.site-head .logo{display:flex;align-items:center;text-decoration:none}
.site-head .logo img{height:26px;width:auto}
.site-head .tag{font-size:.82rem;font-weight:600;color:var(--muted);border-left:1px solid var(--line-2);padding-left:14px;letter-spacing:.02em}
.site-head .spacer{flex:1}
.site-head nav a{font-size:.88rem;font-weight:600;text-decoration:none;color:var(--ink-2)}
.site-head nav a:hover{color:var(--teal)}

.wrap{max-width:1120px;margin:0 auto;padding:24px 16px 56px}
.site-foot{border-top:1px solid var(--line);background:#fff}
.site-foot .in{max-width:1120px;margin:0 auto;padding:18px 16px;font-size:.8rem;color:var(--muted)}

h1{font-size:1.6rem;line-height:1.2;letter-spacing:-.01em}
h2{font-size:1.1rem}
.lede{color:var(--muted);margin-top:6px;max-width:640px}
.muted{color:var(--muted)}
.small{font-size:.82rem}

/* Catalog */
.cat{margin-top:28px}
.cat h2{margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.pcard{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.pcard:hover{border-color:var(--teal);box-shadow:0 4px 14px rgba(15,23,42,.07)}
.pcard .style{font-size:.75rem;font-weight:700;color:var(--faint);letter-spacing:.04em}
.pcard .name{font-weight:650;font-size:1rem}
.pcard .go{margin-top:auto;padding-top:8px;font-size:.85rem;font-weight:600;color:var(--teal)}
.pcard .pimg{aspect-ratio:4/5;background:#F1F5F9;border-radius:8px;overflow:hidden;margin:-4px -4px 6px;display:block}
.pcard .pimg img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.pcard .pimg.flat{background:#fff}
.pcard .pimg.flat img{object-fit:contain;object-position:center}
.badge{display:inline-block;align-self:flex-start;font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;border-radius:999px;padding:2px 9px;background:#F1F5F9;color:var(--ink-2)}
.badge.t-good{background:#F1F5F9;color:#334155}
.badge.t-better{background:#E0F2FE;color:#075985}
.badge.t-best{background:#DCFCE7;color:#166534}
.badge.t-premium{background:#FEF3C7;color:#92400E}

/* Product page */
/* Product card: photo column (~40%) beside the options (~60%) so the photo, the color
   picker and the first sizes are all visible without scrolling on a laptop. Flat photos
   are trimmed to the garment; the photo is height-capped and never cropped further. */
.pp-card{display:grid;grid-template-columns:minmax(0,37fr) minmax(0,63fr);gap:18px;align-items:start}
.pp-photo{position:sticky;top:16px}
.pp-opts .opt+.opt{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.pp-opts .hint{margin-bottom:6px}
.pp-card .combo{margin-bottom:6px}
.pp-card .sw .dot{width:24px;height:24px}
.pp-card .sw{padding:3px 0}
.pp-opts .swatches{grid-template-columns:repeat(8,minmax(0,1fr))} /* 16 swatches = 2 rows beside the photo */
.gallery{display:flex;flex-direction:column;gap:8px}
.thumbs{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap}
.thumbs:empty{display:none}
.thumb-btn{width:56px;height:70px;padding:0;border:2px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;cursor:pointer}
.thumb-btn img{width:100%;height:100%;object-fit:contain;display:block}
.thumb-btn.on{border-color:var(--teal)}
.thumb-btn:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.photo{width:100%;background:#fff;border:1px solid var(--line);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;padding:8px 8px 44px;min-height:160px}
.photo img,.photo canvas{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain}
/* Mockup extras: both-sides dot on Front/Back, tiles for un-drawn locations (Sleeve, Tag Area), the preview note */
.art-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-left:5px;vertical-align:middle}
.tiles{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tiles:empty{display:none}
.tile{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:6px 8px;background:#fff}
.tile-img{width:40px;height:40px;display:flex;align-items:flex-start;justify-content:center;padding-top:2px;background-color:#fff;background-image:linear-gradient(45deg,#E5E7EB 25%,transparent 25%),linear-gradient(-45deg,#E5E7EB 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#E5E7EB 75%),linear-gradient(-45deg,transparent 75%,#E5E7EB 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0}
.tile-img img{max-width:100%;max-height:100%}
.mock-note{font-size:.75rem;color:var(--muted);margin-top:8px;line-height:1.35}
.badge.fit{background:#EEF2FF;color:#3730A3;margin-left:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.photo.is-model{padding:0}
.photo .views{position:absolute;bottom:8px;right:8px;display:flex;gap:6px}
.photo .views .on{border-color:var(--teal);color:var(--teal)}
/* Searchable color dropdown */
.combo{position:relative;max-width:420px;margin-bottom:10px}
.combo label{display:block;margin-bottom:4px}
.combo-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line-2);border-radius:8px;padding:4px 6px 4px 8px;background:#fff}
.combo-box:focus-within{outline:2px solid var(--teal);outline-offset:1px}
.combo-box input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:1rem;padding:6px 0;background:transparent;color:var(--ink)}
.combo-dot,.combo-opt .dot{width:22px;height:22px;flex:none;border-radius:50%;border:1px solid var(--line-2);overflow:hidden;background:#F1F5F9;display:block}
.combo-dot img,.combo-opt .dot img{width:100%;height:100%;object-fit:cover;display:block}
.combo-btn{border:0;background:none;font-size:1rem;color:var(--muted);cursor:pointer;padding:4px 6px}
.combo-list{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:4px;max-height:300px;overflow-y:auto;background:#fff;border:1px solid var(--line-2);border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);list-style:none;padding:4px}
.combo-opt{display:flex;align-items:center;gap:10px;padding:8px;border-radius:6px;cursor:pointer;font-size:.92rem}
.combo-opt.active{background:#E6F4F3}
.combo-opt[aria-selected="true"]{font-weight:700}
.combo-none{padding:8px;color:var(--muted);font-size:.9rem}
/* Swatch grid */
.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:2px;padding:2px}
#swatchMore{margin-top:4px}
#swatchMore .btn{padding:4px 8px}
.sw{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:2px solid transparent;border-radius:8px;padding:3px 2px;cursor:pointer;font:inherit;color:inherit}
.sw:hover{border-color:var(--line-2)}
.sw.on{border-color:var(--teal)}
.sw:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.sw .dot{width:28px;height:28px;border-radius:50%;border:1px solid var(--line-2);overflow:hidden;background:#F1F5F9;display:block}
.sw .dot img{width:100%;height:100%;object-fit:cover;display:block}
/* Swatch labels break ONLY at spaces (never inside a word), max 2 lines. product.html
   fitSwatchNames() shrinks a label that still doesn't fit (.tight), then truncates it
   with an ellipsis (.cut); the full name stays in the button's title and aria-label. */
.sw-name{width:100%;font-size:.62rem;line-height:1.15;text-align:center;letter-spacing:-.01em;word-break:normal;overflow-wrap:normal;hyphens:none;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.sw-name.tight{font-size:.56rem;letter-spacing:-.02em}
.sw-name.cut{display:block;white-space:nowrap;text-overflow:ellipsis}
@media (max-width:900px){.pp-card{grid-template-columns:1fr}.pp-opts .swatches{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))}.pp-photo{position:static}.photo img,.photo canvas{max-height:300px}.combo{max-width:none}}
.crumbs{font-size:.85rem;margin-bottom:8px}
.crumbs a{text-decoration:none;font-weight:600}
.pp{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start;margin-top:10px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.panel+.panel{margin-top:16px}
.panel h2{margin-bottom:4px}
.panel .hint{font-size:.82rem;color:var(--muted);margin-bottom:12px}
.sizes{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px}
.size{display:flex;flex-direction:column;gap:4px}
.size label{font-size:.78rem;font-weight:700;color:var(--ink-2);text-align:center}
.size input{width:100%;padding:10px 6px;border:1px solid var(--line-2);border-radius:8px;font-size:1rem;text-align:center;font-family:inherit}
.size input:focus,.locs input:focus{outline:2px solid var(--teal);outline-offset:1px}
.locs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.loc{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:10px 12px;cursor:pointer}
.loc:hover{border-color:var(--line-2)}
.loc input{margin-top:3px;width:17px;height:17px;accent-color:var(--teal)}
.loc .ln{font-weight:600;font-size:.92rem}
.loc .ls{font-size:.78rem;color:var(--muted)}
.loc.on{border-color:var(--teal);background:var(--teal-bg)}

.summary{position:sticky;top:16px}
.summary .big{font-size:1.9rem;font-weight:750;letter-spacing:-.02em}
.summary .row{display:flex;justify-content:space-between;gap:10px;font-size:.9rem;padding:4px 0}
.summary .row .k{color:var(--muted)}
.summary hr{border:none;border-top:1px solid var(--line);margin:10px 0}
.summary table{width:100%;border-collapse:collapse;font-size:.86rem;margin:6px 0}
.summary td{padding:3px 0}
.summary td.r{text-align:right;font-variant-numeric:tabular-nums}
.note{font-size:.84rem;border-radius:8px;padding:9px 11px;margin-top:10px}
.note.save{background:var(--ok-bg);color:var(--ok-d);border:1px solid #99F6E4;font-weight:600}
.note.warn{background:var(--amber-bg);color:var(--amber-ink);border:1px solid var(--amber-line)}
.note.err{background:var(--red-bg);color:var(--red-ink);border:1px solid var(--red-line)}
.soon{font-size:1.15rem;font-weight:700;color:var(--ink-2)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border:none;border-radius:8px;font-size:.9rem;font-weight:650;cursor:pointer;font-family:inherit;text-decoration:none}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-teal{background:var(--teal);color:#fff}
.btn-teal:hover:not(:disabled){background:var(--teal-d)}
.btn-light{background:#fff;color:var(--ink-2);border:1px solid var(--line-2)}
.btn-light:hover:not(:disabled){background:#F8FAFC}
.btn-danger{background:#fff;color:var(--red-ink);border:1px solid var(--red-line)}
.btn-block{width:100%;margin-top:12px}
.btn-sm{padding:6px 10px;font-size:.8rem}

.loading{color:var(--muted);padding:24px 0}

@media (max-width:860px){
  .pp{grid-template-columns:1fr}
  .summary{position:static}
}
@media (max-width:520px){
  h1{font-size:1.35rem}
  .site-head .tag{display:none}
}

/* ── Cart icon ── */
.site-head nav{display:flex;gap:16px;align-items:center}
.cart-link{display:inline-flex;align-items:center;gap:6px;position:relative}
.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--teal);color:#fff;font-size:.72rem;font-weight:700}

/* ── Artwork panel (product page) ── */
.ts-box{position:fixed;bottom:12px;right:12px;z-index:50}
.ts-box .ts-msg{display:none}
/* Cloudflare wants the visitor to solve the robot check (common on VPNs): show it mid-screen. */
.ts-box.ts-active{inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.45);padding:8px}
.ts-box.ts-active .ts-panel{background:var(--card);border-radius:var(--radius);padding:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);max-width:100%}
.ts-box.ts-active .ts-msg{display:block;margin:0 0 10px;font-weight:600;color:var(--ink)}
.art-box{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:10px}
.art-box:first-child{margin-top:0}
.art-head{margin-bottom:8px}
.upload{display:flex;align-items:center;justify-content:center;border:2px dashed var(--line-2);border-radius:8px;padding:18px;cursor:pointer;font-weight:600;color:var(--teal);text-align:center}
.upload:hover{border-color:var(--teal);background:var(--teal-bg)}
.upload.busy{color:var(--muted);cursor:progress}
.upload input,.replace input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upload{position:relative}
.replace{position:relative;margin-top:6px}
.art-row{display:flex;gap:14px;align-items:flex-start}
.thumb{flex:0 0 96px;width:96px;height:96px;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  background-color:#fff;background-image:linear-gradient(45deg,#E5E7EB 25%,transparent 25%),linear-gradient(-45deg,#E5E7EB 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#E5E7EB 75%),linear-gradient(-45deg,transparent 75%,#E5E7EB 75%);
  background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.thumb img{max-width:100%;max-height:100%;display:block}
.art-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.width-ctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.width-ctl input[type=range]{flex:1;min-width:120px;accent-color:var(--teal)}
.w-num input{width:72px;padding:6px;border:1px solid var(--line-2);border-radius:6px;font-family:inherit;text-align:right}
.grade{font-size:.84rem;border-radius:6px;padding:6px 9px}
.grade.g-sharp{background:#DCFCE7;color:#166534}
.grade.g-soft{background:var(--amber-bg);color:var(--amber-ink);border:1px solid var(--amber-line)}
.grade.g-blocked{background:var(--red-bg);color:var(--red-ink);border:1px solid var(--red-line)}
span.grade{padding:1px 7px;font-size:.75rem;font-weight:700}
.why{margin:8px 0 0 18px;font-size:.8rem;color:var(--muted)}

/* ── Cart page ── */
.cart-list{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.cart-item{display:flex;flex-direction:column;gap:12px}
.ci-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ci-actions{display:flex;gap:8px;align-items:flex-start}
.ci-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.ci-locs{display:flex;flex-wrap:wrap;gap:14px}
.ci-loc{display:flex;gap:10px;align-items:center}
.ci-loc .thumb{flex-basis:72px;width:72px;height:72px}
.ci-price table.lines{width:100%;border-collapse:collapse;font-size:.86rem;margin-bottom:6px}
.ci-price td{padding:2px 0}
.ci-price td.r{text-align:right}
.ci-price .row{display:flex;justify-content:space-between;font-size:.9rem;padding:3px 0}
.ci-price .k{color:var(--muted)}
.cart-item textarea{width:100%;padding:8px;border:1px solid var(--line-2);border-radius:6px;font-family:inherit;font-size:.88rem;resize:vertical}
.notes-label{font-weight:600}
.notes-meta{margin-top:-6px}
.cart-total{margin-top:16px;max-width:420px;margin-left:auto}
.cart-total .row{display:flex;justify-content:space-between}
@media (max-width:760px){
  .ci-body{grid-template-columns:1fr}
  .art-row{flex-direction:column}
}
/* Catalog card badges; cart item previews (customer mockups — not print files) */
.pcard .badges{display:flex;gap:4px;flex-wrap:wrap}
.pcard .badges .badge.fit{margin-left:0}
.ci-mockups{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.ci-line{margin:2px 0 0;color:var(--ink-2)}
.ci-mockup{margin:0;text-align:center}
.ci-mockup img{width:120px;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff;display:block}

/* Checkout + order confirmation */
.co-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start;margin-top:16px}
.co-grid .summary{position:sticky;top:16px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.fields .full{grid-column:1/-1}
.field label{display:block;font-size:.8rem;font-weight:650;color:var(--ink-2);margin-bottom:3px}
.field input,.field select,.field textarea,.co-notes{width:100%;padding:9px 10px;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-size:.92rem;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus,.co-notes:focus{outline:2px solid var(--teal);outline-offset:0;border-color:var(--teal)}
.choices{display:grid;gap:8px}
.choice{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line-2);border-radius:8px;padding:11px 12px;cursor:pointer;background:#fff}
.choice:has(input:checked){border-color:var(--teal);background:var(--teal-bg)}
.choice input{margin-top:3px;accent-color:var(--teal)}
.choice .price{margin-left:auto;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.choice .sub{display:block;font-size:.8rem;color:var(--muted)}
.co-item{padding:10px 0;border-bottom:1px solid var(--line);font-size:.86rem}
.co-item:last-child{border-bottom:none}
/* one picture per color on its own row (wraps), text below at full width */
.co-item .co-thumbs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.co-item .co-thumbs img{width:56px;height:56px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff}
.co-item .co-head{display:flex;align-items:baseline;gap:10px}
.co-item .co-head b{flex:1;min-width:0}
.co-item .co-price{margin-left:auto;font-weight:700;white-space:nowrap;text-align:right}
.co-item .co-line{color:var(--ink-2)}
.co-item .was{display:block;font-weight:500;color:var(--amber-ink);font-size:.76rem}
.suggest{background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:8px;padding:10px 12px;margin-top:10px;font-size:.86rem}
.suggest .actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.check{display:flex;gap:8px;align-items:flex-start;font-weight:600;cursor:pointer}
.check input{margin-top:3px;accent-color:var(--teal)}
.testmode{background:#EEF2FF;border:1px solid #C7D2FE;color:#3730A3;border-radius:8px;padding:9px 11px;font-size:.84rem;margin-top:10px}
.order-head{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.order-num{font-size:1.1rem;font-weight:750;color:var(--teal-d)}
@media (max-width:900px){.co-grid{grid-template-columns:1fr}.co-grid .summary{position:static}}
@media (max-width:520px){.fields{grid-template-columns:1fr}}

/* Design help (product page) */
.modes{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 8px;font-size:.86rem}
.modes label{display:flex;gap:6px;align-items:center;cursor:pointer}
.modes input{accent-color:var(--teal)}
.design-box textarea{width:100%;padding:8px 10px;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-size:.9rem;margin-top:4px}
.design-box select{width:100%;max-width:420px;padding:8px 10px;border:1px solid var(--line-2);border-radius:8px;font:inherit;margin-top:4px;background:#fff}
.design-box .width-ctl{margin-top:8px}
.refs{list-style:none;margin:6px 0;font-size:.84rem}
.refs li{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:2px 0}
.tile-design{border:2px dashed var(--ok);color:var(--ok);font-weight:700;background:var(--ok-bg)!important}
.ci-design{border:1px dashed var(--ok);border-radius:8px;padding:8px 10px;background:var(--ok-bg);font-size:.84rem;margin-top:6px}
.ci-design .desc{white-space:pre-wrap;margin-top:2px}

/* Promo code (checkout) */
.promo-box{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.promo-ctl{display:flex;gap:6px;align-items:center;margin-top:4px}
.promo-ctl input{flex:1;min-width:0;padding:7px 9px;border:1px solid var(--line-2);border-radius:6px;font:inherit;font-size:.9rem;text-transform:uppercase}
.promo-chip{font-weight:700;letter-spacing:.04em;background:var(--ok-bg);color:var(--ok-d);border:1px solid #99F6E4;border-radius:999px;padding:3px 10px}
.promo-ok{color:#15803D;margin-top:4px}
.promo-err{color:var(--red-ink);margin-top:4px}
.promo-row{color:#15803D}

/* Zoom view (product page) */
.zoomable{cursor:zoom-in}
.zoomable:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.zoom-hint{font-size:.76rem;color:var(--muted);text-align:center;margin-top:4px}
button.tile{font:inherit;color:inherit;text-align:left;cursor:zoom-in}
button.tile:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.zoom{position:fixed;inset:0;z-index:200;background:rgba(15,23,42,.88);display:flex;flex-direction:column;padding:10px}
.zoom-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.zoom-views,.zoom-ctl{display:flex;gap:6px;align-items:center}
.zoom-views .btn[aria-pressed="true"]{background:var(--teal);color:#fff;border-color:var(--teal)}
.zoom-ctl .btn{min-width:38px;font-size:1rem}
.zoom-pct{color:#fff;font-weight:700;font-size:.85rem;min-width:46px;text-align:center}
.zoom-x{font-size:1.3rem!important;line-height:1}
.zoom-stage{position:relative;flex:1;overflow:hidden;touch-action:none;background:#fff;border-radius:8px;cursor:grab}
.zoom-stage:active{cursor:grabbing}
.zoom-canvas{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none}
.zoom-loading{color:var(--muted);padding:24px;text-align:center}
.zoom-help{color:#CBD5E1;font-size:.76rem;text-align:center;margin-top:6px}
@media (max-width:520px){.zoom{padding:6px}.zoom-help{display:none}}

/* Several colors in one item (product page) */
.cswitch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}
.cswitch:empty{display:none}
.cs-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-2);background:var(--card);border-radius:999px;padding:3px 10px 3px 4px;font:inherit;font-size:.85rem;cursor:pointer;color:var(--ink)}
.cs-btn.on{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal);color:var(--teal);font-weight:600}
.cs-btn .dot,.cr-head .dot,.cr-title .dot{width:20px;height:20px;flex:none;border-radius:50%;border:1px solid var(--line-2);overflow:hidden;background:#F1F5F9;display:block}
.cs-btn .dot img,.cr-head .dot img,.cr-title .dot img{width:100%;height:100%;object-fit:cover;display:block}
.cr-title{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.color-row{border-top:1px dashed var(--line-2);margin-top:14px;padding-top:12px}
.cr-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.cr-head select{flex:1;min-width:0;max-width:280px;padding:7px 8px;border:1px solid var(--line-2);border-radius:8px;font:inherit;background:var(--card);color:var(--ink)}
.cr-th{text-align:left;font-weight:700;padding-top:8px}
th.r.cr-th{text-align:right}
.linkish{background:none;border:0;padding:0;margin-left:auto;color:var(--teal);font:inherit;font-size:.85rem;text-decoration:underline;cursor:pointer}

/* Front page: search + filters (folded behind "Filter" on phones) */
.filters{margin-top:20px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.f-top{display:flex;gap:8px}
.f-search{flex:1;min-width:0;padding:9px 12px;border:1px solid var(--line-2);border-radius:8px;font:inherit;background:var(--card);color:var(--ink)}
.f-toggle{display:none}
.f-box{margin-top:10px}
/* one row: Price & Quality, Fit, Category, Features — same label line, same 38px control */
.f-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px 14px;align-items:start}
.f-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.f-lbl{font-size:.8rem;font-weight:600;color:var(--ink-2);line-height:18px;height:18px;white-space:nowrap}
.f-field select,.f-multi summary{box-sizing:border-box;height:38px;width:100%;padding:0 30px 0 10px;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-weight:400;font-size:.9rem;background-color:var(--card);color:var(--ink)}
.f-multi{position:relative}
.f-field select{appearance:none;-webkit-appearance:none;cursor:pointer}
.f-field select,.f-multi summary{background-repeat:no-repeat;background-position:right 11px center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2345454B' stroke-width='1.6'/%3E%3C/svg%3E")}
.f-multi summary{display:flex;align-items:center;cursor:pointer;list-style:none}
.f-multi summary::-webkit-details-marker{display:none}
.f-multi summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f-multi[open] summary{border-color:var(--ink-2)}
.f-menu{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);min-width:200px;background:var(--card);border:1px solid var(--line-2);border-radius:8px;box-shadow:0 10px 24px rgba(30,30,34,.14);padding:6px}
.f-opt{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;font-size:.9rem;cursor:pointer}
.f-opt:hover{background:var(--soft)}
.f-opt input{margin:0;width:16px;height:16px;accent-color:var(--char)}
.f-note{margin:8px 0 0;font-size:.82rem;color:var(--muted);line-height:1.4}
.f-bar{display:flex;align-items:center;gap:14px;margin-top:10px;font-size:.9rem;color:var(--muted)}
.f-bar .linkish{margin-left:0}
.f-results{margin-top:16px}
.f-none{margin-top:20px;background:var(--card);border:1px dashed var(--line-2);border-radius:var(--radius);padding:24px;text-align:center}
.f-none .linkish{margin:0;font-size:inherit}
.cat.featured h2::before{content:"★ ";color:var(--teal)}
@media (max-width:700px){
  .f-toggle{display:inline-flex}
  .f-box{display:none}
  .f-box.open{display:block}
  .f-row{grid-template-columns:minmax(0,1fr)}
  .f-menu{position:static;margin-top:4px;box-shadow:none}
}


/* (kept from 2026-10-13 morning) help pages, filter info line, footer grid base */
.doc{max-width:760px}
.doc h2{margin:24px 0 8px}
.doc p,.doc li{color:var(--ink-2);margin-top:8px}
.doc ul,.doc ol{padding-left:22px}
.f-help{cursor:help;border-bottom:1px dotted var(--muted)}
.foot-grid{margin:0 auto;display:grid;gap:24px;font-size:.9rem}
.foot-grid h3{font-size:.95rem;margin-bottom:8px}
.foot-grid ul{list-style:none;display:grid;gap:6px}
.foot-copy{margin:0 auto;font-size:.78rem}
/* ── "Apparel by Allegra" (2026-10-13) — customer pages only (<body class="shop">); the admin keeps its look.
   Style reference: Angie's print ad. Colors sampled from her files:
     charcoal #38383C (the tag) — primary buttons, headings, footer, strip
     warm gray (the ad's background, lightened for reading) — banner + alternate sections, soft vignette + grain
     accents #FFDE17 #F7941D #F15A29 #ED1C24 #92278F (triangles / logo) — shapes, gradient bars, focus + hover only, never text
     dark red #991B1B — error messages only
   Every text / background pair passes WCAG AA (checked: see ARCHITECTURE.md). */
body.shop{
  --char:#38383C;--char-d:#232326;
  --ink:#38383C;--ink-2:#45454B;--muted:#5C5B61;--faint:#6B6A70;
  --line:#E2E1E0;--line-2:#CFCDCC;
  --bg:#FFFFFF;--soft:#F1F0EF;--card:#FFFFFF;
  --warm-1:#E6E4E3;--warm-2:#CDCAC9;
  --acc-y:#FFDE17;--acc-o:#F7941D;--acc-ro:#F15A29;--acc-r:#ED1C24;--acc-p:#92278F;
  --grad:linear-gradient(90deg,#FFDE17,#F7941D 30%,#ED1C24 62%,#92278F);
  --grad-v:linear-gradient(180deg,#92278F,#ED1C24 50%,#F7941D);
  --teal:#38383C;--teal-d:#232326;--teal-bg:#F4F3F6; /* (shared rules: buttons, selected states) → charcoal */
  --red-ink:#991B1B;--red-bg:#FEF2F2;--red-line:#FECACA;
  font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--ink)}
body.shop h1,body.shop h2,body.shop h3,body.shop .btn,body.shop .btn-brand,body.shop .go-btn,body.shop .site-head nav,body.shop .strip,body.shop .tile-cat span,body.shop .pcard .name,body.shop .big{font-family:Montserrat,'Segoe UI',Arial,sans-serif}
body.shop h1{font-size:2.3rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
body.shop h2{font-size:1.55rem;font-weight:800;letter-spacing:-.01em}
body.shop a{color:var(--char)}
body.shop a:hover{color:var(--acc-p)}
body.shop :focus-visible{outline:3px solid var(--acc-p);outline-offset:2px}
body.shop .loc.on,body.shop .choice:has(input:checked){border-color:var(--char);background:#F4F3F6}

/* Header: the full-color Allegra logo (as before the redesign) + "Custom Apparel", nav + cart at right */
body.shop .site-head{background:#fff;border-bottom:0;box-shadow:0 1px 0 var(--line)}
body.shop .site-head .in{max-width:1200px;padding:12px 20px;gap:18px}
body.shop .site-head .logo img{height:30px;width:auto;display:block}
body.shop .site-head .tag{color:var(--ink-2)}
body.shop .site-head nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
body.shop .site-head nav a{font-size:.92rem;font-weight:700;color:var(--char)}
body.shop .site-head nav a:hover{color:var(--acc-p)}
body.shop .cart-count{background:var(--acc-p)}
.grad-rule{height:4px;background:var(--grad);border:0;margin:0}

/* Buttons */
.btn-brand,.go-btn{background:var(--char);color:#fff;border:0;border-radius:6px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;letter-spacing:.01em}
.btn-brand{padding:13px 26px;font-size:1rem;cursor:pointer}
body.shop a.btn-brand,body.shop .btn-brand{color:#fff} /* white text even though it's a link */
body.shop .btn-brand:hover{background:var(--char-d);color:#fff;box-shadow:inset 0 -3px 0 var(--acc-o)}
body.shop .btn-teal{background:var(--char)}
body.shop .btn-teal:hover:not(:disabled){background:var(--char-d);box-shadow:inset 0 -3px 0 var(--acc-o)}

/* Banner (like the ad): textured warm gray, big charcoal headline, gradient bar beside the subtext, the hang tag,
   photo on the gray */
.hero{position:relative;overflow:hidden;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(ellipse at 38% 42%,var(--warm-1) 0%,#DCDAD9 55%,var(--warm-2) 100%);border-bottom:0}
.hero .in{position:relative;max-width:1200px;margin:0 auto;padding:30px 20px 0;display:grid;grid-template-columns:minmax(0,1fr) var(--tag-col) minmax(0,.8fr);gap:24px;align-items:end;min-height:340px;
  --tag-h:230px;--tag-col:220px}
.hero-text{align-self:center;padding-bottom:30px;position:relative;z-index:1}
body.shop .hero h1{color:var(--char);max-width:620px} /* 2.3rem from body.shop h1 */
.hero-sub{display:flex;gap:14px;margin:18px 0 22px;max-width:520px}
.hero-sub::before{content:"";flex:none;width:4px;border-radius:2px;background:var(--grad-v)}
.hero p{color:#3F3F44;font-size:1.08rem;margin:0;font-weight:500}
.hero-pics{display:flex;justify-content:center;align-items:flex-end;height:340px;gap:0}
.hero-pics img{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:bottom center;display:block;background:none;border-radius:0}
.hero-pics.many{gap:10px;align-items:center;height:300px;padding-bottom:20px}
.hero-pics.many img{flex:1 1 0;min-width:0;max-width:190px;height:100%;object-fit:cover;object-position:50% 15%;border-radius:10px;background:#fff}
/* Hang tag: the whole tag image, cord included (nothing trimmed), near the top of the banner in its own column
   between the text and the photo, tilted about 6° (the photo is tilted 8.7°, turned back 2.5° around the top of
   the cord loop) with a soft shadow on the gray. --tag-h is the whole image; the tag body is about 83% of it. */
.hangtag{grid-column:2;align-self:start;position:relative;z-index:1;justify-self:center;
  filter:drop-shadow(0 12px 12px rgba(30,30,34,.30)) drop-shadow(0 2px 3px rgba(30,30,34,.22))}
.hangtag img{display:block;height:var(--tag-h);width:auto;max-width:none;transform:rotate(-2.5deg);transform-origin:42.4% 1.1%}

/* Shop by Category — tiles like the reference: gray gradient, white garment with YOUR LOGO, label below */
.sec{max-width:1200px;margin:0 auto;padding:30px 20px 10px}
.sec>h2{margin-bottom:16px}
.tiles{display:grid;grid-template-columns:repeat(var(--tile-cols,5),minmax(0,1fr));gap:16px}
.tile-cat{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:var(--char);background:none;border:0;padding:0;cursor:pointer;font:inherit}
.tile-cat .tframe{position:relative;width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;border:1px solid var(--line-2);
  background:radial-gradient(circle at 50% 42%,#F7F6F5 0%,#E7E5E4 58%,#D6D3D2 100%);transition:border-color .15s,box-shadow .15s,transform .15s}
.tile-cat .tframe .garment{position:absolute;inset:7%;width:86%;height:86%;filter:drop-shadow(0 6px 8px rgba(40,40,44,.18))}
.tile-cat .tframe img{position:absolute;inset:12%;width:76%;height:76%;object-fit:contain;display:block;mix-blend-mode:multiply}
.tile-cat:hover .tframe,.tile-cat:focus-visible .tframe{border-color:transparent;box-shadow:0 0 0 3px var(--acc-o),0 8px 18px rgba(40,40,44,.12);transform:translateY(-2px)}
.tile-cat:focus-visible{outline:none}
.tile-cat span{font-size:1.02rem;font-weight:800;letter-spacing:.01em}

/* Strip: charcoal, white text, brand-color dividers */
.strip{max-width:none;margin:26px 0 0;padding:14px 20px;text-align:center;background:var(--char);color:#fff;border-radius:0;font-weight:700;font-size:.98rem;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 14px}
.strip .dot{display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:10px solid var(--acc-o)}
.strip .dot.p{border-bottom-color:var(--acc-p)}
.strip .dot.y{border-bottom-color:var(--acc-y)}
@media (max-width:1180px){.strip{margin-left:0;margin-right:0}}

/* Featured, filters, catalog: white cards on light gray */
.shop-body{background:var(--soft)}
.shop-body .wrap{max-width:1200px;padding:8px 20px 56px}
body.shop .cat h2{margin-bottom:14px}
body.shop .cat.featured h2::before{content:none}
body.shop .featured h2{display:flex;align-items:center;gap:10px}
body.shop .featured h2 .tri-mini{width:22px;height:20px}
body.shop .pcard{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;gap:5px}
body.shop .pcard:hover{border-color:var(--acc-o);box-shadow:0 0 0 1px var(--acc-o),0 8px 20px rgba(40,40,44,.10)}
body.shop .pcard .pimg,body.shop .pcard .pimg.flat{position:relative;aspect-ratio:1/1;background:radial-gradient(circle at 50% 45%,#FAFAF9,#ECEAE9);border-radius:8px;margin:0 0 6px;padding:0;overflow:hidden;display:block}
body.shop .pcard .pimg img,body.shop .pcard .pimg.flat img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain;object-position:center;mix-blend-mode:multiply}
body.shop .pcard .name{font-weight:800;font-size:1rem;color:var(--char)}
body.shop .pcard .tagline{color:var(--ink-2)}
body.shop .pcard .style{color:var(--faint)}
body.shop .go-btn{margin-top:auto;padding:10px 12px;font-size:.92rem}
body.shop .pcard:hover .go-btn{background:var(--char-d);box-shadow:inset 0 -3px 0 var(--acc-o)}
body.shop .filters{background:#fff;border:1px solid var(--line);border-radius:10px}
body.shop .loc input,body.shop .choice input,body.shop .check input,body.shop .modes input{accent-color:var(--char)}
body.shop .f-note{color:var(--muted)}
body.shop .badge.fit{background:#EFEEF1;color:#45454B}

/* Footer: charcoal, the tag, contact, help links, triangle cluster */
body.shop .site-foot{background:var(--char);color:#F2F2F3;border-top:0;position:relative;overflow:hidden}
body.shop .site-foot::before{content:"";display:block;height:4px;background:var(--grad)}
body.shop .foot-grid{max-width:1200px;padding:30px 20px 18px;grid-template-columns:auto 1.2fr 1fr 1fr;align-items:start;color:#E4E4E7}
body.shop .foot-grid h3{color:#fff;font-family:Montserrat,'Segoe UI',Arial,sans-serif}
body.shop .foot-grid a{color:#fff}
body.shop .foot-grid a:hover{color:var(--acc-y)}
body.shop .foot-tag img{height:128px;width:auto;display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.45)) drop-shadow(0 0 1px rgba(255,255,255,.55))}
body.shop .foot-copy{max-width:1200px;padding:0 20px 22px;color:#C9C9CE;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
body.shop .foot-copy .tri-cluster{flex:none}

/* Help pages + other customer pages: light gray behind white cards */
body.shop .doc h2{font-size:1.25rem}

/* Phones / tablets */
@media (max-width:1024px){
  body.shop .hero h1{font-size:2.2rem}
  .hero-pics{height:300px}
  .hero .in{min-height:300px;--tag-h:170px;--tag-col:160px}
  body.shop .foot-grid{grid-template-columns:auto 1fr 1fr}
  body.shop .foot-grid>div:nth-child(4){grid-column:2 / span 2}
}
@media (max-width:860px){
  .hero .in{grid-template-columns:minmax(0,1fr);gap:0;padding:18px 16px 0;min-height:0;--tag-h:128px}
  .hero-text{padding-bottom:4px}
  /* phones: the tag hangs at the top-right of the text block; the headline wraps around it */
  .hangtag{position:absolute;top:10px;right:12px}
  .hero-text::before{content:"";float:right;width:116px;height:124px;margin-left:8px}
  .hero-sub{clear:right}
  body.shop .hero h1{font-size:1.75rem}
  .hero-sub{margin:12px 0 16px}
  .hero-pics{height:250px;order:2}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.shop .foot-grid{grid-template-columns:1fr}
  body.shop .foot-grid>div:nth-child(4){grid-column:auto}
  body.shop .foot-tag img{height:96px}
  body.shop .site-head nav{gap:14px}
  body.shop .site-head .tag{display:none}
}
@media (max-width:520px){
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.shop .site-head nav .nav-extra{display:none}
  body.shop .site-head .in{padding:12px 16px;gap:12px}
  body.shop .site-head .logo img{height:22px}
  body.shop .hero h1{font-size:1.6rem}
  .hero-pics{height:230px}
  .strip{font-size:.9rem}
}
@media (max-width:360px){
  body.shop .site-head .in{gap:8px}
  body.shop .site-head .logo img{height:18px}
  body.shop .site-head nav{gap:12px}
}

/* Product page: Details + Size chart (under the color picker) */
.pdetails{margin-top:16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.pdetails h3{font-size:1rem;margin:0 0 8px}
.pd-facts{margin:0;display:grid;gap:4px}
.pd-facts div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;font-size:.9rem}
.pd-facts dt{font-weight:600;color:var(--ink-2)}
.pd-facts dd{margin:0}
.pd-list{margin:8px 0 0;padding-left:20px;font-size:.9rem}
.pd-list li{margin-top:2px}
.pd-chart{display:inline-block;margin-top:10px;font-weight:700;font-size:.92rem}
button.pd-chart{margin-left:0}
.chart-dlg{border:0;border-radius:12px;padding:0;width:min(900px,calc(100vw - 24px));max-height:calc(100vh - 24px);box-shadow:0 20px 50px rgba(0,0,0,.3)}
.chart-dlg::backdrop{background:rgba(20,20,24,.55)}
.chart-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
.chart-body{padding:12px;overflow:auto;max-height:calc(100vh - 90px)}
.chart-body img{display:block;max-width:100%;height:auto;margin:0 auto}

/* One-size products (bags, hats): a single Quantity box instead of the size grid */
.sizes.one-size{grid-template-columns:minmax(0,180px)}

/* Bags tile: the tote drawing is a transparent image — no photo blending */
.tile-cat .tframe img.garment-img{inset:7%;width:86%;height:86%;object-fit:contain;mix-blend-mode:normal}

/* Artwork guidelines: an illustration under each heading */
.guide-fig{margin:10px 0 14px}
.guide-fig img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}

/* How ordering works: six step cards on a light gray band (3 / 2 / 1 across) */
.steps-band{background:var(--soft);padding:24px 0 30px;margin:18px 0 8px}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.step{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.step img{display:block;width:100%;height:auto;aspect-ratio:512/376;background:#fff}
.step-body{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:4px;align-items:center;padding:14px 16px 18px;border-top:1px solid var(--line)}
.step-num{width:34px;height:34px;border-radius:50%;background:var(--char);color:#fff;display:grid;place-items:center;font:800 1rem Montserrat,'Segoe UI',Arial,sans-serif}
body.shop .step h2{margin:0;font-size:1.08rem;line-height:1.25}
.step p{grid-column:2;margin:0;color:var(--ink-2);font-size:.92rem;line-height:1.45}
.step .step-extra{color:var(--muted);font-size:.85rem;margin-top:4px}
@media (max-width:900px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.steps{grid-template-columns:minmax(0,1fr)}.step p{grid-column:1 / -1}}
.steps{grid-auto-rows:1fr}
.howto .doc{max-width:1120px}
.howto .doc>p,.howto .doc>ul{max-width:760px}
.howto>.wrap:first-child{padding-bottom:4px}
.howto .steps-band .wrap{padding:0 16px}
@media (max-width:560px){.steps{grid-auto-rows:auto}}

/* FAQ page (2026-10-14): search box, groups, accordion questions (<details>) */
.faq-search{margin:18px 0 6px}
.faq-search input{width:100%;font:inherit;font-size:1rem;padding:12px 14px;border:1px solid var(--line-2);border-radius:10px;background:#fff}
.faq-search input:focus{outline:2px solid var(--ink-2);outline-offset:1px}
.faq-group{margin-top:22px}
.faq-group[hidden],.faq-item[hidden]{display:none}
body.shop .faq .faq-group h2{font-size:1.15rem;margin:0 0 8px}
.faq-item{background:var(--card);border:1px solid var(--line);border-radius:10px;margin-top:8px}
.faq-item summary{cursor:pointer;list-style:none;padding:14px 44px 14px 16px;font-weight:600;color:var(--ink);position:relative}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.3rem;font-weight:500;color:var(--muted)}
.faq-item[open] summary::after{content:"–"}
.faq-item summary:focus-visible{outline:2px solid var(--ink-2);outline-offset:2px;border-radius:10px}
.faq-a{padding:0 16px 14px;color:var(--ink-2);line-height:1.6}
.faq .faq-more{margin:28px 0 8px;font-weight:600;color:var(--ink)}
