/* FullLobby Shops — twelve storefront skins.
 * Applied via html[data-theme="…"] + CSS variables from the site builder.
 * letter-spacing stays 0. Never Inter.
 */
html.shop-root, html.shop-root body {
  margin: 0;
  letter-spacing: 0;
  word-spacing: 0;
  color: var(--shop-ink, #0b1220);
  background: var(--shop-bg, #fff);
  background-image: var(--shop-bg-image, none);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  font-family: var(--shop-body, system-ui, "Segoe UI", sans-serif);
}
html.shop-root body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--shop-wash, transparent);
}
.shop-wrap {
  max-width: var(--shop-wrap, 960px);
  margin: 0 auto;
  padding: 20px 16px 96px;
}
.shop-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  animation: shop-fade-up .45s ease both;
}
.shop-top img.logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.shop-top a.brand {
  font-weight: 750; color: inherit; text-decoration: none;
  font-family: var(--shop-display, inherit);
}
.shop-mark {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  background: var(--shop-surface-2, #f3f5f8);
}
.shop-banner {
  display: block; width: 100%; border-radius: var(--shop-radius, 14px);
  overflow: hidden; margin-bottom: 18px;
  animation: shop-fade-up .55s ease .05s both;
}
.shop-banner img { width: 100%; display: block; max-height: 220px; object-fit: cover; }
.shop-banner-text {
  padding: 10px 14px; font-weight: 700; font-size: 14px;
  background: var(--shop-accent, #1f5ae0); color: #fff;
}
.shop-hero-block {
  margin-bottom: 22px;
  animation: shop-fade-up .55s ease .08s both;
}
.shop-hero-block h1 {
  margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0;
  font-family: var(--shop-display, inherit);
  font-weight: var(--shop-hero-weight, 750);
  line-height: 1.15;
}
.shop-hero-block .lede {
  margin: 10px 0 0; color: var(--shop-muted, #4b5768);
  font-size: 15px; line-height: 1.55; max-width: 42rem;
}
.shop-hero-media {
  margin: 0 0 22px; border-radius: var(--shop-radius, 14px);
  overflow: hidden; min-height: 180px;
  background: var(--shop-surface-2, #f3f5f8);
  animation: shop-scale-in .6s ease both;
}
.shop-hero-media img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.shop-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shop-mut { color: var(--shop-muted, #4b5768); font-size: 14px; line-height: 1.55; }
.shop-price {
  font-size: 28px; font-weight: 750;
  font-variant-numeric: tabular-nums; margin: 8px 0 14px;
  color: var(--shop-price, inherit);
}
.shop-media {
  background: var(--shop-surface-2, #f3f5f8);
  border-radius: var(--shop-radius, 14px);
  overflow: hidden; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.shop-media img, .shop-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-media.is-portrait { aspect-ratio: 3 / 4; }
.shop-media.is-landscape { aspect-ratio: 4 / 3; }
.hero.product {
  display: grid; gap: 22px;
  animation: shop-fade-up .5s ease both;
}
@media (min-width: 760px) {
  .hero.product { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* Product grid densities */
.pgrid {
  display: grid; gap: var(--shop-grid-gap, 14px);
  grid-template-columns: repeat(auto-fill, minmax(var(--shop-card-min, 200px), 1fr));
  animation: shop-fade-up .55s ease .12s both;
}
html[data-density="cozy"] { --shop-card-min: 240px; --shop-grid-gap: 18px; }
html[data-density="comfortable"] { --shop-card-min: 200px; --shop-grid-gap: 14px; }
html[data-density="compact"] { --shop-card-min: 150px; --shop-grid-gap: 10px; }

.pcard {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--shop-line, #e8edf4);
  border-radius: var(--shop-radius, 14px);
  overflow: hidden;
  background: var(--shop-surface, #fff);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pcard:hover {
  transform: translateY(var(--shop-lift, -2px));
  box-shadow: var(--shop-shadow, 0 10px 28px rgba(11,18,32,.08));
}
.pcard .ph { aspect-ratio: 1; background: var(--shop-surface-2, #f3f5f8); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .pb { padding: 12px; }
.pcard .pn { font-weight: 700; font-family: var(--shop-display, inherit); }
.pcard .pp { margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Option / variant picker */
.opt-axes { display: grid; gap: 14px; margin: 16px 0; }
.opt-axis label.ax { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  border: 1px solid var(--shop-line, #e8edf4);
  background: var(--shop-surface, #fff);
  color: inherit; border-radius: 999px;
  padding: 8px 12px; font: inherit; cursor: pointer;
  letter-spacing: 0;
}
.opt-chip.on {
  border-color: var(--shop-accent, #1f5ae0);
  background: var(--shop-accent, #1f5ae0);
  color: #fff;
}
.opt-chip:disabled { opacity: .4; cursor: not-allowed; }
.opt-stock { font-size: 13px; margin-top: 6px; color: var(--shop-muted, #4b5768); }
.opt-stock.out { color: #b91c1c; }

.sheet {
  position: fixed; inset: 0; background: rgba(11,18,32,.42);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 40; padding: 16px;
}
.sheet.on { display: flex; }
.sheet .panel {
  background: var(--shop-surface, #fff);
  color: var(--shop-ink, #0b1220);
  border-radius: 16px 16px 12px 12px;
  width: min(480px, 100%);
  padding: 18px 16px 22px; max-height: 90vh; overflow: auto;
}
.fld { margin: 10px 0; }
.fld label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.fld input, .fld textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--shop-line, #e5e9ef);
  border-radius: 10px; font: inherit; letter-spacing: 0;
  background: #fff; color: #0b1220;
}
.err { color: #b91c1c; font-size: 13px; margin-top: 8px; }
.ok { color: #047857; font-size: 14px; margin-top: 10px; }

.shop-foot {
  margin-top: 48px; padding-top: 18px;
  border-top: 1px solid var(--shop-line, #e8edf4);
  font-size: 12px; color: var(--shop-muted, #77839a);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: space-between;
}
.shop-foot a { color: inherit; }

/* Header styles */
html[data-header="centered"] .shop-top {
  flex-direction: column; text-align: center; gap: 8px;
}
html[data-header="centered"] .shop-top .crumb { margin-left: 0 !important; }
html[data-header="stacked"] .shop-top {
  flex-wrap: wrap; border-bottom: 2px solid var(--shop-ink, #0b1220);
  padding-bottom: 12px;
}
html[data-header="minimal"] .shop-top a.brand { font-weight: 500; opacity: .85; }

/* Primary buttons inherit accent */
html.shop-root .btn.primary {
  background: var(--shop-accent, #1f5ae0);
  border-color: var(--shop-accent, #1f5ae0);
  color: #fff;
}

@keyframes shop-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes shop-scale-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}

/* ---------- Theme personalities ---------- */
html[data-theme="clean-storefront"] {
  --shop-ink: #0b1220; --shop-muted: #4b5768; --shop-line: #e8edf4;
  --shop-surface: #fff; --shop-surface-2: #f3f5f8; --shop-radius: 14px;
  --shop-lift: -2px;
}
html[data-theme="bold-editorial"] {
  --shop-ink: #111; --shop-muted: #444; --shop-line: #111;
  --shop-surface: #fff; --shop-surface-2: #f0f0f0; --shop-radius: 0;
  --shop-hero-weight: 900; --shop-wrap: 880px; --shop-lift: 0;
  --shop-shadow: none;
}
html[data-theme="bold-editorial"] .pcard { border-width: 2px; }
html[data-theme="bold-editorial"] .shop-hero-block h1 {
  text-transform: uppercase; font-size: clamp(34px, 6vw, 56px);
}
html[data-theme="bold-editorial"] .pgrid { gap: 0; }
html[data-theme="bold-editorial"] .pcard { border-radius: 0; }

html[data-theme="warm-craft"] {
  --shop-ink: #3b2f24; --shop-muted: #6b5848; --shop-line: #e0d4c4;
  --shop-surface: #fffaf3; --shop-surface-2: #efe4d4; --shop-radius: 18px;
  --shop-wash: radial-gradient(ellipse at top, rgba(255,248,235,.9), transparent 55%);
  --shop-shadow: 0 12px 30px rgba(90,60,30,.1);
}
html[data-theme="warm-craft"] .pcard .ph { aspect-ratio: 4/5; }

html[data-theme="dark-gallery"] {
  --shop-ink: #f5f5f4; --shop-muted: #a8a29e; --shop-line: #292524;
  --shop-surface: #171717; --shop-surface-2: #0c0c0e; --shop-radius: 8px;
  --shop-price: #fafaf9; --shop-shadow: 0 16px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
html[data-theme="dark-gallery"] .fld input,
html[data-theme="dark-gallery"] .fld textarea {
  background: #0c0c0e; color: #f5f5f4; border-color: #292524;
}
html[data-theme="dark-gallery"] .sheet { background: rgba(0,0,0,.72); }
html[data-theme="dark-gallery"] .sheet .panel { background: #171717; color: #f5f5f4; }
html[data-theme="dark-gallery"] .pcard .ph { aspect-ratio: 5/6; }
html[data-theme="dark-gallery"] .shop-hero-media { min-height: 280px; }

html[data-theme="pastel-boutique"] {
  --shop-ink: #4a2540; --shop-muted: #8a647c; --shop-line: #f5d5e5;
  --shop-surface: #fff; --shop-surface-2: #ffe8f2; --shop-radius: 22px;
  --shop-wash: linear-gradient(180deg, #fff7fb, transparent 40%);
  --shop-shadow: 0 14px 32px rgba(219,39,119,.12);
}
html[data-theme="pastel-boutique"] .pcard { border: none; }

html[data-theme="industrial-trade"] {
  --shop-ink: #18181b; --shop-muted: #52525b; --shop-line: #d4d4d8;
  --shop-surface: #fff; --shop-surface-2: #e4e4e7; --shop-radius: 4px;
  --shop-hero-weight: 900; --shop-lift: 0;
  --shop-shadow: 4px 4px 0 #18181b;
}
html[data-theme="industrial-trade"] .shop-hero-block h1 {
  text-transform: uppercase; letter-spacing: 0;
}
html[data-theme="industrial-trade"] .pcard { border-width: 2px; border-color: #18181b; }
html[data-theme="industrial-trade"] .opt-chip { border-radius: 4px; border-width: 2px; }

html[data-theme="minimal-swiss"] {
  --shop-ink: #171717; --shop-muted: #737373; --shop-line: #e5e5e5;
  --shop-surface: #fff; --shop-surface-2: #fafafa; --shop-radius: 0;
  --shop-wrap: 1000px; --shop-lift: 0; --shop-shadow: none;
}
html[data-theme="minimal-swiss"] .shop-top {
  border-bottom: 1px solid #171717; padding-bottom: 10px;
}
html[data-theme="minimal-swiss"] .pcard { border: none; border-top: 1px solid #171717; border-radius: 0; }
html[data-theme="minimal-swiss"] .pcard .ph { aspect-ratio: 1; background: #f5f5f5; }

html[data-theme="color-block"] {
  --shop-ink: #0c4a6e; --shop-muted: #0369a1; --shop-line: #bae6fd;
  --shop-surface: #fff; --shop-surface-2: #e0f2fe; --shop-radius: 0;
  --shop-wash: linear-gradient(120deg, #ecfeff 0%, #fff 45%, #fef9c3 100%);
  --shop-shadow: 0 0 0 3px var(--shop-accent, #0284c7);
}
html[data-theme="color-block"] .pcard { border: 3px solid var(--shop-accent, #0284c7); }
html[data-theme="color-block"] .shop-hero-block {
  padding: 22px; background: var(--shop-accent, #0284c7); color: #fff;
  border-radius: 0;
}
html[data-theme="color-block"] .shop-hero-block .lede { color: rgba(255,255,255,.9); }

html[data-theme="photo-led"] {
  --shop-ink: #f8fafc; --shop-muted: #cbd5e1; --shop-line: #334155;
  --shop-surface: #1e293b; --shop-surface-2: #0f172a; --shop-radius: 12px;
  --shop-wrap: 1040px; color-scheme: dark;
}
html[data-theme="photo-led"] .shop-hero-media {
  min-height: 320px; border-radius: 0; margin-left: -16px; margin-right: -16px;
  width: calc(100% + 32px); max-width: none;
}
@media (min-width: 760px) {
  html[data-theme="photo-led"] .shop-hero-media {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    width: 100vw;
  }
}
html[data-theme="photo-led"] .fld input,
html[data-theme="photo-led"] .fld textarea {
  background: #0f172a; color: #f8fafc; border-color: #334155;
}
html[data-theme="photo-led"] .sheet .panel { background: #1e293b; color: #f8fafc; }

html[data-theme="compact-catalog"] {
  --shop-ink: #134e4a; --shop-muted: #5b7a76; --shop-line: #ccfbf1;
  --shop-surface: #fff; --shop-surface-2: #f0fdfa; --shop-radius: 10px;
  --shop-wrap: 1100px;
}
html[data-theme="compact-catalog"] .pcard .pb { padding: 8px; }
html[data-theme="compact-catalog"] .pcard .pn { font-size: 13px; }
html[data-theme="compact-catalog"] .pcard .ph { aspect-ratio: 1; }

html[data-theme="luxury-serif"] {
  --shop-ink: #1c1917; --shop-muted: #78716c; --shop-line: #e7e5e4;
  --shop-surface: #fff; --shop-surface-2: #f5f5f4; --shop-radius: 2px;
  --shop-hero-weight: 500; --shop-wrap: 900px;
  --shop-shadow: 0 20px 50px rgba(28,25,23,.08);
}
html[data-theme="luxury-serif"] .shop-hero-block h1 {
  font-size: clamp(36px, 5vw, 52px); font-weight: 500;
}
html[data-theme="luxury-serif"] .pcard { border: none; }
html[data-theme="luxury-serif"] .pcard .ph { aspect-ratio: 3/4; }

html[data-theme="seasonal-promo"] {
  --shop-ink: #7c2d12; --shop-muted: #9a3412; --shop-line: #fed7aa;
  --shop-surface: #fff; --shop-surface-2: #ffedd5; --shop-radius: 16px;
  --shop-wash: radial-gradient(circle at top right, rgba(254,215,170,.7), transparent 50%);
}
html[data-theme="seasonal-promo"] .shop-banner {
  box-shadow: 0 8px 0 var(--shop-accent, #dc2626);
}
html[data-theme="seasonal-promo"] .shop-hero-block h1::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 10px;
  background: var(--shop-accent, #dc2626);
}

@media (prefers-reduced-motion: reduce) {
  .shop-top, .shop-banner, .shop-hero-block, .shop-hero-media, .pgrid, .hero.product {
    animation: none !important;
  }
  .pcard { transition: none; }
}
