/* ==========================================================================
   ZAIB HUB — Warm Editorial Storefront & Admin System
   Color Tokens: #F3F0E8 (Canvas), #FFFDF7 (Surface), #EAE5D9 (Inset),
                 #E4E0D5 (Hairline), #151512 (Ink), #D7FF56 (Electric Lime)
   ========================================================================== */

:root {
  --bg-canvas: #F3F0E8;
  --bg-surface: #FFFDF7;
  --bg-inset: #EAE5D9;
  --bg-glass: rgba(255, 253, 247, 0.92);

  --border-hairline: #E4E0D5;
  --border-ink: #151512;

  --text-ink: #151512;
  --text-secondary: #6B6A63;
  --text-muted: #A5A399;

  --accent-lime: #D7FF56;
  --accent-lime-hover: #C8F03F;
  --accent-violet: #BCA8FF;
  --accent-cyan: #86DDFF;

  --status-success-bg: #E3F6D5;
  --status-success-text: #1B4D18;
  --status-warn-bg: #FFF1CC;
  --status-warn-text: #6E4B00;
  --status-danger-bg: #FDE2E1;
  --status-danger-text: #8C1D18;

  --radius-card: 18px;
  --radius-modal: 24px;
  --radius-input: 12px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 2px rgba(21, 21, 18, 0.04);
  --shadow-hover: 0 4px 10px rgba(21, 21, 18, 0.07);
  --shadow-modal: 0 12px 32px rgba(21, 21, 18, 0.12);

  --font-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-ink);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4, .heading {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-ink);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.micro-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: var(--border-hairline); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── CONTAINERS ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-xs {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── STICKY TOP NAVBAR (ZERO SIDEBAR) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--border-ink);
  color: var(--accent-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-ink);
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-ink);
  text-transform: uppercase;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent-lime);
  border: 1px solid var(--border-ink);
  display: inline-block;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}

.nav-cat-link:hover {
  background: var(--bg-inset);
  color: var(--text-ink);
}

.nav-cat-link.active {
  background: var(--accent-lime);
  color: var(--text-ink);
  border-color: var(--border-ink);
}

.nav-pill-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-ink);
}

.nav-cat-link.active .nav-pill-count {
  background: var(--bg-surface);
  border-color: var(--border-ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-ink);
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.nav-icon-pill:hover {
  background: var(--bg-inset);
  transform: translateY(-1px);
}

.nav-icon-pill.lime {
  background: var(--accent-lime);
}

.nav-icon-pill.lime:hover {
  background: var(--accent-lime-hover);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--text-ink);
  border: 1px solid var(--border-ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  padding: 1px 5px;
  border-radius: 6px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  cursor: pointer;
  color: var(--text-ink);
}

/* Mobile slide-down drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 14px 20px 18px;
}

.mobile-drawer.open {
  display: block;
  animation: slideDown 0.2s var(--ease);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .nav-center { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav-center::-webkit-scrollbar { display: none; }
  .nav-cat-link { padding: 6px 9px; font-size: 12px; }
  .kbd-hint { display: none; }
  .nav-icon-pill span:not(.cart-badge) { display: none; }
  .nav-icon-pill { padding: 0 10px; }
}

@media (max-width: 767px) {
  .nav-center { display: none; }
  .nav-hide-mobile { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
}

@media (min-width: 768px) {
  .mobile-drawer { display: none !important; }
}

/* ── BUTTONS & PILLS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-ink);
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lime {
  background: var(--accent-lime);
  color: var(--text-ink);
  border: 1px solid var(--border-ink);
}
.btn-lime:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-surface {
  background: var(--bg-surface);
  color: var(--text-ink);
  border: 1px solid var(--border-ink);
}
.btn-surface:hover {
  background: var(--bg-inset);
  transform: translateY(-1px);
}

.btn-inset {
  background: var(--bg-inset);
  color: var(--text-ink);
  border: 1px solid var(--border-hairline);
}
.btn-inset:hover {
  background: var(--border-hairline);
  border-color: var(--border-ink);
}

.btn-ink {
  background: var(--border-ink);
  color: var(--bg-surface);
  border: 1px solid var(--border-ink);
}
.btn-ink:hover {
  background: #2b2b26;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  border: 1px solid var(--status-danger-text);
}
.btn-danger:hover {
  background: #f9cac7;
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-lg { padding: 13px 24px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── BADGES ── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-ink);
}

.pill-badge.ink { border-color: var(--border-ink); }
.pill-badge.lime { background: var(--accent-lime); border-color: var(--border-ink); color: var(--text-ink); }
.pill-badge.violet { background: var(--accent-violet); border-color: var(--border-ink); color: var(--text-ink); }
.pill-badge.cyan { background: var(--accent-cyan); border-color: var(--border-ink); color: var(--text-ink); }
.pill-badge.inset { background: var(--bg-inset); border-color: var(--border-hairline); color: var(--text-secondary); }
.pill-badge.success { background: var(--status-success-bg); border-color: #9ED384; color: var(--status-success-text); }
.pill-badge.warn { background: var(--status-warn-bg); border-color: #E7C97A; color: var(--status-warn-text); }
.pill-badge.danger { background: var(--status-danger-bg); border-color: #E6A49F; color: var(--status-danger-text); }

/* ── HERO SECTION (COMPACT EDITORIAL) ── */
.hero-wrap {
  padding: 24px 0 18px;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin-bottom: 10px;
  max-width: 680px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 12px;
  min-width: 260px;
}

.hero-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-input);
  padding: 10px 12px;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.2;
}

