@font-face {
  font-family: "Ionicons";
  src: url("/assets/fonts/Ionicons.ttf") format("truetype");
  font-display: block;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Fonte da verdade: mobile/src/theme/colors.js (tema light). */
  --bg: #FFFFFF;
  --card: #F8FAFC;
  --surface: #F1F5F9;
  --border: #E2E8F0;
  --header: #0D1B2A;
  --header-2: #122030;
  --orange: #F97316;
  --orange-2: #EA580C;
  --yellow: #CA8A04;
  --text: #0F172A;
  --text-on-dark: #FFFFFF;
  --muted: #64748B;
  --success: #16A34A;
  --danger: #DC2626;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Compatibilidade com HTML/JS já existente. */
  --navy: var(--bg);
  --navy2: var(--card);
  --navy3: var(--surface);
  --white: var(--text);
  --cream: #FFFFFF;
  --orange2: var(--orange-2);
  --r: 14px;
  --rs: 8px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--header);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.35);
  outline-offset: 2px;
}

.ion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Ionicons";
  font-style: normal;
  font-weight: normal;
  speak: none;
  line-height: 1;
}

/* ── Navegação por telas ─────────────────── */
#stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--text);
}

/* Navegação exclusiva: telas inativas saem da renderização. Não há camada
   anterior, transform ou animação horizontal para o navegador interromper. */
.screen:not(.active) { display: none !important; }
.screen.active { transform: none; }

/* ── Header — espelho de Header.js ─────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.header-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(205px, 58vw);
  aspect-ratio: 3.44 / 1;
  object-fit: contain;
}

.header-title,
.topbar-logo {
  min-width: 0;
  color: var(--text-on-dark);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.header-subtitle {
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.topbar-back,
.cart-btn,
.account-btn,
.header-ghost,
.orders-refresh {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-on-dark);
  font-size: 24px;
}

.header-ghost {
  pointer-events: none;
}

.topbar-back { font-size: 28px; }
.account-btn { font-size: 22px; }
.cart-btn { font-size: 24px; }
.orders-refresh { color: var(--text); font-size: 20px; background: var(--surface); }

.cart-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 18px;
  font-weight: 900;
  text-align: center;
}

/* ── Splash — espelho de SplashScreen.js ─ */
#screen-splash {
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--header);
}

.splash-logo {
  width: 136px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
}

.splash-brand {
  color: var(--text-on-dark);
  font-size: 38px;
  line-height: 46px;
  font-weight: 900;
  letter-spacing: 1px;
}

.splash-tagline {
  margin-top: 8px;
  color: var(--orange-2);
  font-size: 16px;
}

