/* Claw of the Raven — storefront styles.
   Mobile first (375px), then tablet (720px) and desktop (960px+). No framework.
   Motif: running stitches (dashed borders) in brass thread on bone linen. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-opsz-normal.woff2) format('woff2');
  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: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-opsz-italic.woff2) format('woff2');
  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;
}

:root {
  --bone: #f5f1ea;
  --linen: #ece5d8;
  --paper: #fbf9f4;
  --ink: #1c1a17;
  --raven: #191c24;
  --raven-2: #262a35;
  --muted: #5d564d;
  --line: #ddd3c3;
  --line-strong: #bcae97;
  --brass: #b08a3e;
  --brass-ink: #7a5c1f;
  --brass-soft: #efe3c8;
  --star: #a77f2c;
  --oxblood: #6f1d22;
  --oxblood-soft: #f5e4e1;
  --ok: #2e5a37;
  --ok-soft: #e2ebdd;
  --focus: #8f6d27;
  --on-dark: #ece5d7;
  --on-dark-muted: #b6ad9d;

  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 60px;
  --shadow: 0 1px 2px rgb(28 26 23 / 6%), 0 10px 30px rgb(28 26 23 / 8%);
  --stitch: 1.5px dashed var(--brass);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; --header-h: 68px; } }
/* Side padding that also clears the notch / rounded corners in landscape (viewport-fit=cover). */
:root {
  --pad-left: max(var(--gutter), env(safe-area-inset-left));
  --pad-right: max(var(--gutter), env(safe-area-inset-right));
}
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video { display: block; max-width: 100%; }
picture { display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brass); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.js .js-hide { display: none !important; }

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

.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: -60px; z-index: 100;
  background: var(--raven); color: var(--bone); padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
main > .wrap:last-child { padding-bottom: 64px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.prose > * + * { margin-top: 0.9em; }
.prose--lg { font-size: 1.06rem; }
.prose a { text-decoration-color: var(--brass); }

.icon { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------------ type helpers */

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 650 0.74rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; border-top: 1.5px dashed currentColor; flex: none; }
.eyebrow--light { color: var(--brass-soft); }
.section-head--center .eyebrow, .page-header:not(.page-header--left) .eyebrow, .error-page .eyebrow, .thanks .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.section-sub { color: var(--muted); margin-top: 8px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--raven); color: var(--bone); }
.btn--primary::after {
  content: ''; position: absolute; inset: 4px; border-radius: 8px; pointer-events: none;
  border: 1px dashed rgb(239 227 200 / 45%);
}
.btn--primary:hover:not(:disabled) { background: var(--raven-2); }
.btn--primary:hover::after { border-color: rgb(176 138 62 / 90%); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bone); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgb(28 26 23 / 6%); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.is-busy { color: transparent; }
.btn.is-busy::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px);
  border: 2px solid var(--bone); border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite;
}
.link-btn {
  background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem;
}
.link-btn:hover { color: var(--oxblood); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: inherit; text-decoration: none; position: relative;
}
.icon-btn:hover { background: rgb(28 26 23 / 6%); }
.icon-btn--ring { border: 1.5px solid var(--line-strong); }
.icon-btn--ring .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ banners */

.announce {
  background: var(--raven); color: var(--on-dark);
  font-size: 0.8rem; letter-spacing: 0.02em; text-align: center;
  padding: 9px var(--pad-right) 9px var(--pad-left);
}
.announce a { color: inherit; text-decoration-color: var(--brass); }
.vacation { background: var(--brass-soft); color: #4d3a12; font-size: 0.88rem; padding: 10px var(--pad-right) 10px var(--pad-left); }
.vacation p { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: left; max-width: var(--max); margin: 0 auto; }
.vacation .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(245 241 234 / 94%);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; border-bottom: 1px dashed var(--line-strong); opacity: 0.6; pointer-events: none;
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; height: var(--header-h);
  padding-inline: max(calc(var(--gutter) - 8px), env(safe-area-inset-left)) max(calc(var(--gutter) - 8px), env(safe-area-inset-right));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  justify-self: center; min-height: 44px;
}
.wordmark__mark { width: 30px; height: 30px; color: var(--raven); flex: none; }
.wordmark__text {
  font: 600 1.12rem/1 var(--font-display); letter-spacing: 0.005em; white-space: nowrap;
}
.site-nav { display: none; }
.site-header__actions { justify-self: end; display: flex; align-items: center; }
.icon-btn--search { display: none; }
.cart-badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--brass); color: var(--raven);
  font: 700 0.7rem/19px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--bone);
}
.cart-badge.is-bumped { animation: bump 0.4s ease; }

