/* =====================================================================
   BLVCK PVLSE — stylesheet
   Palette: true black, white and the studio-wall grey from the brand's
   photography. One type family (Archivo): expanded for display, normal
   width for reading.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --studio: #d7d6d2;   /* the grey wall behind every product photo */
  --fog: #efefec;      /* quiet fills, hover rows */
  --rule: #cbcac6;     /* hairlines on white */
  --concrete: #5f5f5b; /* secondary text, 6:1 on white */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 125%;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.4rem + 3.9vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.visually-hidden {
  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 {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.tabular { font-variant-numeric: tabular-nums; }
.page-end { padding-bottom: clamp(56px, 8vw, 112px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--black); border-radius: 0;
  background: var(--black); color: var(--white);
  font-weight: 600; font-size: var(--step-0); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--black); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .wa-icon { width: 18px; height: 18px; flex: none; }

.text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.wordmark {
  font-stretch: var(--wide); font-weight: 900; font-size: 1.25rem;
  letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none;
  line-height: 1; white-space: nowrap;
}
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--black); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.bag-btn, .menu-btn {
  background: none; border: 0; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
}
.bag-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--black); color: var(--white); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.bag-count[data-empty="true"] { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--black);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { display: block; padding: 14px 0; font-size: var(--step-1); border-bottom: 1px solid var(--rule); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 700; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(86vh, 780px);
  background: var(--black); overflow: hidden;
}
.hero__ink {
  --ink-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  min-width: 0;
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 80px) var(--ink-pad);
}
.hero__title { font-size: var(--step-4); font-weight: 800; max-width: 11ch; }
.hero__sub { margin-top: 4px; max-width: 38ch; font-size: var(--step-1); line-height: 1.5; color: #d9d9d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__studio { margin: 0; position: relative; background: var(--studio); }
.hero__studio img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__studio figcaption {
  position: absolute; left: 24px; bottom: 20px; font-size: var(--step--1); font-weight: 500;
}
.hero__studio figcaption a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* the pulse: one line, drawn once on load, running from the headline across both panels */
.hero__pulse {
  display: block; flex: none; position: relative; z-index: 2;
  width: 100vw; max-width: none; height: 96px; margin: 14px 0 6px calc(-1 * var(--ink-pad));
  pointer-events: none; mix-blend-mode: difference;
}
.hero__pulse path {
  fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__pulse path { animation: pulse-draw 1.9s .25s var(--ease) both; }
}
@keyframes pulse-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__ink { --ink-pad: var(--gutter); padding: 56px var(--gutter) 64px; }
  .hero__studio { aspect-ratio: 4 / 5; }
  .hero__pulse { height: 80px; margin-top: 12px; margin-bottom: 10px; }
}

/* ---------- Perks strip ---------- */
.perks { border-bottom: 1px solid var(--black); }
.perks ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.perks li { padding: 18px 20px 18px 0; font-weight: 500; font-size: var(--step--1); }
.perks li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .perks ul { grid-template-columns: 1fr 1fr; }
  .perks li { padding: 14px 12px 14px 0; }
  .perks li + li { padding-left: 0; border-left: 0; }
  .perks li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
  .perks li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--studio { background: var(--studio); }
