/* ============ REZERV — Design System ============ */
:root {
  --ink: #0f0f0f;
  --ink-2: #1a1a1a;
  --paper: #efe9e1;
  --paper-2: #e7dfd5;
  --paper-3: #d9d0c4;
  --surface: #fbf8f3;
  --text: #0f0f0f;
  --muted: #6b665f;
  --hairline: rgba(15, 15, 15, 0.10);
  --hairline-strong: rgba(15, 15, 15, 0.18);
  --accent: #0f0f0f;
  --accent-on: #efeae4;
  --warn: #b14a1a;
  --good: #2f5e2a;
  --hot: #c93a1a;
  --shadow-card: 0 1px 0 rgba(15,15,15,0.04), 0 12px 30px -18px rgba(15,15,15,0.18);
  --radius: 4px;
  --radius-lg: 6px;
  --col-gap: 14px;
  --row-gap: 14px;
  --grid-cols: 4;

  --serif: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  --ink: #f0ece4;
  --ink-2: #e6e0d4;
  --paper: #0d0d0c;
  --paper-2: #131312;
  --paper-3: #1c1b19;
  --surface: #161513;
  --text: #ece7dd;
  --muted: #8a847a;
  --hairline: rgba(240, 236, 228, 0.09);
  --hairline-strong: rgba(240, 236, 228, 0.18);
  --accent: #f0ece4;
  --accent-on: #0d0d0c;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 12px 30px -18px rgba(0,0,0,0.6);
}

:root[data-density="dense"] {
  --grid-cols: 5;
  --col-gap: 10px;
  --row-gap: 10px;
}
:root[data-density="airy"] {
  --grid-cols: 3;
  --col-gap: 20px;
  --row-gap: 20px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#root,
main {
  min-height: 100%;
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1, h2, h3, h4 { font-family: var(--serif); margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; }
h3 { font-size: 20px; line-height: 1.2; }

/* ============ Layout shell ============ */
.shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Top bar ============ */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 38px;
  border-bottom: 1px solid var(--hairline);
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  white-space: nowrap;
  overflow: hidden;
}
.topbar::-webkit-scrollbar { display: none; }
.topbar-info,
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-actions {
  justify-content: flex-end;
}
@media (max-width: 1100px) {
  .topbar .topbar-hide-mid { display: none; }
}
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: 44px;
    padding: 0 14px;
    gap: 10px;
  }
  .topbar-info,
  .topbar-actions a {
    display: none;
  }
  .topbar-center { justify-content: center; }
  .topbar-actions { display: flex; justify-content: end; }
  .topbar-actions .topbar-theme {
    display: grid;
    position: fixed;
    top: 5px;
    right: 14px;
    z-index: 45;
  }
}
.mode-switch button { white-space: nowrap; }
.topbar .dot { width: 6px; height: 6px; background: var(--good); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.topbar a:hover { color: var(--ink); }
.topbar-theme {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 1px 0 rgba(15,15,15,0.04);
}
.topbar-theme:hover {
  background: var(--ink);
  color: var(--accent-on);
}
:root[data-theme="dark"] .topbar-theme:hover {
  background: var(--accent);
  color: var(--accent-on);
}

/* ============ Mode switcher ============ */
.mode-switch {
  display: inline-flex;
  background: var(--paper-3);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.mode-switch button {
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.mode-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.mode-switch button.active {
  background: var(--ink);
  color: var(--accent-on);
}
.mode-switch a.active {
  background: var(--ink);
  color: var(--accent-on);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0; z-index: 30;
  background: rgba(239, 234, 228, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
:root[data-theme="dark"] .site-header { background: rgba(13, 13, 12, 0.86); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 68px;
  padding: 0 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 700;
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--ink); color: var(--accent-on);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800;
  border-radius: 4px;
  letter-spacing: -0.04em;
}
.brand strong { font-size: 18px; letter-spacing: -0.02em; }

.nav { display: flex; gap: 24px; justify-content: center; font-weight: 500; font-size: 14px; }
.nav button,
.nav a { color: var(--muted); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav button.active,
.nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav button:hover,
.nav a:hover { color: var(--ink); }

.header-actions { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text);
  position: relative;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .badge-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink); color: var(--accent-on);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600; font-size: 14px;
  background: var(--ink); color: var(--accent-on);
  transition: opacity .15s;
}
.btn:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--paper-2); opacity: 1; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 8px; }

/* ============ Hero ============ */
.hero {
  padding: 56px 0 0;
  border-bottom: 1px solid var(--hairline);
}
.backend-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
}
.hero h1 { color: var(--ink); }
.hero h1 .accent { font-style: italic; font-weight: 400; opacity: 0.55; }
.hero-title {
  display: grid;
  gap: 8px;
}
.section-script {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.hero-meta {
  display: grid;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 360px;
}
.hero-meta .lead { color: var(--text); font-size: 17px; line-height: 1.45; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.hero-stat {
  padding: 18px 24px 18px 0;
  border-right: 1px solid var(--hairline);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block; font-family: var(--serif);
  font-size: 30px; line-height: 1; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-stat span {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

/* Categories ribbon (hero bottom) */
.categories-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cat-tile {
  position: relative;
  padding: 22px 18px 26px;
  border-right: 1px solid var(--hairline);
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: background .15s;
  background: var(--paper);
}
.cat-tile:last-child { border-right: none; }
.cat-tile:hover { background: var(--paper-2); }
.cat-tile .cat-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em;
}
.cat-tile h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  line-height: 1.15;
}
.cat-tile small {
  font-size: 12px; color: var(--muted);
  display: block;
}
.cat-tile .cat-count {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}

/* ============ Catalog ============ */
.catalog {
  padding: 36px 0 80px;
}
.catalog-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  padding: 8px 0 24px;
}
.catalog-head h2 { color: var(--ink); }
.catalog-head .count {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}

.catalog-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search {
  flex: 1; min-width: 220px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--paper-2);
  border-radius: 6px;
}
.search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--muted); }
.toolbar-spacer { flex: 1; }
.sort-select {
  height: 36px; padding: 0 12px;
  background: var(--paper-2); border: none; border-radius: 6px;
  font-size: 13px; color: var(--text);
  cursor: pointer;
}
.density-toggle {
  display: inline-flex; background: var(--paper-2); border-radius: 6px; padding: 3px; gap: 0;
}
.density-toggle button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 4px; color: var(--muted);
}
.density-toggle button.active { background: var(--surface); color: var(--ink); }

.chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .15s;
}
.chip:hover { color: var(--ink); }
.chip .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); opacity: 0.7;
}
.chip.active {
  background: var(--ink); color: var(--accent-on);
  border-color: var(--ink);
}
.chip.active .num { color: var(--accent-on); opacity: 0.7; }

/* ============ Product card ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--row-gap) var(--col-gap);
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-card-edit {
    height: 28px;
    bottom: 50px;
    font-size: 9px;
  }
}
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-card);
}
.product-card:hover .quick-view { opacity: 1; transform: translateY(0); }

.product-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
  display: grid; place-items: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.product-img .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 13px);
  color: var(--muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 12px;
}

.badge-row {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  background: var(--ink); color: var(--accent-on);
  border-radius: 3px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.badge.sale { background: var(--hot); color: #fff; }
.badge.hit  { background: #d97f1f; color: #fff; }
.badge.opt  { background: #1f4f3f; color: #fff; }
.badge.low  { background: var(--paper-3); color: var(--ink); }

.fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  z-index: 2;
}
.fav-btn:hover { background: var(--paper); }
.fav-btn.active { color: var(--hot); }

.admin-card-edit {
  position: absolute;
  left: 10px;
  bottom: 52px;
  z-index: 3;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.admin-card-edit:hover {
  background: var(--ink);
  color: var(--accent-on);
}

.quick-view {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  height: 36px;
  background: var(--ink); color: var(--accent-on);
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  z-index: 2;
  font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.08em;
}

.product-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.product-name {
  font-size: 14px; line-height: 1.35;
  color: var(--text);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.stars { letter-spacing: -1px; color: var(--ink); font-size: 11px; }

.price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: auto;
}
.price-now {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-row { flex-wrap: wrap; }
.price-old {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-discount {
  font-family: var(--mono); font-size: 11px;
  color: var(--hot);
  font-weight: 600;
}

.stock-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.stock-dot.low { background: var(--warn); }
.stock-dot.out { background: var(--muted); }

/* Wholesale block on card */
.wholesale-strip {
  border-top: 1px dashed var(--hairline);
  padding-top: 10px;
  margin-top: 4px;
  display: grid; gap: 4px;
}
.wholesale-strip .row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}
.wholesale-strip .row strong {
  color: var(--ink); font-weight: 600;
}
.wholesale-strip .moq {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}

