/* ==========================================================================
   Tipsy Looks storefront — design system
   Mobile-first. One font family (Jost, self-hosted). Tokens below drive
   colour, type, spacing, radius and elevation across every component.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --ink: #1c2622;
  --ink-2: #44504a;
  --muted: #6b7670;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --sand: #f4ede2;
  --sand-2: #ebe1d1;
  --line: #e5dccf;
  --line-strong: #d4c8b6;
  --brand: #1f4d3f;
  --brand-ink: #163a2f;
  --brand-soft: #e5eee9;
  --accent: #a8823f;
  --accent-soft: #f5ecdc;
  --sale: #a8382c;
  --success: #2c7650;
  --success-soft: #e4f1e9;
  --warning: #94600b;
  --warning-soft: #fbf0db;
  --danger: #a8261e;
  --danger-soft: #fbe7e5;
  --focus: #1f4d3f;

  /* type */
  --font: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --lh: 1.6;

  /* spacing */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: 16px;

  /* shape & elevation */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 38, 34, 0.05);
  --shadow: 0 10px 30px rgba(28, 38, 34, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1320px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh); color: var(--ink);
  background: var(--bg); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; margin: 0 0 var(--s4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 500; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.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: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: var(--r); }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding: var(--section) 0; }
.section-tight { padding: var(--s7) 0; }
.section-alt { background: var(--sand); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: var(--s4); }
.flex { display: flex; gap: var(--s3); align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: var(--s3); }
.section-head { text-align: center; margin: 0 auto var(--s7); max-width: 640px; }
.section-head h2 { margin-bottom: var(--s2); }
.section-head .divider { width: 56px; height: 1px; background: var(--accent); margin: var(--s4) auto 0; position: relative; }
.section-head .divider::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; background: var(--accent); transform: translateX(-50%) rotate(45deg); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s6); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--s5); }
.prose table { margin: var(--s5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose img { border-radius: var(--r); margin: var(--s5) 0; }
.cms-note { background: var(--warning-soft); border-left: 3px solid var(--warning); padding: var(--s3) var(--s4); font-size: var(--fs-sm); border-radius: var(--r-sm); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s; white-space: nowrap;
}
.btn:hover { --btn-bg: var(--brand-ink); --btn-bd: var(--brand-ink); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--sand); --btn-bd: var(--sand); --btn-fg: var(--ink); }
.btn-accent { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn-accent:hover { --btn-bg: #8e6c33; --btn-bd: #8e6c33; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; padding: 0 12px; }
.btn-ghost:hover { --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; font-size: inherit; text-underline-offset: 3px; }
.btn-link.danger { color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: transparent; border: 0; color: var(--ink); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; }
.count-badge:empty, .count-badge[data-count="0"] { display: none; }

/* ---------- forms ---------- */
.field { margin-bottom: var(--s4); }
.field label, .label { display: block; font-size: var(--fs-sm); font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-size: 16px; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2344504a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"], .has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-sm); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.form-row { display: grid; gap: 0 var(--s4); }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- alerts & toasts ---------- */
.alert { padding: var(--s3) var(--s4); border-radius: var(--r); margin-bottom: var(--s4); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #c6e2d2; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f1c7c3; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); border-color: #cfe0d6; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #efd9ad; }
.toast-region { position: fixed; z-index: 400; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r); box-shadow: var(--shadow); font-size: var(--fs-sm); display: flex; gap: 12px; align-items: center; justify-content: space-between; pointer-events: auto; animation: toastIn .25s var(--ease); }
.toast a { color: #fff; font-weight: 500; }
.toast.is-error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- announcement + header ---------- */
.announcement { background: var(--brand); color: #f4ede2; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 9px var(--gutter); }
.announcement a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 243, 0.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: var(--s3); }
.header-left, .header-right { display: flex; align-items: center; gap: 2px; }
.header-right { justify-content: flex-end; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo-mark { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.logo-word { font-size: 1.5rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400; padding-left: 0.32em; }
.logo-sub { font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); margin-top: 5px; padding-left: 0.42em; }
.logo:hover { color: var(--ink); }
@media (max-width: 599px) { .logo-mark, .logo-sub { display: none; } .logo-word { font-size: 1.15rem; letter-spacing: 0.2em; padding-left: 0.2em; white-space: nowrap; } }
.main-nav { display: none; }
.hide-mobile { display: none !important; }
@media (min-width: 1100px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-toggle { display: none !important; }
  .main-nav { display: block; }
  .hide-mobile { display: inline-grid !important; }
  .header-inner.has-nav-left .main-nav { order: -1; }
}
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 12px; text-decoration: none; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.main-nav > ul > li > a:hover, .main-nav > ul > li:focus-within > a { color: var(--brand); }
.main-nav a.is-highlight { color: var(--sale); }
.main-nav .icon-sm { width: 12px; height: 12px; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: var(--s3) 0; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 22px; text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); }
.dropdown a:hover { background: var(--sand); color: var(--ink); }
.icon-label { display: none; }
@media (min-width: 1300px) { .icon-label { display: inline; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; } .header-right .icon-btn.with-label { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; border-radius: var(--r-sm); } }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(28, 38, 34, 0.45); z-index: 290; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 300; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--bg); transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.drawer.drawer-right { left: auto; right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); min-height: 60px; }
.drawer-head h2 { font-size: var(--fs-md); margin: 0; font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s4); overscroll-behavior: contain; }
.drawer-foot { padding: var(--s4); border-top: 1px solid var(--line); display: flex; gap: var(--s3); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; text-decoration: none; font-size: var(--fs-md); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav details ul { padding: 0 0 var(--s3) var(--s4); }
.mobile-nav details a { font-size: var(--fs-base); padding: 9px 4px; color: var(--ink-2); }
.mobile-nav .secondary a { font-size: var(--fs-sm); color: var(--ink-2); padding: 10px 4px; }
body.no-scroll { overflow: hidden; }

/* search overlay */
.search-panel { position: fixed; inset: 0 0 auto 0; z-index: 320; background: var(--bg); box-shadow: var(--shadow); transform: translateY(-105%); transition: transform .3s var(--ease); visibility: hidden; max-height: 100vh; overflow-y: auto; }
.search-panel.is-open { transform: none; visibility: visible; }
.search-form { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.search-form input { flex: 1; border: 0; background: transparent; font-size: var(--fs-lg); padding: 8px 0; min-width: 0; }
.search-form input:focus { outline: none; }
.search-results { padding: var(--s5) 0 var(--s6); display: grid; gap: var(--s6); }
@media (min-width: 900px) { .search-results { grid-template-columns: 240px 1fr; } }
.search-results h3 { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); font-weight: 500; }
.search-results ul { list-style: none; padding: 0; margin: 0; }
.search-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-products { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .suggest-products { grid-template-columns: repeat(2, 1fr); } }
.suggest-item { display: flex; gap: var(--s3); align-items: center; text-decoration: none; padding: 6px; border-radius: var(--r); }
.suggest-item:hover, .suggest-item.is-active { background: var(--sand); color: var(--ink); }
.suggest-item img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }
.suggest-item .name { font-size: var(--fs-sm); display: block; }
.suggest-item .price { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- chips, badges, breadcrumbs ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); text-decoration: none; background: var(--surface); color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }
.badge { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 500; line-height: 1.2; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--brand); color: #fff; }
.badge-soldout { background: var(--ink); color: #fff; }
.badge-soft { background: var(--sand); color: var(--ink-2); }
.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sand); color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.status-success, .status-delivered, .status-paid, .status-approved, .status-resolved, .status-refunded, .status-accepted { background: var(--success-soft); color: var(--success); }
.status-warning, .status-pending, .status-pending_payment, .status-cod_pending, .status-requested, .status-open, .status-processing, .status-packed { background: var(--warning-soft); color: var(--warning); }
.status-danger, .status-cancelled, .status-failed, .status-rejected, .status-returned { background: var(--danger-soft); color: var(--danger); }
.status-info, .status-shipped, .status-out_for_delivery, .status-placed, .status-confirmed { background: var(--brand-soft); color: var(--brand); }
.breadcrumbs { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--muted); padding: var(--s4) 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* stars: background-clip technique, width driven by --rating */
.stars { --size: 14px; display: inline-block; position: relative; width: calc(var(--size) * 5); height: var(--size); vertical-align: -2px;
  background: linear-gradient(90deg, var(--accent) var(--rating, 0%), var(--line-strong) var(--rating, 0%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
.stars-lg { --size: 18px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- price ---------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-now { font-weight: 500; color: var(--ink); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.88em; }
.price-off { color: var(--sale); font-size: 0.82em; font-weight: 500; }
.price-lg .price-now { font-size: var(--fs-lg); }
.tax-note { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); } }
@media (min-width: 1200px) { .product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: var(--r); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card-media .img-alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-media .img-alt { opacity: 1; } .card:hover .card-media img { transform: scale(1.03); } }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card-wish { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(255, 255, 255, .85); width: 40px; height: 40px; }
.card-wish:hover { background: #fff; }
.card-wish.is-active .icon, .wish-btn.is-active .icon { fill: var(--sale); stroke: var(--sale); }
.card-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; min-height: 40px; background: rgba(255,255,255,.94); color: var(--ink); border: 0; border-radius: var(--r-sm); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card-quick:hover { background: var(--ink); color: #fff; }
@media (hover: hover) { .card:hover .card-quick, .card-quick:focus { opacity: 1; transform: none; } }
@media (hover: none) { .card-quick { display: none; } }
.card-body { padding: var(--s3) 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card-brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: var(--fs-sm); font-weight: 400; margin: 0; line-height: 1.4; }
@media (min-width: 768px) { .card-title { font-size: var(--fs-base); } }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .price { font-size: var(--fs-sm); }
@media (min-width: 768px) { .card .price { font-size: var(--fs-base); } }
.swatches { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 1.5px #fff; }
.swatches .more { font-size: 11px; color: var(--muted); }
.card.is-soldout .card-media img { opacity: .72; }

/* product rail (horizontal scroll on mobile) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); list-style: none; margin: 0; padding-left: 0; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: 31%; gap: var(--s5); } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 3 * var(--s5)) / 4); } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--sand); overflow: hidden; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .hero-slide { grid-template-columns: 5fr 6fr; min-height: min(78vh, 680px); } }
.hero-copy { padding: var(--s7) var(--gutter) var(--s7); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-copy { padding: var(--s8) var(--s7) var(--s8) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); } }
.hero-copy h1, .hero-copy h2 { font-size: var(--fs-3xl); font-weight: 300; color: var(--brand-ink); letter-spacing: -0.02em; margin-bottom: var(--s4); }
.hero-copy p { color: var(--ink-2); max-width: 44ch; font-size: var(--fs-md); margin-bottom: var(--s6); }
.hero-ctas { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero-media { position: relative; min-height: 320px; }
@media (min-width: 900px) { .hero-media { border-top-left-radius: 280px; overflow: hidden; margin-top: var(--s6); } }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-seal { position: absolute; right: 24px; bottom: 24px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand); color: #f4ede2; display: none; place-items: center; text-align: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; border: 1px solid rgba(255,255,255,.3); outline: 1px solid var(--brand); outline-offset: 4px; }
@media (min-width: 900px) { .hero-seal { display: grid; } }
.hero-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
@media (min-width: 900px) { .hero-dots { left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); transform: none; bottom: 32px; } }
.hero-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 24px; height: 2px; background: var(--line-strong); transition: background .2s; }
.hero-dots button[aria-current="true"]::before { background: var(--brand); }

/* ---------- trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust ul { list-style: none; margin: 0; padding: var(--s5) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; gap: var(--s3); align-items: center; }
.trust .icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.2; }
.trust strong { display: block; font-weight: 500; font-size: var(--fs-sm); }
.trust span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- category arches ---------- */
.arch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .arch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
@media (min-width: 1200px) { .arch-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .arch-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.arch { text-decoration: none; display: block; text-align: center; }
.arch-media { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--sand-2); border: 1px solid var(--line); padding: 6px; }
.arch-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 4px 4px; transition: transform .7s var(--ease); }
.arch:hover .arch-media img { transform: scale(1.04); }
.arch-label { display: block; margin-top: var(--s3); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.arch-label small { display: block; letter-spacing: 0.04em; text-transform: none; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }

/* ---------- split / story ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); } .split.reverse > :first-child { order: 2; } }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 6; background: var(--sand-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.story-dark { background: var(--brand); color: #efe7da; }
.story-dark h2 { color: #fff; }
.story-dark .eyebrow { color: #d9b77c; }
.story-dark .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }
.story-dark .btn-outline:hover { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }
.story-points { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); }
.story-points li { display: flex; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.story-points .icon { color: #d9b77c; }
.story-dark .split-media { border-radius: 999px 999px var(--r-lg) var(--r-lg); }

/* occasions */
.occasion-list { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; list-style: none; padding: 0; margin: 0; }
.occasion-list a { display: inline-flex; align-items: center; min-height: 54px; padding: 0 var(--s6); border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; letter-spacing: 0.06em; background: var(--surface); transition: all .2s; }
.occasion-list a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* promo banner */
.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); display: grid; min-height: 320px; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-copy { position: relative; z-index: 1; padding: var(--s7) var(--s6); max-width: 520px; background: linear-gradient(90deg, rgba(251,248,243,.95) 40%, rgba(251,248,243,0)); }
@media (max-width: 699px) { .promo-copy { background: rgba(251,248,243,.92); margin: var(--s4); border-radius: var(--r); padding: var(--s5); align-self: end; } }

/* why us */
.why-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.why-grid li { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.why-grid h3 { font-size: var(--fs-md); font-weight: 500; margin-bottom: var(--s2); }
.why-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.why-num { font-size: var(--fs-xs); color: var(--accent); letter-spacing: .16em; display: block; margin-bottom: var(--s3); }

/* editorial / journal cards */
.edit-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .edit-grid { grid-template-columns: repeat(2, 1fr); } .edit-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.edit-card { text-decoration: none; display: block; }
.edit-card .media { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); margin-bottom: var(--s4); }
.edit-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.edit-card:hover .media img { transform: scale(1.03); }
.edit-card h3 { font-size: var(--fs-md); margin-bottom: var(--s2); font-weight: 500; }
.edit-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.meta-line { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s2); }

/* testimonials */
.quote-grid { display: grid; gap: var(--s4); grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); }
.quote-grid > * { scroll-snap-align: start; }
@media (min-width: 900px) { .quote-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); margin: 0; display: flex; flex-direction: column; gap: var(--s4); }
.quote blockquote { margin: 0; font-size: var(--fs-base); color: var(--ink-2); }
.quote blockquote::before { content: "“"; display: block; font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.quote figcaption { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); margin-top: auto; }
.quote cite { font-style: normal; font-weight: 500; }
.quote cite span { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }

/* UGC */
.ugc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .ugc-grid { grid-template-columns: repeat(6, 1fr); gap: var(--s3); } }
.ugc-grid a { aspect-ratio: 1; overflow: hidden; border-radius: var(--r); display: block; background: var(--sand-2); position: relative; }
.ugc-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ugc-grid a:hover img { transform: scale(1.05); }

/* duo (gifting + newsletter) */
.duo { display: grid; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { padding: var(--s8) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .duo > div { padding: var(--s8) var(--s7); } }
.duo .gift { background: var(--sand); display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 600px) { .duo .gift { grid-template-columns: 200px 1fr; align-items: center; } }
.duo .gift img { border-radius: var(--r-lg); aspect-ratio: 1; object-fit: cover; }
.duo .news { background: var(--brand); color: #efe7da; }
.duo .news h2 { color: #fff; }
.duo .news .eyebrow { color: #d9b77c; }
.newsletter-form { display: flex; gap: 0; margin-top: var(--s4); max-width: 480px; }
.newsletter-form .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-color: transparent; }
.newsletter-form .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.news-perks { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; list-style: none; padding: 0; }
.news-perks li { display: flex; gap: 6px; align-items: center; }
.news-perks .icon { width: 16px; height: 16px; color: #d9b77c; }

/* care strip */
.care-card { display: grid; gap: var(--s5); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
@media (min-width: 768px) { .care-card { grid-template-columns: 220px 1fr auto; padding: var(--s5) var(--s6); } }
.care-card img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 767px) { .care-card img { aspect-ratio: 16 / 9; } }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); margin-top: var(--section); padding-top: var(--s8); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { align-items: flex-start; }
.footer-brand p { color: var(--ink-2); margin-top: var(--s4); max-width: 34ch; }
.footer-col h2 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-services { grid-column: 1 / -1; display: grid; gap: var(--s4); }
@media (min-width: 900px) { .footer-services { grid-column: auto; } }
.footer-services li { display: flex; gap: var(--s3); align-items: flex-start; }
.footer-services .icon { color: var(--accent); }
.footer-services strong { display: block; font-weight: 500; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.footer-services span { color: var(--muted); font-size: var(--fs-xs); }
.social { display: flex; gap: 4px; margin-top: var(--s4); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: var(--s7); padding: var(--s5) 0; display: flex; gap: var(--s3); justify-content: space-between; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.pay-icons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; font-size: 10px; letter-spacing: .06em; color: var(--ink-2); background: var(--surface); }

/* ---------- archive ---------- */
.archive-hero { padding: var(--s5) 0 var(--s6); text-align: center; border-bottom: 1px solid var(--line); }
.archive-hero h1 { margin-bottom: var(--s3); font-weight: 300; }
.archive-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.subcat-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s5); }
.archive-layout { display: grid; gap: var(--s6); padding-top: var(--s5); }
@media (min-width: 1024px) { .archive-layout { grid-template-columns: 260px 1fr; gap: var(--s7); } }
.archive-layout.is-bare { grid-template-columns: 1fr; }
.empty-links { justify-content: center; margin: var(--s4) 0 var(--s5); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.toolbar .count { font-size: var(--fs-sm); color: var(--muted); }
.toolbar-actions { display: flex; gap: var(--s3); align-items: center; }
.sort-form .select { min-height: 42px; font-size: var(--fs-sm); width: auto; }
.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); align-items: center; }
/* filters: a right-hand drawer on mobile (opens via JS or #filters :target without JS), a sticky sidebar on desktop */
.filters-panel { right: 0; left: auto; transform: translateX(100%); }
.filters-panel:target { transform: none; visibility: visible; }
@media (min-width: 1024px) {
  .filters-panel.drawer { position: sticky; z-index: 1; top: calc(var(--header-h) + 64px); align-self: start; width: auto; transform: none; visibility: visible; background: transparent; max-height: calc(100vh - var(--header-h) - 96px); overflow-y: auto; padding-right: 6px; transition: none; }
  .filters-panel.drawer .drawer-head, .filters-panel.drawer .drawer-foot { display: none; }
  .filters-panel .drawer-body { padding: 0; overflow: visible; }
}
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group summary { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) 0; cursor: pointer; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group[open] summary .icon { transform: rotate(180deg); }
.filter-options { list-style: none; margin: 0; padding: 0 0 var(--s4); display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.filter-options label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); cursor: pointer; min-height: 34px; color: var(--ink-2); }
.filter-options input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.filter-options .count { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }
.filter-options.swatch-options { grid-template-columns: 1fr; }
fieldset.filter-options { border: 0; min-width: 0; margin: 0; }
.swatch-options .swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.filter-options.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-options label { min-width: 48px; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 10px; min-height: 40px; }
.size-options input { position: absolute; opacity: 0; pointer-events: none; }
.size-options label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-options label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.size-options .count { display: none; }
.price-custom { display: flex; gap: 8px; align-items: center; margin: 0 0 var(--s4); }
.price-custom .input { min-height: 40px; font-size: var(--fs-sm); padding: 6px 10px; }
.filters-apply { margin-top: var(--s4); }
.js .filters-apply { display: none; }
@media (max-width: 1023px) { .js .filters-panel .filters-apply { display: none; } }
.subcat-links { list-style: none; padding: 0; }
.subcat-links a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.active-filters { list-style: none; padding: 0; }
.search-inline { max-width: 520px; margin: var(--s5) auto 0; }
.archive-main { min-width: 0; }
.empty-state { text-align: center; padding: var(--s8) var(--s4); max-width: 520px; margin: 0 auto; }
.empty-state .icon { width: 48px; height: 48px; color: var(--accent); margin: 0 auto var(--s4); stroke-width: 1; }
.empty-state h2 { font-size: var(--fs-lg); }
.empty-state p { color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--s7); flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-size: var(--fs-sm); background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .gap { border: 0; background: none; }
.seo-content { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); }
.seo-content h2 { font-size: var(--fs-md); font-weight: 500; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.did-you-mean { text-align: center; margin: var(--s4) 0 0; color: var(--muted); }

/* ---------- product page ---------- */
.pdp { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s7); } }
.gallery { position: relative; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); } }
.gallery-main { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: var(--sand); aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 900px) { .gallery-main { margin: 0; order: 2; } }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: none; }
@media (min-width: 900px) { .gallery-thumbs { display: flex; flex-direction: column; gap: var(--s2); order: 1; } }
.gallery-thumbs button { padding: 0; border: 1px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; opacity: .7; }
.gallery-thumbs button[aria-current="true"], .gallery-thumbs button:hover { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s3); }
@media (min-width: 900px) { .gallery-dots { display: none; } }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.gallery-dots span.is-active { background: var(--ink); }
.gallery .card-badges { top: 12px; left: 12px; }
.pdp-info { min-width: 0; }
.pdp-brand { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.pdp-title { font-size: var(--fs-xl); font-weight: 400; margin: var(--s2) 0 var(--s3); }
.pdp-rating { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s4); }
.pdp-rating a { color: inherit; }
.pdp-price { margin-bottom: 4px; }
.pdp-meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s5); }
.pdp-short { color: var(--ink-2); margin-bottom: var(--s5); }
.option { margin-bottom: var(--s5); border: 0; padding: 0; min-width: 0; }
.option legend, .option-head { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-size: var(--fs-sm); margin-bottom: var(--s3); padding: 0; }
.option legend strong, .option-head strong { font-weight: 500; }
.option-head a, .option-head button { font-size: var(--fs-xs); }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.colour-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); padding: 3px; background: var(--surface); position: relative; }
.colour-btn span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.colour-btn[aria-pressed="true"] { border: 2px solid var(--ink); padding: 2px; }
.colour-btn.is-unavailable::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--ink-2); transform: rotate(45deg); }
.size-btn { min-width: 52px; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); font-size: var(--fs-sm); position: relative; }
.size-btn:hover { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn.is-unavailable { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.04) 8px 9px), var(--surface); text-decoration: line-through; }
.size-btn.is-unavailable[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.size-btn[disabled] { opacity: .35; cursor: not-allowed; }
.stock-msg { font-size: var(--fs-sm); margin: calc(-1 * var(--s2)) 0 var(--s4); min-height: 1.4em; }
.stock-msg.is-low { color: var(--warning); }
.stock-msg.is-out { color: var(--danger); }
.stock-msg.is-in { color: var(--success); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 1.1rem; }
.qty input { width: 42px; text-align: center; border: 0; height: 100%; -moz-appearance: textfield; background: transparent; font-size: 16px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); margin-bottom: var(--s3); }
.buy-row .btn { width: 100%; }
.wish-btn { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.buy-now { margin-bottom: var(--s5); }
.notify-box { background: var(--sand); padding: var(--s4); border-radius: var(--r); margin-bottom: var(--s5); }
.notify-box[hidden] { display: none; }
.service-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: var(--s5); }
.service-box > div { padding: var(--s4); }
.service-box > div + div { border-top: 1px solid var(--line); }
.pin-form { display: flex; gap: 8px; margin-top: 8px; }
.pin-form .input { min-height: 42px; font-size: 15px; }
.pin-form .btn { min-height: 42px; }
.pin-result { font-size: var(--fs-sm); margin: 8px 0 0; }
.pin-result.is-ok { color: var(--success); }
.pin-result.is-error { color: var(--danger); }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.service-list li { display: flex; gap: 10px; align-items: center; }
.service-list .icon { width: 20px; height: 20px; color: var(--accent); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) 0; cursor: pointer; list-style: none; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 0 var(--s5); color: var(--ink-2); font-size: var(--fs-sm); }
.acc-body ul { margin: 0; padding-left: 1.1em; }
.acc-body li + li { margin-top: 4px; }
.spec-table { font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--muted); width: 42%; padding-right: var(--s3); }
.spec-table a { color: inherit; }
.size-table { font-size: var(--fs-sm); text-align: center; }
.size-table th, .size-table td { padding: 8px; border: 1px solid var(--line); }
.size-table thead th { background: var(--sand); font-weight: 500; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; gap: var(--s3); align-items: center; transform: translateY(110%); transition: transform .25s var(--ease); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .info { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.sticky-cta .info strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* reviews */
.reviews-summary { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
@media (min-width: 768px) { .reviews-summary { grid-template-columns: 240px 1fr auto; align-items: center; } }
.reviews-score { font-size: var(--fs-2xl); font-weight: 300; line-height: 1; }
.bars { display: grid; gap: 6px; font-size: var(--fs-xs); }
.bar-row { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.bar { height: 6px; background: var(--sand-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.review-list { list-style: none; padding: 0; margin: 0; }
.review { padding: var(--s5) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s2); }
@media (min-width: 768px) { .review { grid-template-columns: 200px 1fr; gap: var(--s5); } }
.review-author { font-size: var(--fs-sm); display: flex; gap: var(--s3); align-items: flex-start; }
.review-author .verified, .review-author .fit-meter { display: block; font-size: var(--fs-xs); }
.review-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand-2); color: var(--brand); display: grid; place-items: center; font-weight: 500; }
.review-main { min-width: 0; }
.review-author strong { display: block; font-weight: 500; }
.verified { color: var(--success); font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 4px; }
.review h3 { font-size: var(--fs-base); font-weight: 500; margin: var(--s2) 0; }
.review p { color: var(--ink-2); font-size: var(--fs-sm); }
.review-reply { background: var(--sand); padding: var(--s3) var(--s4); border-radius: var(--r); font-size: var(--fs-sm); margin-top: var(--s3); }
.review-images { display: flex; gap: 8px; margin-top: var(--s2); }
.review-images img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.fit-meter { font-size: var(--fs-xs); color: var(--muted); }
.review-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-top: var(--s5); }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { cursor: pointer; color: var(--line-strong); font-size: 1.75rem; line-height: 1; padding: 2px; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--accent); }
.rating-input input:focus-visible + label { outline: 2px solid var(--focus); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: var(--s4); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28, 38, 34, .5); }
.modal-dialog { position: relative; background: var(--bg); border-radius: var(--r-lg); width: min(100%, 980px); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--surface); }
.modal-loading { padding: var(--s8); text-align: center; color: var(--muted); }
@media (max-width: 699px) { .modal { padding: 0; place-items: end stretch; } .modal-dialog { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; } }
.qv { display: grid; gap: var(--s5); padding: var(--s5); }
@media (min-width: 700px) { .qv { grid-template-columns: 1fr 1fr; padding: var(--s6); } }
.qv .gallery { position: static; display: block; }
.qv .gallery-main { margin: 0; }
.qv .gallery-thumbs { display: none; }
.qv .gallery-dots { display: flex; }
.qv .pdp-title { font-size: var(--fs-lg); }