/* mobile menu (<details>) */
.menu { justify-self: start; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__close { display: none; }
.menu[open] .menu__toggle > .icon { display: none; }
.menu[open] .menu__close { display: grid; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bone); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgb(28 26 23 / 14%);
  padding: 8px var(--pad-right) calc(24px + env(safe-area-inset-bottom)) var(--pad-left);
  /* 100vh on iOS is the height with the toolbar hidden; dvh follows the toolbar. */
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100dvh - var(--header-h) - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  animation: drop 0.22s ease;
}
.menu__list li + li { border-top: 1px dashed var(--line); }
.menu__link {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font: 500 1.35rem/1.2 var(--font-display);
}
.menu__link[aria-current='page'] { color: var(--brass-ink); }
.menu__search { display: flex; gap: 6px; margin: 14px 0 6px; }
.menu__search input { flex: 1; }
.social-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.social-icons--center { justify-content: center; margin-top: 24px; }
.social-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); color: var(--ink); transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: var(--ink); color: var(--bone); }
.social-icon .icon { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .menu { display: none; }
  .wordmark { justify-self: start; }
  .wordmark__mark { width: 36px; height: 36px; }
  .wordmark__text { font-size: 1.3rem; }
  .site-nav { display: block; justify-self: center; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    text-decoration: none; font-weight: 550; font-size: 0.96rem; border-radius: 8px;
  }
  .site-nav__link:hover { text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--brass); text-underline-offset: 6px; }
  .site-nav__link[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--brass); text-underline-offset: 6px; }
  .icon-btn--search { display: inline-grid; }
}

/* ------------------------------------------------------------------ forms */

input[type='text'], input[type='email'], input[type='search'], input[type='number'], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font-size: 1rem; /* >=16px: no iOS zoom */
  background: #fffdf9; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(176 138 62 / 35%); }