.add-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px;
  margin-top: 6px;
}
.add-btn {
  height: 38px;
  background: var(--ink); color: var(--accent-on);
  border-radius: 5px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .15s;
}
.add-btn.added { background: var(--good); }
.add-btn:hover { opacity: 0.88; }
.qty-stepper {
  display: inline-flex; align-items: center;
  height: 38px;
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  overflow: hidden;
}
.qty-stepper button { width: 32px; height: 100%; }
.qty-stepper button:hover { background: var(--paper-2); }
.qty-stepper input {
  width: 40px; height: 100%; text-align: center;
  background: transparent; border: none; outline: none;
  font-family: var(--mono); font-size: 13px; color: var(--text);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink); color: var(--accent-on);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer .shell { display: grid; gap: 48px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-top h4 { color: var(--accent-on); font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 16px; }
.footer-top a, .footer-top span { display: block; opacity: 0.65; padding: 4px 0; font-size: 14px; }
.footer-top a:hover { opacity: 1; }
.footer-mark {
  font-family: var(--serif); font-size: 84px; line-height: 0.9;
  font-weight: 700; letter-spacing: -0.04em;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(240,236,228,0.12);
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.5;
}

/* ============ Product page ============ */
.pdp {
  padding: 32px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
}
.pdp-gallery {
  display: grid; gap: 10px;
  grid-template-columns: 70px 1fr;
}
.pdp-thumbs { display: grid; gap: 8px; }
.pdp-thumb {
  aspect-ratio: 1; background: var(--paper-2);
  border-radius: 5px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--muted);
}
.pdp-thumb.active { border-color: var(--ink); }
.pdp-main {
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 8px;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-main .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper-3) 14px 15px);
  color: var(--muted); font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pdp-info h1 {
  font-size: 36px; line-height: 1.05;
  margin-bottom: 10px;
}
.pdp-meta {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-bottom: 24px;
}
.pdp-price {
  display: flex; align-items: baseline; gap: 14px; margin: 24px 0 8px;
}
.pdp-price .now { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.pdp-price .old { font-family: var(--mono); font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { font-family: var(--mono); font-size: 12px; color: var(--hot); padding: 4px 8px; background: rgba(201,58,26,0.1); border-radius: 3px; }

.pdp-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 20px 0 28px; }
.pdp-actions .btn { height: 56px; font-size: 15px; }
.admin-pdp-edit {
  width: 100%;
  margin: -14px 0 24px;
}

.pdp-table { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.pdp-table .row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.pdp-table .row span:first-child {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

/* B2B volume table */
.volume-table {
  margin: 16px 0 28px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.volume-table .head {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--paper-2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
}
.volume-table .row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.volume-table .row:last-child { border-bottom: none; }
.volume-table .row .price { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.volume-table .row .save { font-family: var(--mono); color: var(--hot); }
.volume-table .row.active { background: rgba(15,15,15,0.03); }
:root[data-theme="dark"] .volume-table .row.active { background: rgba(240,236,228,0.04); }

/* ============ Cart ============ */
.cart-page { padding: 32px 0 80px; display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.cart-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 18px;
  padding: 18px 0;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}
.cart-item .img { width: 80px; height: 80px; border-radius: 5px; background: var(--paper-2); }
.cart-item .info { display: grid; gap: 4px; }
.cart-item .info strong { font-weight: 500; font-size: 14px; }
.cart-item .info small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cart-item .price { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.cart-item .remove { color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; }
.cart-item .remove:hover { background: var(--paper-2); color: var(--hot); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px;
  align-self: start;
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.cart-summary .row.total {
  border-top: 1px solid var(--hairline);
  padding-top: 14px; margin-top: 8px;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
}

/* ============ Account ============ */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 80px; }
.account-nav {
  display: grid; gap: 2px; align-self: start;
  position: sticky; top: 100px;
}
.account-nav button {
  text-align: left; padding: 10px 12px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.account-nav button.active { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.account-nav button:hover { color: var(--ink); }

.account-content { display: grid; gap: 28px; }
.account-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px;
}
.account-card h3 { margin-bottom: 18px; }
.kv {
  display: grid; grid-template-columns: 200px 1fr; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.kv:last-child { border-bottom: none; }
.kv span:first-child { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }

.order-row {
  display: grid;
  grid-template-columns: 110px 1fr 100px 110px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px; align-items: center;
}
.order-row .num { font-family: var(--mono); font-weight: 600; }
.order-row .status {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 3px;
  background: var(--paper-2); color: var(--muted);
  display: inline-block; width: fit-content;
}
.order-row .status.done { background: rgba(47,94,42,0.12); color: var(--good); }
.order-row .status.progress { background: rgba(177,74,26,0.12); color: var(--warn); }

/* B2B account card */
.b2b-banner {
  background: var(--ink); color: var(--accent-on);
  border-radius: 8px;
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.b2b-banner h3 { color: var(--accent-on); font-size: 24px; }
.b2b-banner p { margin: 4px 0 0; opacity: 0.7; font-size: 14px; max-width: 480px; }

/* ============ Modal (quick view) ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 28px;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  border-radius: 12px;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--surface); border-radius: 50%;
  display: grid; place-items: center;
  z-index: 2;
  border: 1px solid var(--hairline);
}
.modal .pdp-img {
  background: #fff;
  aspect-ratio: 3 / 4;
  display: grid; place-items: center;
}
.modal .pdp-img img { object-fit: contain !important; background: #fff; }
.modal .pdp-side { padding: 32px; display: grid; gap: 14px; align-content: start; }

.admin-edit-backdrop {
  z-index: 110;
}
.admin-product-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 24px 70px -34px rgba(15,15,15,0.55);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}
.admin-modal-head,
.field-wide,
.admin-modal-status,
.admin-modal-actions {
  grid-column: 1 / -1;
}
.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 6px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span,
.admin-check span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--ink);
}
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.admin-photo-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-upload-button {
  position: relative;
  overflow: hidden;
}
.admin-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-download-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}
.admin-modal-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ============ Misc ============ */
.section-title {
  display: flex; align-items: end; justify-content: space-between;
  padding: 56px 0 18px;
}
.section-title h2 { color: var(--ink); }
.section-title a { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.section-title a:hover { color: var(--ink); }

.divider { height: 1px; background: var(--hairline); margin: 0; }

.empty-state {
  padding: 80px 24px; text-align: center;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* ============ Auth ============ */
.auth-section {
  min-height: calc(100vh - 107px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 48px;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 80px;
}
.auth-copy {
  max-width: 680px;
}
.auth-copy h1 {
  margin-top: 14px;
  max-width: 620px;
}
.auth-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}
.auth-state {
  margin-top: 28px;
  color: var(--muted);
}
.auth-panel,
.signed-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}
.auth-panel {
  padding: 22px;
  position: sticky;
  top: 126px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--paper-2);
  margin-bottom: 20px;
}
.auth-tabs button {
  min-height: 36px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}
.auth-tabs button.active {
  background: var(--surface);
  color: var(--ink);
}
.auth-form {
  display: none;
  gap: 14px;
}
.auth-form.active {
  display: grid;
}
.auth-form label {
  display: grid;
  gap: 7px;
}
.auth-form label span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  outline: none;
}
.auth-form input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}
.auth-form .consent-check {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}
.auth-form .consent-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.auth-form .consent-check span {
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.auth-form .consent-check a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-note {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.wide {
  width: 100%;
}
.signed-card {
  display: grid;
  gap: 10px;
  max-width: 420px;
  padding: 18px;
}
.signed-card > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.signed-card > strong {
  color: var(--ink);
  font-size: 20px;
}
.signed-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Legal ============ */
.legal-section {
  max-width: 920px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.legal-section h1 {
  max-width: 820px;
  margin-top: 12px;
}
.legal-section > p:not(.eyebrow),
.legal-section section p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}
.legal-section section {
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.legal-section h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

/* ============ Admin ============ */
.admin-main {
  background: var(--paper);
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-top: 68px;
  padding-bottom: 34px;
}
.admin-hero h1 {
  margin-top: 12px;
  max-width: 720px;
}
.admin-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.admin-login {
  display: grid;
  max-width: 560px;
  gap: 16px;
}
.admin-login p,
.admin-panel-head p {
  margin: 0;
  color: var(--muted);
}
.admin-login label,
.admin-fields label,
.edit-fields label {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.admin-login label span,
.admin-fields label span,
.edit-fields label span,
.check-field span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-login input,
.admin-fields input,
.edit-fields input,
.edit-fields select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.edit-fields input[type="file"] {
  padding: 9px 10px;
}
.admin-login input:focus,
.admin-fields input:focus,
.edit-fields input:focus,
.edit-fields select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  padding-bottom: 86px;
}
.admin-workspace .wide,
.admin-status {
  grid-column: 1 / -1;
}
.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-panel-head h2 {
  margin-top: 4px;
  font-size: 28px;
}
.admin-fields {
  display: grid;
  gap: 12px;
}
.lead-list {
  display: grid;
  gap: 10px;
}
.lead-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}
.lead-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.lead-card strong {
  color: var(--ink);
}
.lead-card span,
.lead-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.lead-card pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.analytics-panel {
  display: grid;
  gap: 18px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.analytics-card,
.analytics-columns section,
.analytics-event {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
}
.analytics-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.analytics-card span,
.analytics-row span,
.analytics-event span {
  color: var(--muted);
  font-size: 12px;
}
.analytics-card span {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.analytics-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
}
.analytics-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.analytics-columns section {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}
.analytics-columns h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}
.analytics-row,
.analytics-event div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.analytics-row {
  border-top: 1px solid var(--hairline);
  padding-top: 8px;
}
.analytics-row strong,
.analytics-event strong {
  color: var(--ink);
}
.analytics-event {
  display: grid;
  gap: 6px;
  padding: 10px;
}
.analytics-event p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.analytics-main {
  min-height: 100vh;
}
.analytics-hero {
  padding-bottom: 18px;
}
.analytics-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  padding-bottom: 86px;
}
.analytics-dashboard .wide,
.analytics-summary,
.analytics-chart-panel {
  grid-column: 1 / -1;
}
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.analytics-metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.analytics-metric span,
.analytics-metric small,
.funnel-step small,
.daily-column strong,
.event-feed-item small {
  color: var(--muted);
  font-size: 12px;
}
.analytics-metric span,
.daily-column strong {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.analytics-metric strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}
.funnel-list {
  display: grid;
  gap: 14px;
}
.funnel-step {
  display: grid;
  gap: 8px;
}
.funnel-step > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.funnel-step span {
  color: var(--muted);
}
.funnel-step strong {
  color: var(--ink);
}
.funnel-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-3);
}
.funnel-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.daily-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  gap: 10px;
  min-height: 220px;
  align-items: end;
}
.daily-column {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.daily-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(3px, 1fr));
  gap: 3px;
  align-items: end;
  height: 180px;
  border-bottom: 1px solid var(--hairline);
}
.daily-bars span {
  display: block;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
}
.daily-bars .views { background: var(--ink); }
.daily-bars .buys { background: var(--accent); }
.daily-bars .markets { background: var(--good); }
.daily-bars .leads { background: var(--hot); }
.analytics-table,
.event-feed,
.orders-table {
  display: grid;
  gap: 8px;
}
.analytics-table-row,
.event-feed-item,
.payment-order-row {
  display: grid;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}
.analytics-table-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}
.payment-order-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) auto;
}
.analytics-table-row span,
.analytics-table-row em,
.payment-order-row em,
.payment-order-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}
.analytics-table-row strong,
.event-feed-item strong,
.payment-order-row strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.payment-order-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.payment-order-row > div > span:not(.order-status) {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.payment-order-row em {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}
.order-status {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.order-status.paid {
  color: #0f6f43;
  background: rgba(35, 166, 103, 0.12);
}
.order-status.pending,
.order-status.created {
  color: #80610e;
  background: rgba(202, 162, 53, 0.16);
}
.order-status.failed {
  color: #8a1f1f;
  background: rgba(204, 66, 66, 0.12);
}
.event-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.event-feed-item span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.editor-list {
  display: grid;
  gap: 12px;
}
.category-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.edit-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  min-width: 0;
}
.product-edit-card {
  grid-template-columns: 148px minmax(0, 1fr);
}
.edit-preview {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 14px, transparent 14px 15px),
    var(--paper-3);
  color: var(--muted);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edit-preview.has-image {
  background: var(--preview) center / contain no-repeat, #fff;
}
.edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.product-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.edit-fields .wide {
  grid-column: 1 / -1;
}
.check-field {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.check-field input {
  width: 18px;
  min-height: 18px;
}
.admin-status {
  position: sticky;
  bottom: 16px;
  width: fit-content;
  min-height: 24px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--good);
  padding: 8px 12px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.admin-status:empty {
  display: none;
}
.admin-status.error {
  color: var(--hot);
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .cart-page { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-section { grid-template-columns: 1fr; gap: 28px; }
  .auth-panel { position: static; }
  .admin-hero,
  .admin-workspace {
    grid-template-columns: 1fr;
  }
  .category-editor {
    grid-template-columns: 1fr;
  }
  .analytics-grid,
  .analytics-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-dashboard {
    grid-template-columns: 1fr;
  }
  .analytics-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .event-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-order-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .payment-order-row em {
    text-align: left;
  }
  .product-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .categories-ribbon { grid-template-columns: repeat(3, 1fr); }
  .categories-ribbon .cat-tile:nth-child(3n) { border-right: none; }
  .modal { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .shell { padding: 0 20px; }
  .header-inner {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 10px;
    height: 64px;
    padding: 0 14px;
  }
  .brand { gap: 8px; min-width: 0; }
  .brand strong { font-size: 17px; }
  .header-actions {
    position: fixed;
    right: 14px;
    top: 76px;
    flex: 0 0 auto;
    margin-left: 0;
    gap: 4px;
    z-index: 31;
  }
  .icon-btn { width: 36px; height: 36px; }
  .header-actions .icon-btn[aria-label="Избранное"],
  .header-actions .btn-ghost {
    display: none;
  }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(42px, 15vw, 58px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .edit-card,
  .product-edit-card {
    grid-template-columns: 1fr;
  }
  .edit-fields,
  .product-fields {
    grid-template-columns: 1fr;
  }
  .analytics-grid,
  .analytics-columns {
    grid-template-columns: 1fr;
  }
  .analytics-summary,
  .event-feed {
    grid-template-columns: 1fr;
  }
  .daily-chart {
    overflow-x: auto;
    grid-template-columns: repeat(14, 36px);
    padding-bottom: 8px;
  }
  .admin-product-modal {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .admin-modal-actions {
    justify-content: stretch;
  }
  .admin-modal-actions .btn {
    width: 100%;
  }
  .categories-ribbon { grid-template-columns: repeat(2, 1fr); }
  .categories-ribbon .cat-tile { border-right: 1px solid var(--hairline); }
  .categories-ribbon .cat-tile:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .categories-ribbon .cat-tile:nth-child(2n) { border-right: none; }
  .cat-tile { padding: 18px 16px 22px; }
  .cat-tile .cat-count { top: 16px; right: 16px; }
}

/* tweaks panel positioning override */
:root .tweaks-panel { z-index: 200; }
