/* Cabinet Factory: Shop page (White Shaker and Grey Shaker price list).
   Loads after css/style.css and only styles shop.html. */

:root {
  --ink: #15171A;
  --ink-2: #555B61;          /* secondary text, 6.1:1 on --paper */
  --paper: #F2F2F0;
  --line: rgba(21, 23, 26, 0.12);
  --line-strong: #767C82;    /* control borders, 3.9:1 on --paper */
  --pad: clamp(1rem, 4vw, 3rem);
  --nav-h: 70px;             /* matches the fixed nav from css/style.css; JS refines --nav-real */
  --bar-h: 0px;
  --ease-in: cubic-bezier(0, 0, 0, 1);
  --ease-emph: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.3, 0, 1, 1);
  --ease-move: cubic-bezier(0.2, 0, 0, 1);
}

html { background: var(--paper); overscroll-behavior-y: none; }
@media (min-width: 1537px) { :root { --nav-h: 90px; } }
@media (max-width: 700px) { :root { --nav-h: 50px; } }
body.shop-body { background: var(--paper); color: var(--ink); }
.shop-body img { max-width: 100%; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* .skip-link comes from css/style.css (fixed, so it shows wherever the page is scrolled) */

.shop-body :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- solid nav (same treatment as styles.html / book.html) ---- */
#nav.nav-solid {
  mix-blend-mode: normal; color: var(--ink);
  background: var(--paper);   /* opaque: nothing shows through where the list scrolls under it */
  box-shadow: 0 1px 0 var(--line);
}
.nav-solid .brand, .nav-solid .nav-link { color: var(--ink); }
.nav-solid .nav-link-active { opacity: 1; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.nav-solid .nav-cta { color: var(--ink); border-color: rgba(21, 23, 26, 0.45); }
.nav-solid .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.nav-open .nm-links a:nth-child(4) { transition-delay: 0.33s; }

/* ============ OPENING ============ */
.sh-hero {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.sh-copy {
  grid-column: 1; grid-row: 1;
  align-self: center;
  padding: clamp(24px, 5vh, 56px) clamp(1rem, 3.4vw, 3.5rem) clamp(24px, 5vh, 56px) var(--pad);
  min-width: 0;
}
.sh-copy h1 {
  font-size: clamp(2.25rem, 1rem + 4.1vw, 5.25rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 11ch;
  margin-bottom: clamp(14px, 2.4vh, 24px);
}
.sh-sub {
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: clamp(20px, 3.6vh, 36px);
}
.sh-media {
  grid-column: 2; grid-row: 1;
  position: relative;
  overflow: clip;
  min-height: 0;
  background: #d9dad7;
}
.sh-ph { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s var(--ease-move); }
.sh-ph.is-on { opacity: 1; }
.sh-ph img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
}
.sh-ph[data-finish="w"] { --fx: 46%; --fy: 40%; }
.sh-ph[data-finish="g"] { --fx: 62%; --fy: 45%; }
.sh-cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(21, 23, 26, 0.78); color: var(--paper);
  font-size: 13px; letter-spacing: 0.02em; padding: 8px 12px;
}

/* finish toggle */
.fin-toggle { display: flex; flex-wrap: wrap; gap: 10px; }
.fin-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 18px 8px 8px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-move), color 0.2s var(--ease-move), border-color 0.2s var(--ease-move);
}
.fin-btn img { width: 40px; height: 40px; display: block; border: 1px solid rgba(21, 23, 26, 0.18); }
.fin-btn:hover { border-color: var(--ink); background: rgba(21, 23, 26, 0.05); }
.fin-btn:active { transform: translateY(1px); }
.fin-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fin-check { flex: none; width: 16px; height: 16px; display: block; visibility: hidden; }   /* space kept so the buttons never change width */
.fin-btn[aria-pressed="true"] .fin-check { visibility: visible; }
.fin-compact .fin-btn { min-height: 44px; padding: 6px 14px 6px 6px; font-size: 14px; gap: 10px; }
.fin-compact .fin-btn img { width: 30px; height: 30px; }