/* spinner */
.spinner { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after { border-color: var(--ink); border-right-color: transparent; }

/* ---------- cart ---------- */
.page-head { padding: var(--s6) 0 var(--s5); }
.page-head h1 { font-weight: 300; margin-bottom: var(--s2); }
.cart-layout { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s7); align-items: start; } }
.free-ship-meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: var(--fs-sm); margin-bottom: var(--s5); }
.meter { height: 4px; background: var(--sand-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.line-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .line-item { grid-template-columns: 120px 1fr auto; } }
.line-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }
.line-item h3 { font-size: var(--fs-base); font-weight: 500; margin: 0 0 4px; }
.line-item h3 a { text-decoration: none; }
.line-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.line-controls { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.line-controls .select { min-height: 40px; width: auto; font-size: var(--fs-sm); padding-top: 6px; padding-bottom: 6px; }
.line-actions { display: flex; gap: var(--s4); margin-top: var(--s3); font-size: var(--fs-sm); flex-wrap: wrap; }
.line-actions form { display: inline; }
.line-price { text-align: right; grid-column: 2; }
@media (min-width: 600px) { .line-price { grid-column: auto; } }
.line-issue { color: var(--danger); font-size: var(--fs-sm); margin-top: 6px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.summary h2 { font-size: var(--fs-md); font-weight: 500; margin-bottom: var(--s4); }
.summary-rows { display: grid; gap: 10px; font-size: var(--fs-sm); margin: var(--s4) 0; }
.summary-rows div { display: flex; justify-content: space-between; gap: var(--s3); }
.summary-rows .discount { color: var(--success); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s2); font-size: var(--fs-md); font-weight: 500; }
.summary-total small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.savings-note { background: var(--success-soft); color: var(--success); font-size: var(--fs-sm); padding: 8px 12px; border-radius: var(--r-sm); margin-top: var(--s3); }
.coupon-box { margin: var(--s4) 0; }
.coupon-box summary { cursor: pointer; font-size: var(--fs-sm); color: var(--brand); }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: var(--success-soft); color: var(--success); padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s3); }
.secure-note .icon { width: 16px; height: 16px; }