input::placeholder, textarea::placeholder { color: #8b8378; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1a17' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field > label, .field-group > legend, .rate > legend { font-weight: 600; font-size: 0.94rem; }
.field__hint { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; }
.field__price { font-weight: 600; color: var(--brass-ink); margin-left: 4px; }
.req { font-weight: 500; font-size: 0.8rem; color: var(--oxblood); }
.opt { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.counter.is-near { color: var(--brass-ink); font-weight: 600; }
.counter.is-full { color: var(--oxblood); font-weight: 600; }
.form-error {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--oxblood-soft); color: var(--oxblood); font-weight: 550; font-size: 0.94rem;
}
.field-row { display: grid; gap: 14px; margin-top: 10px; }
.field-row .field + .field { margin-top: 0; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ sections */

.section { padding: 48px 0; }
.section--linen { background: var(--linen); }
.section--tight { padding: 28px 0; }
@media (min-width: 960px) { .section { padding: 80px 0; } .section--tight { padding: 40px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head--center { justify-content: center; text-align: center; }
.page-header { text-align: center; padding: 32px 0 24px; }
.page-header--left { text-align: left; padding-bottom: 16px; }
.page-title { font-size: clamp(2rem, 7vw, 3.25rem); }
.page-intro { color: var(--muted); font-size: 1.06rem; margin: 12px auto 0; max-width: 60ch; }
.page-header--left .page-intro { margin-left: 0; }
@media (min-width: 960px) { .page-header { padding: 56px 0 32px; } }

.crumbs { font-size: 0.85rem; color: var(--muted); padding: 14px 0 6px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
/* Taller hit area without changing the line: 44px tall to a thumb, same height on screen. */
.crumbs a { text-decoration: none; display: inline-block; padding-block: 12px; margin-block: -12px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero--type { padding: 18px 0 8px; }
.hero__patch {
  position: relative; border-radius: 24px; padding: 36px 22px 40px;
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgb(28 26 23 / 2.5%) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(28 26 23 / 2.5%) 0 1px, transparent 1px 4px);
  display: grid; gap: 22px; text-align: center; overflow: hidden;
}
.hero__patch::before {
  content: ''; position: absolute; inset: 10px; border: var(--stitch); border-radius: 16px; pointer-events: none;
}
.hero__text { position: relative; }
.hero--type .eyebrow { justify-content: center; }
.hero--type .eyebrow::before { display: none; }
.hero__title { font-size: clamp(2.4rem, 10.5vw, 4.9rem); font-weight: 520; line-height: 1.02; letter-spacing: -0.02em; }
.hero__title em { color: var(--brass-ink); font-weight: 480; }
.hero__sub { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin: 16px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.hero__actions .btn { flex: 1 1 200px; max-width: 280px; }
.hero__emblem { position: relative; order: -1; display: grid; place-items: center; }
.hero__mark { width: 84px; height: 84px; color: var(--raven); }
.hero__thread { display: none; }
@media (min-width: 900px) {
  .hero--type { padding: 28px 0 12px; }
  .hero__patch { grid-template-columns: 1.35fr 1fr; align-items: center; text-align: left; padding: 72px 64px; gap: 40px; }
  .hero--type .eyebrow { justify-content: flex-start; }
  .hero--type .eyebrow::before { display: block; }
  .hero__sub { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__emblem { order: 0; }
  .hero__mark { width: min(300px, 100%); height: auto; aspect-ratio: 1; }
  .hero__thread { display: block; position: absolute; left: -40%; right: -10%; bottom: -14px; width: 150%; height: 90px; color: var(--brass); opacity: 0.7; }
}

.hero--image { position: relative; color: var(--bone); background: var(--raven); overflow: hidden; }
.hero--image .hero__media { position: absolute; inset: 0; }
.hero--image .hero__media picture, .hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(125vw, 82vh); padding-top: 72px;
  background: linear-gradient(to top, rgb(17 18 23 / 88%) 0%, rgb(17 18 23 / 62%) 50%, rgb(17 18 23 / 30%) 100%);
}
.hero--image .hero__content { padding-bottom: 32px; }
.hero--image .eyebrow::before { display: none; }
.hero--image .hero__title em { color: var(--brass-soft); }
.hero--image .hero__sub { color: rgb(245 241 234 / 88%); margin-left: 0; }
.hero--image .hero__actions { justify-content: flex-start; }
.hero--image .btn--primary { background: var(--bone); color: var(--raven); }
.hero--image .btn--primary::after { border-color: rgb(25 28 36 / 30%); }
.hero--image .btn--primary:hover { background: #fff; }
.hero--image .btn--ghost { color: var(--bone); }
.hero--image .btn--ghost:hover { background: rgb(245 241 234 / 12%); }
@media (min-width: 900px) {
  .hero__overlay { min-height: min(46vw, 80vh); background: linear-gradient(to right, rgb(17 18 23 / 80%) 0%, rgb(17 18 23 / 45%) 50%, rgb(17 18 23 / 0%) 80%); }
  .hero--image .hero__content { padding-bottom: 72px; }
  .hero--image .hero__title, .hero--image .hero__sub { max-width: 15ch; }
  .hero--image .hero__sub { max-width: 40ch; }
  .hero--image .eyebrow::before { display: block; }
}

/* ------------------------------------------------------------------ product cards */

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 26px; } }
.card { display: block; text-decoration: none; color: inherit; }
.card:focus-visible { outline: none; }
.card__media {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--linen);
  transition: outline-color 0.2s;
  outline: 1.5px dashed transparent; outline-offset: 5px;
}
.card__media picture, .card__img { width: 100%; height: 100%; object-fit: cover; }
.card__img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card__hover { display: none; }
.card:focus-visible .card__media { outline: 2.5px solid var(--focus); }
@media (hover: hover) and (min-width: 960px) {
  .card__hover { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
  .card:hover .card__hover { opacity: 1; }
  .card:hover .card__media { outline-color: var(--brass); }
  .card:hover .card__img { transform: scale(1.03); }
}
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.card__body { padding-top: 12px; display: grid; gap: 4px; }
.card__title { font: 500 1.04rem/1.25 var(--font-display); letter-spacing: 0; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; text-decoration-thickness: 1px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font: 700 0.68rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--sale { background: var(--oxblood); color: #fbefe9; }
.badge--ink { background: var(--raven); color: var(--bone); }
.badge--verified { background: var(--ok-soft); color: var(--ok); text-transform: none; letter-spacing: 0.01em; font-size: 0.74rem; }
.badge--problem { background: var(--oxblood-soft); color: var(--oxblood); text-transform: none; letter-spacing: 0; font-size: 0.8rem; margin-top: 6px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__now { font-weight: 650; }
.price__was { color: var(--muted); font-size: 0.92em; }
.price:has(.price__was) .price__now { color: var(--oxblood); }
.price--card { font-size: 0.95rem; }
.price--card .badge { display: none; }
.price--product { font-size: 1.4rem; margin: 10px 0 4px; }
.price--product .badge { font-size: 0.7rem; align-self: center; }

/* stars */
.stars { --s: 15px; position: relative; display: inline-block; width: calc(var(--s) * 5); height: var(--s); flex: none; vertical-align: -2px; }
.stars--md { --s: 20px; }
.stars svg { width: calc(var(--s) * 5); height: var(--s); fill: currentColor; max-width: none; }
/* Empty stars are outlined in a darker tone (>= 3:1 against the page), not just a paler fill. */
.stars__bg { color: #e3d9c8; display: block; }
.stars__bg svg { stroke: #8f7b58; stroke-width: 1.4; stroke-linejoin: round; }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); }
.stars__fg svg { stroke: var(--star); stroke-width: 1.4; stroke-linejoin: round; }
.review__score { font-size: 0.85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; text-decoration: none; min-height: 44px; }
a.rating-line:hover .rating-line__text { text-decoration: underline; text-underline-offset: 3px; }
.rating-line--card { min-height: 0; font-size: 0.82rem; gap: 6px; }
.rating-line--card .stars { --s: 13px; }
.rating-line--empty { color: var(--muted); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; min-height: 44px; }

/* collection tiles */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.tile { position: relative; display: block; text-decoration: none; color: var(--bone); border-radius: var(--radius); overflow: hidden; background: var(--raven); }
.tile__media { aspect-ratio: 4 / 5; }
.tile__media picture, .tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.tile .img-placeholder { width: 100%; height: 100%; background: var(--raven-2); }
.tile__body {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px;
  background: linear-gradient(to top, rgb(17 18 23 / 80%), rgb(17 18 23 / 0%));
}
.tile::after { content: ''; position: absolute; inset: 8px; border: 1px dashed rgb(239 227 200 / 0%); border-radius: 10px; transition: border-color 0.25s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { border-color: rgb(239 227 200 / 70%); }
.tile:hover .tile__img { transform: scale(1.04); }
.tile__title { font: 520 1.2rem/1.15 var(--font-display); }
.tile__meta { font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }
@media (min-width: 720px) { .tile__title { font-size: 1.45rem; } .tile__body { padding: 48px 20px 18px; } }

.img-placeholder {
  width: 100%; height: 100%; min-height: 100%;
  background-color: var(--linen);
  background-image: repeating-linear-gradient(45deg, rgb(28 26 23 / 4%) 0 1px, transparent 1px 9px);
}

/* ------------------------------------------------------------------ home blocks */

.empty-note { text-align: center; color: var(--muted); }
.shop-rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; font-size: 0.95rem; }
.shop-rating:hover span { text-decoration: underline; text-underline-offset: 3px; }

.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonials > li { scroll-snap-align: start; }
@media (min-width: 900px) {
  .testimonials { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 22px; }
}
.testimonials .review {
  position: relative; height: 100%; padding: 24px 22px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); border: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.testimonials .review::before { content: ''; position: absolute; inset: 7px; border: 1px dashed var(--line-strong); border-radius: 11px; pointer-events: none; }
.testimonials .review__body { font: italic 400 1.04rem/1.55 var(--font-display); flex: 1; }
.testimonials .review__body p:first-child::before { content: '“'; }
.testimonials .review__body p:last-child::after { content: '”'; }
.testimonials .review__reply { display: none; }
.center .btn { margin-top: 28px; }

.about-block__grid { display: grid; gap: 28px; align-items: center; }
.about-block__media { border-radius: 20px; overflow: hidden; }
.about-block__media picture, .about-block__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-block__emblem {
  position: relative; aspect-ratio: 4 / 3; background: var(--raven); color: var(--on-dark);
  display: grid; place-content: center; justify-items: center; gap: 14px; border-radius: 20px;
}
.about-block__emblem::before { content: ''; position: absolute; inset: 12px; border: var(--stitch); border-radius: 12px; }
.about-block__mark { width: 120px; height: 120px; --bone: var(--raven); }
.about-block__emblem p { font: italic 400 1.1rem/1 var(--font-display); color: var(--brass-soft); }
.about-block__text .prose { margin-top: 16px; color: #39342e; }
@media (min-width: 900px) {
  .about-block__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-block__emblem { aspect-ratio: 1; }
}

.follow__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.follow__chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.follow__chip:hover { border-color: var(--brass); border-style: dashed; }
.follow__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--raven); color: var(--bone); flex: none; }
.follow__icon .icon { width: 18px; height: 18px; }
.follow__text { display: grid; min-width: 0; }
.follow__network { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.follow__handle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.trust { display: grid; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgb(236 229 216 / 60%); font-size: 0.92rem; }
.trust .icon { color: var(--brass-ink); width: 26px; height: 26px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ listing toolbar */

.toolbar { display: grid; gap: 14px; margin-bottom: 24px; }
.toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-block: 1px dashed var(--line-strong); padding: 6px 0; }
.toolbar__count { color: var(--muted); font-size: 0.9rem; }
.search { position: relative; display: flex; gap: 8px; max-width: 560px; width: 100%; }
.search--center { margin: 24px auto; }
.search input { padding-left: 44px; flex: 1; }
.search__icon { position: absolute; left: 13px; top: 13px; color: var(--muted); pointer-events: none; }
.search__icon .icon { width: 20px; height: 20px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.sort select { min-height: 44px; padding-block: 8px; font-size: 1rem; background-color: transparent; border-color: transparent; }
.sort select:hover { border-color: var(--line-strong); }

.empty-state { text-align: center; padding: 48px 0 64px; display: grid; gap: 10px; justify-items: center; }
.empty-state__title { font: 520 1.5rem/1.2 var(--font-display); }
.empty-state__mark { width: 84px; height: 84px; color: var(--line-strong); --brass: var(--line-strong); margin-bottom: 6px; }
.empty-state .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ product page */

.product__grid { display: grid; gap: 4px; }
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; position: relative; background: var(--linen);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -3px; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: var(--ratio, 1); }
.gallery__slide picture, .gallery__img { width: 100%; height: 100%; object-fit: contain; }
.gallery--empty { aspect-ratio: 1; }
.gallery__count {
  position: absolute; top: 12px; right: calc(var(--gutter) + 0px); padding: 4px 10px; border-radius: 999px;
  background: rgb(245 241 234 / 88%); font-size: 0.78rem; font-weight: 600; pointer-events: none;
}
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 4px; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  display: block; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex: none;
  border: 2px solid transparent; background: var(--linen); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb picture, .gallery__thumb-img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current='true'] { border-color: var(--ink); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }

.product__info { padding-top: 14px; min-width: 0; }
.product__title { font-size: clamp(1.8rem, 7vw, 2.7rem); font-weight: 540; }
.stock-note { color: var(--oxblood); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

@media (min-width: 768px) {
  .product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
  .gallery__track { border-radius: 18px; }
  .gallery__count { right: 12px; }
  .gallery__thumbs { padding-inline: 0; flex-wrap: wrap; }
  .gallery__thumb { width: 72px; height: 72px; }
  .product__info { padding-top: 0; }
}
@media (min-width: 1024px) { .product__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }

.buy { margin-top: 20px; display: grid; gap: 20px; }
.option__legend { font-weight: 650; font-size: 0.94rem; margin-bottom: 10px; }
.option__selected { font-weight: 400; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line-strong); font-size: 0.95rem; line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill:hover { border-color: var(--ink); }
.pill:has(input:checked) { background: var(--raven); border-color: var(--raven); color: var(--bone); }
.pill:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pill__swatch { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 18%); flex: none; }
.pill:has(input:checked) .pill__swatch { box-shadow: 0 0 0 2px var(--raven), 0 0 0 3.5px var(--bone); }
.pill--swatch { padding-left: 10px; }
.option__note { margin: -4px 0 12px; font-size: 0.88rem; color: var(--muted); }
.option__note strong { color: var(--ink); font-weight: 600; }
.pills--dots { gap: 6px; }
.pill--dot { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
.pill--dot .pill__swatch { width: 30px; height: 30px; }
.pill--dot:has(input:checked) { background: var(--paper); border-color: var(--raven); border-width: 2px; }
.pill__delta { font-size: 0.8rem; color: var(--muted); }
.pill:has(input:checked) .pill__delta { color: var(--brass-soft); }

.personalize { position: relative; padding: 18px 16px 20px; border-radius: var(--radius); background: var(--paper); }
.personalize::before { content: ''; position: absolute; inset: 0; border: var(--stitch); border-radius: inherit; pointer-events: none; }
.personalize__title { display: flex; align-items: center; gap: 8px; font: 560 1.12rem/1.2 var(--font-display); margin-bottom: 14px; }
.personalize__title .icon { color: var(--brass-ink); }

.buy__row { display: grid; gap: 14px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty__label { font-weight: 650; font-size: 0.94rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); height: 48px; }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; color: var(--ink); }
.stepper__btn:hover:not(:disabled) { background: var(--linen); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__btn .icon { width: 18px; height: 18px; }
.stepper__input {
  width: 3.4em !important; min-height: 0 !important; height: 44px; padding: 0 !important; text-align: center;
  border: 0 !important; background: transparent !important; box-shadow: none !important; font-weight: 600;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(176 138 62 / 35%); }
.stepper__value { min-width: 2.4em; text-align: center; font-weight: 600; }
.btn__price { font-weight: 500; opacity: 0.85; }
/* side-by-side quantity + button only when the form itself is wide enough (not the viewport) */
.buy { container-type: inline-size; }
@container (min-width: 400px) {
  .buy__row { grid-template-columns: auto 1fr; align-items: end; }
  .qty { display: grid; gap: 6px; justify-content: start; }
}
.buy__row .btn { white-space: nowrap; }

.lead-time { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 0; border-block: 1px dashed var(--line-strong); font-size: 0.93rem; }
.lead-time .icon { color: var(--brass-ink); margin-top: 2px; }
.product__desc { margin-top: 22px; }

.accordions { margin-top: 24px; border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; cursor: pointer; font-weight: 600;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary .icon { transition: transform 0.2s; width: 20px; height: 20px; }
.accordion[open] > summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 0 18px; font-size: 0.95rem; color: #39342e; }

.rates { display: grid; gap: 6px; font-size: 0.92rem; }
.rates li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rates__free { color: var(--ok); font-weight: 600; border-bottom: 0 !important; }

.share { display: flex; align-items: center; gap: 8px; margin: 22px 0; flex-wrap: wrap; }
.share__label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad-right) calc(10px + env(safe-area-inset-bottom)) var(--pad-left);
  background: rgb(245 241 234 / 96%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1.5px dashed var(--line-strong); box-shadow: 0 -10px 30px rgb(28 26 23 / 8%);
  animation: rise 0.25s ease;
}
.sticky-buy__info { flex: 1; min-width: 0; display: grid; }
.sticky-buy__title { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy__price { font-size: 0.88rem; color: var(--muted); }
@media (min-width: 900px) { .sticky-buy { display: none !important; } }
@media (max-width: 899px) { .page-product .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------------ reviews */

.reviews__grid { display: grid; gap: 28px; }
.reviews__grid--page { padding-bottom: 56px; }
@media (min-width: 900px) {
  .reviews__grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .reviews__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.reviews__aside > * + * { margin-top: 18px; }
.rating-summary { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--paper); }
.rating-summary__score { display: grid; gap: 6px; justify-items: start; }
.rating-summary__avg { font: 520 3.2rem/1 var(--font-display); }
.histogram { display: grid; gap: 6px; }
.histogram__row { display: grid; grid-template-columns: 2.4em 1fr 2.2em; gap: 10px; align-items: center; font-size: 0.86rem; }
.histogram__label { color: var(--muted); white-space: nowrap; }
.histogram__label span[aria-hidden] { color: var(--star); margin-left: 2px; }
.histogram__bar { height: 8px; border-radius: 999px; background: var(--linen); overflow: hidden; }
.histogram__bar span { display: block; height: 100%; background: var(--star); border-radius: inherit; }
.histogram__count { text-align: right; color: var(--muted); }

.review-list .review { padding: 22px 0; border-bottom: 1.5px dashed var(--line-strong); }
.review-list .review:first-child { padding-top: 4px; }
.review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review__title { font: 560 1.12rem/1.3 var(--font-display); margin-top: 10px; }
.review__body { margin-top: 8px; color: #2e2a25; }
.review__body > p + p { margin-top: 0.7em; }
.review__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.84rem; color: var(--muted); margin-top: 10px; }
.review__author { color: var(--ink); font-weight: 650; }
.review__product { font-size: 0.86rem; margin-top: 6px; color: var(--muted); }
.review__reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--brass); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 0.94rem; }
.review__reply-by { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 6px; }
.review__reply-by .icon { width: 16px; height: 16px; }
/* Customer photos: fixed square thumbnails (no layout shift while they load), each a link to the larger photo. */
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review__photo {
  display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  background: var(--linen); border: 1px solid var(--line); transition: border-color 0.2s;
}
.review__photo:hover { border-color: var(--brass); }
.review__photo picture, .review__photo-img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .review__photo { width: 104px; height: 104px; } }

.review-form > summary { list-style: none; width: 100%; }
.review-form > summary::-webkit-details-marker { display: none; }
.review-form[open] > summary { margin-bottom: 14px; }
.review-form__form { display: grid; gap: 16px; padding: 20px 18px; border-radius: var(--radius); background: var(--paper); position: relative; }
.review-form__form::before { content: ''; position: absolute; inset: 0; border: var(--stitch); border-radius: inherit; pointer-events: none; }
.review-form__form .field + .field { margin-top: 0; }
.review-form__intro { font-size: 0.92rem; color: var(--muted); }
.review-form__form .form-error { margin: 0; }
.review-form__photos input[type='file'] { width: 100%; font-size: 0.92rem; color: var(--muted); }
.review-form__photos input[type='file']::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: 600 0.94rem/1.2 var(--font-body); cursor: pointer;
}
.review-form__photos input[type='file']:hover::file-selector-button { background: var(--ink); color: var(--bone); }
.review-form__photo-status:empty { display: none; }
.review-form__photo-status.is-error { color: var(--oxblood); font-weight: 600; }
/* Cloudflare Turnstile: room held for the widget (65 px tall) so the button doesn't jump when it appears. */
.js .review-form__widget { min-height: 65px; max-width: 100%; }
.review-form__check-status:empty { display: none; }
.review-form__check-status.is-error { color: var(--oxblood); font-weight: 600; }

.rate__stars { display: flex; gap: 0; margin-top: 4px; margin-left: -6px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; color: #cfc2aa; border-radius: 8px; transition: color 0.12s, transform 0.12s; }
.rate__stars label svg { fill: currentColor; width: 32px; height: 32px; }
.rate__stars label:active { transform: scale(0.92); }
.rate__stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -2px; }
.rate__stars:has(input:nth-of-type(1):checked) label:nth-of-type(-n + 1),
.rate__stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n + 2),
.rate__stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n + 3),
.rate__stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n + 4),
.rate__stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n + 5) { color: var(--star); }
@media (hover: hover) {
  .rate__stars:has(label:nth-of-type(1):hover) label:nth-of-type(-n + 1),
  .rate__stars:has(label:nth-of-type(2):hover) label:nth-of-type(-n + 2),
  .rate__stars:has(label:nth-of-type(3):hover) label:nth-of-type(-n + 3),
  .rate__stars:has(label:nth-of-type(4):hover) label:nth-of-type(-n + 4),
  .rate__stars:has(label:nth-of-type(5):hover) label:nth-of-type(-n + 5) { color: var(--brass); }
}
.field-group > .field__hint { margin-top: 4px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* ------------------------------------------------------------------ cart */

.cart { padding-bottom: 56px; }
.cart__grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .cart__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
}
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1.5px dashed var(--line-strong); }
.cart-line--problem .cart-line__media, .cart-line--problem .cart-line__title { opacity: 0.6; }
.cart-line__media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--linen); }
.cart-line__media a, .cart-line__media picture, .cart-line__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font: 520 1.06rem/1.25 var(--font-display); }
.cart-line__title a { text-decoration: none; }
.cart-line__title a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.cart-line__opts, .cart-line__custom, .cart-line__unit { font-size: 0.86rem; margin-top: 4px; }
.cart-line__opts { color: var(--muted); }
.cart-line__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.cart-line__total { font-weight: 650; text-align: right; white-space: nowrap; }
.stepper--cart { height: 48px; }
.stepper--cart .stepper__btn { width: 44px; height: 44px; }
.stitched-text { font-family: var(--font-display); font-style: italic; text-decoration: underline dashed var(--brass) 1.5px; text-underline-offset: 4px; }

