/* ============================================
   BNS Fidgets — design system (professional theme)
   Clean, modern storefront. Mint-green/charcoal
   palette (matches the BNS Fidgets logo), soft
   shadows, no cartoon effects.
   ============================================ */
:root {
  --ink: #1A2623;
  --ink-soft: #5B6B67;
  --porcelain: #F7F9F8;
  --porcelain-dim: #EEF2F0;
  --surface: #FFFFFF;
  --border: #E1E7E4;
  --border-strong: #CBD5D1;

  --brand: #4BC793;
  --brand-deep: #2E9B70;
  --brand-pale: #E3F9EF;
  --mint: #4BC793;
  --mint-pale: #BFEDD7;
  --accent: #B5502E;
  --accent-pale: #FBEAE3;
  --white: #FFFFFF;
  --danger: #B3392A;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --border-w: 1px;

  --shadow-sm: 0 1px 2px rgba(20,30,28,0.06), 0 1px 1px rgba(20,30,28,0.04);
  --shadow-card: 0 2px 6px rgba(20,30,28,0.06), 0 1px 2px rgba(20,30,28,0.05);
  --shadow-lift: 0 16px 32px rgba(20,30,28,0.14), 0 4px 10px rgba(20,30,28,0.08);

  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

:root[data-theme="dark"] {
  --ink: #EAF2ED;
  --ink-soft: #9FB0AB;
  --porcelain: #101815;
  --porcelain-dim: #17211D;
  --surface: #1A2420;
  --border: #2A3833;
  --border-strong: #3B4B44;

  --brand: #4BC793;
  --brand-deep: #7EDCB1;
  --brand-pale: #1E332A;
  --mint: #4BC793;
  --mint-pale: #2A4A3B;
  --accent: #E08A63;
  --accent-pale: #3A241C;
  --white: #FFFFFF;
  --danger: #E07A6A;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.2);
  --shadow-card: 0 2px 6px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lift: 0 16px 32px rgba(0,0,0,0.45), 0 4px 10px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] body { background: var(--porcelain); }
:root[data-theme="dark"] .cart-btn,
:root[data-theme="dark"] .feature-strip,
:root[data-theme="dark"] .cta-banner,
:root[data-theme="dark"] .site-footer { background: #0C1210; }
:root[data-theme="dark"] .badge { color: var(--ink); }
:root[data-theme="dark"] .nav-toggle span { background: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  opacity: 0;
}
body.page-ready {
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.4em;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* anchor targets should clear the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  body { opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: var(--border-w) solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--porcelain-dim); }
.btn-on-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn.is-adding { animation: btn-pulse 0.4s var(--ease); }
@keyframes btn-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  background: var(--brand);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img, .brand-mark svg { width: 68%; height: 68%; object-fit: contain; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  display: inline-block;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--porcelain-dim); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--brand-pale); color: var(--brand-deep); font-weight: 600; }

.nav-toggle { display: none; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart-btn:hover { transform: translateY(-1px); background: #0F1917; }
.cart-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}
.cart-count.bump { animation: bump 0.35s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- account / sign-in ---------- */
.account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.account-btn:hover { transform: translateY(-1px); background: var(--porcelain-dim); }
.account-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.account-btn.is-signed-in { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-pale); }
@media (max-width: 720px) { .account-btn span.account-label { display: none; } .account-btn { padding: 9px 11px; } }

.account-overlay {
  position: fixed; inset: 0; background: rgba(20,30,28,0.42);
  z-index: 95; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.account-overlay.open { opacity: 1; pointer-events: auto; }

.account-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(380px, calc(100% - 32px));
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); z-index: 96;
  padding: 30px 28px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.account-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.account-modal h3 { margin: 0 0 6px; }
.account-modal p.hint { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 20px; }
.account-modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer;
  font-size: 0.95rem; line-height: 1; display: grid; place-items: center;
}
.account-error { color: var(--danger); font-size: 0.85rem; margin: -8px 0 14px; display: none; }
.account-error.show { display: block; }
.account-signed-in-box { text-align: center; }
.account-signed-in-box .avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand-pale); color: var(--brand-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; margin: 0 auto 14px;
  font-family: var(--font-display);
}
.account-signed-in-box p.email { font-weight: 600; margin-bottom: 4px; word-break: break-all; }

/* ---------- account modal: form switch link ---------- */
.account-switch { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; }
.account-switch button {
  background: none; border: none; color: var(--brand-deep); font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; text-decoration: underline;
}

