/* ============================================
   Inderbitzin AG — Design System
   ============================================ */
:root {
  /* Colors - tweakable via JS */
  --accent: oklch(0.38 0.14 250);
  --accent-hover: oklch(0.32 0.14 250);
  --accent-soft: oklch(0.96 0.03 250);
  --accent-fg: #ffffff;

  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F4F4F2;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --fg: #0A0A0A;
  --fg-2: #57534E;
  --fg-3: #A8A29E;
  --success: oklch(0.65 0.15 150);
  --warn: oklch(0.75 0.15 80);

  /* Typography - single highly legible sans */
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Card style - tweakable */
  --card-radius: 14px;
  --card-bg: #FFFFFF;
  --card-border: 1px solid var(--border);
  --card-shadow: none;

  /* Grid density - tweakable */
  --grid-cols: 5;
  --grid-gap: 18px;
  --card-pad: 16px;
  --card-img-pad: 22px;
}

/* ============ Font fallback to reduce FOUT/CLS ============ */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

/* ============ Space reservation to prevent CLS ============ */
#site-header {
  display: block;
  min-height: 120px;
  background: var(--bg);
}
#site-footer {
  display: block;
  min-height: 300px;
  background: #0A0A0A;
}
.product-grid:empty {
  min-height: 80vh;
}
@media (max-width: 900px) {
  #site-header { min-height: 60px; }
  #site-footer { min-height: 200px; }
}

/* ============ Smooth view transitions ============ */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============ Layout ============ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============ Top bar ============ */
.topbar {
  background: #0A0A0A;
  color: #FAFAF9;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  gap: 20px;
}
.topbar-left { display: flex; gap: 24px; align-items: center; opacity: 0.85; }
.topbar-right { display: flex; gap: 20px; align-items: center; opacity: 0.85; }
.topbar-right a:hover { opacity: 0.7; }
@media (max-width: 768px) {
  .topbar-left span:not(:first-child) { display: none; }
  .topbar-right a:not(:last-child) { display: none; }
}

/* ============ Header ============ */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--fg);
  color: var(--bg);
  display: grid; place-items: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-sans);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small { font-weight: 400; font-size: 10px; color: var(--fg-2); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

.search {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px 0 42px;
  background: var(--surface-2);
  font-size: 14px;
  transition: all 0.15s;
}
.search input:focus {
  outline: none;
  border-color: var(--fg);
  background: var(--surface);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-3);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--fg);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: grid; place-items: center;
  padding: 0 4px;
}
.mobile-toggle { display: none; }
@media (max-width: 900px) {
  .search { display: none; }
  .mobile-toggle { display: grid; }
}

/* ============ Nav ============ */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 40;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 48px;
  gap: 2px;
}
.nav-item {
  padding: 0 14px;
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  gap: 4px;
}
.nav-item:hover { color: var(--accent); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--fg);
}
@media (max-width: 900px) {
  .nav { display: none; }
}

/* ============ Mega menu ============ */
.mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
  display: none;
  z-index: 30;
}
.mega.open { display: block; }
.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 40px;
  padding: 32px 0 40px;
}
.mega-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 14px;
  font-weight: 600;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin: 0 0 8px; }
.mega-col a {
  font-size: 13.5px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.mega-col a:hover { color: var(--accent); }
.mega-feature {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mega-feature h5 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.mega-feature p { font-size: 13px; color: var(--fg-2); margin: 0 0 14px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* ============ Product card ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
}
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-media {
  position: relative;
  aspect-ratio: 1;
  background: #ffffff;
  padding: var(--card-img-pad);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media svg { width: 100%; height: 100%; }
.card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.badge-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
}
.badge-tag.new { background: var(--accent); color: var(--accent-fg); }
.badge-tag.sale { background: oklch(0.65 0.2 25); color: #fff; }
.badge-tag.stock { background: var(--surface); color: var(--fg-2); border: 1px solid var(--border); }

.badge-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}
.badge-stock.in   { background: oklch(0.92 0.08 150); color: oklch(0.38 0.14 150); }
.badge-stock.back { background: oklch(0.93 0.1 75);  color: oklch(0.42 0.15 60); }

.card-wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--fg-2);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.card:hover .card-wish { opacity: 1; }
.card-wish:hover { color: var(--accent); }

.card-quick {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--fg);
  color: var(--bg);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform 0.2s;
  z-index: 2;
}
.card:hover .card-quick { transform: translateY(0); }