.cart-summary { position: relative; padding: 22px 20px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); display: grid; gap: 14px; }
.cart-summary::before { content: ''; position: absolute; inset: 7px; border: 1px dashed var(--line-strong); border-radius: 12px; pointer-events: none; }
.cart-summary > * { position: relative; }
@media (min-width: 900px) { .cart-summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.cart-summary__title { font-size: 1.3rem; }
.cart-summary__note { font-size: 0.86rem; color: var(--muted); }
.cart-summary__secure { font-size: 0.82rem; color: var(--muted); text-align: center; }
.cart-summary .center .text-link { font-size: 0.92rem; }
.totals { display: grid; gap: 6px; }
.totals__row { display: flex; justify-content: space-between; gap: 12px; }
.totals__row dd { font-weight: 600; text-align: right; }
.totals__row--muted { color: var(--muted); font-size: 0.92rem; }
.totals__row--muted dd { font-weight: 500; }
.totals__row--total { border-top: 1.5px dashed var(--line-strong); padding-top: 10px; margin-top: 4px; font-size: 1.15rem; }
.totals__row--total dd { font-weight: 750; }
.ship-options { font-size: 0.84rem; color: var(--muted); display: grid; gap: 4px; }
.ship-options li { display: flex; justify-content: space-between; gap: 10px; }
.totals__row--discount dd { color: var(--ok); }
.coupon-form { display: grid; gap: 6px; }
.coupon-form > label { font-weight: 600; font-size: 0.94rem; }
.coupon-form__row { display: flex; gap: 8px; }
.coupon-form__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-form__row input::placeholder { text-transform: none; }
.coupon-form__row .btn { flex: none; min-height: 48px; }
.coupon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 2px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 0.92rem; }
.coupon--problem { background: var(--brass-soft); color: #4d3a12; }
.coupon__status { display: flex; align-items: center; gap: 6px; font-weight: 550; padding: 8px 0; }
.coupon__status .icon { width: 18px; height: 18px; flex: none; }
.coupon .link-btn { color: inherit; }
.free-ship { display: grid; gap: 8px; font-size: 0.9rem; }
.free-ship__text { display: flex; align-items: center; gap: 6px; }
.free-ship__text .icon { color: var(--ok); width: 18px; height: 18px; }
.free-ship__bar { height: 8px; background: var(--linen); border-radius: 999px; overflow: hidden; }
.free-ship__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), var(--star)); transition: width 0.4s; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 0.94rem; margin-bottom: 16px; }
.notice .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice--info { background: var(--linen); }
.notice--warn { background: var(--brass-soft); color: #4d3a12; }
.notice--error { background: var(--oxblood-soft); color: var(--oxblood); }
.cart-summary .notice { margin: 0; }

/* ------------------------------------------------------------------ order */

.order { padding-bottom: 56px; }
.thanks { text-align: center; padding: 36px 0 20px; }
.thanks__mark { width: 92px; height: 92px; margin: 0 auto 18px; color: var(--raven); animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.thanks__title { font-size: clamp(2.3rem, 9vw, 3.6rem); font-weight: 520; }
.thanks__title em { color: var(--brass-ink); }
.thanks__sub { color: var(--muted); margin: 12px auto 0; max-width: 52ch; }
.spinner { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid var(--brass); border-top-color: transparent; animation: spin 0.8s linear infinite; margin-top: 2px; }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0 22px; }
.timeline__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 0.74rem; line-height: 1.25; color: var(--muted); }
.timeline__step + .timeline__step::before {
  content: ''; position: absolute; top: 13px; right: 50%; width: 100%; border-top: 2px dashed var(--line-strong); z-index: 0;
}
.timeline__step--done::before, .timeline__step--current::before { border-top-style: solid !important; border-top-color: var(--brass) !important; }
.timeline__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--line-strong);
}
.timeline__dot .icon { width: 16px; height: 16px; }
.timeline__step--done .timeline__dot { background: var(--brass); border-color: var(--brass); color: var(--raven); }
.timeline__step--current { color: var(--ink); font-weight: 650; }
.timeline__step--current .timeline__dot { background: var(--raven); border-color: var(--raven); box-shadow: 0 0 0 4px var(--brass-soft); }
@media (min-width: 600px) { .timeline__step { font-size: 0.86rem; } }