.splash-actions {
  width: 100%;
  max-width: 480px;
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.splash-status {
  min-height: 20px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-align: center;
}

.btn-or {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-align: center;
}

.legal-links {
  width: 100%;
  max-width: 560px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.legal-links a {
  color: var(--orange-2);
  font-weight: 800;
  text-underline-offset: 3px;
}

/* ── Botões — appStyles.primary/secondary ─ */
.primary-button,
.btn-location,
.btn-add-cart,
.btn-checkout,
.confirm-pix-copy {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.primary-button:active,
.btn-location:active,
.btn-add-cart:active,
.btn-checkout:active { background: var(--orange-2); }

.primary-button:disabled,
.btn-checkout:disabled {
  cursor: default;
  opacity: 0.62;
}

.secondary-button,
.btn-cep {
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

#screen-splash .btn-cep {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.narrow-column {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

/* ── Home — espelho de HomeScreen.js ───── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  row-gap: 5px;
  padding: 8px 12px;
  background: var(--header-2);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.trust-item .ion {
  color: var(--success);
  font-size: 13px;
}

.hero {
  width: calc(100% - 32px);
  max-width: 640px;
  margin: 16px auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
}

.hero-title {
  max-width: 560px;
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
  font-weight: 900;
  text-align: center;
}

.hero-sub {
  max-width: 560px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

.resume-order {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.resume-order.show { display: flex; }
.resume-order .ion { color: var(--orange-2); font-size: 20px; }
.resume-order-copy { flex: 1; }
.resume-order-title { color: var(--text); font-size: 13px; font-weight: 900; }
.resume-order-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.resume-order .chevron { color: var(--muted); font-size: 22px; }

.cat-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--orange);
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  min-height: 30px;
  border: 0;
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cat-chip.active {
  background: #FFFFFF;
  color: var(--orange);
}

.product-list {
  padding-bottom: 110px;
}

.cat-section {
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
}

.cat-section-title {
  margin: 0 16px 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 900;
}

.cat-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prod-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.prod-card:active { opacity: 0.72; }

.prod-photo,
.prod-icon {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  margin-bottom: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  background: var(--surface);
}

.prod-icon { color: var(--orange); font-size: 42px; }

.prod-info { min-width: 0; padding-right: 36px; }

.prod-name {
  min-height: 38px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 19px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prod-price {
  margin-top: 8px;
  color: var(--orange-2);
  font-size: 16px;
  line-height: 21px;
  font-weight: 900;
}

.prod-add-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 26px;
}

.prod-in-cart {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
}

.empty-box,
.cart-empty,
.orders-empty {
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-box .ion,
.cart-empty .ion,
.orders-empty .ion { font-size: 44px; }
.empty-text, .cart-empty-text { color: var(--muted); font-size: 15px; }

/* ── Produto — espelho de ProductScreen.js */
.prod-detail-body {
  width: 100%;
  padding: 18px 18px 130px;
}

.product-layout {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.prod-detail-hero {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 1.65 / 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #FFFFFF;
}

.prod-detail-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #FFFFFF;
}

.prod-detail-cat {
  margin-top: 18px;
  color: var(--orange-2);
  font-weight: 800;
}

.prod-detail-name {
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 34px;
  font-weight: 900;
}

.prod-detail-price {
  margin-top: 10px;
  color: var(--orange);
  font-size: 24px;
  line-height: 31px;
  font-weight: 900;
}

.prod-detail-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.prod-detail-video {
  width: 100%;
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.prod-detail-video[hidden] { display: none; }
.prod-detail-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.qty-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.qty-num {
  min-width: 36px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

/* ── Barra fixa inferior ─────────────────── */
.bottom-bar {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Carrinho — espelho de CartScreen.js ─ */
.cart-list,
.orders-list,
.scroll-body,
.form-body {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.cart-list { padding: 0 0 4px; }

.cart-item {
  margin: 12px 16px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  background: var(--card);
}

.cart-item-icon {
  width: 42px;
  height: 42px;
  margin-right: 8px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: var(--surface);
  color: var(--orange);
  font-size: 24px;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { color: var(--text); font-size: 14px; font-weight: 800; }
.cart-item-price { margin-top: 4px; color: var(--orange-2); font-weight: 800; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }

.cqty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.cqty-num { min-width: 18px; color: var(--text); font-weight: 900; text-align: center; }

.cart-summary,
.summary {
  width: calc(100% - 32px);
  max-width: 720px;
  margin: 16px auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: var(--surface);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row.total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.summary-row.total .val { color: var(--orange); }

/* ── Checkout — espelho de CheckoutScreen.js */
.form-body,
.checkout-section {
  padding: 16px 16px 0;
}

.checkout-form {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: 130px;
}

.form-title,
.checkout-label {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 26px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.field-group { margin-bottom: 12px; }
.field-label { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.field-row { display: flex; gap: 12px; }
.field-row .field-group { flex: 1; min-width: 0; }

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--muted); opacity: 0.78; }
.field-input:focus { border-color: var(--orange); outline: 3px solid rgba(249, 115, 22, 0.12); }

.gps-button {
  width: 100%;
  min-height: 48px;
  margin: 8px 0 12px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
}

.pix-badge {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
}

.pix-icon { color: var(--yellow); font-size: 22px; }
.pix-text { flex: 1; color: var(--muted); line-height: 19px; }
.pix-text strong { color: var(--text); }

.legal-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}
.legal-note a { color: var(--orange-2); font-weight: 800; }

.checkout-summary-wrap { margin-inline: -16px; }
.checkout-actions { display: none; }

/* ── Confirmação — espelho de ConfirmScreen.js */
#screen-confirm {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.confirm-icon {
  width: 82px;
  height: 82px;
  border-radius: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #FFFFFF;
  font-size: 42px;
}

.confirm-title {
  color: var(--text);
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
  text-transform: uppercase;
}

.confirm-sub {
  max-width: 560px;
  color: var(--muted);
  line-height: 21px;
}

.confirm-order-num {
  color: var(--orange-2);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.confirm-pix {
  display: none;
  width: 100%;
  max-width: 560px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 10px;
  background: var(--surface);
  text-align: left;
}
.confirm-pix.show { display: grid; }
.confirm-pix-title { color: var(--text); font-weight: 900; }
.confirm-pix img { width: 180px; height: 180px; margin-inline: auto; object-fit: contain; background: #FFFFFF; }
.confirm-pix-code { width: 100%; min-height: 70px; padding: 10px; border: 0; border-radius: 6px; resize: none; background: var(--card); color: var(--text); font-size: 11px; line-height: 16px; }
.confirm-pix-copy { width: 100%; min-height: 50px; }

.confirm-actions {
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 16px;
}

/* ── Pedidos — espelho de OrdersScreen.js ─ */
.orders-toolbar {
  margin: 16px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.orders-toolbar-text { color: var(--muted); font-size: 13px; font-weight: 800; }

.order-card {
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: block;
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.order-card-top,
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card-number { flex: 1; color: var(--orange-2); font-size: 16px; font-weight: 900; }
.order-card-store { margin-top: 8px; color: var(--muted); font-size: 13px; }
.order-card-bottom { margin-top: 12px; }
.order-card-status { font-weight: 800; }
.order-card-total { color: var(--orange); font-size: 16px; font-weight: 900; }

.status-pill {
  border: 1px solid color-mix(in srgb, var(--status-color) 34%, transparent);
  border-radius: 14px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--status-color) 13%, transparent);
  color: var(--status-color);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-label { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.payment-dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; }

/* ── Acompanhamento — TrackingScreen.js ── */
.tracking-body,
.tracking-hero {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tracking-order-num { color: var(--orange-2); font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.tracking-status-big { margin-top: 16px; color: var(--text); font-size: 30px; font-weight: 900; text-align: center; }
.tracking-eta { margin-top: 20px; color: var(--muted); }
.tracking-payment { margin-top: 8px; display: flex; align-items: center; gap: 6px; color: #F59E0B; font-size: 13px; font-weight: 800; }

.tracking-summary { width: 100%; margin: 24px 0 0; }
.tracking-steps { position: relative; width: 100%; margin-top: 28px; display: grid; gap: 18px; }
.tracking-steps::before { display: none; }
.step { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.step-dot { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 10px; flex: 0 0 auto; background: var(--bg); }
.step.done .step-dot, .step.active .step-dot { border-color: var(--orange); background: var(--orange); }
.step-label { color: var(--text); font-size: 15px; font-weight: 800; }
.step-time { margin-top: 2px; color: var(--muted); font-size: 12px; }
.step:not(.done):not(.active) .step-label { color: var(--muted); }

/* ── Minha conta — AccountScreen.js ─────── */
.account-body {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: 110px;
}

.account-profile { padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.account-avatar, .account-avatar-image { width: 72px; height: 72px; border-radius: 36px; }
.account-avatar { display: flex; align-items: center; justify-content: center; background: var(--orange); color: #FFFFFF; font-size: 28px; font-weight: 900; }
.account-avatar-image { object-fit: cover; }
.account-name { color: var(--text); font-size: 22px; font-weight: 900; }
.account-email { color: var(--muted); font-size: 14px; }
.account-section { margin: 20px 16px 0; }
.account-section-title { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.account-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.account-row { width: 100%; padding: 14px; border: 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: transparent; color: var(--text); text-align: left; }
.account-row:last-child { border-bottom: 0; }
.account-row-icon { width: 32px; flex: 0 0 auto; display: flex; justify-content: center; color: var(--orange); font-size: 22px; }
.account-row-icon.muted { color: var(--muted); }
.account-row-copy { flex: 1; min-width: 0; }
.account-row-label { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.account-row-sub { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; }
.account-row-chevron { color: var(--muted); font-size: 18px; }
.account-danger { width: calc(100% - 32px); margin: 24px 16px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); color: #EF4444; font-size: 15px; font-weight: 800; }
.account-build { margin: 24px 16px 8px; color: var(--muted); font-size: 11px; text-align: center; }

/* ── Toast / loading ─────────────────────── */
#toast {
  position: fixed;
  z-index: 200;
  bottom: 90px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: var(--text);
  color: #FFFFFF;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.25s, transform 0.25s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading-dots { margin-top: 16px; display: none; align-items: center; justify-content: center; gap: 6px; }
.loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: dot 1.2s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .prod-detail-cat { margin-top: 0; }
}

@media (min-width: 840px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topbar { padding-inline: max(14px, calc((100vw - 1000px) / 2)); }
  .bottom-bar { padding-inline: max(16px, calc((100vw - 560px) / 2)); }
}

@media (max-width: 430px) {
  .cat-strip { justify-content: flex-start; }
  .field-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