/* ---------- settings panel ---------- */
.settings-section { margin-bottom: 22px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 12px;
}
.settings-owner-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-pale); color: var(--brand-deep);
  font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.theme-toggle { display: flex; gap: 8px; }
.theme-toggle button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--font-display);
  font-weight: 600; font-size: 0.86rem; transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle button svg { width: 16px; height: 16px; }
.theme-toggle button.is-active { border-color: var(--brand); background: var(--brand-pale); color: var(--brand-deep); }
.settings-save-msg { color: var(--brand-deep); font-size: 0.85rem; margin-top: 8px; display: none; }
.settings-save-msg.show { display: block; }

/* ---------- admin price editing (owner sign-in only) ---------- */
body.admin-mode .price,
body.admin-mode .product-price {
  cursor: pointer;
  border-bottom: 1px dashed var(--brand-deep);
  position: relative;
}
body.admin-mode .price:not(.is-editing)::after,
body.admin-mode .product-price:not(.is-editing)::after {
  content: "✎";
  font-size: 0.7em;
  margin-left: 5px;
  color: var(--brand-deep);
  vertical-align: super;
}
.price-edit-form { display: inline-flex; align-items: center; gap: 6px; }
.price-edit-form input {
  width: 74px; padding: 4px 7px; border-radius: var(--radius-sm); border: 1px solid var(--brand);
  font-family: var(--font-display); font-weight: 700; font-size: 1em;
}
.price-edit-form button {
  border: none; background: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 0.85rem; line-height: 1;
}
.price-edit-form .price-save { background: var(--brand); color: var(--white); }
.price-edit-form .price-cancel { background: var(--porcelain-dim); color: var(--ink-soft); }
.admin-banner {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white); font-size: 0.82rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; z-index: 80; box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 8px;
}
.admin-banner svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-shadow: var(--shadow-lift);
    transform-origin: top right;
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    z-index: 60;
  }
  .nav-links.open { transform: scale(1); opacity: 1; pointer-events: auto; }
  .nav-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    align-items: center; justify-content: center;
    cursor: pointer;
    order: 3;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px;
    background: var(--ink); position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .brand-word { font-size: 1.05rem; }
  .cart-btn span.cart-label { display: none; }
}

/* ---------- feature strip ---------- */
.feature-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--ink);
}
.feature-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 11px 28px;
  flex-wrap: wrap;
}
.feature-strip .item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500;
  white-space: nowrap;
}
.feature-strip svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-pale); border-bottom: 1px solid var(--border); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 76px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--ink);
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { position: relative; display: grid; place-items: center; }
.sticker-photo {
  position: relative;
  width: min(100%, 260px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.sticker-photo:hover { transform: translateY(-4px); }
.sticker-photo img { display: block; width: 100%; height: auto; }

.stat-row { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.stat-row .stat { font-family: var(--font-display); }
.stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
}
.stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero-art { order: -1; }
  .sticker-photo { width: min(56%, 220px); margin: 0 auto; }
}

/* ---------- section shell ---------- */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.section-kicker {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-deep);
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78rem;
  margin-bottom: 8px; display: block;
}

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.card-media { aspect-ratio: 4/3.1; background: var(--porcelain-dim); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  background: var(--ink); color: var(--white);
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}
.badge.badge-new { background: var(--brand); }
.badge.badge-soon { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border-strong); }
.badge.badge-order { background: var(--brand-pale); color: var(--brand-deep); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.08rem; }
.card-body .desc { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.price.tbd { color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }

.card-actions { padding: 0 20px 20px; display: flex; gap: 10px; }

.pill-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.83rem;
  text-decoration: none; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 14px; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.pill-link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.sample-note {
  margin-top: 30px; font-size: 0.88rem; color: var(--ink-soft);
  border-left: 2px solid var(--border-strong); padding-left: 14px;
}

/* ---------- empty product slots ---------- */
.card.is-slot { cursor: default; }
.card.is-slot:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--border); }
.slot-media {
  aspect-ratio: 4/3.1;
  border-bottom: 1px dashed var(--border-strong);
  background: repeating-linear-gradient(135deg, var(--porcelain-dim), var(--porcelain-dim) 10px, var(--porcelain) 10px, var(--porcelain) 20px);
  display: grid;
  place-items: center;
  color: var(--border-strong);
}
.slot-media svg { width: 40px; height: 40px; }
.slot-body { padding: 18px 20px 22px; text-align: center; color: var(--ink-soft); }
.slot-body .slot-label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.slot-body .slot-sub { font-size: 0.82rem; margin-top: 4px; margin-bottom: 0; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--porcelain-dim);
  box-shadow: var(--shadow-card);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.locale-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.locale-row .chip {
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.88rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  color: var(--ink-soft);
}
.locale-row .chip svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.review-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.review-strip::-webkit-scrollbar { height: 8px; }
.review-strip::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.review-strip-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.review-strip-card .review-product {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 10px;
}
.review-strip-card p { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.review-strip-card cite { font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.review-card p { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
.review-card cite { font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.review-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink); color: var(--porcelain);
  border-radius: var(--radius-lg);
  padding: 56px 44px; text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); border-top: 1px solid var(--ink); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: var(--white); font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  border-radius: 999px; border: none; background: var(--brand); color: var(--white);
  font-family: var(--font-display); font-weight: 600; padding: 0 20px; cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter-form button:hover { background: var(--brand-deep); }

.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-secure { display: flex; align-items: center; gap: 8px; }
.footer-secure svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- page hero (shop/about/product) ---------- */
.page-hero { background: var(--brand-pale); border-bottom: 1px solid var(--border); padding: 52px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--ink); }
.page-hero p { max-width: 56ch; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- why us (about) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.why-card .why-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--brand-pale);
  color: var(--brand-deep);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.why-card .why-icon svg { width: 20px; height: 20px; }
.why-card p { color: var(--ink-soft); margin: 0; }

.bg-dim { background: var(--porcelain-dim); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 32px; } }