.ship-by, .tracking { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--linen); margin-bottom: 16px; font-size: 0.95rem; }
.ship-by .icon, .tracking .icon { color: var(--brass-ink); margin-top: 2px; }
.tracking a { font-weight: 650; word-break: break-all; }
.order-card { position: relative; padding: 20px 18px; border-radius: var(--radius); background: var(--paper); margin-bottom: 16px; }
.order-card::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--line); border-radius: 11px; pointer-events: none; }
.order-card > * { position: relative; }
.order-card__title { font-size: 1.2rem; margin-bottom: 12px; }
.order-items { margin-bottom: 14px; }
.order-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.order-item__media { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--linen); }
.order-item__media picture, .order-item__img { width: 100%; height: 100%; object-fit: cover; }
.order-item__title { font-weight: 600; }
.order-item__opts { font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.order-item__price { font-weight: 600; white-space: nowrap; }
.address { font-style: normal; line-height: 1.6; }
.order__help { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 24px; }

/* ------------------------------------------------------------------ content pages */

.error-page { text-align: center; padding-block: 48px 72px; }
.error-page__mark { width: 96px; height: 96px; margin: 0 auto 20px; color: var(--raven); opacity: 0.9; }
.error-page .page-title em { color: var(--brass-ink); }
.error-page__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.about-page { display: grid; gap: 32px; padding-bottom: 64px; }
.about-page__figure { border-radius: 20px; overflow: hidden; }
.about-page__img { width: 100%; }
.about-page__emblem { display: grid; place-items: center; }
.about-page__mark { width: 120px; height: 120px; color: var(--raven); }
.about-page .center .btn { margin: 6px 4px 0; }
.steps { display: grid; gap: 14px; margin: 18px 0 28px; counter-reset: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--paper); }
.steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--raven); color: var(--bone); font: 600 1rem/1 var(--font-display); }
.steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.narrow > .section-title { margin-top: 36px; }

