:root {
  --radius: 0; /* corner radius for cards, buttons, inputs, pills; 0 = square, matches the main site */
  --bg: #f7f3ee;
  --card: #ffffff;
  --ink: #2b1d14;
  --muted: #6f5f53;
  --line: #e4dad0;
  --accent: #8a4b24;
  --accent-ink: #ffffff;
  --soft: #f1e7dc;
  --warn: #9a3412;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--accent); }
header.site {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--card);
}
a.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); text-decoration: none; line-height: 1.25; }
a.brand { display: flex; align-items: center; gap: .75rem; }
a.brand img { display: block; height: 2.2rem; width: auto; }
a.brand small { font-weight: 400; color: var(--muted); font-size: .85rem; letter-spacing: 0; white-space: nowrap; padding-left: .75rem; border-left: 1px solid var(--line); }
@media (max-width: 420px) { a.brand small { display: none; } }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; font-size: .92rem; }
.toolbar > a:not(.button):not(.help) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.toolbar > a:not(.button):not(.help):hover { border-bottom-color: var(--line); }
.toolbar > a[aria-current] { border-bottom-color: var(--accent); }
button.link { background: none; color: var(--accent); padding: .25rem 0; font-weight: 600; }
button.link:hover { text-decoration: underline; }
/* Phones: logo on one row, then a single swipeable row of links. Duplicates of on-page actions
   (the main-site link is the logo; "Find your coffee" is in the hero) and the preview "?" are dropped. */
