:root {
  color-scheme: dark;
  --bg: #0c1018;
  --bg-2: #111722;
  --panel: #171e2b;
  --panel-2: #1c2433;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9aa8bc;
  --brand: #1088f0;
  --brand-2: #0068d8;
  --aqua: #00b4d8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --sidebar-w: 268px;
  --radius: 14px;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --bottom-nav-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --site-footer-h: 2.1rem;
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background-color: #0c1018;
  -webkit-text-size-adjust: 100%;
}
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background-color: #0c1018;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img, a, svg, video, canvas {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: #0c1018;
  background-image:
    radial-gradient(720px 340px at 10% -10%, rgba(16, 136, 240, 0.12), transparent 55%),
    radial-gradient(560px 280px at 100% 0%, rgba(0, 180, 216, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0e16, var(--bg) 42%, #090d14);
  line-height: 1.45;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
body.scroll-lock {
  overflow: hidden;
}
body.modal-open .bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

/* Scrollbars — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 136, 240, 0.55) rgba(12, 16, 24, 0.85);
}

/* Scrollbars — Chrome / Edge / Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(12, 16, 24, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(61, 160, 245, 0.08);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(16, 136, 240, 0.75), rgba(0, 104, 216, 0.65));
  border-radius: 999px;
  border: 2px solid rgba(12, 16, 24, 0.9);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 180, 216, 0.9), rgba(16, 136, 240, 0.85));
  border: 2px solid rgba(12, 16, 24, 0.9);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

button, input, select, textarea {
  font: inherit;
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: #8b9bb3;
  opacity: 1;
}
input::-webkit-input-placeholder { color: #8b9bb3; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f5f7fa !important;
  caret-color: #f5f7fa;
  box-shadow: 0 0 0 1000px #0f1420 inset !important;
  transition: background-color 99999s ease-out;
}
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}
.main-col {
  min-width: 0;
  padding-bottom: calc(var(--site-footer-h) + var(--safe-bottom));
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #10141d 0%, #0c1018 100%);
  padding: 1rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 40;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0.35rem 0.8rem;
}
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(16, 136, 240, 0.35);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-transform: none;
}
.brand-copy small { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.icon-btn.sidebar-close { display: none; }

.sidebar-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  outline: none;
}
.sidebar-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 136, 240, 0.18);
}

.nav-label {
  margin: 0 0 0.45rem;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.sidebar-nav, .sidebar-section { display: grid; gap: 0.3rem; }
.sidebar-section .nav-item[data-view="home"] {
  margin-bottom: 0.15rem;
}
.category-list { display: grid; gap: 0.2rem; }
.cat-block { display: grid; gap: 0.15rem; }
.nav-item, .cat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 600;
  position: relative;
}
.nav-item:hover, .cat-item:hover {
  color: var(--text);
  background: rgba(16, 136, 240, 0.08);
}
.nav-item.active, .cat-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(16, 136, 240, 0.22), rgba(16, 136, 240, 0.05));
  border-color: var(--line-strong);
}
.cat-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--brand);
  opacity: 0.95;
}
.cat-item.active .cat-ico { color: #7ec8ff; }
.cat-item.cat-sub .cat-ico {
  width: 1.1rem;
  height: 1.1rem;
  color: #8eb4d8;
}
.ui-icon, .cat-icon-svg, .chip-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chip-ico {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  margin-right: 0.35rem;
  vertical-align: -0.12em;
  color: currentColor;
  opacity: 0.9;
}
/* Tracinho iOS — categorias com subcategorias (igual in-game) */
.cat-item.cat-has-subs {
  padding-bottom: 0.9rem;
}
.cat-item.cat-has-subs::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 52%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(154, 168, 191, 0.55);
  opacity: 0.28;
  transition: background 0.18s ease, opacity 0.18s ease, width 0.18s ease;
  pointer-events: none;
}
.cat-item.cat-has-subs:hover::after { opacity: 0.5; }
.cat-block.is-open > .cat-item.cat-has-subs::after,
.cat-item.cat-has-subs.active::after {
  background: var(--brand);
  opacity: 1;
  width: 58%;
  box-shadow: 0 0 12px rgba(16, 136, 240, 0.45);
}
.cat-subs {
  display: grid;
  gap: 0.12rem;
  margin: 0.05rem 0 0.35rem 0.55rem;
  padding: 0.2rem 0 0.15rem 0.65rem;
}
.cat-item.cat-sub {
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 550;
  border-radius: 10px;
  color: #a7b6ce;
}
.cat-item.cat-sub.active {
  color: #fff;
  background: rgba(16, 136, 240, 0.18);
  border-color: rgba(16, 136, 240, 0.28);
}
.nav-ico {
  width: 1.4rem;
  text-align: center;
  opacity: 0.85;
}
.cat-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(16, 136, 240, 0.08);
  border: 1px solid var(--line);
}
.sidebar-foot p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.pay-badge {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.15);
  color: var(--aqua);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 35;
}