.callout { position: relative; padding: 20px; border-radius: var(--radius); background: var(--linen); margin: 24px 0; }
.callout::before { content: ''; position: absolute; inset: 7px; border: var(--stitch); border-radius: 11px; pointer-events: none; opacity: 0.8; }
.callout > * { position: relative; }
.callout__title { font-size: 1.2rem; margin-bottom: 10px; }
.callout .rates { margin-bottom: 10px; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--brass-ink); width: 20px; height: 20px; margin-top: 2px; }

.contact-card { padding: 22px 20px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); margin: 24px 0 56px; }
.contact-card__title { font-size: 1.35rem; margin-bottom: 8px; }
.contact-list__item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; text-decoration: none; border-bottom: 1px dashed var(--line); word-break: break-word; }
.contact-list li:last-child .contact-list__item { border-bottom: 0; }
.contact-list__item .icon { color: var(--brass-ink); }
.contact-list__label { display: block; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
a.contact-list__item:hover > span { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.policy { padding-bottom: 8px; }
.policy__contact { margin-top: 24px; }
.narrow > .center { margin-bottom: 56px; }

/* ------------------------------------------------------------------ footer */

.site-footer { position: relative; background: var(--raven); color: var(--on-dark); margin-top: auto; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; border-top: 1.5px dashed rgb(176 138 62 / 70%); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--brass); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad-right) 28px var(--pad-left);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px;
}
.site-footer__brand { grid-column: 1 / -1; }
.wordmark--footer { color: var(--on-dark); justify-self: start; }
.wordmark--footer .wordmark__mark { color: var(--on-dark); --bone: var(--raven); }
.site-footer__tagline { color: var(--on-dark-muted); font-size: 0.92rem; margin-top: 10px; max-width: 36ch; }
.site-footer .social-icon { border-color: rgb(236 229 215 / 30%); color: var(--on-dark); }
.site-footer .social-icon:hover { background: var(--on-dark); color: var(--raven); text-decoration: none; }
.site-footer__heading { font: 650 0.74rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.site-footer__col ul { display: grid; gap: 2px; }
.site-footer__col a, .site-footer__col li { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.94rem; }
.site-footer__col:last-child { grid-column: 1 / -1; }
.muted-on-dark { color: var(--on-dark-muted); }
.site-footer__base {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad-right) calc(22px + env(safe-area-inset-bottom)) var(--pad-left);
  border-top: 1px solid rgb(236 229 215 / 12%); display: grid; gap: 10px; font-size: 0.82rem; color: var(--on-dark-muted);
}
.site-footer__note { grid-column: 1 / -1; order: 9; font-size: 0.82rem; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__legal a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__pay { display: flex; align-items: center; gap: 6px; }
.site-footer__pay .icon { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; padding-top: 64px; }
  .site-footer__brand, .site-footer__col:last-child { grid-column: auto; }
  .site-footer__base { grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }
}

