:root {
  --bg: #f3f1ec;
  --ink: #142033;
  --muted: #5b667a;
  --card: #ffffff;
  --line: #d9dde5;
  --accent: #0b6e4f;
  --accent-2: #163a5f;
  --warn: #9a3412;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f8 0%, var(--bg) 40%, #ebe7df 100%);
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.nav {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.75rem 1.2rem;
  background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.btn.secondary { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--line); }
.btn.danger { background: var(--warn); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.muted { color: var(--muted); }
.badge {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  background: #e8f5ef; color: var(--accent); font-size: 0.8rem;
}
.stack { display: grid; gap: 0.75rem; }
.flash-error { color: var(--warn); margin: 0.5rem 0; }

/* admin: domain site switcher */
.site-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.site-tab-form { margin: 0; }
.site-tab {
  display: grid;
  gap: 0.12rem;
  text-align: left;
  min-width: 160px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.site-tab:hover { border-color: #b8c0cc; background: #fff; }
.site-tab.is-active {
  border-color: var(--accent);
  background: #e8f5ef;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.site-tab-name { font-weight: 700; font-size: 0.95rem; }
.site-tab-domain { color: var(--muted); font-size: 0.82rem; }
.site-tab-meta { color: var(--accent-2); font-size: 0.78rem; }
.site-current-banner {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #eef3f8;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

/* public landing */
.landing {
  background:
    radial-gradient(1000px 400px at 10% -10%, rgba(11,110,79,0.14), transparent 60%),
    radial-gradient(800px 360px at 100% 0%, rgba(22,58,95,0.12), transparent 55%),
    linear-gradient(180deg, #f7f8fa, #eef1f5 50%, #e9e4da);
}
.hero {
  padding: 2.2rem 0 1rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}
.hero p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0 2rem;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f2f5;
}
.product .body { padding: 1rem; display: grid; gap: 0.45rem; flex: 1; }
.product h3 { margin: 0; font-size: 1.05rem; }
.price { font-weight: 700; color: var(--accent-2); }
.sticky-cta {
  position: sticky; bottom: 0; z-index: 20;
  padding: 0.85rem 0 1rem;
  background: linear-gradient(180deg, transparent, rgba(247,248,250,0.92) 30%, #f7f8fa);
}
.sticky-cta .btn {
  width: 100%;
  box-shadow: 0 8px 24px rgba(11,110,79,0.28);
}
.footer-note { text-align: center; color: var(--muted); font-size: 0.85rem; padding-bottom: 1.5rem; }

/* ecommerce combo series layout */
.combo-list { display: grid; gap: 1.25rem; padding: 0.25rem 0 1.5rem; }
.combo-item {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.combo-media img, .combo-ph {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #e8edf3;
  display: block;
}
.combo-copy {
  padding: 1.1rem 1.2rem 1.2rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.combo-copy h3 { margin: 0; font-size: 1.25rem; }
.combo-summary { margin: 0; color: var(--ink); font-weight: 600; }
.combo-intro { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
@media (max-width: 800px) {
  .combo-item { grid-template-columns: 1fr; }
  .combo-media img, .combo-ph { min-height: 220px; aspect-ratio: 1/1; }
}

/* ---- admin theme picker ---- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}
.theme-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  margin: 0;
}
.theme-card input { width: auto; margin: 0; }
.theme-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11,110,79,0.18);
}
.theme-meta { display: grid; gap: 0.1rem; }
.theme-meta strong { font-size: 0.9rem; }
.theme-meta small { color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.theme-swatch {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}
.theme-swatch-export { background: linear-gradient(135deg, #163a5f, #0b6e4f); }
.theme-swatch-fresh { background: linear-gradient(135deg, #e8f4ff, #9fd3c7); }
.theme-swatch-editorial { background: linear-gradient(135deg, #1c1917, #d6d3d1); }
.theme-swatch-minimal { background: linear-gradient(135deg, #ffffff, #e5e7eb); }
.theme-swatch-noir { background: linear-gradient(135deg, #111827, #c4a574); }
.theme-swatch-factory { background: linear-gradient(135deg, #374151, #9ca3af); }

.preview-banner {
  position: sticky; top: 0; z-index: 50;
  background: #f59e0b; color: #111;
  text-align: center; font-weight: 700;
  padding: 0.45rem 0.75rem; font-size: 0.85rem;
}

/* ---- multi-theme landing ---- */
.landing.theme-export,
.landing.theme-fresh,
.landing.theme-editorial,
.landing.theme-minimal,
.landing.theme-noir,
.landing.theme-factory {
  min-height: 100vh;
}
.lp-hero { padding: 2.6rem 0 1.4rem; }
.lp-kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; margin: 0 0 0.75rem; opacity: 0.75;
}
.lp-brand {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  max-width: 14ch;
}
.lp-sub { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.55rem; max-width: 36ch; }
.lp-lead { margin: 0 0 1.2rem; max-width: 48ch; line-height: 1.55; opacity: 0.85; }
.lp-cta { margin-top: 0.25rem; }
.lp-trust {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  padding: 0.85rem 0 1.4rem;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.72; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lp-skus { display: grid; gap: 1.5rem; padding: 1.5rem 0 2rem; }
.lp-sku {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 1.1rem;
  align-items: stretch;
}
.lp-sku-media {
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.lp-sku-media img, .lp-sku-ph {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}
.lp-sku-copy { display: grid; gap: 0.55rem; align-content: start; padding: 0.35rem 0; }
.lp-sku-copy h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.lp-price { font-weight: 700; font-size: 1.05rem; }
.lp-summary { margin: 0; font-weight: 600; }
.lp-intro { margin: 0; line-height: 1.6; font-size: 0.95rem; opacity: 0.85; }
@media (max-width: 800px) {
  .lp-sku { grid-template-columns: 1fr; }
  .lp-sku-media img, .lp-sku-ph { min-height: 0; }
}

/* export */
.theme-export {
  --lp-bg: #eef2f6;
  --lp-ink: #122033;
  --lp-muted: #5b667a;
  --lp-accent: #0b6e4f;
  --lp-panel: #ffffff;
  background:
    radial-gradient(900px 380px at 8% -8%, rgba(11,110,79,0.12), transparent 55%),
    linear-gradient(180deg, #f4f7fb, var(--lp-bg));
  color: var(--lp-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}
.theme-export .lp-brand { font-family: "Space Grotesk", "Manrope", sans-serif; }
.theme-export .lp-sku { background: var(--lp-panel); border: 1px solid #d7dee8; border-radius: 4px; overflow: hidden; padding: 0; }
.theme-export .lp-sku-copy { padding: 1.15rem 1.2rem 1.3rem; }
.theme-export .lp-price { color: var(--lp-accent); }
.theme-export .btn { background: var(--lp-accent); border-radius: 4px; }

/* fresh */
.theme-fresh {
  background: linear-gradient(180deg, #f8fcff 0%, #eef8f4 55%, #f5faf8 100%);
  color: #16324a;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
.theme-fresh .lp-brand { font-family: "Fraunces", Georgia, serif; color: #0f3d4c; max-width: 16ch; }
.theme-fresh .lp-sku { gap: 1.4rem; background: transparent; }
.theme-fresh .lp-sku-media img { border-radius: 20px; }
.theme-fresh .lp-price { color: #1f7a6a; }
.theme-fresh .btn { background: #1f7a6a; border-radius: 999px; }
.theme-fresh .lp-trust { border-color: rgba(31,122,106,0.18); }

/* editorial */
.theme-editorial {
  background: #f6f3ee;
  color: #1c1917;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
.theme-editorial .lp-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  max-width: 12ch;
}
.theme-editorial .lp-sku:nth-child(even) { direction: rtl; }
.theme-editorial .lp-sku:nth-child(even) > * { direction: ltr; }
.theme-editorial .lp-sku-media img { border-radius: 0; }
.theme-editorial .lp-sku-copy { border-top: 1px solid #1c1917; padding-top: 0.9rem; }
.theme-editorial .lp-price { color: #1c1917; letter-spacing: 0.02em; }
.theme-editorial .btn { background: #1c1917; border-radius: 0; }

/* minimal */
.theme-minimal {
  background: #ffffff;
  color: #111827;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
.theme-minimal .lp-hero { border-bottom: 1px solid #e5e7eb; }
.theme-minimal .lp-brand { font-weight: 500; letter-spacing: -0.02em; max-width: 18ch; }
.theme-minimal .lp-sku {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.4rem;
  gap: 1.5rem;
}
.theme-minimal .lp-sku-media img { border-radius: 0; background: #f9fafb; }
.theme-minimal .btn { background: #111827; border-radius: 0; }
.theme-minimal .lp-trust { opacity: 0.55; border: 0; }

/* noir */
.theme-noir {
  background: radial-gradient(800px 420px at 20% 0%, #1f2937, #0b0f14 55%);
  color: #f3f4f6;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
.theme-noir .lp-brand { font-family: "Fraunces", Georgia, serif; color: #f8fafc; }
.theme-noir .lp-sub, .theme-noir .lp-lead, .theme-noir .lp-intro { color: #d1d5db; }
.theme-noir .lp-sku {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,165,116,0.28);
  border-radius: 12px;
  overflow: hidden;
}
.theme-noir .lp-sku-copy { padding: 1.15rem 1.2rem 1.3rem; }
.theme-noir .lp-price { color: #c4a574; }
.theme-noir .btn { background: #c4a574; color: #111; border-radius: 8px; }
.theme-noir .lp-trust { border-color: rgba(255,255,255,0.12); color: #c4a574; }
.theme-noir .sticky-cta {
  background: linear-gradient(180deg, transparent, rgba(11,15,20,0.92) 35%, #0b0f14);
}
.theme-noir .footer-note { color: #9ca3af; }

/* factory */
.theme-factory {
  background: linear-gradient(180deg, #e5e7eb, #f3f4f6 40%, #d1d5db);
  color: #111827;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}
.theme-factory .lp-brand {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 16ch;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}
.theme-factory .lp-sku {
  background: #fff;
  border: 2px solid #111827;
  border-radius: 0;
  overflow: hidden;
}
.theme-factory .lp-sku-copy { padding: 1rem 1.1rem 1.2rem; }
.theme-factory .lp-price { color: #b45309; }
.theme-factory .btn { background: #111827; border-radius: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.theme-factory .lp-trust { border-color: #111827; font-weight: 700; opacity: 0.9; }

