/* =====================================================================
   VGS Crackers — storefront
   =====================================================================
   Visual direction: Sivakasi cracker box lithography. Fat slab display
   type, cream label paper, heavy ink rules, saffron and rose. The night
   sky is the page; the products are labels pasted onto it.

   Type roles
     Alfa Slab One    display — the fat slab on old box labels
     Instrument Sans  body
     DM Mono          prices and codes, stamped rather than set
   ===================================================================== */

:root {
  --night:    #17102e;
  --night-2:  #241a45;
  --night-3:  #332757;
  --spark:    #f5a524;
  --anaar:    #e8365d;
  --leaf:     #1f7a5c;
  --paper:    #fdf6e8;
  --paper-2:  #f3e9d4;
  --ink:      #2a1f18;
  --ink-soft: #6b5c4d;

  --rule: 2px solid var(--ink);
  --shadow-label: 4px 4px 0 rgba(42, 31, 24, .18);

  --wrap: 1180px;
  --gap: 1rem;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  /* faint ember glow at the top, as if something just went off */
  background-image:
    radial-gradient(1200px 420px at 50% -180px, rgba(245,165,36,.20), transparent 70%),
    radial-gradient(900px 340px at 12% -120px, rgba(232,54,93,.14), transparent 70%);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.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;
}

:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

.display {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
}

h1, h2, h3 { margin: 0 0 .5rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 2.75rem 0 1.25rem; flex-wrap: wrap;
}

.section-head h2 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15; margin: 0;
}

/* An eyebrow only where it says something real — a count, a brand */
.eyebrow {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--spark); margin: 0 0 .35rem;
}

.muted { color: rgba(253, 246, 232, .62); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.topbar {
  background: var(--anaar); color: #fff; text-align: center;
  font-family: "DM Mono", monospace; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .45rem 1rem;
}

.masthead { padding: 1.1rem 0 .6rem; }

.masthead-row {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}

.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: .5rem; }
.logo b {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.7rem; color: var(--spark); letter-spacing: -.01em;
}
.logo span {
  font-family: "DM Mono", monospace; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(253,246,232,.7);
}

