/* The Basin shop and its pay page. Colours and type from the /gifts funnel
   and the member web app (Basin tokens), mobile first. */
:root {
  --cream: #fffdf5; --ink: #26241c; --terracotta: #af5436; --terracotta-dark: #8a3f27; --teal: #213b3f;
  --sage: #bccda3; --sage-soft: #eef2e4; --gold: #e9c867; --muted: #5f5b4e; --line: #e4dfce; --paper: #fbf7ea;
  --danger: #a8261b; --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--cream); }
body { margin: 0; color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--terracotta-dark); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--cream);
  padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.topbar { max-width: 1040px; margin: 0 auto; padding: 18px 16px 6px; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10;
  background: var(--cream); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-size: 26px; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.tagline { font-size: 14px; color: var(--muted); }
.topnav { display: flex; gap: 18px; font-weight: 700; }
.topnav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
main { max-width: 1040px; margin: 0 auto; padding: 12px 16px 48px; }
.footer { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 15px;
  border-top: 1px solid var(--line); }

h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 56px); line-height: 1.02;
  text-transform: uppercase; margin: 8px 0 10px; overflow-wrap: anywhere; }
h2 { font-size: 20px; margin: 22px 0 8px; }
h3 { font-size: 18px; margin: 0 0 10px; }
.eyebrow { margin: 6px 0 0; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.muted, .fine { color: var(--muted); font-size: 15px; }
.error-text { color: var(--danger); min-height: 1.5em; margin: 8px 0 0; }
.crumbs { font-size: 15px; margin: 0 0 8px; }

.pickup-banner { background: var(--teal); color: var(--cream); border-radius: 14px; padding: 16px 18px;
  margin: 12px 0 18px; font-size: 17px; }
.pickup-banner strong { color: var(--gold); display: block; font-family: var(--display); font-weight: 400;
  font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.note { background: var(--sage-soft); border-left: 4px solid var(--teal); border-radius: 8px; padding: 10px 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; margin: 0 6px 6px 0; background: var(--gold); color: var(--ink); }
.badge.pass { background: var(--sage); color: var(--teal); }

.grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.card a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.card-img, .placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--paper);
  display: block; height: auto; }
.card-title { font-weight: 800; }
.card-price { color: var(--muted); }
.card-badges { justify-self: start; }
.card-badges:empty { display: none; }
.quick-add { margin-top: 8px; }
.quick-add .chip { width: 100%; }
.cart-count { margin-left: 4px; }

