/* ── SolveServe Edge design system ─────────────────────────────────────────
   Tenant theming: every tenant injects `--brand` on <body>. Everything else
   derives from it via color-mix, so one stylesheet themes 1,000 tenants. */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --shadow-lift: 0 2px 4px rgb(15 23 42 / 0.06), 0 16px 40px rgb(15 23 42 / 0.12);
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0.4rem 0; }
code { font-family: var(--mono); font-size: 0.9em; background: rgb(15 23 42 / 0.05); padding: 0.1em 0.4em; border-radius: 5px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-dot { width: 11px; height: 11px; border-radius: 4px; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--ink-soft); font-weight: 550; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%;
  background:
    radial-gradient(600px 300px at 20% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 320px at 80% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
/* Signature layout: split hero when a visual exists (themes restyle this) */
.hero-grid:has(.hero-visual) { grid-template-columns: 1.05fr 0.95fr; text-align: left; }
.hero-grid:has(.hero-visual) .hero-sub,
.hero-grid:has(.hero-visual) .hero-cta { margin-left: 0; justify-content: flex-start; }
.hero-visual { display: none; } /* themes opt in; signature shows it as a card */
.hero-grid:has(.hero-visual) .hero-visual { display: block; }
.hero-visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
/* one orchestrated entrance: copy staggers up, visual settles in */
.hero-copy > * { animation: ss-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
.hero-visual img { animation: ss-settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
@keyframes ss-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ss-settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { max-width: 620px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Ticker (marquee) — themes opt in ────────────────────────────────────── */
.ticker { display: none; overflow: hidden; }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-item { white-space: nowrap; padding: 12px 0; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px; font-weight: 650; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: inherit; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--card); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 9px; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.linklike { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--brand); font-weight: 600; }
.linklike.danger { color: #dc2626; }
.linklike:hover { text-decoration: underline; }

/* ── Sections & cards ────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 4%, transparent)); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.see-all { font-weight: 650; color: var(--brand); white-space: nowrap; }
.page-head { margin-bottom: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ── Products ────────────────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.product-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, #eef2f7), color-mix(in srgb, var(--brand) 6%, #f8fafc));
  display: flex; align-items: center; justify-content: center;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-initial { font-size: 3rem; font-weight: 800; color: color-mix(in srgb, var(--brand) 65%, white); }
.product-body { display: flex; flex-direction: column; gap: 10px; }
.product-name { font-weight: 700; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 1.6rem; }
.price-strike { color: var(--muted); text-decoration: line-through; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.product-media-lg { aspect-ratio: 1; border-radius: var(--radius); }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.qty-row select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); font: inherit; }

/* ── Pills / badges ──────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
}
.pill-green { background: #dcfce7; color: #15803d; }
.pill-amber { background: #fef3c7; color: #b45309; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-slate { background: #e2e8f0; color: #475569; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 130px 1fr 110px; gap: 20px; align-items: baseline;
  padding: 20px 8px; border-bottom: 1px solid var(--line); border-radius: 8px;
}
.post-row:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.post-date { color: var(--muted); font-size: 0.88rem; }
.post-title { display: block; font-weight: 700; font-size: 1.08rem; }
.post-excerpt { display: block; color: var(--muted); font-size: 0.94rem; margin-top: 3px; }
.post-read { color: var(--muted); font-size: 0.85rem; text-align: right; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 4px; } .post-read { text-align: left; } }
.article-title { margin-top: 10px; }
.article-meta { margin-bottom: 22px; }
.article-cover { border-radius: var(--radius); margin-bottom: 22px; }
.back-link { color: var(--muted); font-weight: 600; font-size: 0.9rem; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: var(--brand); }

/* ── Prose (markdown) ────────────────────────────────────────────────────── */
.prose { font-size: 1.03rem; color: var(--ink-soft); }
.prose h2 { margin-top: 1.8em; color: var(--ink); }
.prose h3 { margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose blockquote {
  border-left: 3px solid var(--brand); margin: 1.2em 0; padding: 0.4em 1em;
  background: color-mix(in srgb, var(--brand) 5%, transparent); border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}
.prose code { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }

/* ── Orders / totals ─────────────────────────────────────────────────────── */
.order-card { display: flex; flex-direction: column; gap: 14px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.totals { margin-left: auto; max-width: 320px; width: 100%; }
.total-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-soft); }
.total-final { border-top: 2px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 1.15rem; margin-top: 4px; padding-top: 10px; }
.contact-card { margin-top: 28px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 650; font-size: 0.9rem; color: var(--ink-soft); }
.input {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--card); transition: border 0.12s ease, box-shadow 0.12s ease;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input-color { padding: 4px; height: 44px; width: 80px; }
.mono { font-family: var(--mono); font-size: 0.88rem; }
textarea.input { resize: vertical; }
select.input { appearance: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: span 1; } }
.form-card { margin-top: 6px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 550; color: var(--ink-soft); cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--brand); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hint { font-size: 0.82rem; margin: 4px 0 0; }
.image-field { display: flex; flex-direction: column; gap: 8px; }
.image-preview {
  width: 130px; height: 90px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: var(--bg);
}
.image-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Theme picker ────────────────────────────────────────────────────────── */
.theme-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .theme-picker { grid-template-columns: 1fr; } }
.theme-option {
  display: flex; gap: 12px; align-items: center; padding: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
}
.theme-option:hover { border-color: var(--ink-soft); }
.theme-option.selected { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.theme-option input { accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.theme-swatch {
  width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; border: 1px solid var(--line);
}
.theme-info { display: flex; flex-direction: column; gap: 2px; }
.theme-name { font-weight: 700; font-size: 0.95rem; }
.theme-blurb { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.admin-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

/* ── Translation fieldsets ───────────────────────────────────────────────── */
.i18n-fieldset {
  grid-column: 1 / -1; border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 14px 16px 6px; margin: 6px 0 14px;
}
.i18n-fieldset legend { font-weight: 700; font-size: 0.85rem; color: var(--muted); padding: 0 8px; }

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash { padding: 11px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.flash-ok { background: #dcfce7; color: #15803d; }
.flash-error { background: #fee2e2; color: #b91c1c; }
.flash-info { background: #e0e7ff; color: #3730a3; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th {
  text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; }
.row-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }

/* ── Admin layout ────────────────────────────────────────────────────────── */
.admin-body { background: #f1f5f9; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: static !important; height: auto !important; } }
.admin-sidebar {
  background: #0b1220; color: #cbd5e1; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.admin-brand-name { font-weight: 800; color: white; line-height: 1.25; }
.admin-brand-sub { font-size: 0.75rem; color: #64748b; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a { padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 0.94rem; color: #94a3b8; }
.admin-nav a:hover { color: white; background: rgb(255 255 255 / 6%); }
.admin-nav a.active { color: white; background: color-mix(in srgb, var(--brand) 80%, #1e293b); }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; border-top: 1px solid rgb(255 255 255 / 8%); padding-top: 14px; }
.admin-sidebar-foot a { color: #94a3b8; }
.admin-sidebar-foot a:hover { color: white; }
.admin-sidebar-foot form { margin: 0; }
.admin-sidebar-foot .linklike { color: #94a3b8; font-weight: 600; font-size: 0.88rem; }
.admin-sidebar-foot .linklike:hover { color: #fca5a5; text-decoration: none; }
.admin-main { padding: 30px 36px; max-width: 1120px; }
@media (max-width: 640px) { .admin-main { padding: 20px 16px; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-sec { margin: 30px 0 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 8px; }
.stat-card { padding: 18px 20px; }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; }
.shipping-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.shipping-edit { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; flex: 1; }
.shipping-edit .input { max-width: 240px; }
.shipping-row form { margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 18px; }
.media-item { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.media-item img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; background: var(--bg); }
.media-name { font-size: 0.8rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; gap: 12px; }

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(700px 350px at 15% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(700px 350px at 85% 90%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-brand { justify-content: center; font-size: 1.1rem; margin-bottom: 10px; }
.auth-card h1 { font-size: 1.35rem; text-align: center; }
.auth-card .muted { text-align: center; margin-bottom: 18px; }

/* ── Cart page ───────────────────────────────────────────────────────────── */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, #eef2f7), #f8fafc); display: flex; align-items: center; justify-content: center; font-weight: 800; color: color-mix(in srgb, var(--brand) 60%, white); }
.cart-qty { display: flex; gap: 6px; align-items: center; }
.cart-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.cart-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.cart-remove { color: var(--muted); font-size: 0.85rem; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }
.shipping-choice { display: flex; flex-direction: column; gap: 8px; }
.shipping-choice label { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 550; }
.shipping-choice label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, transparent); }
.shipping-choice input { accent-color: var(--brand); }
.added-feedback { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 0.9rem; box-shadow: var(--shadow-lift); z-index: 100; animation: pop 0.18s ease; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%); } }

/* ── Platform landing extras ─────────────────────────────────────────────── */
.feature-card, .step-card { padding: 26px; }
.feature-icon { font-size: 1.7rem; margin-bottom: 10px; }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
}
.tenant-card { display: flex; gap: 16px; align-items: flex-start; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tenant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tenant-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; font-weight: 800;
}
.tenant-name { font-weight: 800; font-size: 1.08rem; }
.footer { background: #0b1220; color: #94a3b8; margin-top: 40px; padding: 44px 0 26px; }
.footer h4 { color: #e2e8f0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: white; }
.footer-note { border-top: 1px solid rgb(255 255 255 / 8%); margin-top: 26px; padding-top: 18px; font-size: 0.85rem; }

/* ── Language switch ─────────────────────────────────────────────────────── */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 4px 10px; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.lang-switch a.active { background: var(--brand); color: var(--brand-ink); }

/* ── Mobile navigation drawer (CSS-only checkbox toggle) ─────────────────── */
.nav-toggle { display: none; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .nav-links, .nav .cart-link { display: none; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .nav .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:checked ~ .nav .mobile-nav { display: block; }
  .mobile-nav { border-top: 1px solid var(--line); background: var(--card); }
  .mobile-nav a { display: block; padding: 15px 4px; font-weight: 650; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-nav .lang-switch { margin: 16px 0; }
}

/* ── Mobile bottom cart bar ──────────────────────────────────────────────── */
.mobile-cart-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--ink); color: white; border-radius: 14px; z-index: 60;
  padding: 13px 18px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgb(15 23 42 / 35%);
}
.mobile-cart-bar .mobile-cart-label { font-weight: 650; display: inline-flex; gap: 8px; align-items: center; }
.mobile-cart-bar .mobile-cart-cta { font-weight: 750; background: var(--brand); padding: 7px 16px; border-radius: 999px; }
@media (max-width: 768px) {
  body[data-ecom="1"] .mobile-cart-bar { display: flex; }
  body[data-ecom="1"] { padding-bottom: 84px; }
  .nav .lang-switch { display: none; }
}

/* ── Mobile-tailored layouts (not just stacking) ─────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 56px 0 44px; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { order: -1; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 40px 0; }
}
@media (max-width: 520px) {
  /* product cards become compact horizontal rows — thumb left, actions right */
  .grid.cols-3 { grid-template-columns: 1fr; }
  .product-card { flex-direction: row !important; align-items: center; }
  .product-media { width: 104px; aspect-ratio: 1; flex-shrink: 0; }
  .product-body { flex: 1; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-read { display: none; }
  .container { padding: 0 16px; }
  .admin-main { padding: 16px 12px; }
}
