/* Public shop site at /s/{slug}. Shop brand on the page. Aestar stays off the chrome. */

:root {
  --shop-canvas: #f6f4f0;
  --shop-ink: #141414;
  --shop-muted: #52525b;
  --shop-line: #e4e4e7;
  --shop-accent: #b42318;
  --shop-paper: #ffffff;
  --shop-bar: #ffffff;
  --shop-bar-ink: #141414;
  --shop-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.shop-public {
  background: var(--shop-canvas);
  color: var(--shop-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.shop-preview {
  background: #fff7ed;
  border-bottom: 1px solid var(--shop-line);
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
}
.shop-demo {
  background: #fffbeb;
  border-bottom: 1px solid var(--shop-line);
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
}
.shop-bar {
  background: var(--shop-bar);
  color: var(--shop-bar-ink);
  border-bottom: 1px solid var(--shop-line);
  position: sticky;
  top: 0;
  z-index: 8;
}
.shop-bar .inner, .shop-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.shop-bar .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand phone"
    "nav nav";
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0 10px;
}
.shop-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.shop-logo {
  height: 40px;
  width: auto;
  max-width: min(220px, 58vw);
  display: block;
  background: transparent;
}
.shop-name {
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.shop-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}
.shop-nav a {
  color: var(--shop-muted);
  text-decoration: none;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
}
.shop-nav a[aria-current="page"],
.shop-nav a:hover {
  color: var(--shop-accent);
  background: color-mix(in srgb, var(--shop-accent) 8%, transparent);
}
.shop-bar-phone {
  grid-area: phone;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--shop-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
body[data-palette="chrome-red"] {
  --shop-canvas: #fafafa;
  --shop-ink: #111111;
  --shop-accent: #dc2626;
  --shop-bar: #050505;
  --shop-bar-ink: #fafafa;
}
body[data-palette="chrome-red"] .shop-nav a { color: #d4d4d8; }
body[data-palette="chrome-red"] .shop-nav a[aria-current="page"],
body[data-palette="chrome-red"] .shop-nav a:hover {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.16);
}
body[data-palette="chrome-red"] .shop-bar-phone {
  background: #dc2626;
  color: #fff;
}
body[data-palette="graphite-red"] {
  --shop-canvas: #f4f4f5;
  --shop-ink: #111111;
  --shop-accent: #b91c1c;
  --shop-bar: #18181b;
  --shop-bar-ink: #fafafa;
}
body[data-palette="graphite-red"] .shop-nav a { color: #d4d4d8; }
body[data-palette="graphite-red"] .shop-nav a[aria-current="page"],
body[data-palette="graphite-red"] .shop-nav a:hover {
  color: #fecaca;
  background: rgba(185, 28, 28, 0.18);
}
body[data-palette="graphite-red"] .shop-bar-phone {
  background: #b91c1c;
  color: #fff;
}
body[data-palette="white-chrome"] {
  --shop-canvas: #f6f4f0;
  --shop-ink: #141414;
  --shop-accent: #b91c1c;
  --shop-line: #e4e4e7;
  --shop-bar: #ffffff;
  --shop-bar-ink: #141414;
}
.shop-hero {
  padding: 36px 0 20px;
}
.shop-hero h1 {
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 14ch;
}
.shop-kicker {
  color: var(--shop-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.shop-lead {
  color: var(--shop-muted);
  max-width: 620px;
  margin: 0 0 18px;
  font-size: 17px;
}
.shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: var(--shop-paper);
  color: var(--shop-ink);
  font-size: 13px;
  font-weight: 650;
}
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.shop-btn, .shop-public button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 10px;
  border: 1px solid #141414; background: #141414; color: #fff;
  font-weight: 650; text-decoration: none; cursor: pointer; font: inherit;
}
.shop-btn.ghost, .shop-public button.ghost {
  background: var(--shop-paper); color: #141414; border-color: var(--shop-line);
}
.shop-btn:disabled, .shop-public button:disabled { opacity: 0.55; cursor: not-allowed; }
.shop-section { padding: 12px 0 8px; }
.shop-section-head { margin: 0 0 16px; }
.shop-section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.03em;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}
.shop-card {
  background: var(--shop-paper);
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shop-shadow);
}
.shop-card h2, .shop-card h3 { margin: 0 0 8px; letter-spacing: -0.02em; }
.shop-card a { color: var(--shop-accent); font-weight: 650; text-decoration: none; }
a.shop-trade {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.shop-trade:hover {
  border-color: color-mix(in srgb, var(--shop-accent) 35%, var(--shop-line));
  transform: translateY(-1px);
}
a.shop-trade .shop-card-link {
  color: var(--shop-accent);
  font-weight: 650;
  margin: 12px 0 0;
}
.shop-quote-band .shop-card { padding: 22px; }
.shop-svc, .shop-slot, .shop-rev {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--shop-line);
}
.shop-svc:last-child, .shop-slot:last-child, .shop-rev:last-child { border-bottom: none; }
.price, .muted, .note { color: var(--shop-muted); }
label {
  display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--shop-muted); margin: 0 0 6px;
}
input, select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; margin-bottom: 14px;
  border: 1px solid var(--shop-line); border-radius: 10px; font: inherit;
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
.ok { color: #16a34a; }
.err { color: #dc2626; }
.chat-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 4;
  border-radius: 999px;
}
.chat-panel {
  position: fixed; right: 16px; bottom: 72px; width: min(360px, calc(100vw - 32px));
  z-index: 4; display: none;
}
.chat-panel.open { display: block; }
.empty { text-align: center; padding: 48px 16px; }
.shop-foot {
  border-top: 1px solid var(--shop-line);
  padding: 28px 0 56px;
  color: var(--shop-muted);
  font-size: 13px;
}
.shop-foot strong { color: var(--shop-ink); }
@media (max-width: 720px) {
  .shop-actions { display: grid; }
  .shop-actions .shop-btn { width: 100%; }
}
@media (min-width: 860px) {
  .shop-bar .inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav phone";
    padding: 14px 0;
    gap: 20px;
  }
  .shop-logo {
    height: 44px;
    max-width: 260px;
  }
  .shop-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin: 0;
  }
  .shop-nav a { padding: 8px 10px; }
  .shop-hero { padding: 56px 0 32px; }
}