.hero-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 3px;
}

@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .hero-stats-box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .hero-stats-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── FILTER & SEARCH TOOLBAR ── */
.toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.search-input:focus {
  border-color: var(--border-ink);
  background: var(--bg-surface);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: none;
  background: var(--bg-inset);
  color: var(--text-ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.select-pill {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-ink);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.select-pill:focus { border-color: var(--border-ink); }

.currency-switch {
  display: inline-flex;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.curr-btn {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
}

.curr-btn.active {
  background: var(--accent-lime);
  color: var(--text-ink);
  border-color: var(--border-ink);
}

.toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.filter-chip:hover {
  background: var(--bg-inset);
  color: var(--text-ink);
}

.filter-chip.active {
  background: var(--border-ink);
  color: var(--bg-surface);
  border-color: var(--border-ink);
}

.catalog-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── PRODUCT GRID (3-COLUMN RESPONSIVE) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  transition: opacity 0.15s ease;
}

.product-grid.loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.product-card.coming-soon {
  opacity: 0.85;
}

.card-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-hairline);
  background: var(--bg-inset);
  overflow: hidden;
  cursor: pointer;
}

.card-thumb-frame img,
.card-thumb-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.product-card:hover .card-thumb-frame img {
  transform: scale(1.03);
}

.card-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.card-thumb-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--text-ink);
  cursor: pointer;
}

.card-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}

.card-spec-bar {
  background: var(--bg-inset);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-input);
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-price-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.card-price-main {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-ink);
}