.section--ink { background: var(--black); color: var(--white); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.section-head h2 { font-size: var(--step-3); }
.section-head p { max-width: 52ch; margin-top: 14px; color: var(--concrete); }
.section--studio .section-head p { color: #3d3d3a; }

.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--black); }
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-top: 16px; max-width: 56ch; font-size: var(--step-1); color: var(--concrete); }

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 40px) clamp(12px, 1.6vw, 24px);
}
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.card { display: block; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--studio); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media .card__alt { opacity: 0; transition: opacity .25s var(--ease); }
@media (hover: hover) { .card:hover .card__alt { opacity: 1; } }
.card__label {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: var(--black); color: var(--white); font-size: .8125rem; font-weight: 600; padding: 4px 8px;
}
.card__info { padding-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.card__name { font-size: var(--step-0); font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.card__price { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__meta { grid-column: 1 / -1; margin: 0; color: var(--concrete); font-size: var(--step--1); }
.card:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .card__info { grid-template-columns: 1fr; } }
.price-was { color: var(--concrete); text-decoration: line-through; font-weight: 400; margin-right: 6px; }

/* ---------- Shop toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; margin-bottom: 28px; border-bottom: 1px solid var(--rule);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; cursor: pointer;
  border: 1.5px solid var(--black); background: var(--white); font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.sort { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); }
.sort select {
  min-height: 40px; padding: 0 36px 0 12px; border: 1.5px solid var(--black); border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none;
}
.result-count { color: var(--concrete); font-size: var(--step--1); margin: 0; }

/* ---------- Proof section ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--black); }
.proof > div { padding: 24px 24px 8px 0; }
.proof > div + div { padding-left: 24px; border-left: 1px solid rgba(0,0,0,.25); }
.proof h3 { font-size: var(--step-1); margin-bottom: 12px; }
.proof p { color: #2e2e2c; }
@media (max-width: 960px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid rgba(0,0,0,.25); }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
  .proof > div, .proof > div + div { padding: 20px 0; border-left: 0; }
  .proof > div + div { border-top: 1px solid rgba(0,0,0,.25); }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 24px; border: 1.5px solid var(--black); }
.review blockquote { margin: 0 0 18px; font-size: var(--step-1); line-height: 1.45; }
.review figcaption { color: var(--concrete); font-size: var(--step--1); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Where to buy ---------- */
.channels { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.channels li { border-bottom: 1px solid var(--rule); }
.channels a {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 24px; align-items: center;
  padding: 26px 8px; text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.channels a:hover { background: var(--black); color: var(--white); }
.channels .ch-name { font-stretch: var(--wide); font-weight: 800; font-size: var(--step-2); line-height: 1.1; }
.channels .ch-desc { color: inherit; opacity: .78; }
.channels .ch-go { font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .channels a { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 4px; }
  .channels .ch-desc { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Product page ---------- */
.breadcrumb { padding: 16px 0; font-size: var(--step--1); color: var(--concrete); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding-bottom: 72px; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.gallery__main { margin: 0; aspect-ratio: 4 / 5; background: var(--studio); position: relative; overflow: hidden; grid-column: 2; grid-row: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 1; }
.thumb { padding: 0; border: 1.5px solid transparent; background: var(--studio); cursor: pointer; aspect-ratio: 4 / 5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--black); }
.gallery__note { grid-column: 2; margin: 0; font-size: var(--step--1); color: var(--concrete); }

.buy { align-self: start; }
.buy h1 { font-size: var(--step-3); }
.buy__price { font-size: var(--step-2); font-weight: 600; margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.buy__summary { color: var(--concrete); margin-bottom: 28px; }
.option { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.option legend { padding: 0; margin-bottom: 10px; font-weight: 600; display: flex; gap: 8px; width: 100%; }
.option legend .chosen { font-weight: 400; color: var(--concrete); }
.option legend .text-link { margin-left: auto; font-weight: 500; font-size: var(--step--1); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 56px; min-height: 46px; padding: 0 14px;
  border: 1.5px solid var(--rule); background: var(--white); font-weight: 500;
}
.choice input:checked + span { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.choice input:disabled + span { color: #a3a39f; text-decoration: line-through; background: var(--fog); }
.choice .dot { width: 16px; height: 16px; border: 1px solid #9a9a96; }
.qty { display: inline-flex; border: 1.5px solid var(--black); }
.qty button { width: 46px; height: 46px; background: none; border: 0; cursor: pointer; font-size: 1.25rem; }
.qty input { width: 52px; height: 46px; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__actions { display: grid; gap: 10px; margin-top: 26px; }
.buy__error { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.buy__market { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: var(--step--1); }
.buy__notify { margin-top: 10px; font-size: var(--step--1); }

.details { margin-top: 36px; border-top: 1.5px solid var(--black); }
.details h2 { font-size: var(--step-1); margin: 22px 0 14px; }
.details p { color: #2e2e2c; }
.spec { margin: 0; display: grid; grid-template-columns: minmax(96px, auto) 1fr; }
.spec dt, .spec dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 600; padding-right: 20px; }

@media (max-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .buy, .gallery { position: static; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__main, .gallery__note { grid-column: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  .gallery__thumbs .thumb { width: 72px; flex: none; }
  .gallery__note { grid-row: 3; }
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 340px; }
.size-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
.size-table th, .size-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.size-table thead th { border-bottom: 1.5px solid var(--black); font-weight: 600; }
.size-table tbody th { font-weight: 700; }
.fine { font-size: var(--step--1); color: var(--concrete); margin-top: 12px; }

/* ---------- Long-form pages (about, help, size guide) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-stretch: 100%; font-weight: 700; margin: 28px 0 8px; letter-spacing: 0; }
.prose ol, .prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.split__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.toc a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split__aside { position: static; } }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1.5px solid var(--black); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: #2e2e2c; }

.about-lede { font-size: var(--step-2); font-stretch: var(--wide); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; max-width: 26ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .wordmark { font-size: clamp(1.75rem, 3.4vw, 2.75rem); display: inline-block; }
.footer-brand p { margin-top: 16px; color: #bdbdb9; max-width: 32ch; }
.site-footer h2 { font-size: var(--step--1); font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: #bdbdb9; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid #333331;
  font-size: var(--step--1); color: #bdbdb9;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer__scrim, .drawer__panel { transition: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: var(--header-h); border-bottom: 1px solid var(--black); flex: none; }
.drawer__head h2 { font-size: var(--step-1); }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.bag-item img { width: 80px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--studio); }
.bag-item h3 { font-size: var(--step-0); font-stretch: 100%; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.bag-item h3 a { text-decoration: none; }
.bag-item .meta { color: var(--concrete); font-size: var(--step--1); margin: 2px 0 10px; }
.bag-item .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bag-item .qty button { width: 36px; height: 36px; }
.bag-item .qty input { width: 40px; height: 36px; }
.bag-item .line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-item .remove { font-size: var(--step--1); color: var(--concrete); margin-top: 8px; }
.bag-empty { padding: 32px 0; }
.bag-empty p { margin-bottom: 18px; }
.drawer__foot { flex: none; border-top: 1px solid var(--black); padding: 16px 20px 20px; background: var(--white); }
.bag-total { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.drawer__foot .fine { margin: 4px 0 14px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; min-width: 0; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field input {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--rule); border-radius: 0; background: var(--white);
}
.field input:focus { border-color: var(--black); outline: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px);
  background: var(--black); color: var(--white); padding: 14px 18px; max-width: min(92vw, 460px);
  font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Empty / not found ---------- */
.empty-state { padding: 72px 0; max-width: 46ch; }
.empty-state h1, .empty-state h2 { font-size: var(--step-3); margin-bottom: 14px; }
.empty-state p { color: var(--concrete); margin-bottom: 24px; }

[hidden] { display: none !important; }
