/* ════════════════════════════════════════════════════════════
   Riverside Prints Shop — shop.css
   The blocks below are copied verbatim from the main site's riverside.css
   (brossow/3d-website) so the shop looks like the same business. When the
   main site's tokens or header change, re-copy them here. Shop-only styles
   are at the end, under "Shop".
   ════════════════════════════════════════════════════════════ */
:root {
  --paper:   #f6f1e5;   /* warm cream */
  --paper2:  #efe7d5;   /* deeper cream */
  --card:    #fffdf6;
  --ink:     #2b3a42;   /* river-stone blue-gray */
  --soft:    #5e6f72;   /* muted text */
  --river:   #2e6e8e;   /* river blue */
  --river2:  #3a81a3;
  --pine:    #3e6b4f;   /* pine green */
  --sunset:  #d97f30;   /* sunset orange */
  --sunset2: #b8641e;
  --sunset-text: #8f4c14;  /* sunset for TEXT: ≥4.5:1 (AA) on every background here, worst is the sky
                              gradient's bottom #f3d9a8 at 4.76:1. --sunset/--sunset2 are for bars,
                              borders and fills only — as text they fail (2.2–4.2:1). */
  --line:    #d8cdb4;
  --danger:  #b5372a;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Michroma', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.13rem;
  line-height: 1.8;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── Sky header (every page) ───────────────────────────────── */
.sky {
  background: linear-gradient(180deg, #fdf6e3 0%, #faeacb 55%, #f3d9a8 100%);
  position: relative;
}
/* width:100% is load-bearing, not belt-and-braces. On the homepage .sky is a flex
   column (see the hero block below), which makes this a flex item — and an `auto`
   margin on the cross axis switches OFF the default stretch, so without an
   explicit width the bar shrank to fit its contents and centred itself. That
   killed the `margin-right: auto` on .town-logo (no free space left to absorb),
   which is what made the homepage nav read as a centred clump instead of
   logo-left / links-right like every other page. Same trap already caught
   .welcome, which carries the same fix. */
.sky-inner { max-width: 1060px; width: 100%; margin: 0 auto; padding: 1.6rem 1.4rem 0; }

.town-nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.town-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.town-logo .m { color: var(--sunset); font-size: 1.8rem; line-height: 1; }
.town-logo .w {
  font-family: var(--display); font-size: 0.88rem;
  letter-spacing: 0.14em; line-height: 1.5; color: var(--ink);
}
.town-logo .w span { color: var(--river); display: block; }

.town-links { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.town-links a {
  text-decoration: none; font-size: 0.95rem;
  padding: 0.45rem 0.95rem; border-radius: 2rem; color: var(--ink);
  white-space: nowrap;
}
.town-links a:hover { background: rgba(46,110,142,0.1); color: var(--river); }
.town-links a.here { background: var(--river); color: #fffaf2; }

/* Menu drops to its own line under the logo on small screens */
@media (max-width: 720px) {
  .town-nav { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .town-logo { margin-right: 0; }
  .town-links { width: 100%; }
  .town-links a { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
}

/* Page heading area inside the sky */
.welcome { max-width: 1060px; margin: 0 auto; padding: 2.4rem 1.4rem 0; position: relative; z-index: 2; }
/* Pages without the small label (order, thanks) get the same gap under the menu as the ones with it. */
.welcome > h1:first-child { margin-top: 2rem; }
@media (max-width: 700px) { .welcome { padding-top: 0.8rem; } }
.welcome .place {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sunset-text); margin: 0 0 0.6rem;
}
.welcome h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.2vw, 2.4rem);
  line-height: 1.4; letter-spacing: 0.02em;
  margin: 0 0 1rem; max-width: 18em;
}
.welcome h1 .r { color: var(--river); }
.welcome h1 .s { color: var(--sunset-text); }
/* Plain-language service + place, inside the h1. The headline above it carries the
   shop's voice; this carries what the shop does and where, for a reader skimming
   and for a search engine deciding what this page is about. */
.welcome h1 .h1-sub {
  display: block; margin-top: 0.55rem;
  font-family: var(--body, inherit);
  font-size: 0.5em; line-height: 1.5; letter-spacing: 0.01em;
  font-weight: 400; color: var(--soft);
}
.welcome .lede { max-width: 780px; color: var(--soft); font-size: 1.05rem; margin: 0 0 1.7rem; }
.welcome p { max-width: 780px; }
.welcome .lede a { color: var(--river); }
/* Shop-scale numbers inside the lede — values come from FILAMENT_TOTALS. */
.welcome .lede strong { color: var(--ink); font-weight: 500; }
/* A quieter follow-on line under a lede, for a caveat or a pointer elsewhere. */
/* Reads as a footnote to the lede above it, so it sits tight underneath — but at
   the same size, since two near-identical sizes look like a mistake rather than
   a deliberate step. */
.welcome .lede.lede-note { margin-top: -1.1rem; }

/* Collapsible intro (subpages). html.intro-off is set from the cookie in <head>

/* ── River ribbon (subpage divider under the sky) ──────────── */
.river-ribbon { display: block; width: 100%; height: auto; margin-top: 0.5rem; }

/* Full riverscape (homepage) */
.riverscape { display: block; width: 100%; height: auto; margin-top: -3.5rem; position: relative; z-index: 1; }
@media (max-width: 640px) { .riverscape { margin-top: -1.6rem; } }

/* ── Buttons ───────────────────────────────────────────────── */
/* Known AA exception, kept on purpose (Brent, 2026-10-17): cream on --sunset is
   2.9:1. Passing would mean a darker button (#8f4c14) or dark text, and he chose
   the current look. .design-cta shares it. */
.btn {
  display: inline-block; text-decoration: none; font-size: 1.02rem;
  padding: 0.85rem 1.7rem; border-radius: 0.7rem; margin: 0 0.6rem 0.8rem 0;
  background: var(--sunset); color: #fffaf2; font-weight: 500;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(217,127,48,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--mono);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,127,48,0.4); }
.btn.river { background: var(--river); box-shadow: 0 4px 14px rgba(46,110,142,0.3); }
.btn.pine  { background: var(--pine);  box-shadow: 0 4px 14px rgba(62,107,79,0.3); }
.btn.quiet {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.quiet:hover { border-color: var(--river); color: var(--river); }

/* ── Main content area ─────────────────────────────────────── */
.main { max-width: 1060px; margin: 0 auto; padding: 2.4rem 1.4rem 4rem; }

/* Painted sign headers */
.sign { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.sign h2 { font-family: var(--display); font-size: 1.08rem; letter-spacing: 0.06em; margin: 0; }
.sign .paint { width: 3.2rem; height: 0.5rem; border-radius: 1rem; background: var(--river); }
.sign .count { font-size: 0.88rem; color: var(--soft); }
.sign .note  { font-size: 0.88rem; color: var(--sunset-text); margin-left: auto; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 2px 10px rgba(43,58,66,0.06);
}
.card h3 { font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.07em; margin: 0 0 0.7rem; }
.card h3.blue { color: var(--river); } .card h3.green { color: var(--pine); } .card h3.orange { color: var(--sunset-text); }
.card p, .card li { color: var(--soft); font-size: 0.97rem; }
.card a { color: var(--river); }
.card a.btn { color: #fffaf2; }
.card a.btn.quiet { color: var(--ink); }

/* Shopfront cards (awnings) */
.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.shopfront {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(43,58,66,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.shopfront:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(43,58,66,0.13); }
.awning { height: 0.9rem; background: repeating-linear-gradient(90deg, var(--a1) 0 22px, var(--a2) 22px 44px); }
.shopfront .inner { padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.shopfront h3 { font-family: var(--display); font-size: 1.02rem; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.shopfront p { color: var(--soft); font-size: 0.97rem; margin: 0 0 0.9rem; flex: 1; }
.shopfront .live { font-size: 0.9rem; font-weight: 500; }
.shopfront .go { font-size: 0.95rem; margin-top: 0.4rem; }
.shopfront.blue   { --a1: var(--river);  --a2: #6fa3bd; }
.shopfront.green  { --a1: var(--pine);   --a2: #79a98c; }
.shopfront.orange { --a1: var(--sunset); --a2: #ecae72; }
.shopfront.blue   .live, .shopfront.blue   .go { color: var(--river); }
.shopfront.green  .live, .shopfront.green  .go { color: var(--pine); }
.shopfront.orange .live, .shopfront.orange .go { color: var(--sunset-text); }
.shopfront .swatches { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.55rem; }
.shopfront .swatches .spool-dot { width: 1rem; height: 1rem; flex: none; }

/* ── My Designs storefront grid (originals — roomier, 2–3 wide, uncropped) ─── */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.6rem; }
.design-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(43,58,66,0.06);
  transition: transform 0.18s, box-shadow 0.18s; cursor: pointer;
}
.design-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43,58,66,0.15); }
.design-photo {
  aspect-ratio: 4 / 3; background: var(--paper2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.design-photo img { width: 100%; height: 100%; object-fit: contain; }
.design-photo .noimg { font-family: var(--display); font-size: 2.6rem; color: var(--line); }
.design-photo .more-shots {
  position: absolute; right: 0.55rem; bottom: 0.55rem;
  background: rgba(43,58,66,0.62); color: #fff; font-size: 0.7rem;
  padding: 0.15rem 0.5rem; border-radius: 2rem; letter-spacing: 0.04em;
}
.design-body { padding: 1.05rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.design-name { font-family: var(--display); font-size: 1rem; line-height: 1.4; }
.design-opts { font-size: 0.78rem; color: var(--soft); }
.design-blurb { font-size: 0.9rem; color: var(--soft); line-height: 1.7; flex: 1; margin: 0; }
.design-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.design-price { font-family: var(--display); font-size: 1.1rem; color: var(--sunset-text); }
.design-cta {
  font-size: 0.86rem; color: #fffaf2; background: var(--sunset); text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: 0.6rem; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(217,127,48,0.3); transition: transform 0.15s;
}
.design-cta:hover { transform: translateY(-1px); }


/* ── Micro-FAQ ─────────────────────────────────────────────── */
.qa { border-bottom: 1px dashed var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 0.8rem 0.2rem;
  font-size: 0.98rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--sunset2); font-size: 1.1rem; }
.qa[open] summary::after { content: '–'; }
.qa .qa-a { padding: 0 0.2rem 1rem; font-size: 0.94rem; color: var(--soft); line-height: 1.8; }
.qa .qa-a a { color: var(--river); }

/* ── Mailing-list style band (copied from the main site's riverside.css) ── */
.nl-band {
  background: linear-gradient(180deg, #fdf6e3, #f3d9a8);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2.2rem 2rem;
  text-align: center;
}
.nl-band h2 { font-family: var(--display); font-size: clamp(1.05rem, 2.6vw, 1.4rem); letter-spacing: 0.05em; margin: 0 0 0.7rem; }
.nl-band h2 span { color: var(--sunset-text); }
.nl-band p { color: var(--soft); max-width: 560px; margin: 0 auto 1.4rem; font-size: 0.98rem; }

/* ── Footer ────────────────────────────────────────────────── */
.town-foot {
  border-top: 2px solid var(--line); margin-top: 3rem; padding-top: 1.4rem;
  color: var(--soft); font-size: 0.9rem;
  display: flex; gap: 0.8rem 1.8rem; flex-wrap: wrap;
}
.town-foot a { color: var(--river); text-decoration: none; }
/* Shared site footer (3d-dropbox/site-partials/footer.html), same rules as site.css. */
.site-foot { align-items: center; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.site-foot a { display: inline-block; padding: 0.45rem 0; }
.foot-copy { margin: 0; flex-basis: 100%; }
.town-foot a:hover { color: var(--sunset-text); }
.town-foot .m { color: var(--sunset); }

@media (max-width: 640px) { body { font-size: 1.05rem; } }


/* ════════════════════════════════════════════════════════════
   Shop
   ════════════════════════════════════════════════════════════ */
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }

.town-logo .tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  color: #fffaf2; background: var(--pine); border-radius: 2rem; padding: 0.1rem 0.6rem; align-self: center;
}
.town-links a.out::after { content: ' ↗'; font-size: 0.8em; }

/* Plain promise strip under the lede */
.promises { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--ink); }
.promises li::before { content: '✓ '; color: var(--pine); font-weight: 600; }

.cat-blurb { color: var(--soft); max-width: 46em; margin: -0.4rem 0 1.4rem; font-size: 0.97rem; }
.cat-section { margin-bottom: 3rem; }
.design-card { text-decoration: none; color: inherit; }
.design-card .design-name { color: var(--ink); }
.design-fits { font-size: 0.78rem; color: var(--river); letter-spacing: 0.02em; }
.soon {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: var(--paper2); border: 1px solid var(--line);
  border-radius: 2rem; padding: 0.15rem 0.65rem;
}
.design-card.is-soon .design-photo { background: repeating-linear-gradient(135deg, var(--paper2) 0 14px, #ebe2cd 14px 28px); }

/* ── Product page ─────────────────────────────────────────── */
.crumbs { font-size: 0.85rem; color: var(--soft); margin: 0 0 1.4rem; }
.crumbs a { color: var(--river); text-decoration: underline; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; gap: 1.6rem; } }

.gallery-main {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .noimg { font-family: var(--display); font-size: 1rem; color: var(--soft); padding: 2rem; text-align: center; }
.photo-note { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--soft, #5a5a52); }
.thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; padding: 0; list-style: none; }
.thumbs button {
  width: 4.2rem; height: 4.2rem; padding: 0; border-radius: 0.5rem; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: var(--card);
}
.thumbs button[aria-current="true"] { border-color: var(--river); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.p-cat { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--river); margin: 0 0 0.4rem; }
.p-name { font-family: var(--display); font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.45; margin: 0 0 0.6rem; }
.p-fits { font-size: 0.95rem; color: var(--pine); margin: 0 0 1rem; font-weight: 500; }
.p-short { color: var(--soft); margin: 0 0 1.4rem; }

.buy { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); padding: 1.2rem 1.3rem 0.6rem; margin-bottom: 1.6rem; box-shadow: 0 2px 10px rgba(43,58,66,0.06); }
.buy h2 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.08em; margin: 0 0 0.8rem; color: var(--ink); }
.buy-group { margin: 0 0 0.9rem; }
.buy-group h3 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--river); margin: 0 0 0.4rem; font-weight: 500; }
.variant {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.75rem 0; border-top: 1px dashed var(--line);
}
.variant:first-of-type { border-top: none; }
.v-label { flex: 1 1 12rem; }
.v-label strong { font-weight: 500; }
.v-label .v-note { display: block; font-size: 0.8rem; color: var(--soft); }
.v-best { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fffaf2; background: var(--pine); border-radius: 2rem; padding: 0.05rem 0.5rem; margin-left: 0.4rem; vertical-align: 0.15em; }
.v-price { font-family: var(--display); font-size: 1.05rem; color: var(--sunset-text); min-width: 3.5rem; text-align: right; }
.v-buttons { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .v-buttons { flex-basis: 100%; } }
.v-buttons .btn { margin: 0; font-size: 0.9rem; padding: 0.55rem 1rem; }
.btn.paypal { background: #ffc439; color: #111; box-shadow: 0 3px 10px rgba(255,196,57,0.35); }
.btn[aria-disabled="true"] { background: var(--paper2); color: var(--soft); box-shadow: none; cursor: default; transform: none; border: 1px solid var(--line); }
.buy-foot { font-size: 0.82rem; color: var(--soft); margin: 0.2rem 0 0.6rem; }
.buy-foot a { color: var(--river); }
.reserve { margin: 0.2rem 0 1rem; }

.p-section { margin: 0 0 1.6rem; }
.p-section h2 { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.07em; margin: 0 0 0.6rem; }
.p-section p { color: var(--ink); margin: 0 0 0.9rem; }
.ticks { padding: 0; margin: 0; list-style: none; }
.ticks li { padding-left: 1.4rem; position: relative; margin-bottom: 0.3rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--pine); font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.specs th, .specs td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; color: var(--soft); font-weight: 500; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.notice { background: var(--paper2); border: 1px dashed var(--line); border-radius: 0.8rem; padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--ink); margin: 0 0 1.4rem; }

/* ── Option picker (product page) ─────────────────────────── */
.picker { margin: 0 0 0.6rem; }
.pick { border: none; margin: 0 0 0.9rem; padding: 0; }
.pick legend { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--river); margin-bottom: 0.4rem; padding: 0; }
.pick-opt {
  display: flex; flex-direction: column; gap: 0.1rem; position: relative;
  border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  margin-bottom: 0.4rem; cursor: pointer; background: var(--card);
}
.pick-opt input { position: absolute; left: 0.8rem; top: 0.85rem; accent-color: var(--river); width: 1rem; height: 1rem; margin: 0; }
.pick-opt:has(input:checked) { border-color: var(--river); background: #f2f7f9; box-shadow: 0 0 0 1px var(--river) inset; }
.pick-opt:has(input:focus-visible) { outline: 3px solid var(--river); outline-offset: 2px; }
.pick-opt[hidden] { display: none; }
/* Your order shows and hides rows and buttons whose display rules would otherwise win over [hidden]. */
.order [hidden] { display: none; }
.pick-name { font-weight: 500; font-size: 0.95rem; }
.pick-desc { font-size: 0.8rem; color: var(--soft); line-height: 1.5; }
.pick-result { border-top: 1px dashed var(--line); padding-top: 0.8rem; }
.pick-price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.pick-price .v-price { font-size: 1.4rem; text-align: left; min-width: 0; }
.pick-ship { font-size: 0.82rem; color: var(--soft); }
.pick-note { font-size: 0.85rem; color: var(--soft); margin: 0.3rem 0 0.6rem; min-height: 0; }
.pick-note:empty { display: none; }
.pick-result .v-buttons { justify-content: flex-start; margin-bottom: 0.3rem; }

/* Product renders are square; give cards a square photo box so they aren't letterboxed. */
.design-photo { aspect-ratio: 1 / 1; }

/* "Can't find a part?" request band on the home page (reuses the main site's .nl-band look). */
.nl-band.request { margin: 0.5rem 0 1rem; }
.nl-band.request .btn { margin: 0; }

/* ── Order builder ─────────────────────────────────────────── */
.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; }
/* "Add to order" needs order.js, which sets html.js; without it the buttons stay hidden. */
.btn[data-add] { display: none; }
html.js .btn[data-add] { display: inline-block; }
.btn.small { font-size: 0.82rem; padding: 0.35rem 0.75rem; margin: 0; }
.order-status { font-size: 0.88rem; color: var(--pine); margin: 0 0 0.4rem; }
.order-status:empty { display: none; }
.order-status a, .order a { color: var(--river); }
.order-table th[scope="row"] { width: auto; color: var(--ink); font-weight: 500; }
.order-table thead th { width: auto; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.order-table td { white-space: nowrap; }
.qty { width: 4.2rem; font: inherit; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 0.4rem; background: #fff; color: var(--ink); }
.qty:focus-visible, .btn:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.order-sums { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.2rem; max-width: 26rem; margin: 1.2rem 0 0.8rem auto; }
.order-sums dt { color: var(--soft); }
.order-sums dd { margin: 0; text-align: right; font-family: var(--display); font-size: 0.95rem; color: var(--ink); }
.order-sums .total { font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.4rem; }
.order-sums dd.total { color: var(--sunset-text); font-size: 1.15rem; }
.order-actions { margin: 0.8rem 0 0.2rem; }
.order-track { max-width: 26rem; margin: 0 0 0.8rem auto; font-size: 0.9rem; color: var(--soft); }
.order-track input { margin-right: 0.4rem; }
.m-lbl { display: none; color: var(--soft); }
@media (max-width: 640px) {
  .m-lbl { display: inline; }
  .order-table thead { display: none; }
  .order-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .order-table th, .order-table td { border: none; padding: 0.1rem 0; }
  .order-table th[scope="row"] { grid-column: 1 / -1; }
}

.design-card { min-width: 0; }

/* Cart link icon in the shop header. */
.town-links .cart-icon { vertical-align: -0.2em; margin-right: 0.3rem; }

/* Slim riverscape for inner pages: hills, pines, the river. Crops from the top on narrow screens. */
.river-scene { display: block; width: 100%; height: clamp(56px, 8.4vw, 120px); margin-top: 0.4rem; }

/* Optional extras on lightbox pages: checkboxes that ride along with the size added. */
.extras { border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.7rem 1rem 0.4rem; margin: 0 0 1rem; background: var(--paper); }
.extras legend { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; padding: 0 0.4rem; color: var(--ink); }
.extras-hint { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--soft); }
.extra { margin: 0 0 0.6rem; }
.extra label { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; }
.extra input { width: 1.2rem; height: 1.2rem; accent-color: var(--river); }
.extra .v-note { margin: -0.3rem 0 0 1.7rem; font-size: 0.88rem; color: var(--soft); }