/* ---------- Main ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: none; /* desktop: sem topbar */
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.25rem;
  padding-top: calc(0.85rem + var(--safe-top));
  background: #0b0d12;
  background: rgba(11, 13, 18, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.menu-toggle { display: none; }
.icon-btn.menu-toggle { display: none; }
.topbar-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar-title span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-transform: none;
}
.topbar-title small { color: var(--muted); }
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.mobile-search {
  display: none;
  width: min(42vw, 11rem);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  outline: none;
  font-size: 0.92rem;
  min-height: 44px;
}
.mobile-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 136, 240, 0.16);
}
.desktop-only { display: inline-flex; }

.icon-btn, .chip-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  cursor: pointer;
}
.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}
.chip-btn {
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}
.chip-btn:hover, .icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(16, 136, 240, 0.12);
}

.content {
  padding: 1.25rem clamp(1rem, 2.5vw, 1.8rem) 2.5rem;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.view { display: none; }
.view.active { display: block; }

/* Billboard / Epic-style hero */
.billboard {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: clamp(240px, 38vw, 360px);
  border: 1px solid var(--line);
  background: #0a0d14;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.billboard-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,16,0.92) 18%, rgba(8,10,16,0.55) 55%, rgba(8,10,16,0.2)),
    radial-gradient(circle at 70% 40%, rgba(16,136,240,0.35), transparent 45%),
    linear-gradient(135deg, #10182a, #0a1220 50%, #071018);
  background-size: cover;
  background-position: center;
}
.billboard-body {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--aqua);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.82rem;
  font-weight: 600;
}
.billboard h1, .catalog-head h2, .rail-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 700;
}
.billboard h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); margin-bottom: 0.7rem; }
.lede, .muted { color: var(--muted); margin: 0 0 1.1rem; }
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(0, 104, 216, 0.35);
}
.btn.secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
}

