/* Stateside Dolls — preview storefront
   Light, photo-first catalog. Soft blush header, dark type, dusty-rose prices.
   Official-brand feel. Not a sale circus and not luxury dark. */

:root {
  --bg: #ffffff;
  --bg-soft: #fbf7f6;
  --blush: #f5dfdb;
  --blush-2: #efd0cb;
  --blush-3: #e6c2bb;
  --rose: #c4847a;
  --rose-dark: #a86b63;
  --text: #1b1b1b;
  --muted: #6f6a67;
  --faint: #9a948f;
  --line: rgba(27, 27, 27, 0.10);
  --line-strong: rgba(27, 27, 27, 0.18);
  --elev: #ffffff;
  --card: #ffffff;
  --card-hover: #fbf7f6;
  --danger: #a86b63;
  --radius: 12px;
  --header-h: 78px;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 12px 36px rgba(40, 20, 16, 0.08);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.875rem; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(251, 247, 246, 0.88);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.age-gate[hidden] { display: none; }
.age-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-card .brand {
  justify-content: center;
  margin-bottom: 18px;
  color: var(--text);
}
.age-card h1 { font-size: 1.85rem; margin-bottom: 0.4em; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
body.gated { overflow: hidden; }
#site-root[aria-hidden="true"] { visibility: hidden; pointer-events: none; }

/* Buttons — soft blush pills, dark text */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blush-2); color: var(--text); }
.btn-primary:hover { background: var(--blush-3); color: var(--text); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--text); background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Header — pale blush bar, widely spaced uppercase nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--blush);
  border-bottom: 0;
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.07em;
  line-height: 1;
}
.brand-mark .s { color: var(--rose-dark); }
.brand-mark .d { color: var(--text); }
.brand-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}
.brand-name em {
  font-style: normal;
  color: var(--rose-dark);
  font-weight: 700;
}
.nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav a, .nav-btn {
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.nav a:hover, .nav-btn:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active { font-weight: 700; }
.nav a.is-stock { color: var(--rose-dark); font-weight: 600; }
.cart-link { position: relative; color: var(--text) !important; font-weight: 600; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--text); color: #fff;
  font-size: 0.68rem; font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0;
}
.cart-count[hidden] { display: none; }

.dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel { display: block; }
.dropdown-panel a, .dropdown-panel span {
  display: block; padding: 9px 12px;
  color: var(--muted); font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: none;
  border-radius: 8px;
  font-weight: 400;
}
.dropdown-panel a:hover { background: var(--blush); color: var(--text); }
.dropdown-panel .soon { color: var(--faint); cursor: default; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid rgba(27, 27, 27, 0.2);
  color: var(--text); width: 42px; height: 42px; border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 1px; background: var(--text); margin: 4px auto; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--blush);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .nav.open { display: flex; }
  .dropdown-panel { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .header-inner { position: relative; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fbf4f2 0%, var(--bg) 72%);
  border-bottom: 0;
}
.eyebrow {
  display: inline-block;
  color: var(--rose-dark);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.pending-note {
  font-size: 0.85rem;
  color: var(--faint);
  font-style: italic;
  max-width: 40em;
}

/* Trust */
.trust { padding: 48px 0; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.trust-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 800px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 40em; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  color: var(--text);
  min-height: 148px;
  transition: border-color 0.2s, background 0.2s;
}
.cat-card:hover { border-color: var(--blush-3); background: var(--blush); color: var(--text); }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.cat-card.quiet { opacity: 0.85; }
@media (max-width: 800px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* Product cards — 4-col photo-first, title then dusty-rose price */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex; flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: var(--text);
  transition: opacity 0.2s;
}
.product-card:hover { color: var(--text); opacity: 0.92; }
.product-card .media {
  aspect-ratio: 3 / 4;
  background: #f3efed;
  overflow: hidden;
  position: relative;
}
.product-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.badge {
  display: inline-block;
  background: var(--blush);
  color: var(--text);
  border: 0;
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}
.badge-abs {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(27, 27, 27, 0.08);
}
.product-card .body {
  padding: 14px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-card h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  order: 1;
  color: var(--text);
}
.product-card .price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rose);
  margin: 0;
  padding: 0;
  order: 2;
}
.product-card .meta {
  color: var(--muted);
  font-size: 0.8rem;
  order: 3;
  line-height: 1.45;
}
.product-card .view { display: none; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.filter-chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.filter-chip.is-on, .filter-chip:hover {
  color: var(--text);
  border-color: transparent;
  background: var(--blush);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { color: var(--rose); font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

.discreet-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left;
  background: none; border: 0;
  color: var(--text);
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-item button::after { content: "+"; color: var(--rose); font-family: var(--font-sans); font-weight: 400; }
.faq-item.open button::after { content: "–"; }
.faq-item .answer { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.open .answer { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--bg-soft);
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}
.footer-grid a, .footer-grid p { color: var(--muted); display: block; margin-bottom: 6px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.legal-bar { color: var(--faint); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Page hero (inner pages) */
.page-hero { padding: 48px 0 12px; }
.page-hero p { color: var(--muted); max-width: 44em; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--muted);
  margin: 1.4em 0;
}
.draft-flag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* PDP */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 28px 0 64px; align-items: start; }
.gallery-main {
  background: #f3efed;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 96px; padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  background: #f3efed; cursor: pointer;
}
.thumbs button.is-on { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-weight: 700; letter-spacing: -0.02em; }
.pdp-price {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--rose);
  margin: 8px 0 18px;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.spec-table th { color: var(--muted); font-weight: 400; width: 42%; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.fine { font-size: 0.82rem; color: var(--faint); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery-main { aspect-ratio: 3 / 4; }
}

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 8px 0; }
.cart-table td { padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 72px; height: 96px; object-fit: cover; border-radius: 4px; background: #f3efed; }
.qty-input { width: 64px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; color: var(--text); }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.totals { margin-top: 24px; text-align: right; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.check input { margin-top: 4px; }
.notice {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px;
  color: var(--muted);
  margin: 18px 0;
}
.notice strong { color: var(--text); }
.empty-cart { color: var(--muted); padding: 24px 0 48px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* 404 / empty states */
.center-page { padding: 80px 0; text-align: center; }
.placeholder-soon {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-soft);
}

/* Ticket thread (public lookup) */
.ticket-msg {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

/* Admin — same light language, clearly staff only */
.admin-banner {
  background: var(--text);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 78px - 34px);
}
.admin-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}
.admin-side a {
  display: block;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.is-on { background: var(--blush); color: var(--text); }
.admin-main { padding: 28px 32px 64px; }
.admin-main h1 { font-size: 1.6rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  color: var(--faint);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 0;
}
.admin-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.92rem;
}
.admin-table a { color: var(--text); font-weight: 600; }
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blush);
}
.status-pill.draft, .status-pill.closed { background: #eee; color: var(--muted); }
.status-pill.open { background: var(--blush); }
.status-pill.replied { background: #e8efe8; }
.status-pill.preview_only { background: #eee; color: var(--muted); }
.admin-login {
  max-width: 420px;
  margin: 48px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.map-warn {
  background: #fbf4f2;
  border: 1px solid var(--blush-3);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 8px 0 16px;
}
.image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.image-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.image-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #f3efed; }
.image-tile .meta { padding: 8px 10px 12px; font-size: 0.8rem; }
.image-tile.is-primary { border-color: var(--text); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.header-inner .staff-label {
  margin-left: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-dark);
  font-weight: 700;
}
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