/* ---------- checkout ---------- */
.checkout-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.checkout-header .header-inner { grid-template-columns: 1fr auto 1fr; }
.checkout-steps { display: flex; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s5); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: var(--s2); }
.checkout-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); }
.checkout-steps .is-current { color: var(--ink); font-weight: 500; }
.checkout-steps .is-done { color: var(--brand); }
.co-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s4); }
.co-step-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); gap: var(--s3); }
.co-step-head h2 { font-size: var(--fs-md); font-weight: 500; margin: 0; display: flex; gap: var(--s3); align-items: center; }
.co-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); display: inline-grid; place-items: center; font-size: var(--fs-sm); }
.co-step.is-done .co-step-num { background: var(--brand); color: #fff; }
.co-step-body { padding: 0 var(--s5) var(--s5); }
.co-step-summary { padding: 0 var(--s5) var(--s4); font-size: var(--fs-sm); color: var(--muted); display: none; }
.js .co-step.is-collapsed .co-step-body { display: none; }
.js .co-step.is-collapsed.is-done .co-step-summary { display: block; }
.js .co-step.is-locked { opacity: .6; }
.co-edit { display: none; }
.js .co-step.is-collapsed.is-done .co-edit { display: inline-flex; }
.choice-list { display: grid; gap: var(--s3); }
.choice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #fcfefd; }
.choice input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.choice .choice-main { flex: 1; }
.choice strong { font-weight: 500; display: block; }
.choice small { color: var(--muted); display: block; font-size: var(--fs-sm); }
.choice .choice-price { font-weight: 500; white-space: nowrap; }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.saved-addresses { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 700px) { .saved-addresses { grid-template-columns: 1fr 1fr; } }
.summary-items { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); max-height: 340px; overflow-y: auto; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); font-size: var(--fs-sm); align-items: center; }
.summary-item img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }
.summary-item .thumb { position: relative; }
.summary-item .qty-badge { position: absolute; top: -6px; right: -6px; background: var(--ink-2); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.summary-item small { display: block; color: var(--muted); }
.tax-lines { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- order pages / account ---------- */
.confirm-hero { text-align: center; padding: var(--s7) 0 var(--s6); }
.confirm-hero .check-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto var(--s4); }
.confirm-hero .check-circle .icon { width: 30px; height: 30px; stroke-width: 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.panel h2 { font-size: var(--fs-md); font-weight: 500; margin-bottom: var(--s4); }
.panel-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1fr; } .panel-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 var(--s5) var(--s6); font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--muted); }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); counter-reset: s; }
.progress-steps li { text-align: center; font-size: var(--fs-xs); color: var(--muted); position: relative; padding-top: 28px; }
.progress-steps li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--sand-2); transform: translateX(-50%); z-index: 1; }
.progress-steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--sand-2); }
.progress-steps li:first-child::after { display: none; }
.progress-steps li.is-done { color: var(--ink); }
.progress-steps li.is-done::before, .progress-steps li.is-done::after { background: var(--brand); }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); align-items: center; }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }
.order-item small { display: block; color: var(--muted); }
.account-layout { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 1024px) { .account-layout { grid-template-columns: 250px 1fr; gap: var(--s7); } }
.account-nav { font-size: var(--fs-sm); }
.account-nav ul { list-style: none; padding: 0; margin: 0; }
.account-nav h2 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: var(--s5) 0 var(--s2); font-weight: 500; }
.account-nav a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); }
.account-nav a:hover { background: var(--sand); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
@media (max-width: 1023px) {
  .account-nav { overflow-x: auto; }
  .account-nav .nav-groups { display: flex; gap: var(--s2); }
  .account-nav h2 { display: none; }
  .account-nav ul { display: flex; gap: 4px; }
  .account-nav a { white-space: nowrap; border: 1px solid var(--line); }
}
.stat-cards { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); margin-bottom: var(--s5); }
@media (min-width: 900px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); text-decoration: none; display: block; }
.stat-card strong { display: block; font-size: var(--fs-xl); font-weight: 300; }
.stat-card span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { font-size: var(--fs-sm); min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { font-weight: 500; color: var(--muted); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.address-cards { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .address-cards { grid-template-columns: repeat(2, 1fr); } }
.address-card { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); background: var(--surface); font-size: var(--fs-sm); position: relative; }
.address-card .badge { position: absolute; top: var(--s3); right: var(--s3); }
.address-card .actions { display: flex; gap: var(--s4); margin-top: var(--s3); }
.auth-wrap { max-width: 460px; margin: var(--s7) auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
@media (min-width: 600px) { .auth-card { padding: var(--s7); } }
.auth-card h1 { font-size: var(--fs-xl); text-align: center; }
.auth-wrap.has-aside { max-width: 1040px; display: grid; gap: var(--s5); align-items: stretch; }
@media (min-width: 900px) { .auth-wrap.has-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.auth-aside { background: var(--brand, #1f4d42); color: #f4ede1; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.auth-aside-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.auth-aside-body { padding: var(--s6) var(--s5); }
.auth-aside .eyebrow { color: #d9b56a; display: block; margin-bottom: var(--s2); }
.auth-aside h2 { color: #fff; font-weight: 300; font-size: var(--fs-xl); margin-bottom: var(--s4); }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.auth-benefits li { display: flex; gap: var(--s3); align-items: flex-start; line-height: 1.5; }
.auth-benefits .icon { color: #d9b56a; flex: none; margin-top: 3px; }
.auth-benefits strong { color: #fff; font-weight: 500; }
@media (max-width: 899px) { .auth-aside-media { display: none; } }
.auth-alt { text-align: center; font-size: var(--fs-sm); margin-top: var(--s5); color: var(--muted); }
.ticket-thread { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s3); }
.msg { padding: var(--s4); border-radius: var(--r); background: var(--sand); font-size: var(--fs-sm); max-width: 85%; }
.msg.from-staff { background: var(--brand-soft); margin-left: auto; }
.msg .who { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; display: block; }

/* blog */
.post-header { text-align: center; max-width: 820px; margin: 0 auto var(--s6); }
.post-hero { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s6); aspect-ratio: 3 / 2; background: var(--sand-2); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-body { margin: 0 auto; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: var(--s5) 0; }

/* faq */
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s5); }
.faq-group h2 { font-size: var(--fs-lg); margin-top: var(--s6); }

/* cookie bar */
.cookie-bar { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 380; max-width: 520px; background: var(--ink); color: #f1ebe0; padding: var(--s4) var(--s5); border-radius: var(--r); font-size: var(--fs-sm); display: flex; gap: var(--s4); align-items: center; box-shadow: var(--shadow); }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: #fff; }

/* error / system pages */
.system-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--s8) var(--gutter); }
.system-page .code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 200; color: var(--accent); line-height: 1; }
.system-page p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .announcement, .no-print, .cookie-bar, .toast-region { display: none !important; }
  body { background: #fff; }
}

/* ---------- layout additions ---------- */
.swatches { list-style: none; padding: 0; }
.swatch-dot { background: var(--sw, #ccc); }
.card { position: relative; }
.card-wish-form { margin: 0; }
@media (min-width: 1100px) {
  .main-nav { border-top: 1px solid var(--line); }
  .main-nav > ul { justify-content: center; }
  .main-nav > ul > li > a { height: 48px; }
  .main-nav a[aria-current="page"] { color: var(--brand); }
}
.header-left { display: flex; align-items: center; gap: 2px; }
.header-right { justify-content: flex-end; }
main:focus { outline: none; }
.duo > div:only-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .pdp .gallery .card-badges { left: calc(76px + var(--s3) + 12px); } .gallery { top: calc(var(--header-h) + 64px); } }
.stock-msg:empty { display: none; }

/* ---------- page structure (hero, sidebar, help, footer band, floating buttons) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sand) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding-bottom: var(--s7); }
.page-hero .breadcrumbs { padding-bottom: var(--s5); }
.page-hero-inner { display: grid; gap: var(--s6); align-items: center; }
.page-hero.is-center .page-hero-copy { text-align: center; margin: 0 auto; max-width: 720px; }
.page-hero.is-center .page-hero-actions { justify-content: center; }
.page-hero h1 { font-weight: 300; font-size: var(--fs-3xl); color: var(--brand-ink); letter-spacing: -0.02em; margin-bottom: var(--s3); }
.page-hero-intro { color: var(--ink-2); font-size: var(--fs-md); max-width: 60ch; margin: 0 auto var(--s3); }
.page-hero.is-left .page-hero-intro { margin-left: 0; }
.page-hero-meta { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.page-hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.page-hero-media { border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); border: 1px solid var(--line); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero.has-media .page-hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--s8); }
  .page-hero-media { aspect-ratio: 5 / 4; }
}
.page-body { padding-top: var(--s7); padding-bottom: var(--s7); }
.page-layout { display: grid; gap: var(--s7); }
@media (min-width: 1024px) { .page-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; } }
.page-main .prose { max-width: 70ch; font-size: 1.0625rem; }
.page-main .prose h2 { scroll-margin-top: calc(var(--header-h) + 72px); padding-top: var(--s5); border-top: 1px solid var(--line); }
.page-main .prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.page-main .prose ul li::marker { color: var(--accent); }
.page-main .prose table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.page-main .prose th { background: var(--sand); font-weight: 500; }
.page-foot-note { margin-top: var(--s7); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); color: var(--ink-2); }
.page-aside { display: grid; gap: var(--s5); align-content: start; }
@media (min-width: 1024px) { .page-aside { position: sticky; top: calc(var(--header-h) + 64px); } }
.toc, .aside-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.toc h2, .aside-links h2, .help-card h2 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s3); color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-size: var(--fs-xs); padding-top: 2px; }
.toc a:hover, .toc a[aria-current] { background: var(--sand); color: var(--ink); }
.toc-inline { margin-bottom: var(--s6); }
.page-aside .toc { display: none; }
@media (min-width: 1024px) { .toc-inline { display: none; } .page-aside .toc { display: block; } }
.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 11px 0; text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); }
.aside-links a:hover { color: var(--brand); }
.aside-links a[aria-current] { color: var(--brand); font-weight: 500; }
.help-card { background: var(--brand); color: #efe7da; border-radius: var(--r-lg); padding: var(--s5); position: relative; overflow: hidden; }
.help-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(217, 183, 124, .35); }
.help-card h2 { color: #fff; }
.help-card p { font-size: var(--fs-sm); color: #d8d0c2; }
.help-card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #d9b77c; margin-bottom: var(--s3); }
.help-card ul { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.help-card li { display: flex; gap: 10px; align-items: center; }
.help-card li .icon { color: #d9b77c; }
.help-card a { color: #fff; }
.help-card .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.help-card .btn-outline:hover { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }
.page-products .product-grid { margin: 0; }

/* service strip above the footer */
.service-strip { border-top: 1px solid var(--line); border-bottom: 0; margin-top: var(--section); }
.service-strip + .site-footer { margin-top: 0; }
main:has(> .section:last-child, > .section-alt:last-child) + .site-footer { margin-top: 0; }
main:has(> .section:last-child, > .section-alt:last-child) + .service-strip { margin-top: 0; }

/* footer newsletter band */
.footer-news { background: var(--brand); color: #efe7da; padding: var(--s7) 0; margin-top: calc(-1 * var(--s8)); margin-bottom: var(--s8); }
.footer-news h2 { color: #fff; margin-bottom: var(--s2); }
.footer-news p { margin: 0; color: #d8d0c2; }
.footer-news .eyebrow { color: #d9b77c; }
.footer-news-inner { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .footer-news-inner { grid-template-columns: 1.2fr 1fr; gap: var(--s8); } .footer-news .newsletter-form { margin: 0; justify-self: end; width: 100%; } }
.logo-has-image img { display: block; max-width: 220px; object-fit: contain; }
.footer-brand .logo-sub { display: block; }

/* floating buttons: WhatsApp + back to top */
.float-btn { position: fixed; right: max(16px, env(safe-area-inset-right)); z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: var(--shadow); transition: transform .2s var(--ease), opacity .2s; }
.float-btn:hover { transform: translateY(-2px); }
.float-whatsapp { bottom: max(16px, env(safe-area-inset-bottom)); background: #1f7a4d; color: #fff; }
.float-whatsapp:hover { color: #fff; }
.float-whatsapp .icon { width: 24px; height: 24px; }
.back-to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); background: var(--surface); color: var(--brand);
  background-image: conic-gradient(var(--accent) var(--progress, 0%), transparent 0); padding: 0; }
.back-to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.back-to-top .icon { position: relative; transform: rotate(180deg); }
.back-to-top[hidden] { display: grid; opacity: 0; pointer-events: none; transform: translateY(8px); }
body:not(:has(.float-whatsapp)) .back-to-top { bottom: max(16px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .float-btn { transition: none; } }
@media print { .float-btn { display: none !important; } }
@media (max-width: 899px) { body:has(.sticky-cta.is-visible) .float-whatsapp { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }
  body:has(.sticky-cta.is-visible) .back-to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 136px); } }

/* contact page */
.contact-cards { list-style: none; padding: 0; margin: 0 0 var(--s7); display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); } }
.contact-card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.contact-card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--s3); }
.contact-card strong { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.contact-card-value { font-size: var(--fs-md); word-break: break-word; }
.contact-card-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
@media (max-width: 599px) {
  .contact-cards { grid-template-columns: 1fr; margin-bottom: var(--s6); }
  .contact-card { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s4); padding: var(--s4); }
  .contact-card-icon { grid-row: span 3; margin: 0; }
  .contact-card-value { word-break: normal; overflow-wrap: anywhere; }
}
.contact-layout { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); } }
.contact-form { padding: var(--s6); margin: 0; }
.contact-form h2 { font-size: var(--fs-lg); font-weight: 400; margin-bottom: var(--s2); }
.contact-side { display: grid; gap: var(--s6); }
.contact-side h2 { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.contact-address p { margin: 0; color: var(--ink-2); }
.contact-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sand-2); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-faqs .link-arrow { margin-top: var(--s4); }

/* FAQ page */
.faq-search { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.faq-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-search .input { padding-left: 44px; background: var(--surface); min-height: 52px; border-radius: var(--r-pill); }
.page-hero-actions:has(.faq-search) { display: block; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 72px); }
.faq-group[hidden] { display: none; }
.faq-empty { padding: var(--s5); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); text-align: center; }
.faq-outro { margin-top: var(--s6); }

/* journal */
.page-hero .subcat-links { margin-top: 0; justify-content: center; }
.post-feature { display: grid; gap: var(--s5); text-decoration: none; margin-bottom: var(--s8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 0; } }
.post-feature .media { aspect-ratio: 3 / 2; background: var(--sand-2); overflow: hidden; }
.post-feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-feature:hover .media img { transform: scale(1.03); }
.post-feature-copy { padding: var(--s5); }
@media (min-width: 900px) { .post-feature-copy { padding: var(--s7); } }
.post-feature h2 { font-size: var(--fs-xl); }
.post-feature p { color: var(--ink-2); }
.post-head { background: linear-gradient(180deg, var(--sand) 0%, var(--bg) 100%); padding-bottom: var(--s5); margin-bottom: var(--s5); }
.post-header h1 { font-weight: 300; font-size: var(--fs-3xl); color: var(--brand-ink); }
.post-dek { font-size: var(--fs-md); color: var(--ink-2); max-width: 60ch; margin: 0 auto var(--s3); }
.post-body { font-size: 1.0625rem; }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s4) 0; margin: var(--s6) 0; }
.tag-list { list-style: none; padding: 0; margin: 0; }
.share-row { display: flex; align-items: center; gap: 2px; }
.share-row > span { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; margin-right: var(--s2); color: var(--muted); }
.author-box { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-box { margin-bottom: var(--s7); }
.author-box .eyebrow { display: block; margin-bottom: 2px; }
.author-box p:last-child { margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--fs-sm); }
.author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: var(--fs-lg); }

