:root {
  --brand: #7C3AED;
  --brand-accent: #FF7A00;
  --brand-dark: #09031F;
  --brand-soft: #F6F3FF;
  --text: #111827;
  --muted: #6b7280;
  --line: #e7e5f4;
  --surface: #ffffff;
  --page: #f6f3ff;
  --success: #0f9d58;
  --danger: #dc2626;
  --shadow: 0 18px 48px rgba(26, 11, 63, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: radial-gradient(circle at top left, rgba(124,58,237,.08), transparent 28%), var(--page); color: var(--text); }
button { font: inherit; }
.app-shell { min-height: 100vh; padding-bottom: 165px; }
.hero {
  color: #fff;
  padding: 18px 18px 30px;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.45), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,122,0,.22), transparent 32%),
    linear-gradient(180deg, #120633 0%, #09031F 58%, #030014 100%);
}
.hero-topbar,
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero-topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom: 16px; }
.powered-by {
  display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); backdrop-filter:blur(10px);
}
.snovexa-mark { height: 24px; width: auto; display:block; }
.powered-by span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border-radius:999px;
  background:linear-gradient(90deg, rgba(124,58,237,.28), rgba(255,122,0,.22)); border:1px solid rgba(255,255,255,.1);
  color:#fff; font-size:12px; font-weight:800; letter-spacing:.02em;
}
.hero-inner { display: flex; gap: 16px; align-items: center; }
.logo { width: 68px; height: 68px; border-radius: 20px; object-fit: cover; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.logo-placeholder {
  width:68px; height:68px; border-radius:20px; display:grid; place-items:center; color:#fff; font-size:24px; font-weight:900;
  background:linear-gradient(135deg, rgba(124,58,237,.9), rgba(255,122,0,.75)); border:1px solid rgba(255,255,255,.16);
}
.hero-copy h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; }
.hero-copy p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; max-width: 760px; }
.container { max-width: 1120px; margin: 0 auto; padding: 22px 16px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.promo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 360px); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.promo-strip::-webkit-scrollbar { display:none; }
.promo-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 16px; text-align: left; cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04); transition: .18s ease; position:relative; overflow:hidden;
}
.promo-card::after {
  content:''; position:absolute; inset:auto -20% -60% auto; width:120px; height:120px; border-radius:50%; background: rgba(124,58,237,.06);
}
.promo-card:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(26, 11, 63, .07); }
.promo-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124,58,237,.12), 0 14px 30px rgba(124,58,237,.10); }
.promo-badge {
  display:inline-flex; padding:5px 8px; border-radius:999px; font-size:11px; font-weight:800;
  background:linear-gradient(90deg, rgba(124,58,237,.12), rgba(255,122,0,.14)); color:var(--brand); text-transform:uppercase; letter-spacing:.06em;
}
.promo-card h3 { margin: 10px 0 5px; font-size: 18px; position:relative; z-index:1; }
.promo-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.45; position:relative; z-index:1; }
.progress { margin-top:12px; height:7px; border-radius:99px; background:#eceef1; overflow:hidden; position:relative; z-index:1; }
.progress > span { display:block; height:100%; background:linear-gradient(90deg, var(--brand), var(--brand-accent)); transition:width .2s ease; }
.filters { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:16px; }
.filter-chip { border:1px solid var(--line); background:#fff; border-radius:999px; padding:9px 13px; white-space:nowrap; cursor:pointer; color:#374151; }
.filter-chip.active { background:var(--brand); color:#fff; border-color:var(--brand); }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-card { background:#fff; border:1px solid var(--line); border-radius:22px; overflow:hidden; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.product-media { aspect-ratio:1/1; background:#f0f1f3; position:relative; overflow:hidden; }
.product-media img { width:100%; height:100%; object-fit:cover; display:block; }
.product-media .no-image { height:100%; display:grid; place-items:center; color:var(--muted); font-size:13px; }
.product-body { padding:13px; }
.product-body h3 { margin:0 0 5px; font-size:15px; text-transform:capitalize; }
.product-meta { color:var(--muted); font-size:12px; min-height:17px; }
.variant-title { margin:12px 0 7px; font-size:11px; font-weight:700; color:#4b5563; text-transform:uppercase; letter-spacing:.04em; }
.variant-list { display:flex; flex-wrap:wrap; gap:7px; }
.variant-btn {
  min-width:42px; border:1px solid var(--line); background:#fff; border-radius:12px; padding:8px 9px; cursor:pointer; font-weight:700; font-size:12px;
  transition:.16s ease;
}
.variant-btn.selected { background:var(--brand); color:#fff; border-color:var(--brand); box-shadow: 0 8px 18px rgba(124,58,237,.22); }
.variant-btn.disabled { opacity:.32; cursor:not-allowed; }
.price { margin-top:12px; font-size:14px; font-weight:800; color: var(--brand-dark); }
.empty { background:#fff; border:1px dashed var(--line); border-radius:18px; padding:34px 18px; text-align:center; color:var(--muted); }
.bottom-cart {
  position:fixed; left:0; right:0; bottom:0; z-index:20; background:rgba(255,255,255,.95); backdrop-filter:blur(16px);
  border-top:1px solid rgba(124,58,237,.12); box-shadow:0 -12px 40px rgba(17,24,39,.08);
}
.bottom-inner { max-width:1120px; margin:0 auto; padding:12px 16px max(12px, env(safe-area-inset-bottom)); display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px; }
.cart-kicker { font-size:11px; font-weight:900; color:var(--brand); text-transform:uppercase; letter-spacing:.06em; }
.cart-title { font-size:14px; font-weight:700; margin-top:2px; }
.cart-help { margin-top:4px; color: var(--muted); font-size: 12px; }
.cart-pricing { display:flex; gap:9px; align-items:center; margin-top:6px; font-size:13px; }
.old-price { color:var(--muted); text-decoration:line-through; }
.total { font-weight:900; font-size:18px; color: var(--brand-dark); }
.whatsapp-btn {
  border:0; border-radius:16px; padding:13px 18px; background:#25D366; color:#071f11; font-weight:900; cursor:pointer; min-width:210px;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .22);
}
.whatsapp-btn:disabled { background:#d1d5db; color:#6b7280; cursor:not-allowed; box-shadow:none; }
.toast { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:50; background:#111827; color:#fff; padding:11px 15px; border-radius:12px; box-shadow:var(--shadow); font-size:13px; max-width:90vw; }
.loading-screen { min-height:100vh; display:grid; place-items:center; align-content:center; gap:12px; color:var(--muted); }
.spinner { width:34px; height:34px; border:3px solid #ddd; border-top-color:var(--brand); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (min-width: 760px) {
  .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .hero { padding:24px 24px 36px; }
  .product-body h3 { font-size:17px; }
}
@media (min-width: 1020px) { .grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .hero-topbar { flex-direction:column; align-items:flex-start; }
  .bottom-inner { grid-template-columns:1fr; gap:9px; }
  .whatsapp-btn { width:100%; }
  .app-shell { padding-bottom:210px; }
}