.rail-head, .catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 0.9rem;
}
.rail-head h2, .catalog-head h2 { font-size: 1.15rem; }
.home-section-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
  margin: 0 0 0.15rem;
}
.product-grid:empty {
  display: none;
  margin: 0;
}
#promotionsEmpty,
#launchesEmpty {
  margin: 0 0 1.4rem;
}
.text-link {
  border: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.6rem;
  scroll-snap-type: x mandatory;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.feature-card {
  background: linear-gradient(180deg, rgba(30,36,51,0.95), rgba(18,21,29,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.feature-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.feature-card p { margin: 0; color: var(--muted); }

.sort-row select {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.product-card {
  scroll-snap-align: start;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.product-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.product-card:disabled:hover {
  border-color: var(--line);
  box-shadow: none;
}
.product-card-locked {
  filter: grayscale(0.35);
}
.ribbon-locked {
  background: linear-gradient(135deg, #64748b, #475569) !important;
  box-shadow: none !important;
}
.product-card .art {
  aspect-ratio: 16 / 10;
  background: #0a0d14;
  overflow: hidden;
}
.product-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .body { padding: 0.9rem 0.95rem 1rem; }
.product-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-price-stack {
  display: grid;
  gap: 0.2rem;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.stock-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.12);
  color: #4ade80;
  border: 1px solid rgba(46, 204, 113, 0.28);
}
.stock-badge-low {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.28);
}
.product-price-old-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.price-brl {
  color: #7ef0c4;
  font-weight: 800;
  font-size: 1.15rem;
}
.price-brl-old {
  color: #7a879c;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.promo-off-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.16));
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.product-card-promo {
  border-color: rgba(74, 222, 128, 0.28);
}
.price-gems, .hint { color: var(--muted); font-size: 0.92rem; }
.badge, .ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--warn);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.ribbon {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
}
.ribbon-promo {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}
.promo-save {
  color: #4ade80;
  font-weight: 700;
}

.empty-state {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.hidden { display: none !important; }

.rules-list { display: grid; gap: 0.75rem; }
.rule-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.rule-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.rule-item p { margin: 0; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(18, 21, 29, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  box-shadow: var(--shadow);
}
.toast.error { border-color: rgba(239,68,68,0.5); }
.toast.success { border-color: rgba(34,197,94,0.5); }

/* ---------- Modal storefront ---------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, calc(100vw - 1rem));
  width: 100%;
}
.modal::backdrop {
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
}
.modal-shell {
  position: relative;
  background: linear-gradient(180deg, #161b27, #10141d);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: min(860px, calc(100dvh - 1.5rem));
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  background: rgba(0,0,0,0.45);
}
.modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.15fr);
  max-height: inherit;
  min-height: 0;
  flex: 1 1 auto;
}
.modal-media {
  position: relative;
  min-height: 100%;
  background: #090c12;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-panel {
  padding: 1.05rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #121722;
  min-height: 0;
  max-height: inherit;
}
.modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 0.15rem;
}
.mobile-footnote { display: none; }
.desktop-footnote { display: block; }

.modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  flex: 0 0 auto;
  padding-right: 2.75rem; /* espaço só no cabeçalho, pro ✕ */
}
.modal-head-copy {
  min-width: 0;
}
.modal-cat {
  margin: 0 0 0.2rem;
  color: var(--aqua);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.78rem;
  font-weight: 600;
}
.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}
.modal-head-price {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.2rem;
  text-align: right;
  padding-top: 0.1rem;
  max-width: 11rem;
}
.modal-head-price .price-brl {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #7ef0c4;
}
.modal-head-price .badge {
  justify-self: end;
}
.price-caption, .checkout-label, .info-title, .field-help {
  display: block;
  color: #c5d0e0;
  font-size: 0.8rem;
  font-weight: 600;
}
.price-note {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  max-width: 9.5rem;
}
.price-box {
  display: none;
}
.info-block {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}
.info-title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.benefits {
  margin: 0;
  padding-left: 1rem;
  color: #d7e0ee;
  max-height: 88px;
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.35;
}
.benefits li { margin-bottom: 0.12rem; }
.benefits li:last-child { margin-bottom: 0; }

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.field-block-span {
  grid-column: 1 / -1;
}
.buyer-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.buyer-field label {
  display: block;
  margin-bottom: 0.28rem;
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
}
.buyer-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  outline: none;
  font-size: 0.95rem;
  min-height: 42px;
  color: #fff;
}
.buyer-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,136,240,0.16);
}
.buyer-cpf {
  grid-column: 1 / -1;
}
.field-block label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #fff;
  font-size: 0.86rem;
}
.optional-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-help {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.field-block input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  outline: none;
  font-size: 0.95rem;
  min-height: 42px;
}
.field-block input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,136,240,0.16);
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}
.inline-fields .btn.secondary {
  white-space: nowrap;
  padding-inline: 0.85rem;
  min-height: 42px;
  font-size: 0.86rem;
  border-radius: 10px;
}
.status-hint.ok { color: var(--ok); font-weight: 700; }
.status-hint.err { color: #ff8e8e; font-weight: 700; }
.hint { color: var(--muted); font-size: 0.78rem; margin: 0.28rem 0 0; line-height: 1.3; }
.choice-list {
  display: grid;
  gap: 0.35rem;
  max-height: 140px;
  overflow: auto;
}
.choice-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}
.checkout-bar {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0 0;
}
.checkout-total {
  min-width: 0;
}
.checkout-bar strong {
  display: block;
  font-size: 1.35rem;
  color: #7ef0c4;
  margin-top: 0.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.checkout-actions {
  display: grid;
  gap: 0.25rem;
  justify-items: stretch;
}
.checkout-bar .btn.primary {
  width: 100%;
  min-height: 46px;
  font-size: 0.98rem;
  border-radius: 12px;
}
.pay-hint {
  display: none;
  margin: 0;
  font-size: 0.75rem;
  color: #b7c4d8 !important;
  text-align: center;
  line-height: 1.3;
}
.pay-hint.visible {
  display: block;
}

/* Status page */
.status-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--site-footer-h) + var(--safe-bottom));
}
.status-fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.status-celebrate .status-fx {
  opacity: 1;
}
.status-confetti,
.status-balloons {
  position: absolute;
  inset: 0;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  opacity: 0;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
.confetti-piece-round {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--confetti-drift, 0px), 110vh, 0) rotate(var(--confetti-spin, 360deg));
    opacity: 0.85;
  }
}
.balloon {
  position: absolute;
  bottom: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: balloon-rise linear forwards;
  opacity: 0;
}
.balloon-body {
  width: 44px;
  height: 54px;
  border-radius: 50% 50% 48% 48%;
  display: block;
  box-shadow: inset -8px -10px 18px rgba(0, 0, 0, 0.12);
}
.balloon-string {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.35);
  margin-top: -2px;
}
@keyframes balloon-rise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  8% { opacity: 1; }
  100% {
    transform: translate3d(var(--balloon-sway, 0px), -115vh, 0);
    opacity: 0.85;
  }
}
.status-card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(30, 36, 51, 0.96), rgba(18, 21, 29, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem 1.35rem 1.45rem;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.status-card-pop {
  animation: status-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes status-card-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.status-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-success-check {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--ok);
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.status-product-art {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0.15rem auto 1rem;
}
.status-product-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 136, 240, 0.45), transparent 70%);
  filter: blur(10px);
  animation: status-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes status-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.05); }
}
.status-product-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}
.status-card h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 0.55rem;
}
.status-pill {
  display: inline-flex;
  margin: 0.15rem 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 136, 240, 0.16);
  font-weight: 700;
  font-size: 0.82rem;
}
.status-pill.ok { background: rgba(34, 197, 94, 0.16); color: var(--ok); }
.status-pill.wait { background: rgba(245, 158, 11, 0.16); color: var(--warn); }
.status-pill.fail { background: rgba(239, 68, 68, 0.16); color: var(--danger); }
.status-card .muted {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.92rem;
}
.status-details {
  margin-top: 1.15rem;
  text-align: left;
}
.status-details-grid {
  display: grid;
  gap: 0.45rem;
}
.status-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}
.status-detail-row span {
  color: var(--muted);
  flex-shrink: 0;
}
.status-detail-row strong {
  color: var(--text);
  text-align: right;
  word-break: break-word;
  font-weight: 650;
}
.status-detail-grouped {
  align-items: flex-start;
}
.status-detail-value {
  display: grid;
  gap: 0.2rem;
  text-align: right;
  min-width: 0;
}
.status-detail-value strong {
  display: block;
  color: var(--text);
  font-weight: 750;
  word-break: break-word;
}
.status-detail-value small {
  display: block;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-word;
}
.status-choices {
  margin-top: 0.85rem;
}
.status-choices h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-choices ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.status-choices li {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(16, 136, 240, 0.08);
  border: 1px solid rgba(61, 160, 245, 0.16);
  font-size: 0.84rem;
  color: var(--text);
}
.status-choices strong {
  color: var(--aqua);
  margin-right: 0.35rem;
  font-weight: 700;
}
.status-choice-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(16, 136, 240, 0.08);
  border: 1px solid rgba(61, 160, 245, 0.16);
  overflow-x: auto;
  margin-bottom: 0.4rem;
}
.status-choice-opt {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status-choice-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
}
.status-choice-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.28);
  white-space: nowrap;
}
.status-choice-label {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
}
.status-choice-spawn {
  color: var(--aqua);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-choice-spawn::before {
  content: "/ ";
  opacity: 0.65;
}
.status-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
  width: 100%;
}
.status-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.status-btn:hover {
  transform: translateY(-1px);
}
.status-btn:active {
  transform: translateY(0);
}
.status-btn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.status-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status-btn-receipt {
  color: #041018;
  background: linear-gradient(145deg, #5eead4 0%, #22d3ee 42%, #1088f0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 34px rgba(16, 136, 240, 0.45),
    0 0 28px rgba(34, 211, 238, 0.28);
  animation: status-receipt-pulse 2.4s ease-in-out infinite;
}
.status-btn-receipt:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 18px 40px rgba(16, 136, 240, 0.55),
    0 0 36px rgba(34, 211, 238, 0.38);
}
@keyframes status-receipt-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 14px 34px rgba(16, 136, 240, 0.45),
      0 0 28px rgba(34, 211, 238, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28) inset,
      0 16px 38px rgba(16, 136, 240, 0.55),
      0 0 40px rgba(34, 211, 238, 0.42);
  }
}
.status-btn-store {
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(0, 104, 216, 0.32);
}
.status-btn-refresh {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.status-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(61, 160, 245, 0.35);
}
@media (max-width: 420px) {
  .status-actions-secondary {
    grid-template-columns: 1fr;
  }
}

