/* DSCreations — site styles
   Palette taken from the logo: ink black + signal red on warm paper. */

:root {
  --paper: #f6f3ee;
  --paper-2: #ece7df;
  --paper-3: #e2dbd0;
  --card: #fbfaf7;
  --ink: #141312;
  --ink-2: #3b3936;
  --muted: #74706a;
  --line: #d9d2c6;
  --line-2: #c9c0b2;
  --red: #d0101b;
  --red-dark: #a60c15;
  --red-tint: #f7e3e1;
  --ok: #2f6b3a;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; font-stretch: 85%; line-height: 1.04; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.eyebrow, .label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.prose { max-width: 42em; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose h2 { font-size: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--red); }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 2px solid var(--red); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #cfc9bf; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.topbar span + span { color: #fff; }
.topbar a { text-decoration: none; }
@media (max-width: 720px) { .topbar__crafts { display: none; } .topbar .wrap { justify-content: center; } }

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.masthead__in { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .4rem 0; position: relative; }
.nav a.is-active::after, .nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }
.nav a:hover { color: var(--ink); }
.basket-link { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius); }
.basket-link:hover { border-color: var(--ink); color: var(--ink); }
.basket-link .count { font-family: var(--mono); font-size: .75rem; min-width: 1.5em; height: 1.5em; display: inline-grid; place-items: center; background: var(--red); color: #fff; border-radius: 99px; padding: 0 .35em; }
.basket-link .count[data-empty] { background: var(--paper-3); color: var(--muted); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); padding: .5rem .8rem; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .masthead__in { height: 64px; gap: .75rem; }
  .brand img { height: 32px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .basket-link { padding: .45rem .7rem; }
  .basket-link .label-text { display: none; }
}

/* ---------- flashes ---------- */
.flashes { padding-top: 1rem; }
.flash { padding: .85rem 1rem; border-left: 3px solid var(--ink); background: var(--card); margin-bottom: .6rem; font-size: .95rem; }
.flash--success { border-color: var(--ok); }
.flash--error { border-color: var(--red); background: var(--red-tint); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--rule { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow, .section--dark .muted { color: #a9a39a; }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 34em; }
.section-num { font-family: var(--mono); font-size: .78rem; color: var(--red); letter-spacing: .1em; display: block; margin-bottom: .6rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.hero__plate { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.hero__plate figure { margin: 0; background: var(--paper-2); position: relative; }
.hero__plate figure:first-child { grid-row: span 2; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero__plate figure:not(:first-child) img { aspect-ratio: 1; }
.hero__plate figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; }
.hero__plate figcaption b { color: var(--red); font-weight: 500; margin-right: .4rem; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__stats div { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 2rem; line-height: 1; }
.hero__stats span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__stats { gap: 1.6rem; } }

/* ---------- crafts ---------- */
.crafts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.craft { padding: 1.6rem 1.6rem 1.8rem 0; border-right: 1px solid var(--line); }
.craft + .craft { padding-left: 1.6rem; }
.craft:last-child { border-right: 0; }
.craft h3 { font-size: 1.5rem; margin: .4rem 0 .6rem; }
.craft p { color: var(--muted); font-size: .93rem; margin: 0; }
.section--dark .craft, .section--dark .crafts { border-color: #34312d; }
@media (max-width: 860px) {
  .crafts { grid-template-columns: 1fr 1fr; }
  .craft, .craft + .craft { padding: 1.4rem 1rem 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .craft:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .section--dark .craft { border-color: #34312d; }
}

/* ---------- apps ---------- */
.app-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.app-feature__shots { display: flex; gap: 14px; justify-content: center; background: var(--paper-2); padding: clamp(20px, 4vw, 44px); overflow: hidden; }
.app-feature__shots img { width: 44%; max-width: 230px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; }
.app-feature__shots img:nth-child(2) { transform: translateY(28px); }
@media (max-width: 860px) { .app-feature { grid-template-columns: 1fr; } }
.app-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.2rem; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); object-fit: cover; flex: none; }
.app-icon--lg { width: 112px; height: 112px; border-radius: 26px; }
.app-icon--sm { width: 52px; height: 52px; border-radius: 13px; }
.app-icon--blank { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.6rem; color: var(--red); }
.app-head h3 { margin: 0; font-size: 1.9rem; }
.app-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.app-meta .status { color: var(--red); }
.store-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.store-btn { display: inline-flex; align-items: center; gap: .65rem; padding: .6rem 1rem .6rem .8rem; background: var(--ink); color: #fff; text-decoration: none; border-radius: 8px; line-height: 1.1; border: 1px solid var(--ink); }
.store-btn:hover { background: #000; color: #fff; }
.store-btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store-btn small { display: block; font-size: .62rem; letter-spacing: .04em; opacity: .8; }
.store-btn strong { font-size: 1rem; font-weight: 600; }
.store-btn--ghost { background: transparent; color: var(--ink); }
.store-btn--ghost:hover { background: var(--ink); color: #fff; }

.app-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.app-row:hover { color: var(--ink); }
.app-row:hover h3 { color: var(--red); }
.app-row h3 { margin: 0 0 .2rem; font-size: 1.45rem; transition: color .15s; }
.app-row p { margin: 0; color: var(--muted); font-size: .95rem; }
.app-row__go { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.app-row__go::after { content: " →"; color: var(--red); }
@media (max-width: 600px) { .app-row { grid-template-columns: auto 1fr; } .app-row__go { display: none; } }

.app-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.app-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: .2em; }
.app-hero .lede { margin-bottom: .8rem; }
@media (max-width: 600px) { .app-hero { grid-template-columns: 1fr; } }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots > * { scroll-snap-align: start; flex: none; }
.shot { margin: 0; }
.shot img { height: min(560px, 70vh); width: auto; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; }
.shot video { height: min(560px, 70vh); width: auto; border-radius: 16px; background: #000; }
.shot--embed { width: min(820px, 86vw); }
.shot--embed .ratio { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.shot--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shot figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.app-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 860px) { .app-body { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.features li { padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 10px; height: 1px; background: var(--red); }
.facts { border: 1px solid var(--line); background: var(--card); padding: 1.4rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; font-size: .93rem; }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; }

/* ---------- category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: block; text-decoration: none; background: var(--paper-2); overflow: hidden; aspect-ratio: 4/3; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: .5rem .8rem; font-family: var(--display); font-weight: 600; font-stretch: 85%; font-size: 1.15rem; line-height: 1.1; }
.cat-tile span small { display: block; font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.cat-tile:hover span { color: var(--red); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; }
.card:hover { color: var(--ink); }
.card__media { position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.card__media img + img { opacity: 0; }
.card:hover .card__media img + img { opacity: 1; }
.card:hover .card__media img:only-child { transform: scale(1.035); }
.card__tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); padding: .25rem .45rem; }
.card__tag--sale { background: var(--red); color: #fff; }
.card__body { padding-top: .85rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.card__cat { grid-column: 1 / -1; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__name { font-family: var(--display); font-weight: 600; font-stretch: 85%; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.card:hover .card__name { color: var(--red); }
.price { font-family: var(--mono); font-size: .92rem; white-space: nowrap; }
.price s { color: var(--muted); margin-right: .35rem; }
.price ins { text-decoration: none; color: var(--red); }
.empty-state { padding: 4rem 0; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); }

/* ---------- shop chrome ---------- */
.shop-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.shop-head__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; padding-bottom: 1.8rem; }
.shop-head__top p { color: var(--muted); max-width: 34em; margin: 0; }
@media (max-width: 860px) { .shop-head__top { grid-template-columns: 1fr; } }
.crumbs { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs span[aria-hidden] { color: var(--line-2); }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--card); padding: .9rem 1.1rem; font-size: .92rem; color: var(--ink-2); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; font-size: .88rem; padding: .45rem .85rem; border: 1px solid var(--line-2); border-radius: 99px; white-space: nowrap; }
.chip small { font-family: var(--mono); color: var(--muted); margin-left: .3rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active small { color: #b5afa6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 1.6rem; flex-wrap: wrap; }
.toolbar__count { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toolbar form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); }
.search input { border: 0; background: transparent; padding: .55rem .8rem; width: 200px; outline: none; }
.search button { border: 0; background: transparent; padding: 0 .8rem; cursor: pointer; font-weight: 600; }
.select { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); padding: .55rem 2rem .55rem .8rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

.pager { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: clamp(40px, 5vw, 64px); flex-wrap: wrap; font-family: var(--mono); font-size: .85rem; }
.pager a, .pager span { min-width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0 .7rem; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); color: var(--paper); }
.pager .pager__edge { border-color: var(--line-2); }
.pager .is-disabled { color: var(--line-2); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-self: start; position: sticky; top: 96px; }
.gallery--single { grid-template-columns: 1fr; }
.gallery__main { position: relative; background: var(--paper-2); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; order: -1; max-height: 640px; overflow-y: auto; }
.gallery__thumbs button { padding: 0; border: 1px solid transparent; background: var(--paper-2); cursor: pointer; aspect-ratio: 1; width: 76px; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active { border-color: var(--ink); }
.gallery__count { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: .7rem; background: var(--paper); padding: .2rem .5rem; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; position: static; }
  .gallery__thumbs { flex-direction: row; order: 1; overflow-x: auto; max-height: none; }
  .gallery__thumbs button { width: 64px; flex: none; }
}
.buy h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .3em; }
.buy__price { font-family: var(--mono); font-size: 1.4rem; margin: .3rem 0 1rem; }
.buy__price s { color: var(--muted); font-size: 1rem; margin-right: .5rem; }
.buy__price ins { text-decoration: none; color: var(--red); }
.buy__short { color: var(--ink-2); font-size: 1.05rem; }
.stock { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.stock--made_to_order::before { background: #c08a1e; }
.stock--out_of_stock::before { background: var(--red); }
.buy form { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 1.1rem; }
.field label, .field .label-like { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.input, .textarea, .field select {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); outline: none; transition: border-color .15s;
}
.input:focus, .textarea:focus, .field select:focus { border-color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }
.field--error .input, .field--error .textarea { border-color: var(--red); }
.field__error { color: var(--red); font-size: .83rem; margin-top: .35rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label { margin: 0; font-weight: 500; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--card); font-size: .92rem; }
.choices label small { font-family: var(--mono); color: var(--muted); margin-left: .25rem; }
.choices input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choices input:checked + label small { color: #bdb7ad; }
.choices input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.buy__row { display: grid; grid-template-columns: 116px 1fr; gap: .7rem; }
.qty { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); }
.qty button { width: 36px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 100%; text-align: center; border: 0; background: none; font-family: var(--mono); -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__assure { list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: .88rem; color: var(--ink-2); display: grid; gap: .5rem; }
.buy__assure li { padding-left: 1.4rem; position: relative; }
.buy__assure li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 1px; background: var(--red); }
.cats-inline { font-size: .88rem; color: var(--muted); margin-top: 1.4rem; }
.cats-inline a { color: var(--ink); }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.4rem; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--red); }
.details details[open] summary::after { content: "–"; }
.details .details__body { padding: 0 0 1.6rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; max-width: 640px; }
.specs th, .specs td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 34%; padding-right: 1rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,19,18,.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 1px solid #555; color: #fff; cursor: pointer; font-family: var(--mono); padding: .5rem .8rem; border-radius: var(--radius); }
.lightbox button:hover { border-color: #fff; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* ---------- basket & checkout ---------- */
.page-title { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-title h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin: 0; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.lines { border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { aspect-ratio: 1; background: var(--paper-2); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.line h3 a { text-decoration: none; }
.line__meta { font-size: .85rem; color: var(--muted); }
.line__meta p { margin: .15rem 0; }
.line__controls { display: flex; gap: 1rem; align-items: center; margin-top: .7rem; }
.line__controls .qty { width: 110px; height: 38px; }
.line__remove { background: none; border: 0; padding: 0; cursor: pointer; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--red); }
.line__total { font-family: var(--mono); }
@media (max-width: 560px) { .line { grid-template-columns: 72px 1fr; } .line__total { grid-column: 2; } }
.summary { background: var(--card); border: 1px solid var(--line); padding: 1.6rem; position: sticky; top: 96px; }
.summary h2 { font-size: 1.5rem; }
.summary__row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; }
.summary__row span:last-child { font-family: var(--mono); }
.summary__row--total { border-top: 1px solid var(--ink); margin-top: .6rem; padding-top: 1rem; font-weight: 700; font-size: 1.05rem; }
.summary__note { font-size: .82rem; color: var(--muted); margin: .8rem 0 1.2rem; }
.summary__mini { display: grid; gap: .7rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.summary__mini div { display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center; font-size: .88rem; }
.summary__mini img { width: 48px; height: 48px; object-fit: cover; background: var(--paper-2); }
.summary__mini span:last-child { font-family: var(--mono); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
.fieldset legend { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.5rem; margin-bottom: 1.1rem; padding: 0; display: flex; gap: .8rem; align-items: baseline; }
.fieldset legend span { font-family: var(--mono); font-size: .75rem; color: var(--red); }
.paymethods { display: grid; gap: .7rem; }
.paymethod { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.paymethod:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.paymethod input { accent-color: var(--red); width: 18px; height: 18px; }
.paymethod strong { display: block; }
.paymethod small { color: var(--muted); }
.paymethod__mark { margin-left: auto; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.order-status { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border: 1px solid var(--line-2); }
.order-status--paid, .order-status--completed, .order-status--despatched { border-color: var(--ok); color: var(--ok); }
.order-status--pending { border-color: #c08a1e; color: #8a6210; }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 1rem 1rem 0 0; font-size: .88rem; color: var(--muted); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--red); }
.steps b { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--red); font-weight: 400; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr 1fr; gap: 1rem 0; } }

/* ---------- about / contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.contact-card { border-top: 1px solid var(--line); margin-top: 2rem; }
.contact-card a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.contact-card a span:last-child { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.contact-card a:hover span:last-child { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); max-width: 24em; }
.footer h4 { font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer__base { margin-top: clamp(40px, 5vw, 64px); padding-top: 1.4rem; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

.error-page { padding: clamp(72px, 12vw, 160px) 0; }
.error-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.app-meta--spaced { margin-top: 1.2rem; }

/* small screens: stack card name and price */
@media (max-width: 720px) {
  .card__body { grid-template-columns: minmax(0, 1fr); }
  .card__name { font-size: 1.05rem; }
  .price { white-space: normal; }
}
.features-title { font-size: 1.5rem; margin-top: 2.4rem; }