.product-gallery {
  position: sticky;
  top: 96px;
}
@media (max-width: 900px) { .product-gallery { position: static; } }
.product-gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--porcelain-dim);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: contain; padding: 30px;
  transition: transform 0.5s var(--ease);
}
.product-gallery-main:hover img { transform: scale(1.04); }

.product-gallery-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.product-gallery-thumbs button {
  width: 64px; height: 64px; padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--porcelain-dim);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.product-gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-gallery-thumbs button:hover { border-color: var(--border-strong); }
.product-gallery-thumbs button.is-active { border-color: var(--brand); }

.product-info .section-kicker { margin-bottom: 10px; }
.product-info h1 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 8px; }
.product-rating-summary {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--ink-soft);
  margin-bottom: 14px;
}
.product-rating-summary .stars { margin: 0; }
.product-rating-summary a { color: var(--ink-soft); text-decoration: underline; }
.product-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--brand-deep);
  margin-bottom: 18px; display: block;
}
.product-desc { font-size: 1.02rem; color: var(--ink-soft); max-width: 54ch; }

/* ---------- Shopify-style buy box ---------- */
.buy-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin: 22px 0;
}
.buy-box-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.buy-box .product-actions { margin: 18px 0 0; }
.buy-box .btn-block { width: 100%; }
.buy-box-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.product-meta-list {
  list-style: none; margin: 22px 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.product-meta-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--ink-soft);
}
.product-meta-list li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.product-meta-list li b { color: var(--ink); font-weight: 600; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty-stepper button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none;
  background: var(--surface);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease;
}
.qty-stepper button:hover { background: var(--porcelain-dim); }
.qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-stepper input {
  width: 46px; text-align: center; border: none; border-left: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; height: 40px;
  -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: flex; align-items: center; gap: 16px; margin: 26px 0; flex-wrap: wrap; }

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.trust-row .chip {
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.84rem; color: var(--ink-soft);
}
.trust-row svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }

.related-heading { margin-top: 90px; }

/* ---------- product reviews ---------- */
.reviews-section { margin-top: 80px; max-width: 760px; }
.reviews-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.reviews-summary .avg { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--ink); }
.reviews-summary .stars { font-size: 1.2rem; }
.reviews-summary .count { color: var(--ink-soft); font-size: 0.9rem; }
.reviews-summary .btn { margin-left: auto; }

.review-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
}
.review-item .stars { font-size: 0.95rem; margin-bottom: 8px; display: block; }
.review-item .review-name { font-weight: 600; font-size: 0.92rem; }
.review-item .review-date { color: var(--ink-soft); font-size: 0.8rem; margin-left: 8px; }
.review-item p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
.review-empty { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 32px; }

