/* 汐見窯 online shop — product page
   Paper ground, ink text, one celadon accent. Mobile first: 600px (tablet), 900px (desktop). */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9df;
  --paper-3: #e6dfd3;
  --card: #fcfaf6;
  --ink: #23211d;
  --ink-2: #4a453e;
  --ink-3: #686157;
  --line: #ddd5c8;
  --line-2: #cbc2b3;
  --control: #8a8277;
  --accent: #2f6153;
  --accent-strong: #234b40;
  --accent-soft: #dce8e1;
  --accent-tint: #edf3ef;
  --star: #a36c1c;
  --star-empty: #d9d0c2;
  --ok: #2f7a4f;
  --focus: #2f6153;
  --footer-bg: #1f2b27;
  --footer-ink: #ece6dc;
  --footer-muted: #b8b1a5;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", YuGothic, "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", YuMincho, "Yu Mincho", "Noto Serif JP", "BIZ UDPMincho", serif;
  --font-num: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --gutter: 16px;
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.8 6 6.6.7-4.9 4.5 1.4 6.5L12 17l-5.9 3.3 1.4-6.5-4.9-4.5 6.6-.7z'/%3E%3C/svg%3E");

  /* Glaze palettes. --g-* is "the glaze being drawn"; the page sets it from data-glaze,
     and a drawing that must keep its own glaze carries a .glaze-* class instead. */
  --seiji-light: #d7e8de;
  --seiji-base: #a8c8b8;
  --seiji-dark: #7ea695;
  --seiji-deep: #587f6e;
  --seiji-inner: #97bba9;
  --seiji-foot: #ddd3c1;
  --hakuji-light: #ffffff;
  --hakuji-base: #f1f1ec;
  --hakuji-dark: #d5d6cf;
  --hakuji-deep: #aeb1a8;
  --hakuji-inner: #e5e6e0;
  --hakuji-foot: #e4dccd;
  --ameyu-light: #d99a5a;
  --ameyu-base: #a3602b;
  --ameyu-dark: #7a4119;
  --ameyu-deep: #4f260d;
  --ameyu-inner: #8b4c20;
  --ameyu-foot: #c1a079;
}

:root,
.glaze-seiji {
  --g-light: var(--seiji-light);
  --g-base: var(--seiji-base);
  --g-dark: var(--seiji-dark);
  --g-deep: var(--seiji-deep);
  --g-inner: var(--seiji-inner);
  --foot: var(--seiji-foot);
  --crackle: .3;
}
:root[data-glaze="hakuji"],
.glaze-hakuji {
  --g-light: var(--hakuji-light);
  --g-base: var(--hakuji-base);
  --g-dark: var(--hakuji-dark);
  --g-deep: var(--hakuji-deep);
  --g-inner: var(--hakuji-inner);
  --foot: var(--hakuji-foot);
  --crackle: 0;
}
:root[data-glaze="ameyu"],
.glaze-ameyu {
  --g-light: var(--ameyu-light);
  --g-base: var(--ameyu-base);
  --g-dark: var(--ameyu-dark);
  --g-deep: var(--ameyu-deep);
  --g-inner: var(--ameyu-inner);
  --foot: var(--ameyu-foot);
  --crackle: .08;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
html:has(dialog[open]) { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  word-break: auto-phrase;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
button, input { font: inherit; letter-spacing: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -200px; z-index: 100;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 0 0 8px 8px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(calc(100% - 2 * var(--gutter)), 1200px);
  margin-inline: auto;
}

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .1em; line-height: 1.3;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; border-color: var(--control); color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); border-color: var(--ink-3); }
.btn-quiet { background: transparent; border-color: var(--control); color: var(--ink); font-weight: 600; }
.btn-quiet:hover { background: var(--paper-2); }
.btn-light { background: var(--paper); color: var(--footer-bg); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }

.field {
  flex: 1 1 auto; min-width: 0; width: 100%;
  height: 48px; padding: 0 14px;
  border: 1px solid var(--control); border-radius: 8px;
  background: #fff; color: var(--ink);
  font-size: 16px;
}
.field::-webkit-search-cancel-button { cursor: pointer; }
.field[aria-invalid="true"] { border-color: #b4483a; box-shadow: 0 0 0 1px #b4483a; }
.field-dark[aria-invalid="true"] { border-color: #f2b8a8; box-shadow: 0 0 0 2px #f2b8a8; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  font-size: 14px; cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand . actions" "nav nav nav";
  align-items: center;
  column-gap: 16px;
}
.wordmark {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 10px;
  color: var(--ink); text-decoration: none;
}
.seal { width: 32px; height: 32px; flex: none; }
.seal circle { fill: var(--accent); }
.seal path { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; }
.wordmark-text { display: grid; line-height: 1.15; }
.wordmark-ja { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: .24em; }
.wordmark-en { margin-top: 3px; font-size: 10px; letter-spacing: .3em; color: var(--ink-3); }

.global-nav {
  grid-area: nav;
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--line);
}
.global-nav ul {
  display: flex; justify-content: space-around;
  margin: 0; padding: 0 8px; list-style: none;
}
.global-nav a {
  position: relative; display: block;
  padding: 9px 12px;
  font-size: 14px; letter-spacing: .14em; color: var(--ink-2); text-decoration: none;
}
.global-nav a:hover { color: var(--ink); }
.global-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.global-nav a[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; background: var(--accent);
}

