:root {
  --rose: #c9657b;
  --rose-dark: #a84b61;
  --plum: #6e2b45;
  --cream: #fbf7f4;
  --surface: #ffffff;
  --gold: #c8a96a;
  --charcoal: #2b2226;
  --muted: #7e7075;
  --line: #eadfda;
  --success: #2e9e6b;
  --error: #d24b4b;
  --shadow: 0 18px 50px rgba(43, 34, 38, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.notice {
  margin: 0 auto 18px;
  max-width: 1200px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--plum);
  font-weight: 800;
}
.notice.success { border-color: rgba(46,158,107,.35); color: var(--success); }
.notice.error { border-color: rgba(210,75,75,.35); color: var(--error); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 244, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}
.top-actions { display: flex; gap: 12px; align-items: center; }
.top-actions a, .top-actions button {
  border: 0;
  background: transparent;
  color: var(--plum);
  font-size: 13px;
  font-weight: 900;
}
.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--plum);
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: url("assets/beauty-logo-icon-512.png?v=2") center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(110,43,69,.16);
}
.search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(43,34,38,.06);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}
.search button, .cart-button, .button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--plum);
  color: white;
  font-weight: 900;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
}
.button.primary { background: var(--rose); box-shadow: 0 14px 30px rgba(201,101,123,.26); }
.button.secondary { background: white; color: var(--plum); border: 1px solid var(--line); }
.button.danger { background: var(--error); }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 900; }
.mobile-account-link { display: none; }
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: 34px;
  align-items: center;
  max-width: 1200px;
  min-height: 520px;
  margin: 0 auto;
  padding: 36px 24px 24px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2 { font-family: Fraunces, Georgia, serif; color: var(--plum); letter-spacing: 0; }
h1 { max-width: 680px; margin: 0 0 16px; font-size: clamp(44px,5.8vw,74px); line-height: .96; }
h2 { margin: 0 0 10px; font-size: clamp(28px,3.3vw,44px); line-height: 1.04; }
h3 { margin: 0 0 7px; color: var(--plum); font-size: 18px; }
p { margin-top: 0; }
.hero-text, .section-head p, .muted-text { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 22px;
}
.hero-metrics div, .stat-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.hero-metrics strong, .hero-metrics span, .stat-card strong, .stat-card span { display: block; }
.hero-metrics strong, .stat-card strong { color: var(--plum); font-size: 20px; }
.hero-metrics span, .stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.hero-media { min-height: 390px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }

.section, .trust-strip, .split-band, .feature-rail, .vendor-apply, .panel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  padding-top: 12px;
  padding-bottom: 22px;
}
.trust-strip article, .category-card, .product-card, .vendor-card, .panel, .flow-grid article, .policy-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.trust-strip article { padding: 16px; }
.trust-strip span { display: block; color: var(--gold); font-size: 11px; font-weight: 900; margin-bottom: 10px; }
.trust-strip strong { display: block; margin-bottom: 8px; color: var(--plum); }
.trust-strip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-head { margin-bottom: 16px; }
.section-head.row, .dashboard-top, .dash-row, .cart-head, .price-row, .checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.category-grid, .product-grid, .vendor-grid, .flow-grid, .policy-grid, .stats-grid {
  display: grid;
  gap: 16px;
}
.category-grid { grid-template-columns: repeat(4,1fr); }
.product-grid { grid-template-columns: repeat(4,1fr); }
.vendor-grid { grid-template-columns: repeat(3,1fr); }
.flow-grid { grid-template-columns: repeat(4,1fr); }
.policy-grid { grid-template-columns: repeat(3,1fr); }
.stats-grid { grid-template-columns: repeat(4,1fr); }
.category-card {
  min-height: 88px;
  padding: 16px;
  background: radial-gradient(circle at 80% 20%, rgba(201,101,123,.18), transparent 36%), white;
}
.category-card span { display: block; margin-bottom: 8px; color: var(--plum); font-weight: 900; font-size: 20px; }
.category-card small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--plum);
  padding: 9px 14px;
  font-weight: 900;
}
.filters a.active { background: var(--plum); color: white; border-color: var(--plum); }
.product-card { overflow: hidden; }
.product-image, .detail-art {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  min-height: 190px;
  background: var(--image-bg);
  overflow: hidden;
}
.product-image::before, .product-image::after, .detail-art::before, .detail-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}
.product-image.has-photo::before,
.product-image.has-photo::after,
.detail-art.has-photo::before,
.detail-art.has-photo::after {
  display: none;
}
.product-image.has-photo,
.detail-art.has-photo,
.mini-product.has-photo {
  background-position: center;
  background-size: cover;
}
.product-image::before, .detail-art::before {
  width: 86px;
  height: 160px;
  left: 50%;
  top: 38px;
  transform: translateX(-50%) rotate(12deg);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  box-shadow: inset 0 -34px 0 rgba(110,43,69,.18), 0 18px 26px rgba(43,34,38,.12);
}
.product-image::after, .detail-art::after {
  width: 46px;
  height: 46px;
  right: 32px;
  bottom: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: -75px -32px 0 rgba(255,255,255,.44);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
}
.product-body { padding: 14px; }
.brand-name { display: block; color: var(--rose-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.product-title { min-height: 40px; margin: 5px 0 8px; color: var(--plum); font-weight: 900; line-height: 1.25; }
.rating, .vendor-mini { color: var(--muted); font-size: 13px; }
.vendor-mini { margin-top: 7px; font-size: 12px; font-weight: 800; }
.price-row { margin: 10px 0; align-items: baseline; }
.price-row strong { color: var(--charcoal); }
.price-row del { color: var(--muted); font-size: 13px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.add-button, .detail-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: var(--rose);
  color: white;
  font-weight: 900;
}
.detail-button { border: 1px solid var(--line); background: white; color: var(--plum); }
.split-band {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(320px,1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
  background: var(--plum);
  color: white;
}
.split-band h2, .split-band .eyebrow { color: white; }
.split-band p { color: rgba(255,255,255,.78); line-height: 1.7; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.steps span { color: rgba(255,255,255,.72); text-align: right; }
.flow-grid article, .policy-grid article { padding: 18px; }
.flow-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--plum);
  color: white;
  font-weight: 900;
}
.flow-grid strong, .policy-grid strong { display: block; margin-bottom: 9px; color: var(--plum); }
.flow-grid p, .policy-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.vendor-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.vendor-logo {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  font-weight: 900;
}
.vendor-logo.gold { background: var(--gold); color: var(--charcoal); }
.vendor-logo.plum { background: var(--plum); }
.vendor-card p, .vendor-card strong { display: block; margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.vendor-card strong { color: var(--charcoal); }
.vendor-apply, .feature-rail {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 28px;
  align-items: start;
}
.panel, .apply-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
label { display: grid; gap: 7px; color: var(--plum); font-size: 13px; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--charcoal);
}
textarea { min-height: 110px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--plum); font-size: 13px; }
td { color: var(--muted); font-size: 14px; }
.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(201,101,123,.14);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
}
.status.good { background: rgba(46,158,107,.12); color: var(--success); }
.status.warn { background: rgba(200,169,106,.18); color: #80621f; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(43,34,38,.45);
}
.cart-open .cart-drawer { display: flex; }
.cart-panel { display: flex; flex-direction: column; width: min(460px,100%); height: 100%; background: var(--cream); box-shadow: -20px 0 50px rgba(43,34,38,.2); }
.cart-head { padding: 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 30px; }
.cart-head button { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--plum); padding: 8px 12px; font-weight: 900; }
.cart-items { flex: 1; overflow: auto; padding: 18px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.cart-line h3 { margin: 0 0 4px; font-size: 14px; }
.cart-line p { margin: 0; color: var(--muted); font-size: 13px; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-controls button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--plum); font-weight: 900; }
.checkout-box { padding: 18px; border-top: 1px solid var(--line); background: white; }
.checkout-box p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.checkout-box .button { width: 100%; }