.card-body {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-brand {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.card-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11.5px;
  color: var(--fg-2);
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-price .price-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-price .price-pct {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: oklch(0.65 0.2 25);
  color: #fff;
}
.card-price .price {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-price .price-old {
  font-size: 12px;
  color: var(--fg-3);
  text-decoration: line-through;
}
.card-price .vat {
  font-size: 10.5px;
  color: var(--fg-3);
}
.card-add {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.card-add:hover { background: var(--accent); transform: scale(1.05); }

/* Compact / wide density variants */
.density-compact {
  --grid-cols: 6;
  --grid-gap: 10px;
  --card-pad: 12px;
  --card-img-pad: 14px;
  --card-radius: 10px;
}
.density-compact .card-title { font-size: 12.5px; }
.density-compact .card-price .price { font-size: 14px; }
.density-wide {
  --grid-cols: 4;
  --grid-gap: 24px;
  --card-pad: 20px;
  --card-img-pad: 28px;
  --card-radius: 18px;
}
@media (max-width: 1200px) {
  .density-compact .product-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .density-wide .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .density-compact .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .density-wide .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .density-compact .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .density-wide .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Card style variants */
.cards-flat .card { border: 1px solid transparent; background: var(--surface-2); box-shadow: none; }
.cards-flat .card-media { background: #ffffff; }
.cards-bordered .card { border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
.cards-elevated .card { border: 1px solid transparent; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px -8px rgba(0,0,0,0.08); }
.cards-elevated .card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 16px 40px -12px rgba(0,0,0,0.12); }

/* ============ Sections ============ */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}
.section-head p { color: var(--fg-2); max-width: 520px; margin: 10px 0 0; }
.section-head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ============ Breadcrumbs ============ */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--fg-2);
  padding: 20px 0;
}
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--fg-3); }

/* ============ Footer ============ */
.footer {
  background: #0A0A0A;
  color: #E7E5E4;
  padding: 72px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #27272a;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FAFAF9;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { font-size: 13.5px; color: #A8A29E; }
.footer a:hover { color: #FAFAF9; }
.footer-brand { font-family: var(--font-serif); font-size: 22px; color: #FAFAF9; margin-bottom: 12px; letter-spacing: -0.01em; }
.footer-about { font-size: 13.5px; color: #A8A29E; max-width: 320px; line-height: 1.6; }
.footer-contact { margin-top: 18px; font-size: 13px; color: #A8A29E; line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  color: #78716C;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-pay { display: flex; gap: 8px; align-items: center; }
.footer-pay .chip {
  background: #18181B;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: #D4D4D8;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ Drawer (cart) ============ */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  z-index: 100;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--surface);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 24px; }
.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  background: var(--surface-2);
  border-radius: 8px;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 8px;
}
.cart-info .t { font-size: 13px; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.cart-info .b { font-size: 11px; color: var(--fg-3); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 6px;
  height: 26px;
}
.qty button { width: 24px; height: 24px; display: grid; place-items: center; color: var(--fg-2); }
.qty span { min-width: 22px; text-align: center; font-size: 12px; font-weight: 500; }

/* ============ Quick view ============ */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  z-index: 110;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  padding: 24px;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border-radius: 16px;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: scale(0.96);
  transition: transform 0.2s;
}
.modal-scrim.open .modal { transform: scale(1); }
.modal-img {
  background: var(--surface-2);
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 40px;
}
.modal-body { padding: 32px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg-2);
}
.modal-close:hover { background: var(--surface-2); }
@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; }
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  padding: 16px;
  z-index: 200;
  display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tweaks h4 button { font-size: 18px; color: var(--fg-3); line-height: 1; padding: 2px 6px; border-radius: 4px; }
.tweaks-row { margin-bottom: 14px; }
.tweaks-row label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); margin-bottom: 6px; font-weight: 600; }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.tweaks-swatch:hover { transform: scale(1.1); }
.tweaks-swatch.active { border-color: var(--fg); }
.tweaks-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11.5px;
}
.tweaks-seg button { padding: 8px 4px; color: var(--fg-2); font-weight: 500; }
.tweaks-seg button.active { background: var(--fg); color: var(--bg); }

/* ============ Utilities ============ */
/* Global: any element declared with the (aliased) serif var gets a proper Inter weight */
[style*="--font-serif"], .hero h1, .feature-band h2, .newsletter h2, .editorial-title,
.cat-hero h1, .pdp-side h1, .footer-brand, .mega-feature h5 {
  font-weight: 600 !important;
  letter-spacing: -0.025em;
}
.hero-stat .n, .feature-band .stats-row .n, .cat-stat .n, .pdp-price .big, .brand, .tab-panel h3 {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}

.u-tabnum { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--border); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--fg); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============ Mobile drawer ============ */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 88vw;
  background: var(--surface);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-search {
  position: relative;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  font-family: inherit;
}
.mobile-search input:focus { outline: none; border-color: var(--fg); background: var(--surface); }
.mobile-search .search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-2);
  pointer-events: none;
}
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
}
.mobile-nav-sect {
  padding: 18px 20px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  transition: background 0.1s;
}
.mobile-nav a:hover, .mobile-nav a:active { background: var(--surface-2); }
.mobile-nav a::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--fg-3);
  border-right: 1.5px solid var(--fg-3);
  transform: rotate(45deg);
  flex-shrink: 0;
}