.header-actions { grid-area: actions; display: flex; gap: 2px; margin-right: -8px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--paper-3); color: var(--ink-2);
  font-family: var(--font-num); font-size: 12px; font-weight: 700; line-height: 20px; letter-spacing: 0;
  text-align: center; font-variant-numeric: tabular-nums;
}
.badge.has-items { background: var(--accent); color: #fff; }

.search-panel { border-top: 1px solid var(--line); background: var(--card); padding-block: 16px 20px; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search-label { font-size: 14px; font-weight: 600; }
.search-row { display: flex; gap: 8px; max-width: 640px; }
.search-note { font-size: 13px; color: var(--ink-2); }
.search-note:empty { display: none; }

/* ---------- breadcrumb ---------- */
.breadcrumb ol {
  display: flex; flex-wrap: wrap;
  margin: 0; padding: 12px 0; list-style: none;
  font-size: 13px; color: var(--ink-3);
}
.breadcrumb li + li::before { content: "/"; margin: 0 10px; }
.breadcrumb a { display: inline-block; padding-block: 3px; color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- product ---------- */
.product { display: grid; gap: 24px; padding-bottom: 56px; }

.gallery {
  display: grid;
  grid-template-areas: "stage" "thumbs";
  gap: 12px;
  min-width: 0;
  margin-inline: calc(-1 * var(--gutter));
}
.stage { grid-area: stage; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.view, .view svg { display: block; width: 100%; height: 100%; }
.thumbs {
  grid-area: thumbs;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding-inline: var(--gutter);
}
.thumb {
  display: grid; gap: 6px;
  padding: 0; border: 0; background: none;
  color: var(--ink-2); text-align: center; cursor: pointer;
  border-radius: 8px;
}
.thumb-img {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.thumb-img svg { display: block; width: 100%; height: 100%; }
.thumb:hover .thumb-img { border-color: var(--control); }
.thumb[aria-selected="true"] .thumb-img { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumb-label { font-size: 12px; line-height: 1.5; letter-spacing: .08em; }
.thumb[aria-selected="true"] .thumb-label { color: var(--ink); font-weight: 700; }

.panel { min-width: 0; }
.maker { margin-bottom: 4px; font-size: 13px; letter-spacing: .16em; color: var(--ink-3); }
.product-title {
  font-family: var(--font-serif);
  font-size: 24px; letter-spacing: .08em; line-height: 1.45;
}
.price { margin-top: 10px; }
.price-amount {
  font-family: var(--font-num);
  font-size: 26px; font-weight: 600; letter-spacing: .02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.price-tax { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); font-family: var(--font-sans); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 14px; }
.rating-value { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.rating-link { display: inline-block; padding-block: 2px; color: var(--ink-2); text-decoration-color: var(--line-2); }
.rating-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.stars {
  --size: 16px;
  display: inline-block; flex: none;
  width: calc(var(--size) * 5); height: var(--size);
  background: linear-gradient(90deg, var(--star) calc(var(--rating) * 20%), var(--star-empty) 0);
  -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
  mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
}

.option { min-width: 0; margin: 0; padding: 0; border: 0; }
.panel > .option, .options-row { margin-top: 26px; }
.option-label { display: block; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.option-value { font-weight: 400; color: var(--ink-2); }

.swatches { display: flex; gap: 22px; }
.swatch { display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.swatch input {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; margin: 0;
  border: 1px solid var(--control); border-radius: 50%;
  cursor: pointer;
  transition: box-shadow .15s ease;
}
.swatch input[value="seiji"] { background: radial-gradient(circle at 34% 30%, var(--seiji-light) 0 14%, var(--seiji-base) 52%, var(--seiji-dark)); }
.swatch input[value="hakuji"] { background: radial-gradient(circle at 34% 30%, #fff 0 18%, var(--hakuji-base) 56%, var(--hakuji-dark)); }
.swatch input[value="ameyu"] { background: radial-gradient(circle at 34% 30%, var(--ameyu-light) 0 12%, var(--ameyu-base) 50%, var(--ameyu-dark)); }
.swatch input:checked { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.swatch input:focus-visible { outline-offset: 7px; }
.swatch-name { font-size: 13px; line-height: 1.5; letter-spacing: .08em; color: var(--ink-2); }
.swatch input:checked + .swatch-name { color: var(--ink); font-weight: 700; }

.options-row { display: grid; gap: 26px; }
.sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.size { position: relative; display: grid; place-items: center; min-height: 48px; padding: 0 12px; cursor: pointer; }
.size input {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  border: 1px solid var(--control); border-radius: 8px;
  background: var(--card); cursor: pointer;
}
.size input:checked { border: 2px solid var(--ink); background: var(--accent-tint); }
.size-text { position: relative; pointer-events: none; font-family: var(--font-num); font-size: 15px; font-weight: 700; white-space: nowrap; }
.size-ml { margin-left: 2px; font-size: 14px; font-weight: 400; color: var(--ink-2); }

.stepper { display: inline-grid; grid-template-columns: 44px 52px 44px; height: 48px; }
.stepper-btn {
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--control); background: var(--card); color: var(--ink);
  cursor: pointer;
}
.stepper-btn:first-child { border-radius: 8px 0 0 8px; }
.stepper-btn:last-child { border-radius: 0 8px 8px 0; }
.stepper-btn:hover { background: var(--paper-2); }
.stepper-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.stepper-btn[aria-disabled="true"] { color: #b3ab9f; background: var(--paper); cursor: not-allowed; }
.stepper-input {
  width: 100%; min-width: 0; padding: 0;
  border: 1px solid var(--control); border-inline: 0; border-radius: 0;
  background: #fff; color: var(--ink);
  font-family: var(--font-num); font-size: 17px; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums;
}
.stepper-btn:focus-visible, .stepper-input:focus-visible { position: relative; z-index: 1; }

.buy-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.btn-cta, .fav { min-height: 56px; }
.btn-cta { font-size: 16px; }
.fav[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-tint); }
.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.qty-note {
  margin-top: 14px; padding: 10px 14px;
  border-left: 3px solid var(--star); border-radius: 0 6px 6px 0;
  background: var(--paper-2); color: var(--ink);
  font-size: 13px; line-height: 1.7;
  word-break: auto-phrase;
}
.qty-note:empty { display: none; }

.assurances {
  display: grid; gap: 8px;
  margin: 24px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.assurances li { display: flex; align-items: center; gap: 10px; line-height: 1.6; }
.assurances svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linejoin: round; }
.stock-dot { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.stock-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 122, 79, .16); }

/* ---------- sections ---------- */
.section-title {
  font-family: var(--font-serif);
  font-size: 22px; letter-spacing: .14em; line-height: 1.5;
}

.about { display: grid; gap: 28px; padding-block: 56px; border-top: 1px solid var(--line); }
.lead { max-width: 36em; margin-top: 18px; font-size: 15px; line-height: 2; color: var(--ink-2); }
.signature { margin-top: 18px; font-family: var(--font-serif); font-size: 14px; letter-spacing: .14em; color: var(--ink-3); }

.accordion { border-top: 1px solid var(--line-2); }
.acc-item { border-bottom: 1px solid var(--line-2); }
.acc-heading { font-family: var(--font-sans); font-size: 16px; letter-spacing: .1em; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 64px; padding: 12px 4px;
  border: 0; background: none; color: var(--ink);
  font-weight: 600; text-align: left; cursor: pointer;
}
.acc-trigger:hover { color: var(--accent-strong); }
.acc-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.acc-icon-v { transform-box: fill-box; transform-origin: center; transition: transform .2s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon-v { transform: scaleY(0); }
.acc-panel { padding: 0 4px 28px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
/* (0,2,0): the panel's rhythm must beat the components' own margin: 0 (.spec-list, .care-list) */
.acc-panel > :not(:first-child) { margin-top: 16px; }
.acc-panel > p { max-width: 40em; }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 14px; color: var(--ink-3); }
.spec-list dd { margin: 0; font-size: 14px; color: var(--ink); }
.note { font-size: 13px; line-height: 1.8; color: var(--ink-3); word-break: auto-phrase; }
.spec-table { width: 100%; max-width: 28em; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table thead th { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.spec-table tbody th { width: 30%; font-weight: 400; color: var(--ink-3); }
.spec-table td { color: var(--ink); }
.care-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.care-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.care-mark {
  display: inline-block; flex: none; width: 7.5em; padding: 2px 10px;
  border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.care-ok { background: var(--accent-soft); color: var(--accent-strong); }
.care-ng { background: var(--paper-3); color: var(--ink-2); }

/* reviews */
.reviews { padding-block: 56px; border-top: 1px solid var(--line); }
.reviews-grid { display: grid; gap: 32px; margin-top: 28px; }
.review-summary {
  align-self: start;
  padding: 28px 28px 24px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card);
}
.summary-score { display: flex; align-items: baseline; gap: 6px; }
.score { font-family: var(--font-num); font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.score-max { font-family: var(--font-num); font-size: 16px; color: var(--ink-3); }
.stars-lg { --size: 20px; margin-top: 12px; }
.summary-count { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.dist { display: grid; gap: 8px; margin: 20px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.dist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.dist-label { white-space: nowrap; }
.dist-bar { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: var(--paper-3); }
.dist-bar > span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }
.dist-count { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }

.review { padding-block: 24px; border-bottom: 1px solid var(--line); }
.review-list > .review:first-child { padding-top: 0; }
.review-head { display: grid; gap: 8px; }
.review-title { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.review-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.review-body { max-width: 38em; margin-top: 10px; font-size: 15px; line-height: 1.9; }
.more-btn { margin-top: 28px; }
.more-btn svg { transition: transform .2s ease; }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* related */
.related { padding-block: 56px 72px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.text-link { display: inline-block; padding-block: 4px; font-size: 14px; color: var(--ink-2); }
.text-link:hover { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.card-link { display: grid; gap: 2px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 10px; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.card-media svg { display: block; width: 100%; height: 100%; transition: transform .4s ease; }
.card-link:hover .card-media svg { transform: scale(1.03); }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.6; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: .28em; }
.card-price { font-family: var(--font-num); font-size: 15px; font-variant-numeric: tabular-nums; }
.card-tag {
  position: absolute; left: 10px; top: 10px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
}

/* ---------- footer ---------- */
.site-footer { --focus: #ece6dc; background: var(--footer-bg); color: var(--footer-ink); }
.footer-inner { display: grid; gap: 40px; padding-block: 56px 40px; }
.nl-lead { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--footer-muted); }
.nl-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; max-width: 480px; }
.nl-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.nl-row { display: flex; gap: 8px; }
.field-dark { border-color: #fff; }
.nl-msg { font-size: 13px; line-height: 1.7; color: var(--footer-ink); }
.nl-msg:empty { display: none; }
.nl-msg.is-error { color: #f2b8a8; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer-heading { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.footer-col ul { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.footer-col a { display: inline-block; padding-block: 3px; font-size: 14px; color: var(--footer-muted); text-decoration: none; word-break: auto-phrase; }
.footer-col a:hover { color: var(--footer-ink); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(236, 230, 220, .16);
  font-size: 12px; line-height: 1.8; color: var(--footer-muted);
}
.copyright small { font-size: 13px; letter-spacing: .08em; color: var(--footer-ink); }
.disclaimer { max-width: 44em; }

/* ---------- pinned bar (phones and tablets) ---------- */
.buybar { display: none; }
.buybar-variant { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.buybar-price { font-family: var(--font-num); font-size: 18px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.buybar-cta { flex: none; min-height: 48px; padding: 0 20px; }

@media (max-width: 899px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -8px 24px rgba(35, 33, 29, .08);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .buybar.is-hidden { opacity: 0; visibility: hidden; }
  .site-footer { padding-bottom: 72px; }
}

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(440px, 100%); max-width: 100%;
  height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  overflow: hidden;
  background: var(--paper); color: var(--ink);
  box-shadow: -16px 0 48px rgba(28, 26, 22, .22);
}
.drawer::backdrop { background: rgba(28, 26, 22, .46); }
.drawer[open] { animation: drawer-in .32s cubic-bezier(.22, .8, .26, 1); }
.drawer[open]::backdrop { animation: fade-in .32s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-title { font-family: var(--font-serif); font-size: 20px; letter-spacing: .16em; }
.drawer-status {
  padding: 12px 24px;
  background: var(--accent-tint); color: var(--accent-strong);
  font-size: 14px; font-weight: 600; line-height: 1.6;
}
.drawer-status:empty { display: none; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 0 24px 16px; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: start; gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { display: block; width: 80px; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.cart-thumb svg { display: block; width: 100%; height: 100%; }
.cart-name { font-size: 15px; font-weight: 700; line-height: 1.55; }
.cart-attrs { display: grid; margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.cart-attrs div { display: flex; gap: 8px; }
.cart-attrs dt { min-width: 3.5em; color: var(--ink-3); }
.cart-attrs dd { margin: 0; }
.cart-remove {
  min-height: 24px; margin-top: 4px; padding: 2px 0;
  border: 0; background: none; color: var(--ink-2);
  font-size: 13px; text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
}
.cart-price { font-family: var(--font-num); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 8px 32px; text-align: center; color: var(--ink-2); }
.cart-empty-art { width: 64px; height: 64px; margin-bottom: 8px; fill: none; stroke: var(--control); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty-title { font-weight: 700; color: var(--ink); }
.cart-empty-text { max-width: 22em; font-size: 14px; word-break: auto-phrase; }
.cart-empty .btn { margin-top: 16px; }
.drawer-foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.ship-text { font-size: 13px; color: var(--ink-2); }
.ship-bar { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--paper-3); }
.ship-bar > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.subtotal { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 0; }
.subtotal dt { font-weight: 700; }
.subtotal dd { margin: 0; }
.subtotal-amount { font-family: var(--font-num); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-note { font-size: 13px; text-align: center; color: var(--ink-2); }
.drawer-note:empty { display: none; }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .gallery { margin-inline: 0; }
  .stage { aspect-ratio: 4 / 3; border-radius: 8px; }
  .thumbs { grid-template-columns: repeat(4, 104px); padding-inline: 0; }
  .options-row { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .product-title { font-size: 28px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .footer-col:last-child { grid-column: 1 / -1; }
  .icon-btn-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand nav actions"; min-height: 72px; }
  .global-nav { margin-inline: 0; border-top: 0; }
  .global-nav ul { gap: 12px; padding: 0; }
  .global-nav a { padding: 12px 14px; }
  .global-nav a[aria-current]::after { bottom: 6px; left: 14px; right: 14px; }
  .header-actions { justify-self: end; }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
    padding-top: 4px; padding-bottom: 72px;
  }
  .gallery { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "thumbs stage"; gap: 16px; }
  .stage { aspect-ratio: 1 / 1; }
  .thumbs { grid-template-columns: 1fr; align-content: start; gap: 12px; }
  .product-title { font-size: 30px; }

  .section-title { font-size: 26px; }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding-block: 80px; }
  .reviews { padding-block: 80px; }
  .reviews-grid { grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: 72px; margin-top: 36px; }
  .review-summary { position: sticky; top: 24px; }
  .related { padding-block: 80px 96px; }
  .cards { gap: 32px; margin-top: 36px; }
  .footer-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding-block: 72px 48px; }
}

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