.searchbox { display: flex; flex: 1 1 260px; max-width: 420px; }
.searchbox input {
  flex: 1; min-width: 0; border: var(--rule); border-right: 0;
  background: var(--paper); color: var(--ink);
  padding: .6rem .8rem; font: inherit; font-size: .92rem; border-radius: 0;
}
.searchbox input::placeholder { color: var(--ink-soft); }
.searchbox button {
  border: var(--rule); background: var(--spark); color: var(--ink);
  font-family: "DM Mono", monospace; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .6rem .9rem; cursor: pointer;
}
.searchbox button:hover { background: #ffb63f; }

/* Brand nav — horizontal scroll on phones rather than a hamburger,
   because there are only a handful of brands and tapping one is the
   main thing anyone does here */
.brandnav {
  border-top: 1px solid rgba(253,246,232,.14);
  border-bottom: 1px solid rgba(253,246,232,.14);
  margin-top: .75rem;
}
.brandnav ul {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.brandnav ul::-webkit-scrollbar { display: none; }
.brandnav a {
  display: block; white-space: nowrap; text-decoration: none;
  padding: .7rem .85rem; font-size: .9rem; color: rgba(253,246,232,.8);
  border-bottom: 3px solid transparent;
}
.brandnav a:hover { color: #fff; }
.brandnav a.is-current { color: var(--spark); border-bottom-color: var(--spark); }

/* ------------------------------------------------------------------ */
/* Breadcrumbs                                                         */
/* ------------------------------------------------------------------ */

.crumbs {
  font-family: "DM Mono", monospace; font-size: .74rem;
  padding: 1rem 0 0; color: rgba(253,246,232,.5);
}
.crumbs a { color: rgba(253,246,232,.75); text-decoration: none; }
.crumbs a:hover { color: var(--spark); }
.crumbs span + span::before { content: "/"; margin: 0 .5rem; opacity: .5; }

/* ------------------------------------------------------------------ */
/* Hero — the fuse                                                     */
/* ------------------------------------------------------------------ */
/* The signature moment: the headline sits on a lit fuse that burns
   across the page once on load. Everything else on the site is quiet. */

.hero { padding: 2.5rem 0 1rem; text-align: center; }

.hero h1 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.04; margin: 0 0 .4rem;
  text-shadow: 0 0 42px rgba(245,165,36,.35);
}
.hero h1 em { font-style: normal; color: var(--spark); }

.hero p {
  max-width: 44ch; margin: .9rem auto 0;
  color: rgba(253,246,232,.72); font-size: 1.02rem;
}

.fuse {
  position: relative; height: 3px; margin: 1.6rem auto 0; max-width: 520px;
  background: rgba(253,246,232,.16); overflow: visible;
}
.fuse::before {
  content: ""; position: absolute; inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--anaar), var(--spark));
  animation: burn 2.2s cubic-bezier(.4,0,.2,1) .2s forwards;
}
.fuse::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 10px;
  margin: -5px 0 0 -5px; border-radius: 50%; background: var(--spark);
  box-shadow: 0 0 14px 5px rgba(245,165,36,.75); opacity: 0;
  animation: travel 2.2s cubic-bezier(.4,0,.2,1) .2s forwards;
}
@keyframes burn   { to { inset: 0 0 0 0; } }
@keyframes travel { 0% { opacity: 1; left: 0; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.stats {
  display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.5rem; font-family: "DM Mono", monospace; font-size: .78rem;
  letter-spacing: .06em; color: rgba(253,246,232,.6);
}
.stats b { color: var(--spark); font-weight: 500; }

/* ------------------------------------------------------------------ */
/* Grids                                                               */
/* ------------------------------------------------------------------ */

.grid { display: grid; gap: var(--gap); }
.grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cats     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-brands   { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 700px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cats     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-brands   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cats     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ */
/* Product card — a box label                                          */
/* ------------------------------------------------------------------ */

.label {
  background: var(--paper); color: var(--ink); border: var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow-label);
  display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.label:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(42,31,24,.22); }

.label-media {
  aspect-ratio: 1 / 1; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  border-bottom: var(--rule); padding: .5rem;
}
/* contain, not cover — cropping a box photo cuts off the label */
.label-media img { width: 100%; height: 100%; object-fit: contain; }
.label-media .noimg {
  font-family: "DM Mono", monospace; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}

.label-body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }

.label-cat {
  font-family: "DM Mono", monospace; font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}

.label-name {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: .98rem; line-height: 1.15; margin: 0;
  /* box labels set names tight and large; two lines then clip */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.label-pack {
  font-size: .78rem; color: var(--ink-soft);
}

.label-price { margin-top: auto; padding-top: .4rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.label-price .now {
  font-family: "DM Mono", monospace; font-size: 1.06rem; font-weight: 500;
}
.label-price .was {
  font-family: "DM Mono", monospace; font-size: .8rem;
  color: var(--ink-soft); text-decoration: line-through;
}

/* Discount stamped in the corner, angled like an ink stamp */
.stamp {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  background: var(--anaar); color: #fff; border: 2px solid rgba(0,0,0,.25);
  font-family: "DM Mono", monospace; font-size: .68rem; font-weight: 500;
  padding: .18rem .4rem; transform: rotate(4deg);
  letter-spacing: .04em;
}

.tag-video {
  position: absolute; top: .55rem; left: .55rem; z-index: 2;
  background: rgba(23,16,46,.85); color: var(--paper);
  font-family: "DM Mono", monospace; font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .2rem .4rem;
}

/* ------------------------------------------------------------------ */
/* Category + brand cards                                              */
/* ------------------------------------------------------------------ */
/* Same label treatment as products. These are packaging photographs,
   so they sit on white at full colour and are contained rather than
   cropped — the box art IS the picture. */

.tile {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-label); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(42,31,24,.22); }

.tile-media {
  aspect-ratio: 4 / 3; background: #fff; border-bottom: var(--rule);
  display: grid; place-items: center; padding: .5rem;
}
.tile-media img { width: 100%; height: 100%; object-fit: contain; }
.tile-media .tile-empty {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, #fff 10px 20px);
}

.tile-cap {
  padding: .7rem .8rem .85rem; display: flex; flex-direction: column;
  gap: .2rem; flex: 1;
}
.tile-cap h3 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: .98rem; line-height: 1.15; margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-cap .count {
  font-family: "DM Mono", monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--anaar);
  margin: 0;
}
.tile-cap .from {
  font-family: "DM Mono", monospace; font-size: .68rem; color: var(--ink-soft);
  margin: auto 0 0;
}

/* Brand chips. Logos vary wildly — some are round trademark seals,
   some are product photographs — so the media box is fixed and the
   image is contained inside it rather than sized by its own pixels. */

.brandcard {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center; text-decoration: none; padding: 1rem .8rem;
  background: var(--paper); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-label);
  transition: transform .15s ease, box-shadow .15s ease;
}
.brandcard:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(42,31,24,.22); }