/* ---------- invoice / print documents ---------- */
.print-doc { background: #fff; }
.invoice { max-width: 960px; margin: 0 auto; padding: var(--s6) var(--gutter); font-size: var(--fs-sm); }
.invoice-actions { text-align: right; margin-bottom: var(--s4); }
.invoice-head { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.invoice-brand { font-size: var(--fs-lg); letter-spacing: .1em; text-transform: uppercase; }
.invoice-head p { margin: 4px 0; }
.invoice-meta h1 { font-size: var(--fs-lg); margin-bottom: var(--s3); }
.invoice-parties h2 { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.invoice-table { margin: var(--s4) 0; font-size: 13px; }
.invoice-table td, .invoice-table th { vertical-align: top; }
.invoice-totals { margin-left: auto; max-width: 380px; }
.invoice-foot { border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s3); }
@media print { .no-print { display: none !important; } .invoice { padding: 0; } body { font-size: 12px; } }

/* account */
.account-main { min-width: 0; }
.account-main > .page-head { margin-top: var(--s5); }
.account-logout { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: var(--fs-sm); color: var(--muted); }
.address-card .actions form { display: inline; }
.account-main fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.account-main legend { font-weight: 500; margin-bottom: var(--s2); padding: 0; }
@media (max-width: 1023px) {
  .account-layout { gap: var(--s3); padding-top: var(--s3); }
  .account-main > .page-head { margin-top: 0; padding-top: var(--s3); }
  .account-nav { margin: 0 calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px); scrollbar-width: none; }
}

/* ---- Shipping tracking (shipping integration) ---- */
.track-result { max-width: 760px; margin: 0 auto var(--s7); }
.track-steps { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.track-step { position: relative; padding: 0 0 var(--s4) var(--s6); color: var(--muted); font-size: var(--fs-sm); }
.track-step::before { content: ""; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.track-step::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--sand-2); }
.track-step:last-child { padding-bottom: 0; }
.track-step:last-child::after { display: none; }
.track-step.is-done { color: var(--ink); }
.track-step.is-done::before { background: var(--brand); border-color: var(--brand); }
.track-step.is-done:not(.is-current)::after { background: var(--brand); }
.track-step.is-current::before { box-shadow: 0 0 0 4px var(--brand-soft); }
.track-step.is-current .track-label { font-weight: 500; }
.track-label { display: block; }
.track-step time { display: block; font-size: var(--fs-xs); color: var(--muted); }
.track-awb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--s4); }
.track-events-title { font-size: var(--fs-base); font-weight: 500; margin: var(--s5) 0 var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.track-events li strong { font-weight: 500; }
.track-result .btn + .btn-link { margin-left: var(--s4); }