@media (max-width: 640px) {
  header.site { position: static; flex-direction: column; align-items: stretch; gap: .35rem; padding: .7rem 1rem .25rem; }
  a.brand img { height: 1.75rem; }
  .toolbar {
    flex-wrap: nowrap; justify-content: flex-start; gap: 1.25rem; overflow-x: auto; scrollbar-width: none;
    margin: 0 -1rem; padding: 0 1rem; font-size: .95rem;
  }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar > * { flex: none; }
  .toolbar > a:not(.button):not(.help) { padding: .55rem 0; }
  .toolbar > #nav-main, .toolbar > [data-open-finder], .toolbar > a.help { display: none; }
  .toolbar > a.button { background: none; color: var(--ink); font-weight: 500; padding: .55rem 0; }
  .toolbar > button.cart-btn { margin-left: auto; padding: .25rem .6rem; }
}
/* Preview-only link to /overview.html; remove before go-live. */
a.help {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none;
}
a.help:hover { color: var(--accent); border-color: var(--accent); }
main { max-width: 1500px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.intro { color: var(--muted); margin: 0; max-width: 60ch; }
.finder-cta { background: var(--soft); color: var(--accent); border: 1px solid var(--line); }
.finder-cta:hover { border-color: var(--accent); }
.tabs {
  position: sticky; top: var(--header-h, 4rem); z-index: 20; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); padding: .5rem 0; margin-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.tabs[hidden] { display: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap; padding: .4rem .9rem; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { background: var(--accent); color: var(--accent-ink); }
.category { scroll-margin-top: calc(var(--header-h, 4rem) + var(--tabs-h, 3rem) + .5rem); margin-bottom: 1.75rem; }
.category > h2 { font-size: 1.1rem; margin: .75rem 0; }
.subcategory { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .6rem; }
.card.flash { outline: 3px solid var(--accent); outline-offset: 2px; transition: outline-color .3s; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); border-bottom: 1px solid var(--line); }
.card .body { padding: .9rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; }
.card .eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card .price { color: var(--ink); font-weight: 600; font-size: .88rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }
.card .body > p:not(.price) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; gap: .5rem; align-items: center; }
.card .row:last-child { margin-top: auto; }
/* Cadence and its price share a row; a long tiered label ("$18 first bag, $15 each additional") wraps below. */
.card .row.cadence { flex-wrap: wrap; gap: .4rem .75rem; }
.card .row.cadence select { flex: 1 1 7rem; }
.card .row.cadence .price { flex: 0 1 auto; }
/* Phones: compact horizontal cards (photo left) so several products fit on screen instead of one. */
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .grid .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .grid .card > img, .grid .card > a:first-child img { border-bottom: 0; border-right: 1px solid var(--line); }
  .grid .card .body { padding: .7rem .75rem .75rem; gap: .45rem; min-height: 100%; }
  .grid .card h3 { font-size: .98rem; line-height: 1.25; }
  .grid .card .body > p:not(.price), .grid .card .taste p { -webkit-line-clamp: 3; font-size: .84rem; line-height: 1.35; }
  /* The flavor clock becomes a second square under the photo, so the description gets the full width. */
  .grid .card { position: relative; }
  .grid .card:has(.mini-clock) { min-height: calc(208px + 2px); }
  .grid .card .taste { display: block; }
  .grid .card .mini-clock {
    position: absolute; left: 0; top: 104px; width: 104px; height: 104px; padding: 10px;
    border-right: 1px solid var(--line);
  }
  .grid .card .taste p { -webkit-line-clamp: 4; }
  .grid .card .row.cadence { margin-top: auto; }  /* any spare height goes above the controls, not between them */
  .grid .card .row:last-child { margin-top: 0; }
  .grid .card .row:last-child button { flex: 1; }
  /* No flavor clock: the photo fills the whole left column, cropped to fit and centered. */
  .grid .card:not(:has(.mini-clock)) > img,
  .grid .card:not(:has(.mini-clock)) > a:first-child { align-self: stretch; }
  .grid .card:not(:has(.mini-clock)) > img,
  .grid .card:not(:has(.mini-clock)) > a:first-child img { height: 100%; aspect-ratio: auto; min-height: 104px; object-fit: cover; object-position: center; }
  .hero { margin-bottom: .5rem; }
  .intro { font-size: .95rem; }
  .finder-cta { width: 100%; }
  .tabs { margin: 0 -1rem .5rem; padding: .5rem 1rem; }
  .category > h2 { margin-top: .5rem; }
}
select, input[type=number] {
  font: inherit; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
select { flex: 1; min-width: 0; }
input[type=number] { width: 4.2rem; }
button, .button {
  font: inherit; font-weight: 600; border: 0; border-radius: var(--radius); padding: .55rem .9rem; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-block; text-align: center;
}
button.secondary, .button.secondary { background: var(--soft); color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
aside.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: sticky; top: calc(var(--header-h, 4rem) + 1rem); }
aside.box h2, section.panel h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.lines li.group { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border-bottom: 0; padding: .7rem 0 .1rem; }
.lines li.group span:last-child { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.lines li.empty { border-bottom: 0; }
.lines li.fee { color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.lines .meta { color: var(--muted); font-size: .82rem; }
.lines button { background: none; color: var(--muted); padding: 0 .25rem; font-weight: 400; }
.empty { color: var(--muted); font-size: .9rem; }
.timeline { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .88rem; }
.timeline li { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.timeline .when { display: flex; justify-content: space-between; font-weight: 600; }
.timeline .why { color: var(--muted); font-size: .82rem; }
.note { background: var(--soft); border-radius: var(--radius); padding: .6rem .75rem; font-size: .83rem; color: var(--muted); margin: .75rem 0; }
.note.warn { color: var(--warn); }
.total { display: flex; justify-content: space-between; font-weight: 700; margin: .75rem 0; }
.full { width: 100%; }
.start { border-top: 1px solid var(--line); margin: .75rem 0 0; padding-top: .75rem; font-size: .9rem; }
.start p { margin: 0 0 .5rem; }
.start label { display: block; margin-top: .5rem; color: var(--muted); font-size: .82rem; }
.start label.check { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--ink); font-size: .92rem; font-weight: 600; }
.start select { display: block; width: 100%; margin-top: .2rem; font: inherit; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.start .fine { text-align: left; }
.gift { border-top: 1px solid var(--line); margin: .75rem 0; padding-top: .75rem; font-size: .9rem; }
.gift label { display: block; margin-top: .5rem; color: var(--muted); font-size: .82rem; }
.gift label.check { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--ink); font-size: .92rem; font-weight: 600; }
.gift select, .gift textarea { display: block; width: 100%; margin-top: .2rem; font: inherit; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.gift .fine { text-align: left; }
.fine { color: var(--muted); font-size: .78rem; margin: .6rem 0 0; text-align: center; }

/* Charges: one quiet line with the detail in a tooltip. */
.total { margin-bottom: .15rem; }
.renews { display: flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; color: var(--muted); font-size: .83rem; }
.tip { position: relative; display: inline-block; }
button.info {
  width: 1.15rem; height: 1.15rem; padding: 0; border-radius: var(--radius); font: italic 700 .7rem/1 Georgia, serif;
  background: transparent; color: var(--muted); border: 1px solid var(--muted);
}
button.info:hover, button.info:focus-visible { color: var(--accent); border-color: var(--accent); }
.tip-body {
  display: none; position: absolute; z-index: 10; top: calc(100% + .5rem); right: -2rem;
  width: 17rem; max-width: 80vw; max-height: 60vh; overflow-y: auto; padding: .75rem; background: var(--card); color: var(--ink); text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(43 29 20 / .18); font-size: .82rem;
}
.tip-body p { margin: .5rem 0 0; color: var(--muted); }
.tip:hover .tip-body, .tip:focus-within .tip-body, .tip-body.open { display: block; }
.tip-body .timeline { margin-top: .35rem; }

/* Coffee finder */
dialog.modal { border: 0; border-radius: var(--radius); padding: 1.5rem; width: min(560px, calc(100vw - 2rem)); background: var(--card); color: var(--ink); }
dialog.modal::backdrop { background: rgb(43 29 20 / .55); }
dialog.modal .close { position: absolute; top: .6rem; right: .6rem; background: none; color: var(--muted); padding: .3rem .5rem; }
.finder-step { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; }
.finder-bar { flex: 1; height: 4px; border-radius: var(--radius); background: var(--soft); overflow: hidden; margin-right: 2rem; }
.finder-bar span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
#finder-title { font-size: 1.25rem; margin: 0 0 1rem; }
.finder-options { display: grid; gap: .6rem; }
button.option {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: .75rem 1rem;
}
button.option[aria-pressed=true] { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.finder-hint { margin: -.6rem 0 .9rem; color: var(--muted); font-size: .85rem; }
button.option:hover, button.option:focus-visible { border-color: var(--accent); background: var(--soft); }
button.option span { font-weight: 400; color: var(--muted); font-size: .85rem; }
.finder-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.finder-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.finder-results li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.finder-results li:not(:has(img)) { grid-template-columns: 1fr; }
.finder-results img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.finder-results h3 { margin: .1rem 0 .25rem; font-size: 1.05rem; }
.finder-results p { margin: 0 0 .25rem; font-size: .88rem; color: var(--muted); }
.finder-results .eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.finder-results .row { margin-top: .5rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--card); text-align: center; padding: 2rem 1rem 2.25rem; }
.footer-mark { display: inline-block; margin-bottom: .75rem; }
.footer-mark img { display: block; width: 3.5rem; height: 3.5rem; }
footer.site .tagline { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
footer.site .fine a { color: inherit; }
section.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.error { color: var(--warn); font-size: .9rem; }
#delivery h3 { margin: 1rem 0 .25rem; font-size: .95rem; }
#delivery h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
#delivery p { margin: 0; color: var(--muted); font-size: .92rem; }
.fine button.link { font-size: inherit; font-weight: 400; text-decoration: underline; color: inherit; }
/* Shop cart: delivery or pickup */
fieldset.delivery { border: 1px solid var(--line); border-radius: var(--radius); margin: .9rem 0 0; padding: .5rem .75rem .6rem; }
fieldset.delivery legend { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0 .35rem; }
fieldset.delivery label { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; cursor: pointer; font-size: .92rem; }
fieldset.delivery input { accent-color: var(--accent); margin: 0; }
fieldset.delivery .amt { margin-left: auto; color: var(--muted); }
.subtotal { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; margin: .5rem 0 0; }
.note-wrap { margin: .9rem 0 0; }
.note-wrap label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.note-wrap label span { font-weight: 400; }
.note-wrap textarea { width: 100%; font: inherit; font-size: .92rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); resize: vertical; }

/* ---- Coffee loader (see loader.js). 4.8s master cycle; drops run at 1/6 of it so the loop never drifts. */
.cl { --cup: #fff; --inner: #e8ded3; --coffee: #6b4226; --crema: #d9a774; }
.cl-wrap { display: inline-block; line-height: 0; }
.cl-liquid, .cl-ripple, .cl-drop, .cl-spark { transform-box: fill-box; transform-origin: center; }
.cl-liquid { animation: cl-fill 4.8s ease-in-out infinite; }
.cl-gate   { animation: cl-gate 4.8s linear infinite; }
.cl-drop   { animation: cl-drop .8s infinite; }
.cl-spark  { animation: cl-spark .8s ease-out infinite; }
.cl-spark.b { animation-delay: -.74s; }
.cl-ripple { animation: cl-ripple .8s ease-out infinite; }
.cl-art    { animation: cl-art 4.8s ease-in-out infinite; }
.cl-steam  { animation: cl-steam 4.8s ease-out infinite; }
.cl-steam.b { animation-delay: -4.5s; }
@keyframes cl-gate { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cl-fill { 0%, 100% { transform: translateY(6px) scale(.5); } 50%, 80% { transform: translateY(1px) scale(.95); } }
@keyframes cl-drop {
  0%   { transform: translateY(0) scale(0); opacity: 0; animation-timing-function: cubic-bezier(.2,.8,.3,1.4); }
  18%  { transform: translateY(0) scale(1.15, .85); opacity: 1; animation-timing-function: ease-in-out; }
  28%  { transform: translateY(0) scale(1); opacity: 1; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  90%  { transform: translateY(38px) scale(.85, 1.2); opacity: 1; }
  100% { transform: translateY(40px) scale(.85, 1.1); opacity: 0; }
}
@keyframes cl-spark { 0% { transform: scale(0) rotate(0); opacity: 0; } 12% { opacity: 1; } 22% { transform: scale(1) rotate(45deg); opacity: .9; } 36%, 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes cl-ripple { 0%, 88% { transform: scale(.2); opacity: 0; } 92% { opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes cl-art { 0%, 54% { opacity: 0; } 62%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes cl-steam { 0%, 52% { opacity: 0; transform: translateY(4px); } 62% { opacity: .45; } 86%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .cl * { animation: none !important; }
  .cl-liquid { transform: translateY(1px) scale(.95); }
  .cl-gate { opacity: 0; }
  .cl-art { opacity: 1; }
  .cl-steam { opacity: .4; }
}
.cl-center { display: grid; justify-items: center; gap: .5rem; padding: 2rem 0; text-align: center; color: var(--muted); }
.cl-center p, .cl-label { margin: 0; font-size: .9rem; color: var(--muted); }
.cl-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: .5rem; background: rgba(247, 243, 238, .88); }
.cl-overlay[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Shop cart (cart.js): header button, slide-in drawer, mobile bar, toast */
button.cart-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; font-size: .92rem;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
button.cart-btn:hover { border-color: var(--accent); }
button.cart-btn .count {
  min-width: 1.35rem; padding: 0 .35rem; line-height: 1.35rem; font-size: .78rem; text-align: center;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
}
button.cart-btn .count[hidden] { display: none; }
dialog.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--card); color: var(--ink);
  width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
}
dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .2s ease-out; }
dialog.drawer::backdrop { background: rgb(43 29 20 / .45); }
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { dialog.drawer[open] { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.1rem; }
.drawer-head .close { background: none; color: var(--muted); padding: .3rem .5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: .25rem 1.1rem 1rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: .75rem 1.1rem 1rem; }
.drawer-foot .link { display: block; margin-top: .4rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cart-lines li.empty { display: block; border: 0; padding: 1.5rem 0; }
.cart-lines .thumb { display: block; width: 64px; height: 64px; background: var(--soft); }
.cart-lines .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-lines .info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-lines .info > a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-lines .info > a:hover { text-decoration: underline; }
.cart-lines .meta { color: var(--muted); font-size: .82rem; }
.cart-lines .end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .25rem; }
.cart-lines .end .link { font-size: .8rem; font-weight: 400; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); width: max-content; margin-top: .3rem; }
.qty button { background: none; color: var(--ink); padding: .15rem .6rem; font-weight: 600; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.qty span { min-width: 1.6rem; text-align: center; }
.qty.big { margin: 0; }
.qty.big button { padding: .55rem .8rem; }
.qty.big input { border: 0; width: 3rem; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty.big input::-webkit-inner-spin-button { -webkit-appearance: none; }
button.cart-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; display: none; justify-content: space-between;
  padding: .85rem 1rem; box-shadow: 0 8px 24px rgb(43 29 20 / .25);
}
button.cart-bar .go { font-weight: 700; }
@media (max-width: 640px) {
  button.cart-bar:not([hidden]) { display: flex; }
  body:has(button.cart-bar:not([hidden])) { padding-bottom: 4.5rem; }
}
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; align-items: center; gap: 1rem;
  max-width: calc(100vw - 2rem); padding: .75rem .9rem; background: var(--ink); color: #fff; font-size: .92rem;
  box-shadow: 0 8px 24px rgb(43 29 20 / .25);
}
.toast[hidden] { display: none; }
.toast button { background: var(--card); color: var(--ink); padding: .35rem .7rem; white-space: nowrap; }
@media (max-width: 640px) { .toast { left: 1rem; bottom: 5rem; } }

/* ---- Shop grid: cards link to their product page */
.card h3 a.card-link { color: inherit; text-decoration: none; }
.card h3 a.card-link:hover { text-decoration: underline; }
.card > a { display: block; }
a.card.tile { color: inherit; text-decoration: none; }
a.card.tile:hover { border-color: var(--accent); }

/* ---- Product page (product.js) */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.thumbs button { padding: 0; background: none; border: 1px solid var(--line); flex: 0 0 72px; height: 72px; }
.thumbs button[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.details .eyebrow { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.details h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.details .price { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
.details .desc { color: var(--muted); margin: 0 0 1.25rem; white-space: pre-line; max-width: 60ch; }
.details form { display: grid; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details form .row { gap: .75rem; }
.details form button.grow { flex: 1; padding: .8rem 1rem; }
.details .fine.left { text-align: left; margin: -.5rem 0 0; }
fieldset.options { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
fieldset.options legend { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .45rem; padding: 0; }
fieldset.options label { cursor: pointer; }
fieldset.options input { position: absolute; opacity: 0; pointer-events: none; }
fieldset.options span { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line); background: var(--card); font-size: .92rem; }
fieldset.options input:checked + span { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
fieldset.options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.perks { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); font-size: .88rem; display: grid; gap: .3rem; }
.perks li::before { content: "✓"; color: var(--accent); margin-right: .5rem; }
.related { margin-top: 3rem; }
.related > h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
/* /my-subscription */
main.narrow { max-width: 720px; }
#signin-form label { display: block; font-weight: 600; font-size: .92rem; }
#signin-form input[type=email] { display: block; width: 100%; margin-top: .3rem; font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }

/* Flavor clock page (/flavor-clock) */
.flavor-clock-page { max-width: 640px; display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.flavor-clock-panel { width: 100%; background: #173b5c; color: #fff; border-radius: var(--radius); padding: clamp(1rem, 5vw, 2.5rem); }
flavor-clock, .flavor-clock { display: block; width: 100%; height: auto; }
.flavor-clock-control { display: grid; gap: .5rem; width: min(100%, 420px); font-weight: 600; }
.flavor-clock-control input { width: 100%; accent-color: var(--accent); }
/* Flavor clock on subscribe cards and product pages */
.card .taste { display: flex; gap: .7rem; align-items: center; }
.card .taste p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Card clocks: cream with navy ink, so they balance the (mostly navy) bag photos next to them. */
.mini-clock { flex: none; width: 64px; padding: 4px; background: var(--soft); color: #173b5c; border-radius: var(--radius); }
.product-clock { width: 200px; padding: .75rem; margin: 0 0 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; margin: 1rem 0 .75rem; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* FAQs page (/faq) */
.faq { max-width: 760px; }
.faq h1 { margin: 0 0 1rem; }
.faq h2 { margin: 2rem 0 .5rem; font-size: 1.15rem; color: var(--accent); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .5rem; }
.faq summary { cursor: pointer; padding: .85rem 1rem; font-weight: 600; }
.faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); max-width: 65ch; }