.brandcard .media {
  width: 100%; aspect-ratio: 1 / 1; max-width: 130px;
  background: #fff; display: grid; place-items: center;
  border: 1px solid rgba(42,31,24,.16); border-radius: 2px; padding: .4rem;
}
.brandcard .media img { width: 100%; height: 100%; object-fit: contain; }
.brandcard .media .ph {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 2.2rem; color: var(--ink-soft); line-height: 1;
}
.brandcard b {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: .95rem; font-weight: 400; line-height: 1.2;
}
.brandcard span {
  font-family: "DM Mono", monospace; font-size: .68rem;
  letter-spacing: .06em; color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Product detail                                                      */
/* ------------------------------------------------------------------ */

.pd { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 860px) { .pd { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.pd-media {
  border: var(--rule); border-radius: var(--radius);
  background: var(--paper); overflow: hidden; box-shadow: var(--shadow-label);
}
.pd-media { background: #fff; }
.pd-media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 1rem; }
.pd-media .noimg {
  aspect-ratio: 1/1; display: grid; place-items: center; color: var(--ink-soft);
  font-family: "DM Mono", monospace; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; background: var(--paper-2);
}

.pd h1 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.05; margin: 0 0 .6rem;
}

.pricebar {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  margin: 1rem 0; padding: .9rem 0; 
  border-top: 1px solid rgba(253,246,232,.16);
  border-bottom: 1px solid rgba(253,246,232,.16);
}
.pricebar .now { font-family: "DM Mono", monospace; font-size: 1.9rem; color: var(--spark); }
.pricebar .was { font-family: "DM Mono", monospace; font-size: 1rem; color: rgba(253,246,232,.5); text-decoration: line-through; }
.pricebar .off {
  background: var(--anaar); color: #fff; font-family: "DM Mono", monospace;
  font-size: .76rem; padding: .2rem .5rem;
}

.spec { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.spec li {
  display: flex; gap: 1rem; padding: .5rem 0;
  border-bottom: 1px dashed rgba(253,246,232,.16); font-size: .92rem;
}
.spec dt, .spec .k {
  font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(253,246,232,.55);
  min-width: 7.5rem; flex-shrink: 0;
}

.prose { color: rgba(253,246,232,.82); font-size: .96rem; }
.prose p { margin: 0 0 .7rem; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: var(--rule); border-radius: var(--radius); cursor: pointer;
  font-family: "DM Mono", monospace; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .75rem 1.2rem; text-decoration: none;
  background: var(--paper); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(0,0,0,.35); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(0,0,0,.35); }
.btn-primary { background: var(--spark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.qty {
  display: inline-flex; align-items: stretch; border: var(--rule);
  border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.qty button {
  border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer;
  width: 2.6rem; font-size: 1.15rem; line-height: 1;
}
.qty button:hover { background: var(--spark); }
.qty input {
  width: 3.2rem; border: 0; border-left: var(--rule); border-right: var(--rule);
  text-align: center; font-family: "DM Mono", monospace; font-size: 1rem;
  background: var(--paper); color: var(--ink); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buyrow { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; margin-top: 1.25rem; }
.buyrow .btn { flex: 1 1 200px; }

.note {
  margin-top: 1rem; padding: .8rem .9rem; font-size: .86rem;
  background: rgba(31,122,92,.16); border-left: 3px solid var(--leaf);
  color: rgba(253,246,232,.86);
}

/* ------------------------------------------------------------------ */
/* Empty states + pager                                                */
/* ------------------------------------------------------------------ */

.empty {
  text-align: center; padding: 3.5rem 1rem;
  border: 1px dashed rgba(253,246,232,.22); border-radius: var(--radius);
}
.empty h2 { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.4rem; }
.empty p { color: rgba(253,246,232,.65); margin: .4rem 0 1.2rem; }

.pager { margin: 2rem 0 0; }
.pager ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pager a, .pager .is-current {
  display: block; padding: .5rem .8rem; text-decoration: none;
  border: 1px solid rgba(253,246,232,.28); border-radius: var(--radius);
  font-family: "DM Mono", monospace; font-size: .8rem;
}
.pager a:hover { border-color: var(--spark); color: var(--spark); }
.pager .is-current { background: var(--spark); color: var(--ink); border-color: var(--spark); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.safety {
  background: var(--paper); color: var(--ink); margin-top: 3.5rem;
  border-top: 4px solid var(--anaar);
}
.safety-inner { padding: 2rem 0; }
.safety h2 { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.3rem; margin: 0 0 .9rem; }
.safety ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; font-size: .9rem; }
.safety li { margin-bottom: .4rem; break-inside: avoid; }
@media (max-width: 640px) { .safety ul { columns: 1; } }

.foot { padding: 2rem 0 3rem; font-size: .88rem; color: rgba(253,246,232,.6); }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot h3 {
  font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--spark); margin: 0 0 .6rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--spark); }
.foot-base {
  margin-top: 1.75rem; padding-top: 1.25rem; font-size: .8rem;
  border-top: 1px solid rgba(253,246,232,.14);
}

/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fuse::before { inset: 0; }
  .fuse::after { display: none; }
}



/* =====================================================================
   Cart, checkout, confirmation
   ---------------------------------------------------------------------
   APPEND this to the end of assets/css/shop.css — do not replace the
   file, the storefront styles above it are still needed.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* Flash messages                                                      */
/* ------------------------------------------------------------------ */

.flash {
  margin: 1.25rem 0 0; padding: .8rem 1rem;
  border-radius: var(--radius); font-size: .92rem;
  border-left: 4px solid;
}
.flash-success { background: rgba(31,122,92,.18);  border-color: var(--leaf);  color: #d7f0e6; }
.flash-error   { background: rgba(232,54,93,.18);  border-color: var(--anaar); color: #ffd9e1; }

.formerrors {
  margin: 0 0 1.25rem; padding: .9rem 1rem;
  background: rgba(232,54,93,.18); border-left: 4px solid var(--anaar);
  border-radius: var(--radius); color: #ffd9e1; font-size: .92rem;
}
.formerrors div + div { margin-top: .3rem; }

/* ------------------------------------------------------------------ */
/* Cart badge in the header                                            */
/* ------------------------------------------------------------------ */

.cartlink {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none; border: var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  padding: .55rem .85rem; white-space: nowrap;
  font-family: "DM Mono", monospace; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.cartlink:hover { background: var(--spark); }
.cartlink .badge {
  background: var(--anaar); color: #fff; border-radius: 999px;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem;
  display: inline-grid; place-items: center; font-size: .72rem;
}

/* ------------------------------------------------------------------ */
/* Cart list                                                           */
/* ------------------------------------------------------------------ */

.cartlist { display: flex; flex-direction: column; gap: .75rem; }

.cartrow {
  display: grid; gap: .75rem 1rem; align-items: center;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "img main"
    "qty total";
  background: var(--paper); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-label); padding: .75rem;
}
@media (min-width: 720px) {
  .cartrow {
    grid-template-columns: 88px 1fr auto auto;
    grid-template-areas: "img main qty total";
  }
}

.cartrow-img { grid-area: img; display: block; background: #fff; border: 1px solid rgba(42,31,24,.16); border-radius: 2px; }
.cartrow-img img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: .25rem; }
.cartrow-img .ph { display: block; width: 100%; aspect-ratio: 1/1; background: var(--paper-2); }

.cartrow-main { grid-area: main; min-width: 0; }
.cartrow-name {
  font-family: "Alfa Slab One", Georgia, serif; font-size: .98rem;
  line-height: 1.2; color: var(--ink); text-decoration: none;
  display: block;
}
.cartrow-name:hover { color: var(--anaar); }
.cartrow-meta { margin: .2rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.cartrow-unit {
  margin: .15rem 0 0; font-family: "DM Mono", monospace;
  font-size: .78rem; color: var(--ink-soft);
}

.cartrow-qty { grid-area: qty; }

.cartrow-total {
  grid-area: total; text-align: right;
  font-family: "DM Mono", monospace; font-size: 1.05rem; font-weight: 500;
}

.cartfoot {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.cartfoot-note { font-size: .82rem; margin: 0; }

.carttotal {
  margin: 1.75rem 0 0; margin-left: auto; max-width: 380px;
  background: var(--paper); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-label); padding: 1.1rem;
}
.carttotal-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "DM Mono", monospace; font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.carttotal-row b { font-size: 1.5rem; letter-spacing: 0; }
.carttotal .muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* Checkout                                                            */
/* ------------------------------------------------------------------ */

.checkout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.4fr 1fr; gap: 2rem; } }

.panel {
  background: var(--paper); color: var(--ink);
  border: var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-label); padding: 1.25rem;
}

.field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-family: "DM Mono", monospace; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.field > span i { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input {
  border: var(--rule); border-radius: 2px; background: #fff; color: var(--ink);
  padding: .65rem .7rem; font: inherit; font-size: .95rem; width: 100%;
}
.field input:focus { outline: 3px solid var(--spark); outline-offset: 1px; }
.field small { font-size: .76rem; color: var(--ink-soft); }

.fixedarea {
  background: var(--paper-2); border: 1px dashed rgba(42,31,24,.3);
  border-radius: 2px; padding: .65rem .7rem; font-size: .92rem;
}
.fixedarea b { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; }

/* Summary ---------------------------------------------------------- */

.summary h3, .placed-panel h3 {
  font-family: "Alfa Slab One", Georgia, serif; font-size: 1.05rem;
  margin: 0 0 .8rem;
}

.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem;
  padding: .45rem 0; border-bottom: 1px dashed rgba(42,31,24,.2);
  font-size: .9rem; align-items: baseline;
}
.summary-list .s-qty { font-family: "DM Mono", monospace; color: var(--ink-soft); }
.summary-list .s-amt { font-family: "DM Mono", monospace; }

.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .9rem; padding-top: .7rem; border-top: var(--rule);
  font-family: "DM Mono", monospace; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.summary-total b { font-size: 1.35rem; letter-spacing: 0; }

.summary-edit {
  display: inline-block; margin-top: .9rem; font-size: .82rem;
  font-family: "DM Mono", monospace; color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Confirmation                                                        */
/* ------------------------------------------------------------------ */

.placed { max-width: 560px; margin: 1.5rem auto 0; text-align: center; }
.placed h1 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3rem); color: var(--spark);
  line-height: 1.04; margin: 0 0 .8rem;
}
.placed-lead { color: rgba(253,246,232,.82); margin: 0 0 1.75rem; }
.placed-panel { text-align: left; }
.placed-addr { font-size: .92rem; line-height: 1.5; margin: 0; }
.placed-note {
  font-size: .86rem; color: rgba(253,246,232,.7);
  margin: 1.5rem 0; padding: .8rem;
  border: 1px dashed rgba(253,246,232,.25); border-radius: var(--radius);
}



/* =====================================================================
   Typography correction
   ---------------------------------------------------------------------
   APPEND to the end of assets/css/shop.css.

   Alfa Slab One is a display face. Its strokes are heavy relative to its
   counters, so below roughly 20px the enclosed spaces in a, e, s and g
   fill in and the word turns into a shape rather than something you read.
   It was being used on card titles at ~15px, which is the wrong job for it.

   The slab now appears only where it is genuinely large — the hero, the
   confirmation reference, section headings. Everything at text size uses
   Instrument Sans at 600, which holds up small and still reads as
   deliberate next to the slab.
   ===================================================================== */

/* =====================================================================
   Typography correction
   ---------------------------------------------------------------------
   APPEND to the end of assets/css/shop.css.

   Alfa Slab One is a display face. Its strokes are heavy relative to its
   counters, so below roughly 20px the enclosed spaces in a, e, s and g
   fill in and the word turns into a shape rather than something you read.
   It was being used on card titles at ~15px, which is the wrong job for it.

   The slab now appears only where it is genuinely large — the hero, the
   confirmation reference, section headings. Everything at text size uses
   Instrument Sans at 600, which holds up small and still reads as
   deliberate next to the slab.
   ===================================================================== */

/* Product card titles ---------------------------------------------- */
/* =====================================================================
   Typography correction
   ---------------------------------------------------------------------
   APPEND to the end of assets/css/shop.css.

   Alfa Slab One is a display face. Its strokes are heavy relative to its
   counters, so below roughly 20px the enclosed spaces in a, e, s and g
   fill in and the word turns into a shape rather than something you read.
   It was being used on card titles at ~15px, which is the wrong job for it.

   The slab now appears only where it is genuinely large — the hero, the
   confirmation reference, section headings. Everything at text size uses
   Instrument Sans at 600, which holds up small and still reads as
   deliberate next to the slab.
   ===================================================================== */

/* Product card titles ---------------------------------------------- */
.label-name {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* Category tile titles --------------------------------------------- */
.tile-cap h3 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* Brand chip names -------------------------------------------------- */
.brandcard b {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

/* Cart line names --------------------------------------------------- */
.cartrow-name {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

/* Panel headings in checkout and confirmation ----------------------- */
.summary h3,
.placed-panel h3 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
}

/* Product detail title — large enough for the slab, but it was set
   tight; give it room so the descenders clear. */
.pd h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  line-height: 1.12;
}

/* Section headings keep the slab, but lift the size a little so it is
   working at a scale that suits it. */
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
}

/* The category name in the small eyebrow above a card title was set in
   mono at .64rem, which is below comfortable reading size on a phone. */
.label-cat {
  font-size: .7rem;
  letter-spacing: .1em;
}

/* Item counts on tiles — same reasoning. */
.tile-cap .count {
  font-size: .74rem;
  letter-spacing: .08em;
}

/* Pack size and meta lines sit under names and were competing with
   them at nearly the same weight. Drop the contrast. */
.label-pack,
.cartrow-meta {
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Shop contact strip                                                  */
/* ------------------------------------------------------------------ */

.shopstrip {
  margin-top: 3rem;
  border-top: 1px solid rgba(253,246,232,.14);
  border-bottom: 1px solid rgba(253,246,232,.14);
}
.shopstrip-inner {
  display: grid; gap: 1.75rem; padding: 2rem 1rem;
}
@media (min-width: 760px) {
  .shopstrip-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}
.shopstrip h3 {
  font-family: "DM Mono", monospace; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--spark); margin: 0 0 .7rem;
}
.shopstrip-addr {
  margin: 0; font-size: .95rem; line-height: 1.6;
  color: rgba(253,246,232,.85);
}
.shopstrip-map {
  display: inline-block; margin-top: .6rem; font-size: .84rem;
  font-family: "DM Mono", monospace; color: var(--spark);
}
.shopstrip-list { list-style: none; margin: 0; padding: 0; }
.shopstrip-list li {
  font-size: .95rem; margin-bottom: .35rem;
  color: rgba(253,246,232,.85);
}
.shopstrip-list a { text-decoration: none; }
.shopstrip-list a:hover { color: var(--spark); }