.product { display: grid; gap: 20px; }
@media (min-width: 820px) { .product { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.hero-img { width: 100%; height: auto; border-radius: 16px; background: var(--paper); display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: 10px; background: none; flex: 0 0 64px; }
.thumb-img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; display: block; }
.price { font-weight: 800; font-size: 18px; margin: 0; }
.price.big { font-size: 30px; }
.description { margin-top: 18px; }
.option { border: 0; padding: 0; margin: 0 0 12px; }
.option legend { font-weight: 700; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; min-height: 44px; border: 2px solid var(--line); border-radius: 99px; background: var(--paper);
  font-weight: 700; }
.chip[aria-pressed="true"] { border-color: var(--terracotta); box-shadow: inset 0 0 0 1px var(--terracotta); }

.buy { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
input { padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.qty input { max-width: 120px; }
.cta { display: block; width: 100%; text-align: center; padding: 16px; font-weight: 800; font-size: 18px; color: #fff;
  background: var(--terracotta); border: 0; border-radius: 12px; text-decoration: none; }
.cta:hover { background: var(--terracotta-dark); }
.link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--terracotta-dark);
  text-decoration: underline; font-weight: 600; }

.lines, .cart-lines, .plain { list-style: none; padding: 0; margin: 12px 0; }
.lines { border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines li.total { font-weight: 800; }
.plain li { padding: 4px 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-title { font-weight: 800; color: var(--ink); grid-column: 1 / -1; }
.cart-controls { display: flex; gap: 12px; align-items: center; }
/* The quantity stepper (shop.js stepper): fixed sizes, so a click never moves it */
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.step { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; font-weight: 800; line-height: 1;
  color: var(--ink); border-radius: 10px; }
.step:disabled { color: var(--line); opacity: 1; }
.step-value { min-width: 2.5ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.buy .stepper { justify-self: start; margin-top: -8px; }
.cart-line.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: var(--sage); } }
.upsell-done { margin: 18px 0; font-weight: 700; color: var(--teal); }
.cart-line .price { align-self: center; }
.cart-line.gone { color: var(--muted); display: block; }
.subtotal { font-weight: 800; }

.paths { display: grid; gap: 16px; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; align-items: start; } }
.path { display: grid; gap: 12px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.step-title { margin-top: 26px; }
.group { margin: 18px 0; }
.pass-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pass-row img { border-radius: 8px; background: #fff; flex: 0 0 auto; }
.upsell { margin: 18px 0; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.upsell h2 { margin-top: 0; }
.next-buy { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.next-buy .chip { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }

#card-container { margin: 16px 0 4px; min-height: 90px; }
.keep-shopping { margin: 4px 0 12px; font-weight: 700; }
.keep-shopping a { display: inline-flex; align-items: center; min-height: 44px; }

/* "<title> added": shop.js notifyAdded. The button says Added, the count bumps, and the toast opens by the
   click (data-place below or center), then docks bottom right; a bottom sheet on a phone. */
button[data-added], button[data-added]:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }
[data-cart-count].bump { display: inline-block; animation: bump .5s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }
.shop-toast { position: fixed; z-index: 30; width: min(420px, calc(100vw - 48px)); display: grid;
  grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; padding: 16px; background: var(--teal);
  color: var(--cream); border-radius: 16px; box-shadow: 0 10px 30px rgba(38, 36, 28, .25); animation: added-in .2s ease-out; }
.shop-toast[data-place="center"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.shop-toast[data-place="docked"] { right: 24px; bottom: 24px; }
@keyframes added-in { from { opacity: 0; scale: .94; } }
.shop-toast p { grid-column: 1 / -1; margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.shop-toast .cta { padding: 12px; font-size: 17px; }
.shop-toast .link { color: var(--cream); text-align: center; }
@media (max-width: 699px) {
  .shop-toast[data-place] { top: auto; left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 16px 16px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation-name: sheet-in; }
}
@keyframes sheet-in { from { translate: 0 100%; } }
@media (prefers-reduced-motion: reduce) {
  .shop-toast, [data-cart-count].bump, .cart-line.fresh { animation: none; }
}

.gift-recipients { margin-block: 1rem; }
.gift-recipients summary { cursor: pointer; padding-block: .75rem; font-weight: bold; }
.gift-recipients fieldset { display: grid; gap: .65rem; min-width: 0; margin-block: .75rem; }
.gift-recipients label { display: grid; gap: .25rem; }
.gift-recipients input { box-sizing: border-box; width: 100%; min-height: 44px; font-size: 1rem; }
.gift-recipients button { min-height: 44px; }

.cart-line { grid-template-columns: minmax(0, 1fr) auto; padding-block: 8px; }
.cart-line:has(.cart-thumb) { grid-template-columns: auto minmax(0, 1fr) auto; }
.cart-thumb { grid-column: 1; grid-row: 1 / span 3; border-radius: 8px; object-fit: cover; }
.cart-line .cart-title, .cart-line .fine { grid-column: 1 / -1; }
.cart-line:has(.cart-thumb) .cart-title, .cart-line:has(.cart-thumb) .fine { grid-column: 2 / -1; }
.cart-line:has(.cart-thumb) .cart-controls { grid-column: 2; }
.cart-controls { flex-wrap: wrap; gap: 4px 8px; }

.inline-payment { width: 100%; min-height: 72vh; border: 0; }

.prepaid-back { display: inline-flex; align-items: center; min-height: 44px; }
form[action="/membership-deal"] select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit;
}

.topnav .cart-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-sizing: border-box; min-height: 44px; padding: 4px 10px; border-radius: 8px;
  background: var(--teal); color: var(--cream); font-size: 16px; font-weight: 700; letter-spacing: normal; }
.topnav .cart-link [data-cart-count] { margin: 0; padding: 1px 5px; border-radius: 12px;
  color: var(--ink); background: var(--gold); font-variant-numeric: tabular-nums; }