.sh-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(18px, 3vh, 30px); align-items: center; }
.sh-contact a { color: var(--ink); font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sh-phone { font-weight: 500; border-bottom: 1px solid var(--ink); min-height: 0 !important; padding-bottom: 2px; }
.sh-map { color: var(--ink-2) !important; font-weight: 300; }
.sh-contact a:hover { color: #000; }
.sh-map:hover { text-decoration: underline; }

/* ============ TOOLBAR ============ */
.shop { position: relative; overflow-x: clip; }
.shop-bar {
  position: sticky; top: var(--nav-real, var(--nav-h)); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px;
  padding: 12px var(--pad);
  background: rgba(242, 242, 240, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search, .cat-select { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search { flex: 1 1 260px; max-width: 420px; }
.search label, .cat-select label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.search input, .cat-select select {
  font: inherit; font-size: 16px; color: var(--ink);
  height: 44px; padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.search input:hover, .cat-select select:hover { border-color: var(--ink); }
.cat-select { display: none; }
.cat-select select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.cats { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.cat {
  font: inherit; font-size: 13px; font-weight: 400; color: var(--ink);
  min-height: 36px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color 0.15s var(--ease-move), color 0.15s var(--ease-move);
}
.cat:hover { background: rgba(21, 23, 26, 0.06); }
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ============ LIST + PANEL ============ */
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--pad) clamp(48px, 8vh, 96px);
  align-items: start;
}
.shop-list { min-width: 0; padding-top: 24px; }
.shop-list:focus { outline: none; }
.list-h { font-size: clamp(28px, 1.2rem + 1.4vw, 40px); font-weight: 200; letter-spacing: -0.02em; margin-bottom: 10px; }
.price-note { font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--ink-2); max-width: 68ch; margin-bottom: 10px; }
.count { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.empty { border: 1px solid var(--line); background: #fff; padding: 20px; margin: 16px 0; }
.empty p { font-size: 15px; margin-bottom: 12px; }
.btn-line {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  min-height: 44px; padding: 0 16px; background: transparent;
  border: 1px solid var(--line-strong); cursor: pointer;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

.cat-group { margin-top: clamp(28px, 4vh, 44px); scroll-margin-top: calc(var(--nav-real, var(--nav-h)) + var(--bar-h) + 12px); }
.cat-h {
  font-size: clamp(20px, 1rem + 0.6vw, 26px); font-weight: 300; letter-spacing: -0.01em;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.cat-h span { font-size: 13px; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.price-table thead th {
  font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left;
  padding: 10px 12px 8px; border-bottom: 1px solid var(--line);
}
.price-table thead th.num { text-align: right; }
.price-table tbody tr { border-bottom: 1px solid var(--line); transition: background-color 0.15s var(--ease-move); }
.price-table tbody tr:hover { background: rgba(21, 23, 26, 0.035); }
.price-table tbody tr.in-list { background: rgba(21, 23, 26, 0.05); }
.price-table tbody th, .price-table td { padding: 6px 12px; vertical-align: middle; text-align: left; }
.price-table tbody th { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 14px; letter-spacing: 0.01em; }
.price-table tbody td:nth-child(2) { font-weight: 400; }
.price-table tbody td:nth-child(3) { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.num { text-align: right !important; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price-table td.pr { font-weight: 500; }
.act { width: 1%; white-space: nowrap; text-align: right !important; }
.price-table tr[hidden], .cat-group[hidden] { display: none !important; }

.add {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  min-height: 44px; min-width: 112px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color 0.15s var(--ease-move), color 0.15s var(--ease-move), border-color 0.15s var(--ease-move);
}
.add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.add:active { transform: translateY(1px); }

/* quantity stepper (rows and the list panel) */
.step { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); min-width: 112px; justify-content: space-between; }
.step button {
  font: inherit; font-size: 18px; line-height: 1; color: var(--ink);
  width: 40px; min-height: 42px; background: transparent; border: 0; cursor: pointer;
  transition: background-color 0.15s var(--ease-move);
}
.step button:hover { background: rgba(21, 23, 26, 0.08); }
.step button:active { background: rgba(21, 23, 26, 0.14); }
.step .q { min-width: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* the list panel */
.cart {
  position: sticky;
  top: calc(var(--nav-real, var(--nav-h)) + var(--bar-h) + 16px);
  margin-top: 24px;
  max-height: calc(100svh - var(--nav-real, var(--nav-h)) - var(--bar-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: -20px; z-index: 2;   /* pinned to the top of the panel while the lines scroll */
  margin: -20px -20px 12px; padding: 20px 20px 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.cart-count { margin-right: auto; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.shop-area { position: relative; }
.cart-head h2 { font-size: 24px; font-weight: 300; letter-spacing: -0.01em; }
.cart-head h2:focus { outline: none; }
.cart-close { display: none; font: inherit; font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; }
.cart-empty { font-size: 15px; color: var(--ink-2); line-height: 1.5; padding: 8px 0 16px; }
.cart-lines { list-style: none; }
.cart-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.cl-name { font-size: 14px; line-height: 1.4; }
.cl-name b { font-weight: 600; margin-right: 6px; }
.cl-meta { font-size: 13px; color: var(--ink-2); grid-column: 1; }
.cl-total { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.cl-ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-remove {
  font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 0;
  min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cl-remove:hover { color: var(--ink); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--ink); padding-top: 14px; margin-top: 4px;
  font-size: 15px;
}
.cart-total output { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.cart-note { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin: 10px 0 14px; }

/* pickup (and, when DELIVERY_ENABLED, the pickup or delivery choice) */
.ful-box { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ink); }
.ful-box > .ful:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.ful-pickup { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.ful { border: 0; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ink); min-width: 0; }
.ful legend { float: left; width: 100%; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.ful legend + * { clear: both; }
.ful-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin-top: 8px;
  border: 1px solid var(--line-strong); cursor: pointer; min-height: 44px;
  transition: border-color 0.15s var(--ease-move), background-color 0.15s var(--ease-move);
}
.ful-opt:hover { border-color: var(--ink); }
.ful-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #F7F7F5; }
.ful-opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.ful-opt span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.ful-opt b { font-weight: 500; }
.ful-opt small { font-size: 13px; color: var(--ink-2); }
.ful-info { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 8px 0 0; }
.ful-fee { font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--ink); margin: 12px 0 0; }
.ful-fee[hidden], .ship-to[hidden] { display: none; }
.ship-to { border-top: 0; padding-top: 6px; margin-top: 4px; }
.ship-to legend { font-size: 14px; }
.ack { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; padding: 12px; background: #F7F7F5; border: 1px solid var(--line); }
.ack input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; cursor: pointer; }
.ack label { font-size: 14px; line-height: 1.45; cursor: pointer; min-height: 22px; }
.ack a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.ack a:hover { text-decoration-thickness: 2px; }
.cart-delivery { border-top: 0 !important; padding-top: 4px !important; margin-top: 0 !important; }
.cart-delivery output { font-size: 16px !important; }
.cart-delivery[hidden] { display: none; }

/* the refund-policy box, subtotal and checkout stay pinned to the bottom of the
   panel while the lines scroll: the box is always fully visible next to the
   button it unlocks */
.cart-pay {
  position: sticky; bottom: -20px; z-index: 2;
  margin: 0 -20px; padding: 12px 20px 18px;
  background: #fff;
  box-shadow: 0 -1px 0 var(--line);
}
.cart-pay .ack { margin: 0 0 12px; }
.cart-pay .checkout { margin-top: 12px; }
/* checkout: the one dominant action in the panel */
.checkout { display: grid; gap: 8px; }
.btn-checkout {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 52px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease-move), color 0.2s var(--ease-move), border-color 0.2s var(--ease-move);
}
.btn-checkout:hover:not(:disabled) { background: #2c3036; border-color: #2c3036; }
.btn-checkout:active:not(:disabled) { transform: translateY(1px); }
.btn-checkout:disabled { background: #E6E6E3; border-color: #E6E6E3; color: var(--ink-2); cursor: not-allowed; }
.btn-checkout[aria-busy="true"] { background: #3a3f45; border-color: #3a3f45; color: var(--paper); cursor: progress; }
.checkout-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.checkout-note.is-hint { color: var(--ink); font-weight: 500; }
.checkout-error { font-size: 14px; line-height: 1.45; color: #A3261B; }
.checkout-error a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* "Prefer to talk first?": the secondary path, by email */
.talk-h { font-size: 16px; font-weight: 500; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.talk-p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 12px; }
.cart-form { display: grid; gap: 12px; }
.cf-field { display: flex; flex-direction: column; gap: 4px; }
.cf-field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.cf-field input {
  font: inherit; font-size: 16px; height: 44px; padding: 0 12px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 0; background: #fff;
}
.cf-field input:hover { border-color: var(--ink); }
.cf-field input[aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.btn-send {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; background: transparent; color: var(--ink); border: 1px solid var(--ink);
  text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease-move), color 0.2s var(--ease-move);
}
.btn-send:hover { background: var(--ink); color: var(--paper); }
.btn-send:active { transform: translateY(1px); }
.form-error { font-size: 14px; color: #A3261B; line-height: 1.45; }
.cart-fine { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.cart-alt { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-alt a { color: var(--ink); font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.cart-alt a:hover { color: #000; text-decoration-thickness: 2px; }

.listbar, .cart-backdrop { display: none; }

/* ============ WHAT YOU GET ============ */
.wyg {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(56px, 10vh, 120px) var(--pad);
  border-top: 1px solid var(--line);
}
.wyg-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.wyg-media img { width: 100%; height: auto; aspect-ratio: 900 / 1160; object-fit: cover; display: block; background: #d9dad7; }
.wyg-media img:last-child { margin-top: clamp(24px, 6vh, 72px); }
.wyg-copy h2 { font-size: clamp(32px, 1.2rem + 2vw, 56px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 22px; }
.wyg-list { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.wyg-list li { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-2); max-width: 60ch; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.wyg-list strong { font-weight: 500; color: var(--ink); }
.wyg .btn-dark { display: inline-flex; align-items: center; min-height: 48px; }
.wyg .btn-dark:hover { background: #2c3036; }
.wyg .btn-ghost { display: inline-flex; align-items: center; min-height: 44px; }

/* no JavaScript: the list tools do nothing, so hide them */
html:not(.js) .fin-toggle, html:not(.js) .shop-bar, html:not(.js) .cart, html:not(.js) .act,
html:not(.js) .price-table thead th:last-child, html:not(.js) .listbar { display: none !important; }
html:not(.js) .shop-grid { grid-template-columns: 1fr; }

/* ============ RESPONSIVE ============ */
/* one shared column grid for every category table once there is room */
@media (min-width: 1280px) {
  .price-table { table-layout: fixed; }
  .price-table thead th:nth-child(1) { width: 8rem; }
  .price-table thead th:nth-child(3) { width: 12.5rem; }
  .price-table thead th:nth-child(4) { width: 6.5rem; }
  .price-table thead th:nth-child(5) { width: 8.5rem; }
  .price-table tbody th { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 1279px) {
  .shop-grid { grid-template-columns: 1fr; }
  .cart {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70;
    margin: 0; max-height: 86svh; border: 0; border-top: 1px solid var(--line);
    padding: 18px var(--pad) calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 40px rgba(21, 23, 26, 0.18);
    transform: translateY(102%); visibility: hidden;
    transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  body.list-open .cart { transform: none; visibility: visible; transition: transform 0.4s var(--ease-emph); }
  .cart-close { display: inline-flex; align-items: center; }
  .cart-head { position: sticky; top: -18px; z-index: 2; background: #fff; margin: -18px calc(-1 * var(--pad)) 8px; padding: 14px var(--pad) 10px; border-bottom: 1px solid var(--line); }
  .cart-pay { bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom)); }
  .cart-backdrop {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(21, 23, 26, 0.42); opacity: 0;
    transition: opacity 0.3s var(--ease-move);
  }
  .cart-backdrop[hidden] { display: none; }
  body.list-open .cart-backdrop { opacity: 1; }
  .listbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    min-height: 56px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--paper); border: 0;
    font: inherit; font-size: 15px; text-align: left; cursor: pointer;
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.3s var(--ease-move), visibility 0s linear 0.3s;
  }
  .listbar.is-shown { transform: none; visibility: visible; transition: transform 0.3s var(--ease-move); }
  .listbar:focus-visible { outline: 2px solid var(--paper); outline-offset: -5px; }
  .lb-label { font-weight: 500; }
  .lb-count { color: rgba(242, 242, 240, 0.8); }
  .lb-total { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
  .lb-total::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 12px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-1px) rotate(45deg); }
  .shop { padding-bottom: 64px; }
  .wyg { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sh-hero { grid-template-columns: 1fr; min-height: 0; }
  .sh-media { grid-column: 1; grid-row: 1; height: clamp(180px, 36svh, 440px); }
  .sh-copy { grid-column: 1; grid-row: 2; padding: 20px var(--pad) 26px; }
  .sh-copy h1 { max-width: 14ch; font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.5rem); }
  .sh-ph[data-finish="w"] { --fx: 40%; --fy: 45%; }
  .sh-ph[data-finish="g"] { --fx: 64%; --fy: 50%; }
  .fin-btn { flex: 1 1 0; min-width: 0; white-space: nowrap; gap: 8px; padding: 6px 12px 6px 6px; font-size: 15px; }
  .fin-btn img { width: 32px; height: 32px; }
  .shop-bar { position: static; gap: 10px 12px; padding-top: 14px; padding-bottom: 14px; }
  .shop-bar .fin-toggle { display: none; }   /* the opening's toggle sits right above */
  .cats { display: none; }
  .cat-select { display: flex; flex: 1 1 150px; }
  .search { flex: 1 1 180px; max-width: none; }
}

@media (max-width: 700px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "sku price" "name act" "size act";
    gap: 2px 14px;
    padding: 12px 0;
  }
  .price-table tbody th, .price-table td { padding: 0; }
  .price-table tbody th { grid-area: sku; font-size: 13px; color: var(--ink-2); }
  .price-table tbody td:nth-child(2) { grid-area: name; font-size: 15px; }
  .price-table tbody td:nth-child(3) { grid-area: size; white-space: normal; font-size: 13.5px; }
  .price-table td.pr { grid-area: price; font-size: 16px; }
  .price-table td.act { grid-area: act; align-self: end; width: auto; }
  .add, .step { min-width: 104px; }
}

@media (max-width: 380px) {
  .fin-btn { padding-right: 8px; gap: 6px; font-size: 14px; }
  .fin-btn img { width: 26px; height: 26px; }
  .add, .step { min-width: 96px; }
}

@media (max-height: 560px) and (min-width: 901px) {
  .sh-hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-ph, .fin-btn, .cat, .add, .cart, .listbar, .cart-backdrop, .price-table tbody tr { transition: none !important; }
  body.list-open .cart { transition: none; }
}