dialog { border: 0; padding: 0; background: transparent; }
dialog::backdrop { background: rgba(43,34,38,.52); backdrop-filter: blur(6px); }
.modal-shell {
  position: relative;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.checkout-modal-shell { width: min(680px, calc(100vw - 28px)); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--plum);
  padding: 8px 12px;
  font-weight: 900;
}
.detail-layout { display: grid; grid-template-columns: .9fr 1fr; gap: 24px; align-items: stretch; }
.detail-art { min-height: 520px; border-radius: 8px; }
.detail-meta, .checkout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.detail-meta span, .checkout-summary span { color: var(--muted); font-size: 13px; font-weight: 800; }
.detail-meta strong, .checkout-summary strong { color: var(--plum); }
.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.variant-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
}
.trust-note, .checkout-note { color: var(--muted); line-height: 1.6; }
.checkout-guidance,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(251,247,244,.78);
  color: var(--muted);
  line-height: 1.5;
}
.checkout-guidance {
  display: grid;
  gap: 4px;
  margin: 12px 0 18px;
}
.checkout-guidance strong,
.empty-state strong { color: var(--plum); }
.checkout-guidance span { font-size: 14px; }
.empty-state { margin: 12px 0 0; }
.order-summary-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.order-summary-grid article,
.profile-grid span,
.profile-grid strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: white;
}
.order-summary-grid span,
.order-summary-grid small,
.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.order-summary-grid strong,
.profile-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--plum);
  font-size: 17px;
}
.profile-grid {
  grid-template-columns: repeat(4, minmax(80px, .55fr) minmax(120px, 1fr));
}
.profile-grid span,
.profile-grid strong {
  margin: 0;
}
.profile-summary .row-actions { justify-content: flex-start; }
.order-confirmation { padding: 18px; border: 1px solid rgba(46,158,107,.32); border-radius: 8px; background: rgba(46,158,107,.1); }
.order-confirmation strong { display: block; margin-bottom: 7px; color: var(--success); }
.dashboard { max-width: 1380px; }
.dashboard .panel { margin-top: 18px; padding: 22px; }
.admin-console {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.console-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 34px rgba(43,34,38,.08);
}
.console-nav strong {
  margin: 2px 4px 8px;
  color: var(--plum);
  font-size: 15px;
}
.console-nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}
.console-nav a:hover,
.console-nav a.active {
  background: var(--plum);
  color: white;
}
.console-main { min-width: 0; }
.admin-console .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}
.admin-console .section-head h1 { font-size: 42px; line-height: 1; }
.admin-console .stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.admin-console .stat-card {
  min-height: 94px;
  padding: 14px;
  background: white;
}
.admin-console .stat-card strong { font-size: 24px; }
.admin-console .panel h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}
.role-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.role-admin-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(251,247,244,.72);
}
.role-admin-grid strong,
.role-admin-grid span { display: block; }
.role-admin-grid strong { color: var(--plum); font-size: 24px; }
.role-admin-grid span { color: var(--muted); font-size: 12px; font-weight: 900; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(280px, .65fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 32px;
}
.auth-copy {
  padding: 26px 0;
}
.auth-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
}
.auth-card { margin-top: 0; }
.auth-card h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.15;
}
.role-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.role-preview span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: var(--plum);
  font-size: 13px;
  font-weight: 900;
}
.compact-section { padding-top: 18px; padding-bottom: 18px; }
.promo-grid, .zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.promo-card, .zone-chip, .review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.promo-card {
  min-height: 128px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(110,43,69,.08), rgba(200,169,106,.16));
}
.promo-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.promo-card strong { display: block; color: var(--plum); font-size: 22px; }
.promo-card p, .review-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.zone-chip { padding: 14px 16px; }
.zone-chip strong { display: block; color: var(--plum); }
.zone-chip span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.support-layout { align-items: start; }
.support-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.support-list strong, .support-list span, .support-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--plum);
  font-weight: 800;
}
.support-list span { color: var(--muted); font-weight: 700; }
.support-list a {
  border-color: rgba(201,101,123,.28);
  background: rgba(201,101,123,.08);
}
.review-card { margin-top: 10px; padding: 14px; }
.review-card strong { color: var(--plum); }
.timeline {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  border-left: 3px solid rgba(201,101,123,.28);
  padding-left: 14px;
}
.timeline div {
  display: grid;
  gap: 3px;
  color: var(--muted);
}
.timeline strong { color: var(--plum); font-size: 13px; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-scroll table { margin: 0; min-width: 860px; border: 0; }
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form select { min-width: 150px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(201,101,123,.12);
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
}
.status.approved { background: rgba(46,158,107,.14); color: var(--success); }
.status.pending, .status.warn { background: rgba(200,169,106,.18); color: #8a6a20; }
.status.rejected { background: rgba(210,75,75,.14); color: var(--error); }
.product-admin-list {
  display: grid;
  gap: 12px;
  border: 0;
  overflow: visible;
}
.product-admin-row {
  display: grid;
  grid-template-columns: 76px repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}
.product-admin-row label { margin: 0; }
.product-admin-row textarea { min-height: 78px; }
.mini-product {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: var(--image-bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.row-actions .button { min-height: 40px; padding: 9px 13px; }
.legal-page p { color: var(--muted); font-size: 17px; line-height: 1.8; white-space: normal; }
.legal-sections {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.legal-sections section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.legal-sections h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}
.config-form {
  display: grid;
  gap: 18px;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.check-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.check-item strong,
.check-item span {
  display: block;
}
.check-item strong {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.check-item.ready strong { color: var(--success); }
.check-item.missing strong { color: var(--error); }
.check-item span {
  color: var(--plum);
  font-weight: 800;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 84px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--plum); font-weight: 900; }
.mobile-tabs { display: none; }

@media (max-width: 980px) {
  .top-strip { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .brand { font-size: 24px; }
  .search { grid-column: 1 / -1; order: 3; }
  .nav-links a { display: none; }
  .hero, .split-band, .vendor-apply, .feature-rail, .detail-layout { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 24px; }
  .hero-media, .hero-media img { min-height: 280px; }
  .auth-layout, .admin-console { grid-template-columns: 1fr; }
  .console-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .console-nav strong { grid-column: 1 / -1; }
  .admin-console .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .role-admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-strip, .category-grid, .product-grid, .vendor-grid, .flow-grid, .policy-grid, .stats-grid, .promo-grid, .zone-grid { grid-template-columns: repeat(2,1fr); }
  .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(92px, .45fr) minmax(140px, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .product-admin-row { grid-template-columns: 76px repeat(2, minmax(0, 1fr)); }
  .detail-art { min-height: 360px; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .nav-shell { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .nav-links { display: none; }
  .mobile-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: white;
    color: var(--plum);
    font-size: 13px;
    font-weight: 900;
  }
  .brand { gap: 8px; font-size: 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .search { grid-column: 1 / -1; width: 100%; max-width: calc(100vw - 32px); min-width: 0; overflow: hidden; }
  .search input { flex: 1 1 0; width: 100%; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .search button { display: none; }
  .cart-button { display: none; }
  .hero, .trust-strip, .section, .split-band, .vendor-apply, .feature-rail, .panel-wrap { padding-left: 16px; padding-right: 16px; }
  .auth-layout { padding: 22px 16px; }
  .auth-copy { padding: 8px 0; }
  .auth-copy h1 { font-size: 34px; }
  .role-preview, .role-admin-grid, .admin-console .stats-grid { grid-template-columns: 1fr; }
  .console-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }
  .console-nav strong { display: none; }
  .console-nav a { flex: 0 0 auto; white-space: nowrap; }
  .admin-console .section-head {
    display: block;
    padding: 14px;
  }
  .admin-console .section-head h1 { font-size: 32px; }
  .admin-console .stat-card { min-height: 78px; }
  .hero { gap: 14px; padding-top: 16px; padding-bottom: 8px; }
  .hero > *, .section > *, .panel-wrap > * { min-width: 0; max-width: calc(100vw - 32px); }
  .hero > div:first-child, .hero h1, .hero .hero-text { max-width: 340px; }
  .hero-text, .section-head p, .muted-text { font-size: 14px; line-height: 1.45; }
  .eyebrow { font-size: 11px; }
  h1 { max-width: calc(100vw - 32px); font-size: 30px; line-height: 1; overflow-wrap: break-word; }
  h2 { font-size: 28px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .button { min-height: 42px; padding: 9px 15px; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .hero-metrics div { min-height: 58px; padding: 8px; }
  .hero-metrics strong { font-size: 17px; }
  .hero-metrics span { font-size: 11px; }
  .hero-media { display: none; }
  .trust-strip, .vendor-grid, .flow-grid, .policy-grid, .stats-grid, .promo-grid, .zone-grid, .form-grid.two, .checklist-grid { grid-template-columns: 1fr; }
  .order-summary-grid,
  .profile-grid { grid-template-columns: 1fr; }
  .trust-strip { display: none; }
  .section { padding-top: 20px; padding-bottom: 20px; }
  #shop { padding-top: 12px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .category-card { min-height: 78px; padding: 12px; }
  .category-card span { font-size: 17px; }
  .product-image { min-height: 150px; }
  .product-body { padding: 12px; }
  .product-actions { grid-template-columns: 1fr; }
  .product-title { min-height: 56px; font-size: 14px; }
  .section-head.row { align-items: flex-start; flex-direction: column; }
  .steps li { display: block; }
  .steps span { display: block; margin-top: 6px; text-align: left; }
  .modal-shell { padding: 18px; }
  .cart-panel { width: min(100vw, 480px); }
  .checkout-modal-shell { width: min(100vw - 18px, 680px); max-height: calc(100dvh - 18px); }
  .detail-meta, .checkout-summary { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .span-2, .span-3 { grid-column: auto; }
  .product-admin-row { grid-template-columns: 1fr; }
  .mini-product { width: 100%; height: 160px; }
  .inline-form, .row-actions { align-items: stretch; flex-direction: column; }
  .footer { flex-direction: column; }
  .mobile-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--line);
    border-top: 1px solid var(--line);
  }
  .mobile-tabs a, .mobile-tabs button {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 0;
    background: white;
    color: var(--plum);
    font-size: 11px;
    font-weight: 900;
  }
}
@media (max-width: 380px) {
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .hero > div:first-child, .hero h1, .hero .hero-text { max-width: 300px; }
  h1 { font-size: 30px; }
  .brand { font-size: 20px; }
}
