/* ============================================================
   Niche Store Factory — shared storefront template
   Design tokens come from /assets/css/theme.css (generated).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .45em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 5.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.005em; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.sr-only {
  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: fixed; top: 10px; left: 10px; z-index: 500;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  transform: translateY(-160%); transition: transform .2s ease;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.skip-link:focus { transform: none; }

.icon { display: inline-flex; }
.icon svg { width: 1em; height: 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; line-height: 1;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.text-link svg { width: 13px; height: 13px; transition: transform .2s ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link:hover svg { transform: translateX(3px); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: currentColor; flex: none;
}
.section-head--center .eyebrow { justify-content: center; }

/* ---------- announcement + header ---------- */
.announcement {
  background: var(--accent-soft);
  color: var(--ink);
  text-align: center;
}
.announcement p {
  margin: 0; padding: 9px 0;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-size: 17px; line-height: 1; padding-top: 2px;
}
.brand-name {
  font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a, .nav-item > a {
  position: relative;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 0;
}
.main-nav > a::after, .nav-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.main-nav > a:hover::after, .nav-item > a:hover::after,
.main-nav > a.is-active::after, .nav-item > a.is-active::after { transform: scaleX(1); }
.main-nav > a.is-active, .nav-item > a.is-active { color: var(--ink); }
.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px; padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(24, 22, 18, .12);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-menu a {
  display: block; padding: 10px 12px;
  font-size: 12px; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

.header-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); }
.count {
  position: absolute; top: 2px; right: 0;
  display: grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 9px; font-weight: 700; line-height: 1;
}
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; }

.hero--split {
  display: grid; grid-template-columns: 1.02fr 1fr;
  min-height: min(720px, calc(100vh - 118px));
  background: var(--surface-2);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(52px, 7vw, 108px);
}
.hero-copy h1 { max-width: 13ch; margin-bottom: .32em; }
.hero-sub {
  max-width: 46ch; margin-bottom: 32px;
  color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-size: 11px; }