.review-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--porcelain-dim);
}
.review-form h3 { margin-bottom: 4px; }
.review-form p.hint { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 18px; }
.rating-picker { display: flex; gap: 6px; margin-bottom: 16px; }
.rating-picker button {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--border-strong); line-height: 1; padding: 2px;
  transition: color 0.1s ease;
}
.rating-picker button.is-active, .rating-picker button:hover, .rating-picker button:hover ~ button { color: var(--accent); }
.review-form textarea {
  width: 100%; min-height: 90px; resize: vertical;
  font-family: var(--font-body); font-size: 0.95rem;
}
.review-submit-msg { font-size: 0.88rem; color: var(--brand-deep); margin-top: 10px; display: none; }
.review-submit-msg.show { display: block; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,30,28,0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--porcelain);
  border-left: 1px solid var(--border);
  z-index: 91;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cart-drawer-head h2 { font-size: 1.2rem; margin: 0; }
.cart-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  font-size: 1rem; line-height: 1;
  transition: background 0.15s ease;
}
.cart-close:hover { background: var(--porcelain-dim); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 60px 10px; }
.cart-empty svg { width: 52px; height: 52px; margin: 0 auto 16px; opacity: 0.4; }

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: item-in 0.25s var(--ease);
}
@keyframes item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cart-item-img {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--porcelain-dim);
  display: grid; place-items: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.82rem; color: var(--ink-soft); }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-remove {
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-item .qty-stepper button { width: 30px; height: 30px; font-size: 0.95rem; }
.cart-item .qty-stepper input { width: 34px; height: 30px; font-size: 0.85rem; }

.cart-drawer-foot {
  border-top: 1px solid var(--border);
  padding: 18px 22px 22px;
  background: var(--surface);
}
.cart-line { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink-soft); }
.cart-line.total { font-size: 1.1rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ---------- toast ---------- */
.toast-stack {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 8px;
  animation: toast-in 0.3s var(--ease), toast-out 0.3s var(--ease) 2.2s forwards;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- flying add-to-cart clone ---------- */
.fly-clone {
  position: fixed;
  z-index: 200;
  border-radius: 12px;
  border: 1px solid var(--border);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.3,.1,.3,1), opacity 0.6s ease;
  object-fit: contain;
  background: var(--surface);
}

/* ============================================
   CART & CHECKOUT PAGES
   ============================================ */
.cart-page-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .cart-page-grid { grid-template-columns: 1fr; } }

.cart-table { display: flex; flex-direction: column; gap: 0; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
@media (max-width: 560px) { .cart-row { grid-template-columns: 64px 1fr; row-gap: 12px; } }
.cart-row-img {
  width: 90px; height: 90px; border-radius: 12px; border: 1px solid var(--border); background: var(--porcelain-dim);
  display: grid; place-items: center; overflow: hidden;
}
@media (max-width: 560px) { .cart-row-img { width: 64px; height: 64px; } }
.cart-row-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-row-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cart-row-unit { color: var(--ink-soft); font-size: 0.86rem; }
.cart-row-total { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: right; min-width: 80px; }
.cart-row-remove { grid-column: 1 / -1; justify-self: start; }

.summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card); position: sticky; top: 96px;
}
.summary-card h3 { font-size: 1.1rem; }

.empty-state {
  text-align: center; padding: 80px 20px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 18px; opacity: 0.4; }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form-card, .order-summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card);
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }
.field input, .field textarea {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--porcelain);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; color: var(--ink-soft); }
.summary-line.total { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.summary-mini-item { display: flex; justify-content: space-between; font-size: 0.87rem; padding: 5px 0; color: var(--ink-soft); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

.secure-badge { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); margin-top: 16px; justify-content: center; }
.secure-badge svg { width: 17px; height: 17px; color: var(--brand); }

.checkout-msg { font-size: 0.88rem; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); display: none; }
.checkout-msg.show { display: block; }
.checkout-msg.error { background: var(--accent-pale); color: var(--danger); border: 1px solid var(--danger); }

.spinner-inline {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: currentColor;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.is-loading .spinner-inline { display: inline-block; }
.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success / cancel pages */
.status-page { padding: 100px 0; text-align: center; }
.status-icon { width: 76px; height: 76px; margin: 0 auto 24px; }
.status-page h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.status-page p { max-width: 52ch; margin: 0 auto 30px; color: var(--ink-soft); font-size: 1.02rem; }
.order-ref { font-family: var(--font-display); font-weight: 600; background: var(--brand-pale); color: var(--brand-deep); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; display: inline-block; margin-bottom: 24px; font-size: 0.88rem; }