/* ---------- Category chips (mobile primary) ---------- */
.mobile-filters {
  display: none;
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.chip-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chip-rail::-webkit-scrollbar { height: 0; }
.filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip.chip-has-subs {
  padding-bottom: 0.85rem;
}
.filter-chip.chip-has-subs::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: rgba(154, 168, 191, 0.55);
  opacity: 0.3;
  pointer-events: none;
  transition: background 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}
.filter-chip.chip-has-subs.active::after {
  background: var(--brand);
  opacity: 1;
  width: 48%;
  box-shadow: 0 0 10px rgba(16, 136, 240, 0.4);
}
.filter-chip.active {
  color: #fff;
  background: rgba(16, 136, 240, 0.28);
  border-color: var(--line-strong);
}
.chip-rail-sub .filter-chip {
  background: transparent;
  border-style: dashed;
}

/* ---------- Site footer (todas as páginas) ---------- */
.site-footer {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  z-index: 48;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--site-footer-h);
  padding: 0.35rem 1rem calc(0.35rem + var(--safe-bottom));
  background: #080a0f;
  pointer-events: auto;
}
/* Pedido / páginas sem sidebar permanente */
body > .status-page ~ .site-footer {
  left: 0;
}
.site-footer .footer-credit {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  color: #6b778c;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.site-footer .footer-heart {
  display: inline;
  font-size: 0.68rem;
  line-height: 1;
  vertical-align: -0.05em;
  padding: 0 0.15em;
}
.site-footer a {
  color: #8aa0b8;
  text-decoration: none;
  font-weight: 550;
  transition: color 0.15s ease;
}
.site-footer a:hover {
  color: #c5d4e6;
}
.site-footer .footer-rules {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  border: 0;
  background: transparent;
  color: #8aa0b8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.2rem 0.15rem;
  line-height: 1.3;
}
.site-footer .footer-rules:hover,
.site-footer .footer-rules.active {
  color: #c5d4e6;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--site-footer-h) + var(--safe-bottom));
  z-index: 45;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  padding: 0.35rem 0.4rem;
  background: #0a0c12;
  background: rgba(10, 12, 18, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.35rem 0.2rem;
}
.bottom-nav-item .bn-ico {
  font-size: 1.15rem;
  line-height: 1;
}
.bottom-nav-item.active {
  color: #fff;
  background: rgba(16, 136, 240, 0.16);
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  :root { --bottom-nav-h: 0px; }

  .site-footer { left: 0; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 340px);
    height: 100dvh;
    padding-top: calc(1rem + var(--safe-top));
    padding-bottom: calc(1.2rem + var(--safe-bottom));
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .icon-btn.sidebar-close,
  .icon-btn.menu-toggle,
  .menu-toggle { display: grid; }
  .topbar {
    display: flex;
  }
  .menu-toggle, .sidebar-close, .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .desktop-only { display: none !important; }
  .mobile-search { display: block; }
  .mobile-filters { display: grid; }
  .bottom-nav { display: none !important; }

  .content {
    padding: 1rem 0.9rem calc(2rem + var(--site-footer-h) + var(--safe-bottom));
  }

  .billboard {
    min-height: 220px;
    border-radius: 18px;
    margin-bottom: 1.1rem;
  }
  .billboard-body {
    max-width: none;
    padding: 1.15rem 1.1rem 1.25rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    text-align: center;
    justify-content: center;
  }

  .product-rail {
    grid-auto-columns: minmax(72vw, 260px);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .product-card .body { padding: 0.75rem 0.8rem 0.85rem; }
  .product-card h3 { font-size: 0.9rem; }
  .price-brl { font-size: 1rem; }

  .catalog-head {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-row select {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .toast {
    bottom: calc(var(--bottom-nav-h) + var(--site-footer-h) + var(--safe-bottom) + 0.85rem);
    max-width: calc(100vw - 1.5rem);
    text-align: center;
  }

  /* Modal = fullscreen sheet */
  .modal {
    max-width: 100vw;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
  .modal-shell {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-layout {
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(120px, 22vw) minmax(0, 1fr);
    overflow: hidden;
  }
  .modal-media {
    min-height: 120px;
    max-height: none;
    height: 100%;
  }
  .modal-close {
    top: calc(0.55rem + var(--safe-top));
    right: 0.65rem;
    width: 42px;
    height: 42px;
  }
  .modal-panel {
    padding: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
  }
  .modal-head {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.85rem 3rem 0.55rem 0.9rem;
  }
  .modal-head-copy { padding-right: 0; }
  .modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.9rem 0.95rem;
    gap: 0.65rem;
    overscroll-behavior: contain;
  }
  .modal-head-price {
    justify-items: start;
    text-align: left;
    grid-auto-flow: column;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.45rem 0.55rem;
  }
  .modal-head-price .price-note {
    max-width: none;
    grid-column: 1 / -1;
  }
  .checkout-fields {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .buyer-identity-grid {
    grid-template-columns: 1fr;
  }
  .buyer-cpf {
    grid-column: auto;
  }
  .desktop-footnote { display: none; }
  .mobile-footnote {
    display: none;
  }
  .checkout-bar {
    position: relative;
    flex: 0 0 auto;
    z-index: 6;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem calc(0.75rem + var(--safe-bottom));
    background: rgba(12, 16, 24, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  }
  .checkout-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .checkout-bar strong {
    margin-top: 0;
    font-size: 1.25rem;
  }
  .checkout-bar .btn,
  .checkout-bar .btn.primary {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }
  .pay-hint {
    text-align: center;
  }
  .inline-fields {
    grid-template-columns: 1fr auto;
  }
  .inline-fields .btn.secondary {
    min-height: 44px;
  }
  .field-block input {
    min-height: 44px;
    font-size: 16px; /* evita zoom iOS */
  }
  .nav-item, .cat-item {
    min-height: 48px;
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-rail {
    grid-auto-columns: minmax(78vw, 280px);
  }
}

@media (max-width: 560px) {
  .content { padding-left: 0.8rem; padding-right: 0.8rem; }
  .vehicle-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 360px; }
  .status-page {
    padding: 1.1rem 1rem calc(1.5rem + var(--site-footer-h) + var(--safe-bottom));
  }
}

/* ---------- Modal contrast fix (texto preto ilegível) ---------- */
.modal,
.modal-shell,
.modal-panel {
  color: #f5f7fa !important;
}
.modal-title,
.field-block label,
.info-title {
  color: #ffffff !important;
}
.modal-cat { color: #5fd4ef !important; }
.price-caption,
.checkout-label,
.field-help,
.price-note,
.hint,
.checkout-footnote,
.optional-tag {
  color: #b7c4d8 !important;
}
.benefits,
.benefits li,
.choice-item {
  color: #e4ebf5 !important;
}
.modal-head-price .price-brl,
.checkout-bar strong {
  color: #7ef0c4 !important;
}
.price-brl-old {
  color: #8b9bb3 !important;
}
.promo-off-pill,
.promo-save {
  color: #4ade80 !important;
}
.ribbon-promo {
  color: #ffffff !important;
}
.status-hint.ok { color: #3ddc84 !important; }
.status-hint.err { color: #ff8e8e !important; }

.modal-panel input,
.modal-panel textarea,
.modal-panel select,
.field-block input {
  color: #f5f7fa !important;
  -webkit-text-fill-color: #f5f7fa !important;
  caret-color: #f5f7fa !important;
  background: #0c111b !important;
  border-color: rgba(61, 160, 245, 0.28) !important;
}
.modal-panel input::placeholder,
.field-block input::placeholder {
  color: #8b9bb3 !important;
  -webkit-text-fill-color: #8b9bb3 !important;
  opacity: 1 !important;
}
.modal-panel input:-webkit-autofill,
.modal-panel input:-webkit-autofill:focus,
.field-block input:-webkit-autofill {
  -webkit-text-fill-color: #f5f7fa !important;
  caret-color: #f5f7fa !important;
  box-shadow: 0 0 0 1000px #0c111b inset !important;
}
.modal-panel .btn,
.modal-panel .btn.secondary,
.modal-panel .btn.primary,
.inline-fields .btn.secondary {
  color: #ffffff !important;
}
.modal-close {
  color: #ffffff !important;
}
.sidebar-search input {
  color: #f5f7fa !important;
  -webkit-text-fill-color: #f5f7fa !important;
  background: #0c111b !important;
}
.sidebar-search input::placeholder {
  color: #8b9bb3 !important;
  -webkit-text-fill-color: #8b9bb3 !important;
}
.sort-row select {
  color: #f5f7fa !important;
  background: #171b26 !important;
}

/* ---------- Vehicle multichoice (foto + VehicleName) ---------- */
.vehicle-choice-section {
  display: grid;
  gap: 0;
  border: 1px solid rgba(61, 160, 245, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.vehicle-choice-section + .vehicle-choice-section {
  margin-top: 0.4rem;
}
.vehicle-choice-section.is-complete {
  border-color: rgba(61, 220, 132, 0.28);
}
.vehicle-choice-section.is-open {
  border-color: rgba(16, 136, 240, 0.42);
  background: rgba(16, 136, 240, 0.06);
}
.vehicle-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.vehicle-choice-head:hover {
  background: rgba(255, 255, 255, 0.03);
}
.vehicle-choice-head-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.vehicle-choice-chevron {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-right: 2px solid #8aa0b8;
  border-bottom: 2px solid #8aa0b8;
  transform: rotate(-45deg);
  margin-top: 0.1rem;
  transition: transform 0.18s ease;
}
.vehicle-choice-section.is-open .vehicle-choice-chevron {
  transform: rotate(45deg);
  border-color: #5fd4ef;
}
.vehicle-choice-head-text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.vehicle-choice-head-text strong {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}
.vehicle-choice-summary {
  display: block;
  color: #9aa8bf !important;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vehicle-choice-section.is-complete .vehicle-choice-summary {
  color: #8fd9b2 !important;
}
.vehicle-choice-count {
  flex: 0 0 auto;
  min-width: 2.4rem;
  text-align: center;
  color: #9aa8bf !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.vehicle-choice-count.ok {
  color: #3ddc84 !important;
  background: rgba(61, 220, 132, 0.12);
}
.vehicle-choice-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.vehicle-choice-section.is-open .vehicle-choice-body {
  grid-template-rows: 1fr;
}
.vehicle-choice-body-inner {
  overflow: hidden;
  min-height: 0;
}
.vehicle-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
  padding: 0 0.55rem 0.55rem;
}
.vehicle-choice-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  text-align: left;
  border: 1px solid rgba(61, 160, 245, 0.22);
  background: linear-gradient(180deg, #151b28, #0f141f);
  border-radius: 12px;
  padding: 0.4rem;
  cursor: pointer;
  color: #f5f7fa !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vehicle-choice-card:hover {
  border-color: rgba(16, 136, 240, 0.55);
}
.vehicle-choice-card.selected {
  border-color: #1088f0;
  box-shadow: 0 0 0 1px rgba(16, 136, 240, 0.45), 0 8px 18px rgba(0, 104, 216, 0.18);
  background: linear-gradient(180deg, rgba(16, 136, 240, 0.18), #101621);
}
.vehicle-choice-art {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 96px;
  height: auto;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(16,136,240,0.18), transparent 55%),
    #0a0e16;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vehicle-choice-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
  display: block;
  box-sizing: border-box;
}
.vehicle-choice-art.no-img,
.vehicle-choice-fallback {
  color: #7a8ba8;
  font-size: 1.6rem;
}
.vehicle-choice-meta strong {
  display: block;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}
.vehicle-choice-meta small {
  display: block;
  margin-top: 0.15rem;
  color: #8b9bb3 !important;
  font-size: 0.78rem;
}
.vehicle-choice-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.08);
  opacity: 0;
}
.vehicle-choice-card.selected .vehicle-choice-check {
  opacity: 1;
  background: #1088f0;
}
#choiceList.choice-list {
  max-height: none;
  overflow: visible;
}
@media (max-width: 560px) {
  .vehicle-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
    gap: 0.4rem;
  }
  .vehicle-choice-card {
    min-height: 0;
  }
  .vehicle-choice-art {
    min-height: 88px;
  }
}

/* =========================================================
   UI REFRESH 2026 — clean storefront (site auto-gerado)
   ========================================================= */
.sidebar {
  background: rgba(12, 16, 24, 0.92);
  border-right: 1px solid var(--line);
  padding: 1rem 0.85rem 1.1rem;
}
.sidebar-brand { padding: 0.25rem 0.25rem 0.7rem; }
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(16, 136, 240, 0.22);
}
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.brand-copy small { font-size: 0.78rem; }
.sidebar-search input {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
}
.sidebar-search input:focus {
  border-color: rgba(16, 136, 240, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 136, 240, 0.12);
  outline: none;
}
.nav-item, .cat-item {
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-item:hover, .cat-item:hover {
  background: rgba(255, 255, 255, 0.035);
}
.nav-item.active, .cat-item.active {
  background: rgba(16, 136, 240, 0.14);
  border-color: rgba(16, 136, 240, 0.28);
  color: #fff;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.pay-badge {
  border-radius: 8px;
  background: rgba(16, 136, 240, 0.12);
  border: 1px solid rgba(16, 136, 240, 0.22);
  color: #7eb8f0;
  font-weight: 650;
}

.topbar {
  background: rgba(12, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-title span {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.content { padding: 1.15rem 1.25rem 1.6rem; }
.rail-head, .catalog-head { margin: 0.2rem 0 0.85rem; }
.rail-head h2, .catalog-head h2 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.btn {
  border-radius: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: none;
}
.btn.primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: none;
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}
.feature-card h3 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.product-grid {
  gap: 0.85rem;
}
.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.product-card:hover {
  border-color: rgba(16, 136, 240, 0.38);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.product-card .art {
  aspect-ratio: 16 / 10;
  background: #0a0d14;
}
.product-card .body { padding: 0.8rem 0.85rem 0.9rem; }
.product-card h3 {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.price-brl {
  color: #7eb8f0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.stock-badge, .promo-off-pill, .badge, .ribbon {
  border-radius: 8px;
}
.ribbon-promo {
  background: rgba(34, 197, 94, 0.92);
  box-shadow: none;
  border-radius: 8px;
  font-weight: 700;
}
.product-card-promo {
  border-color: rgba(74, 222, 128, 0.22);
}

.empty-state {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.rule-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.modal {
  border: 0;
  background: transparent;
}
.modal-shell {
  background: #121821;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.modal-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.field-block label {
  font-weight: 650;
  letter-spacing: -0.01em;
}
.checkout-bar {
  border-top: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.65);
}
.chip-rail .chip,
.chip {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.chip.active {
  background: rgba(16, 136, 240, 0.14);
  border-color: rgba(16, 136, 240, 0.28);
  color: #fff;
}
.bottom-nav {
  background: rgba(12, 16, 24, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.bottom-nav-item.active {
  color: var(--brand);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.85);
}
.toast {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

/* Nova composição editorial da home e do catálogo */
.sidebar-label {
  display: block;
  padding: .55rem .7rem .35rem;
  color: rgba(154, 168, 188, .58);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sidebar-label-catalog { margin-top: .75rem; }
.sidebar-secure-card {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.secure-card-icon {
  display: grid;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: #69dfa0;
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 8px;
  background: rgba(34, 197, 94, .08);
  font-size: .75rem;
  font-weight: 800;
}
.sidebar-secure-card strong { display: block; margin-bottom: .2rem; color: var(--text); font-size: .73rem; }
.sidebar-secure-card p { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.pay-badge { padding: .5rem .65rem; text-align: center; font-size: .65rem; }

.content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 1.35rem 1.55rem 2rem;
}
.site-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  min-height: 400px;
  margin-bottom: 2.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 24px;
  background:
    radial-gradient(680px 340px at 90% 10%, rgba(16, 136, 240, .16), transparent 70%),
    linear-gradient(135deg, rgba(25, 34, 50, .97), rgba(11, 16, 25, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.site-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}
.site-hero-kicker,
.rail-eyebrow {
  display: block;
  margin-bottom: .75rem;
  color: #7eb8f0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.site-hero h1 em { color: #62aef0; font-style: normal; }
.site-hero-copy > p {
  max-width: 590px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1.35vw, 1.05rem);
  line-height: 1.7;
}
.site-hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem; }
.site-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  color: #fff;
  border: 1px solid rgba(126, 184, 240, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  font-weight: 700;
  cursor: pointer;
}
.site-hero-primary span { font-size: 1.15rem; }
.site-hero-link { padding: .7rem .25rem; color: var(--muted); background: none; border: 0; font-weight: 650; cursor: pointer; }
.site-hero-link:hover { color: var(--text); }
.site-hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2rem; color: var(--muted); font-size: .73rem; }
.site-hero-trust span { display: flex; align-items: center; gap: .5rem; }
.site-hero-trust i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .08); }

.site-hero-visual { position: relative; min-height: 100%; overflow: hidden; }
.hero-visual-orbit { position: absolute; border: 1px solid rgba(126, 184, 240, .12); border-radius: 50%; }
.hero-orbit-one { width: 420px; height: 420px; right: -40px; top: -15px; }
.hero-orbit-two { width: 290px; height: 290px; right: 25px; top: 50px; }
.hero-product-preview {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  width: min(280px, 72%);
  aspect-ratio: .78;
  transform: translate(-50%, -50%) rotate(5deg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    radial-gradient(240px 180px at 50% 35%, rgba(16, 136, 240, .24), transparent 75%),
    linear-gradient(155deg, rgba(31, 44, 66, .98), rgba(13, 19, 30, .98));
  box-shadow: 0 35px 70px rgba(0, 0, 0, .45);
}
.hero-preview-label { position: absolute; top: 1.2rem; left: 1.2rem; padding: .3rem .45rem; color: #8bc5f5; border: 1px solid rgba(126, 184, 240, .2); border-radius: 7px; background: rgba(16, 136, 240, .08); font-size: .55rem; font-weight: 800; letter-spacing: .1em; }
.hero-preview-gem { margin-bottom: 1.2rem; color: #62aef0; font-size: clamp(3.8rem, 7vw, 6rem); line-height: 1; filter: drop-shadow(0 20px 35px rgba(16, 136, 240, .3)); }
.hero-product-preview strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.03em; }
.hero-product-preview small { margin-top: .45rem; color: var(--muted); text-align: center; }
.hero-floating-pill { position: absolute; z-index: 3; padding: .6rem .75rem; color: var(--text); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(17, 23, 34, .88); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); backdrop-filter: blur(10px); font-size: .68rem; font-weight: 650; }
.hero-pill-fast { left: 2%; top: 26%; }
.hero-pill-safe { right: 3%; bottom: 21%; }

.store-rail { margin-bottom: 2.5rem; }
.store-rail .rail-head { align-items: flex-end; margin-bottom: 1rem; }
.store-rail .rail-head h2,
.store-benefits h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -.045em;
}
.store-rail .rail-eyebrow { margin-bottom: .35rem; font-size: .6rem; }
.rail-link { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); cursor: pointer; font-size: .74rem; font-weight: 650; }
.rail-link:hover { color: var(--text); border-color: var(--line-strong); }
.store-rail .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.store-benefits {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}
.store-benefits-copy { padding: 1rem; }
.store-benefits-copy .rail-eyebrow { font-size: .6rem; }
.store-benefits-copy p { max-width: 390px; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.store-benefits .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-benefits .feature-card { min-height: 112px; }

.catalog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 160px at 0 0, rgba(16, 136, 240, .1), transparent 75%),
    rgba(255, 255, 255, .025);
}
.catalog-hero h2 { margin: 0; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.05em; }
.catalog-hero .muted { margin: .45rem 0 0; font-size: .82rem; }
.catalog-controls { display: flex; gap: .6rem; }
.catalog-search-inline { display: flex; align-items: center; gap: .5rem; min-width: 250px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .035); }
.catalog-search-inline span { color: var(--muted); }
.catalog-search-inline input { width: 100%; padding: .7rem 0; color: var(--text); border: 0; outline: 0; background: transparent; }
.sort-row select { border-radius: 11px; background: rgba(255, 255, 255, .035); }

@media (max-width: 1180px) {
  .site-hero { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 360px; }
  .store-rail .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .content { padding: 1rem 1rem 1.6rem; }
  .site-hero { grid-template-columns: 1fr; min-height: 0; }
  .site-hero-copy { padding: 2.3rem 1.5rem; }
  .site-hero-visual { min-height: 290px; }
  .hero-product-preview { width: 210px; max-height: 255px; }
  .store-benefits { grid-template-columns: 1fr; }
  .catalog-hero { align-items: stretch; flex-direction: column; }
  .catalog-controls { width: 100%; }
  .catalog-search-inline { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
  .site-hero { border-radius: 18px; }
  .site-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .site-hero-actions { align-items: stretch; width: 100%; flex-direction: column; }
  .site-hero-primary { justify-content: space-between; width: 100%; }
  .site-hero-link { text-align: left; }
  .site-hero-trust { margin-top: 1.4rem; }
  .site-hero-visual { display: none; }
  .store-rail .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .store-benefits { padding: .8rem; }
  .store-benefits .feature-grid { grid-template-columns: 1fr; }
  .catalog-controls { flex-direction: column; }
  .catalog-search-inline, .sort-row select { width: 100%; }
}