/* ------------------------------------------------------------------ toasts */

.toasts {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 24px));
  display: grid; gap: 8px; pointer-events: none;
}
body.has-sticky .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
.toast {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px;
  border-radius: 14px; background: var(--raven); color: var(--bone); box-shadow: 0 16px 40px rgb(17 18 23 / 28%);
  pointer-events: auto; animation: rise 0.28s ease;
}
.toast::before { content: ''; position: absolute; inset: 4px; border: 1px dashed rgb(239 227 200 / 30%); border-radius: 10px; pointer-events: none; }
.toast--error { background: var(--oxblood); }
.toast__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brass); color: var(--raven); flex: none; font-weight: 800; }
.toast--error .toast__icon { background: #fbefe9; color: var(--oxblood); }
.toast__icon .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.toast__msg { flex: 1; font-size: 0.94rem; line-height: 1.35; }
.toast__link { color: var(--brass-soft); font-weight: 650; text-underline-offset: 3px; white-space: nowrap; margin-left: 4px; }
.toast__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: inherit; flex: none; position: relative; }
.toast__close .icon { width: 18px; height: 18px; }
.toast.is-leaving { animation: fall 0.25s ease forwards; }

/* ------------------------------------------------------------------ motion */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fall { to { opacity: 0; transform: translateY(14px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bump { 40% { transform: scale(1.3); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .announce, .vacation, .toasts, .sticky-buy, .share { display: none !important; }
  body { background: #fff; }
}