.hero-media { min-height: 420px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero--overlay { display: grid; min-height: min(780px, calc(100vh - 118px)); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero--overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 10, .68) 0%, rgba(18, 14, 10, .3) 48%, rgba(18, 14, 10, .08) 100%);
}
.hero-overlay-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(80px, 10vw, 140px);
  color: #fff;
}
.hero-overlay-content h1 { max-width: 13ch; color: #fff; }
.hero-overlay-content .eyebrow { color: #fff; }
.hero-overlay-content .hero-sub { color: rgba(255, 255, 255, .78); }
.hero-overlay-content .hero-points { border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .72); }
.hero--overlay .btn-primary { background: var(--bg); color: var(--ink); }
.hero--overlay .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.hero--overlay .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero--overlay .btn-ghost:hover { border-color: #fff; }

.hero--editorial { padding-top: clamp(60px, 8vw, 110px); background: var(--bg); }
.hero-editorial-head h1 { max-width: 17ch; margin-bottom: .3em; }
.hero-editorial-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-editorial-row .hero-sub { margin: 0; max-width: 52ch; }
.hero-editorial-row .hero-actions { flex: none; }
.hero-editorial-media { height: clamp(380px, 56vw, 660px); overflow: hidden; }
.hero-editorial-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- trust ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding-block: 28px;
}
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-item .icon { color: var(--accent); padding-top: 2px; }
.trust-item .icon svg { width: 26px; height: 26px; }
.trust-item h3 {
  margin: 0 0 2px; font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.trust-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(28px, 4vw, 46px);
}
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head--center { display: block; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .text-link { display: none; }

/* ---------- product cards ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 32px) clamp(14px, 1.6vw, 24px);
}
.product-card { position: relative; }
.product-media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}
.product-card:hover .product-media img { transform: scale(1.045); }
.product-link { display: block; width: 100%; height: 100%; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}
.wish-btn svg { width: 17px; height: 17px; }
.wish-btn:hover { background: var(--surface); color: var(--accent); }
.wish-btn.is-active { background: var(--accent-soft); color: var(--accent); }
.wish-btn.is-active svg { fill: currentColor; }
.product-card:hover .wish-btn { opacity: 1; transform: none; }

.quick-add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  padding: 12px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, background .2s ease;
}
.quick-add:hover { background: var(--accent); color: var(--accent-ink); }
.product-card:hover .quick-add { opacity: 1; transform: none; }

.product-info { padding-top: 14px; }
.product-collection {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.product-collection a:hover { color: var(--accent); }
.product-title {
  margin: 0 0 7px;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0;
}
.product-title a:hover { color: var(--accent); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.price-compare { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.rating {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 5px; color: var(--muted); font-size: 10.5px;
}
.stars { color: var(--highlight); letter-spacing: .12em; font-size: 11px; line-height: 1; }
.rating-value { display: none; }
.product-colors { display: flex; gap: 5px; margin-top: 9px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dot);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

/* ---------- collections ---------- */
.collection-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.collection-card {
  position: relative; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2);
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 10, 0) 35%, rgba(16, 14, 10, .67) 100%);
}
.collection-overlay {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 22px 20px; color: #fff;
}
.collection-count {
  display: block; margin-bottom: 8px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  opacity: .7;
}
.collection-overlay h3 { margin: 0 0 6px; color: #fff; font-size: 19px; }
.collection-overlay p {
  margin: 0 0 13px; font-size: 11.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.collection-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.collection-link svg { width: 12px; height: 12px; }
.collection-card:hover .collection-link { opacity: 1; transform: none; }

/* ---------- story ---------- */
.story { background: var(--surface); border-block: 1px solid var(--line); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(34px, 6vw, 90px);
}
.story-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { max-width: 540px; }
.story-copy h2 { margin-bottom: .4em; }
.story-copy > p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.story-points { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.story-points li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .01em;
}
.story-points li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- reviews ---------- */
.reviews { background: var(--surface-2); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  display: flex; flex-direction: column;
  margin: 0; padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-card .stars { margin-bottom: 18px; font-size: 12px; }
.review-card blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45;
  letter-spacing: -.01em;
}
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review-card figcaption strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.review-card figcaption span { color: var(--muted); font-size: 11px; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--ink); color: var(--bg); padding-block: clamp(64px, 8vw, 100px); }
.newsletter-inner { max-width: 620px; text-align: center; }
.newsletter .eyebrow { justify-content: center; color: var(--accent-soft); }
.newsletter h2 { color: var(--bg); }
.newsletter p { color: color-mix(in srgb, var(--bg) 66%, transparent); font-size: 14px; }
.newsletter-form {
  display: flex; gap: 8px; margin: 28px auto 0; max-width: 470px;
}
.newsletter-form input {
  flex: 1; min-width: 0;
  padding: 13px 4px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 40%, transparent);
  background: transparent; color: var(--bg); font-size: 14px;
  outline: none; border-radius: 0;
}
.newsletter-form input::placeholder { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.newsletter-form input:focus { border-color: var(--bg); }
.newsletter-form .btn-primary { background: var(--bg); color: var(--ink); }
.newsletter-form .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 76px) 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline {
  margin: 0 0 10px;
  font-family: var(--font-display); font-size: 17px; line-height: 1.35;
}
.footer-desc { max-width: 36ch; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.footer-email { display: inline-block; margin-top: 14px; font-size: 12px; border-bottom: 1px solid var(--line); }
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-social a:hover { color: var(--accent); }
.footer-col h3 {
  margin: 0 0 16px;
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.footer-col a:hover { color: var(--accent); }
.footer-news .newsletter-form { margin: 14px 0 0; max-width: none; }
.footer-news .newsletter-form input { color: var(--ink); border-color: var(--line); font-size: 12.5px; }
.footer-news .newsletter-form input::placeholder { color: var(--muted); }
.footer-news .newsletter-form .btn-primary { background: var(--ink); color: var(--bg); padding: 12px 18px; min-height: 42px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 10.5px; letter-spacing: .04em;
}
.footer-bottom p { margin: 0; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-badges span {
  padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px;
  font-size: 8px; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- page head ---------- */
.page-head { padding: clamp(48px, 6vw, 84px) 0 clamp(30px, 4vw, 46px); }
.page-head-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.page-head h1 { margin-bottom: .2em; }
.page-head p:not(.eyebrow) { max-width: 62ch; color: var(--muted); font-size: 15px; }
.page-count {
  flex: none; color: var(--muted);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 8px;
}
.page-hero {
  padding: clamp(68px, 9vw, 130px) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p:not(.eyebrow) { max-width: 64ch; color: var(--muted); font-size: 16px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 22px;
  color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- shop ---------- */
.shop-section { padding-top: clamp(34px, 5vw, 54px); }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort-field { display: flex; align-items: center; gap: 10px; flex: none; }
.sort-field > span { color: var(--muted); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.sort-field select {
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--line); border-radius: 0;
  background-color: var(--surface);
  font-size: 10.5px; letter-spacing: .04em;
}
.no-results { padding: 50px 0; text-align: center; color: var(--muted); }
.no-results .text-link { border: 0; color: var(--ink); }

/* ---------- product page ---------- */
.product-page { padding-top: 6px; }
.product-layout {
  display: grid; grid-template-columns: 1.08fr 1fr;
  gap: clamp(32px, 5vw, 82px); align-items: start;
  padding-top: 26px;
}
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
  aspect-ratio: 1; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumb {
  aspect-ratio: 1; overflow: hidden; padding: 0;
  border: 1px solid transparent; border-radius: calc(var(--radius) * .6);
  background: var(--surface-2);
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .72;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--ink); opacity: 1; }

.product-detail h1 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); margin-bottom: .3em; }
.product-detail .product-collection { margin-bottom: 10px; }
.product-detail .rating { margin-bottom: 18px; }
.product-detail .rating-value { display: inline; font-size: 10px; }
.product-detail .review-count { color: var(--muted); }
.product-price {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 600; letter-spacing: .01em;
}
.product-price .price-compare { font-size: 14px; font-weight: 400; }
.product-short { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 54ch; }

.product-form { margin: 26px 0 24px; }
.swatches-field { margin: 0 0 20px; padding: 0; border: 0; }
.swatches-field legend {
  margin-bottom: 10px; padding: 0;
  font-size: 9.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}
.swatches-field legend span { color: var(--muted); }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  display: block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
  transition: outline-color .15s ease;
  outline: 2px solid transparent; outline-offset: 3px;
}
.swatch input:checked + span { outline-color: var(--ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field { display: block; }
.field > span {
  display: block; margin-bottom: 7px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .55);
  background: var(--surface); font-size: 14px; outline: none;
  transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.qty-field { min-width: 0; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .55);
  background: var(--surface); height: 45px; overflow: hidden;
}
.qty-stepper button {
  display: grid; place-items: center; width: 42px; height: 100%;
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.qty-stepper button:hover { background: var(--surface-2); color: var(--ink); }
.qty-stepper button svg { width: 14px; height: 14px; }
.qty-stepper input {
  flex: 1; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 0; background: transparent;
  text-align: center; font-size: 13px;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.product-trust {
  display: grid; gap: 0;
  margin: 0 0 26px; padding: 4px 0;
  border-block: 1px solid var(--line);
}
.product-trust li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0;
  color: var(--muted); font-size: 11.5px;
}
.product-trust li + li { border-top: 1px dashed var(--line); }
.product-trust .icon { color: var(--accent); }
.product-trust .icon svg, .product-trust li > svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; cursor: pointer; list-style: none;
  font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 16px; font-weight: 400; color: var(--muted); }
.accordion details[open] summary::after { content: "−"; }
.accordion-body { padding: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.accordion-body p { margin-bottom: .7em; }

.product-story { background: var(--surface-2); border-block: 1px solid var(--line); }
.product-story-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(30px, 5vw, 80px);
}
.product-story-grid h2 { max-width: 12ch; }
.product-story-grid > div:last-child > p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.feature-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.feature-list li { display: flex; gap: 9px; font-size: 12px; line-height: 1.5; }
.feature-list li::before { content: "•"; color: var(--accent); flex: none; }
.related { padding-top: clamp(54px, 7vw, 90px); }

/* ---------- collection page ---------- */
.collection-hero {
  aspect-ratio: 21 / 9; overflow: hidden;
  margin-bottom: clamp(30px, 4vw, 46px);
  border-radius: var(--radius); background: var(--surface-2);
}
.collection-hero img { width: 100%; height: 100%; object-fit: cover; }
.section-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- about / values ---------- */
.about-story { background: var(--surface); border-block: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 46px); }
.value-card { padding-top: 20px; border-top: 1px solid var(--line); }
.value-num {
  display: block; margin-bottom: 26px;
  color: var(--accent); font-size: 10px; letter-spacing: .14em;
}
.value-card h3 { margin-bottom: 10px; font-size: 20px; }
.value-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.about-cta { background: var(--accent-soft); }
.about-cta-inner { max-width: 640px; text-align: center; }
.about-cta-inner p { color: var(--muted); margin-bottom: 26px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 6vw, 90px); align-items: start;
}
.contact-copy h2 { max-width: 14ch; }
.contact-copy > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-copy a { border-bottom: 1px solid var(--accent); }
.contact-details { margin: 30px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.contact-details > div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { min-width: 84px; color: var(--muted); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; padding-top: 3px; }
.contact-details dd { margin: 0; font-size: 13px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .btn { justify-self: start; }
.fine-print { color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.fine-print a { border-bottom: 1px solid var(--line); }

/* ---------- cart / checkout ---------- */
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(30px, 5vw, 70px); align-items: start;
}
.cart-items { min-height: 200px; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line-media {
  aspect-ratio: 1; overflow: hidden;
  border-radius: calc(var(--radius) * .6); background: var(--surface-2);
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info h3 { margin: 0 0 3px; font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.cart-line-meta {
  color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
}
.cart-line-bottom { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.cart-line-price { font-size: 13px; font-weight: 600; }
.cart-remove {
  padding: 0; color: var(--muted); font-size: 10.5px;
  text-decoration: underline; text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--accent); }
.cart-line .qty-stepper { width: 104px; height: 36px; }
.cart-line .qty-stepper button { width: 32px; }
.cart-line .qty-stepper input { font-size: 12px; }
.cart-empty { padding: 60px 20px; border-block: 1px solid var(--line); text-align: center; }
.cart-empty h3 { font-size: 26px; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.cart-summary {
  position: sticky; top: 100px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cart-summary h2 { font-size: 23px; margin-bottom: 18px; }
.summary-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 9px 0; font-size: 12.5px;
}
.summary-row strong { font-size: 15px; }
.summary-note { color: var(--muted); font-size: 10.5px; line-height: 1.6; margin: 12px 0 18px; }
.cart-summary .btn { margin-bottom: 14px; }
.cart-summary .text-link { border: 0; color: var(--muted); font-size: 10px; }
.cart-summary .text-link:hover { color: var(--ink); }

.checkout-form fieldset { margin: 0 0 30px; padding: 0; border: 0; }
.checkout-form legend {
  padding: 0; margin-bottom: 16px;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.checkout-form .field-row { margin-bottom: 14px; }
.checkout-form > .field { margin-bottom: 14px; }
.demo-note {
  padding: 14px 16px; margin: 0 0 8px;
  background: var(--accent-soft); border-radius: calc(var(--radius) * .55);
  font-size: 11.5px; line-height: 1.6;
}
.checkout-form .btn { margin-bottom: 14px; }
.checkout-item {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; font-size: 12px; color: var(--muted);
}
.checkout-item strong { color: var(--ink); font-weight: 500; }

/* ---------- wishlist / search / policy / 404 ---------- */
.wishlist-page .product-grid { grid-template-columns: repeat(4, 1fr); }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form input { flex: 1; min-width: 0; }
.search-results { display: grid; gap: 10px; margin-top: 22px; }
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6);
  transition: background .15s ease;
}
.search-result:hover { background: var(--surface); }
.search-result img { width: 62px; height: 62px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.search-result h3 { margin: 0 0 2px; font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.search-result p { margin: 0; color: var(--muted); font-size: 11px; }
.search-empty { padding: 20px 0; color: var(--muted); font-size: 13px; }
.search-form--page { max-width: 620px; margin-bottom: 34px; }
.search-form--page input {
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .55); background: var(--surface);
  font-size: 16px; outline: none;
}
.search-form--page input:focus { border-color: var(--ink); }
.search-results--page { grid-template-columns: 1fr 1fr; margin-top: 0; }
.policy-content { max-width: 740px; }
.policy-content h2 { margin-top: 40px; font-size: 25px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.not-found { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.not-found-inner { max-width: 520px; }
.not-found-inner p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(18, 16, 12, .45);
  opacity: 0; transition: opacity .3s ease;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: min(440px, 100%);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.2, .7, .2, 1);
  box-shadow: -20px 0 60px rgba(20, 18, 14, .12);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head .eyebrow { margin-bottom: 6px; }
.drawer-head h2 { margin: 0; font-size: 25px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 24px; }
.drawer-body .cart-line { grid-template-columns: 76px 1fr; gap: 14px; }
.drawer-body .cart-line-price { grid-column: 2; }
.drawer-body .cart-line-bottom { margin-top: 8px; }
.drawer-body .cart-empty { border: 0; padding: 60px 10px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.drawer-subtotal strong { font-size: 17px; }
.drawer-note { color: var(--muted); font-size: 10.5px; margin-bottom: 14px; }
.drawer-foot .btn { margin-bottom: 10px; }
.drawer-link {
  display: block; text-align: center;
  color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility .26s;
  overflow-y: auto;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel { width: min(100% - 48px, 820px); margin: 12vh auto 60px; }
.search-head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); }
.search-head .search-form { flex: 1; }
.search-head input {
  width: 100%; padding: 12px 0;
  border: 0; background: transparent; outline: none;
  font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -.02em;
}
.search-head input::placeholder { color: var(--muted); opacity: .55; }
.search-suggestions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 16px 0 8px; color: var(--muted); font-size: 11px;
}
.search-suggestions button {
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 10.5px;
}
.search-suggestions button:hover { border-color: var(--ink); }
.search-overlay .search-results { grid-template-columns: 1fr 1fr; gap: 8px; }
.search-overlay .search-result { background: var(--surface); }
.search-overlay .search-empty { padding: 30px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 11.5px; letter-spacing: .04em; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100% - 40px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .wishlist-page .product-grid { grid-template-columns: repeat(3, 1fr); }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .collection-card { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; max-width: 420px; }
  .search-results--page { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .container { width: min(100% - 36px, 1320px); }
  .nav-toggle { display: inline-flex; order: -1; }
  .header-inner { gap: 10px; }
  .brand-name { font-size: 12.5px; letter-spacing: .12em; }
  .main-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: min(84vw, 360px); padding: 92px 26px 32px;
    background: var(--surface);
    transform: translateX(-102%);
    transition: transform .32s cubic-bezier(.2, .7, .2, 1);
    overflow-y: auto;
    box-shadow: 20px 0 60px rgba(20, 18, 14, .12);
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: 55;
    background: rgba(18, 16, 12, .42);
  }
  .main-nav > a, .nav-item > a {
    display: block; padding: 15px 0;
    font-size: 12px; border-bottom: 1px solid var(--line);
  }
  .nav-item { position: static; }
  .nav-item.has-menu > a { border-bottom: 1px solid var(--line); }
  .nav-menu {
    position: static; min-width: 0; padding: 0 0 8px 14px;
    border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: grid;
  }
  .nav-menu a { padding: 9px 0; font-size: 11.5px; border-bottom: 1px dashed var(--line); }
  .nav-menu a:last-child { border-bottom: 1px solid var(--line); }
  .nav-menu a:hover { background: transparent; }
  .header-actions { margin-left: auto; }
  .hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 54px 24px 46px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero--editorial-row { display: block; }
  .hero-editorial-row .hero-actions { margin-top: 24px; }
  .hero-editorial-media { height: 60vw; min-height: 320px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { max-width: none; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card blockquote { font-size: 19px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-detail { max-width: 640px; }
  .product-story-grid { grid-template-columns: 1fr; }
  .product-story-grid h2 { max-width: none; }
  .value-grid { grid-template-columns: 1fr; gap: 0; }
  .value-card { padding: 24px 0; }
  .value-num { margin-bottom: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy h2 { max-width: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .search-overlay .search-results { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .product-grid, .wishlist-page .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-card { aspect-ratio: 3 / 4; }
  .collection-grid > .collection-card:last-child:nth-child(odd) {
    grid-column: 1 / -1; aspect-ratio: 16 / 9;
  }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head .text-link { margin-top: 16px; }
  .page-head-inner { display: block; }
  .page-count { padding: 12px 0 0; }
  .shop-toolbar { display: block; }
  .sort-field { margin-top: 14px; justify-content: space-between; }
  .quick-add { opacity: 1; transform: none; }
  .wish-btn { opacity: 1; transform: none; }
  .product-actions { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-news { grid-column: 1 / -1; }
  .announcement p { font-size: 8.5px; letter-spacing: .1em; padding-inline: 16px; line-height: 1.5; }
  .search-panel { margin-top: 9vh; }
  .search-form--page { display: block; }
  .search-form--page .btn { margin-top: 10px; width: 100%; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .brand-name { font-size: 11px; letter-spacing: .1em; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .hero-copy { padding: 44px 18px 38px; }
  .hero-points { display: block; }
  .hero-points li { padding: 4px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: none; width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .product-title { font-size: 13.5px; }
  .product-media { border-radius: calc(var(--radius) * .8); }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card, .collection-grid > .collection-card:last-child:nth-child(odd) { aspect-ratio: 4 / 5; }
  .breadcrumbs { font-size: 9px; }
  .gallery-thumbs { gap: 7px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 74px 1fr; }
  .cart-line .qty-stepper { grid-column: 2; }
  .cart-summary { padding: 20px; }
  .search-head input { font-size: 22px; }
  .search-suggestions span { width: 100%; }
}

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