.card-price-sub {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cart-mini {
  height: 35px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-ink);
  background: var(--bg-surface);
  color: var(--text-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn-cart-mini:hover {
  background: var(--bg-inset);
  transform: translateY(-1px);
}

.btn-cta-lime {
  height: 35px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-ink);
  background: var(--accent-lime);
  color: var(--text-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn-cta-lime:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

/* ── REVIEWS PANEL & CARDS ── */
.reviews-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card.liked {
  border-color: var(--border-ink);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid var(--border-ink);
  background: var(--bg-inset);
  flex-shrink: 0;
}

.review-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.review-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ── MODALS & DRAWERS (24px RADII) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(21, 21, 18, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.16s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 26px;
  animation: modalUp 0.2s var(--ease);
}

.modal-dialog.wide { max-width: 780px; }
.modal-dialog.narrow { max-width: 480px; }

@keyframes modalUp {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--border-ink);
  background: var(--bg-canvas);
  color: var(--text-ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-inset); }

/* Slide-over Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(21, 21, 18, 0.45);
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-ink);
  border-radius: var(--radius-modal) 0 0 var(--radius-modal);
  display: flex;
  flex-direction: column;
  padding: 22px;
  animation: slideLeft 0.22s var(--ease);
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 480px) {
  .drawer-panel { border-radius: 0; max-width: 100%; }
}

/* ── FORMS & INPUTS (12px RADII) ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-ink);
}

.form-label .req { color: var(--status-danger-text); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-input);
  background: var(--bg-canvas);
  color: var(--text-ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-ink);
  background: var(--bg-surface);
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.alert {
  padding: 12px 15px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-success { background: var(--status-success-bg); color: var(--status-success-text); border-color: #9ED384; }
.alert-error { background: var(--status-danger-bg); color: var(--status-danger-text); border-color: #E6A49F; }
.alert-info { background: var(--bg-inset); color: var(--text-ink); border-color: var(--border-hairline); }

/* ── CHECKOUT REGION & PAYMENT CARDS ── */
.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.region-btn {
  padding: 14px 12px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-input);
  background: var(--bg-canvas);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s var(--ease);
}

.region-btn:hover { background: var(--bg-inset); }
.region-btn.active {
  background: var(--accent-lime);
  border-color: var(--border-ink);
}

.pay-method-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-input);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.pay-method-card:hover { background: var(--bg-inset); }
.pay-method-card.selected {
  background: var(--bg-surface);
  border-color: var(--border-ink);
  box-shadow: inset 3px 0 0 var(--border-ink);
}
.pay-method-card input[type="radio"] { display: none; }

.pay-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 8px 10px;
}

.copy-mini-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-ink);
  background: var(--accent-lime);
  color: var(--text-ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── DROP ZONE ── */
.drop-zone {
  border: 1.5px dashed var(--text-muted);
  border-radius: var(--radius-input);
  background: var(--bg-canvas);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--border-ink);
  background: var(--bg-inset);
}

.drop-zone-preview {
  position: relative;
  display: inline-block;
}
.drop-zone-preview img,
.drop-zone-preview video {
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border-ink);
}
.drop-zone-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 1px solid var(--border-ink);
  background: var(--bg-surface);
  color: var(--text-ink);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PROMPT BOX ── */
.prompt-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-input);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 360px;
  overflow-y: auto;
}

/* ── TABLES (ADMIN & ORDERS) ── */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.surface-pad { padding: 20px; }

.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}
td {
  padding: 13px 14px;
  font-size: 13px;
  color: var(--text-ink);
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-canvas); }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

/* ── TOASTS & FLOATING WIDGETS ── */
#zh-toast-stack {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  pointer-events: none;
}

.zh-toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  box-shadow: var(--shadow-hover);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: modalUp 0.2s var(--ease);
}
.zh-toast.lime { background: var(--accent-lime); }
.zh-toast.danger { background: var(--status-danger-bg); color: var(--status-danger-text); }

/* Social proof review toast (calm bottom-left editorial card) */
#rt-toast-container {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 75;
  max-width: 300px;
  width: calc(100% - 96px);
  pointer-events: none;
}

@media (max-width: 639px) {
  #rt-toast-container { display: none; }
}

#rt-toast-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  box-shadow: var(--shadow-hover);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  pointer-events: auto;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
  position: relative;
}

#rt-toast-card.rt-show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating WhatsApp Trigger Pill */
#wa-fab-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 85;
  height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--text-ink);
  border: 1px solid var(--border-ink);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}

#wa-fab-btn:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  #wa-fab-btn span { display: none; }
  #wa-fab-btn { width: 42px; padding: 0; justify-content: center; }
  #rt-toast-container { bottom: 16px; left: 12px; }
}

/* ── FOOTER ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 21, 18, 0.2);
  border-top-color: var(--border-ink);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-admin-form { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
@media (max-width: 820px) {
  .grid-2, .grid-admin-form { grid-template-columns: 1fr; }
}
.hidden { display: none !important; }
