/* latin-ext */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/BebasNeue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/BebasNeue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/DMSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/DMSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fuguetinho — tema claro (design Ian, branch design/novo-visual-app)
   Base: CSS aplicado em fuguetinho-pwa.html pelo commit 4bc416e.
   Componentes posteriores (autenticação, conta, frete, entrega, pagamento)
   portados para o tema claro na seção final deste arquivo. */

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

:root {
  --navy:    #0D1B2A;
  --navy2:   #122030;
  --navy3:   #16263A;
  --orange:  #E8621A;
  --orange2: #FF8A4C;
  --price:   #C4500E;
  --label:   #B8480C;
  --cream:   #F6F1E9;
  --card:    #FFFFFF;
  --white:   #FFFFFF;
  --ink:     #0D1B2A;
  --muted:   #5B6B7E;
  --muted2:  #3A4A5C;
  --mutedL:  #9FB0C3;
  --mutedL2: #B7C4D3;
  --border:  #E6DCCB;
  --border2: #EFE7DA;
  --borderD: rgba(255,255,255,0.14);
  --success:  #1F5132;
  --successBg:#E3F1E6;
  --success2: #1F7A45;
  --tan:  #F3E3D2;
  --tan2: #EAE2D4;
  --r:  20px;
  --rs: 16px;
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--cream);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
[hidden] { display: none !important; }
button, input, textarea, select { font-family: inherit; }
#stage { position: fixed; top: var(--app-top, 0px); left: 0; right: 0; height: var(--app-height, 100%); }
@supports (height: 100dvh) { :root { --app-height: 100dvh; } }

/* Cada tela reserva espaço para cabeçalho e ações; só o conteúdo rola. */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
}
.screen.active { display: flex; }
.scroll-body, .home-scroll, .product-scroll, .auth-body, .checkout-form,
.orders-list, .account-body, .tracking-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 20px;
}

/* ── TOPBAR ──────────────────────────────── */
.topbar {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  gap: 10px;
}
.topbar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--white);
  flex: 1;
  min-width: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-back {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange);
  border-radius: 50%;
  border: none;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.orders-btn {
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.orders-btn-icon { font-size: 17px; line-height: 1; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  display: none;
  border: 2px solid var(--cream);
}

#screen-home .topbar {
  background: var(--navy);
  border-radius: 0 0 28px 28px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
#screen-home .topbar-logo { color: var(--white); font-size: 28px; letter-spacing: 1.5px; }
#screen-home .orders-btn { background: var(--navy3); border-color: var(--borderD); color: var(--white); }
#screen-home .cart-btn { background: var(--navy3); border: 1px solid var(--borderD); color: var(--white); }
#screen-home .cart-count { background: var(--cream); color: var(--navy); border-color: var(--navy3); }

/* ── SPLASH ──────────────────────────────── */
#screen-splash.active { display: block; overflow-y: auto; background: var(--navy); color: var(--white); }
.splash-content {
  min-height: 100%;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.splash-content > * { flex-shrink: 0; }
.splash-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 9vw, 42px);
  letter-spacing: 3px;
  margin-top: 10px;
  color: var(--orange);
  line-height: 1;
  text-align: center;
}
.splash-tagline {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mutedL);
  margin-top: 6px;
  margin-bottom: 12px;
}
.splash-fireworks {
  font-size: 56px;
  margin-bottom: 32px;
  animation: pop 1.4s ease-in-out infinite alternate;
}
@keyframes pop {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.splash-status {
  font-size: 13px;
  color: var(--mutedL);
  margin-top: 20px;
  min-height: 20px;
  text-align: center;
}
.btn-location {
  background: var(--orange);
  border: none;
  border-radius: var(--rs);
  padding: 16px 40px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  min-height: 48px;
}
.btn-location:active { transform: scale(0.97); }
.btn-or {
  font-size: 12px;
  color: var(--mutedL);
  margin: 12px 0;
}
.btn-cep {
  background: transparent;
  border: 1px solid var(--borderD);
  border-radius: var(--rs);
  padding: 14px 18px;
  color: var(--mutedL);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cep:active { border-color: var(--orange); color: var(--white); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--mutedL);
}
.legal-links a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.legal-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 18px 0;
}
.legal-note a {
  color: var(--label);
  font-weight: 600;
}

/* ── HOME ────────────────────────────────── */
.store-badge {
  margin: 16px 18px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  width: calc(100% - 36px);
  text-align: left;
  cursor: pointer;
}
.store-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success2);
  flex-shrink: 0;
}
.store-badge-name { color: var(--ink); font-weight: 600; }
.store-badge-dist { color: var(--muted); margin-left: auto; font-size: 12px; }

.search-bar {
  margin: 14px 18px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar svg { flex-shrink: 0; color: var(--muted); }
.search-input {
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 0;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.search-input::placeholder { color: var(--muted); }

.hero {
  margin: 20px 18px;
  background: var(--orange);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding: 22px 20px;
  min-height: 148px;
  box-sizing: border-box;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-emoji { font-size: 76px; position: absolute; right: -6px; bottom: -10px; opacity: 0.95; }
.hero-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.5px;
  line-height: 0.95;
  color: var(--navy);
  max-width: 200px;
}
.hero-sub { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 8px; }

.cat-strip {
  display: flex;
  gap: 8px;
  padding: 18px 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 18px 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.8px;
  color: var(--ink);
}
.section-count { font-size: 12px; color: var(--muted); }

.product-list { padding: 0 0 20px; }

.cat-section { margin-bottom: 8px; }
.cat-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 18px 10px;
}
.cat-scroll {
  display: flex;
  gap: 12px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.prod-card {
  flex-shrink: 0;
  width: 156px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(13,27,42,0.06), 0 8px 24px rgba(13,27,42,0.06);
}
.prod-card:active { transform: scale(0.98); }

.prod-icon {
  width: 100%; height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 16px;
}
.prod-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--navy);
  flex-shrink: 0;
}
.prod-detail-photo {
  width: 150px;
  height: 176px;
  object-fit: contain;
  display: block;
}
.prod-open { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; border: none; background: none; color: inherit; text-align: left; cursor: pointer; }
.prod-info { width: 100%; padding: 0 6px; }
.prod-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.prod-cat { display: none; }
.prod-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.3px;
  color: var(--price);
  margin-top: 4px;
  padding-right: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.prod-add-btn {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 44px; height: 44px;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  color: var(--ink);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
}
.prod-add-btn:active { transform: scale(0.9); }
.prod-in-cart {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: none;
}

/* ── PRODUTO DETALHE ─────────────────────── */
#screen-product .topbar { background: var(--navy); }
#screen-product .topbar-back,
#screen-product .orders-btn,
#screen-product .cart-btn { background: rgba(255,255,255,0.14); border: none; color: var(--white); }
#screen-product .topbar-logo { display: none; }
.prod-detail-hero {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  height: clamp(180px, 30vh, 300px);
  font-size: 96px;
  box-sizing: border-box;
}
.prod-detail-body {
  position: relative;
  margin-top: -28px;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 24px 18px 28px;
}
.prod-detail-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 6px;
}
.prod-detail-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.5px;
  line-height: 0.98;
  margin-bottom: 10px;
}
.prod-detail-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--price);
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.prod-detail-desc {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.qty-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(13,27,42,0.06);
}
.qty-btn:active { background: var(--tan); }
.qty-num {
  font-size: 17px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.btn-add-cart {
  width: 100%;
  background: var(--orange);
  border: none;
  border-radius: var(--rs);
  padding: 17px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn-add-cart:active { transform: scale(0.98); }

/* ── CARRINHO ────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 12px;
}
.cart-empty-icon { font-size: 56px; opacity: 0.3; }
.cart-empty-text { font-size: 14px; color: var(--muted); text-align: center; }

.cart-list { padding: 8px 18px 0; display: flex; flex-direction: column; gap: 0; background: var(--card); margin: 0 18px; border-radius: var(--r); }
.cart-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border2);
  border-radius: 0;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-icon {
  width: 60px; height: 60px;
  background: var(--navy);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--label); margin-top: 2px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border-radius: 12px;
  height: 44px;
  padding: 0 4px;
}
.cqty-btn {
  width: 44px; height: 44px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cqty-num { font-size: 14px; font-weight: 700; min-width: 16px; text-align: center; }

.cart-summary {
  margin: 16px 18px;
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted2);
}
.summary-row.total {
  border-top: 1px solid var(--border2);
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  align-items: baseline;
}
.summary-row.total .val { color: var(--price); font-family: 'Bebas Neue', sans-serif; font-size: 28px; }

/* ── CHECKOUT ────────────────────────────── */
.checkout-section {
  padding: 20px 18px 0;
}
.checkout-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.6px;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 14px;
}
.field-group { margin-bottom: 14px; }
.field-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.field-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 13px 14px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { outline: none; border-color: var(--orange); }
.field-row { display: flex; gap: 10px; }
.field-row .field-group { flex: 1; min-width: 0; }
.field-label { display: block; }
.checkout-form { padding-bottom: 24px; }

.pix-badge {
  margin: 0 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.pix-icon { font-size: 22px; }
.pix-text { color: var(--muted); }
.pix-text strong { color: var(--ink); }
.checkout-summary-wrap { padding: 0; }
.checkout-summary-wrap .cart-summary { margin: 18px 0 0; }
.checkout-actions {
  padding: 0 18px 28px;
}

.bottom-bar {
  position: relative;
  flex-shrink: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
}
.btn-checkout {
  width: 100%;
  background: var(--orange);
  border: none;
  border-radius: var(--r);
  padding: 17px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn-checkout:active { transform: scale(0.98); }
.btn-checkout:disabled { background: var(--border); color: var(--muted); cursor: default; }
.btn-checkout .total-tag {
  background: rgba(13,27,42,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 14px;
  margin-left: auto;
}

/* ── CONFIRMAÇÃO ─────────────────────────── */
#screen-confirm.active { display: block; overflow-y: auto; }
.confirm-body {
  min-height: 100%;
  width: min(480px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}
.confirm-body > * { flex-shrink: 0; }
.confirm-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: bounce 0.6s ease-out;
}
@keyframes bounce {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
  color: var(--label);
  margin-bottom: 8px;
}
.confirm-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.confirm-order-num {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 14px 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--price);
  margin-bottom: 32px;
}
.confirm-pix {
  display: none;
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 14px;
  margin: -14px 0 24px;
  text-align: left;
}
.confirm-pix.show, #confirm-card:not([hidden]) { display: block; }
.confirm-pix-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.confirm-pix img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  background: var(--white);
  border-radius: 4px;
}
.confirm-pix-code {
  width: 100%;
  min-height: 54px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--rs);
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  padding: 8px;
}
.confirm-pix-copy {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: var(--rs);
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  padding: 12px;
}

/* ── ORDERS ──────────────────────────────── */
.orders-list {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(13,27,42,0.06);
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.order-card-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--price);
}
.order-card-status {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-card-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.orders-empty {
  padding: 56px 26px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.orders-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 16px;
}
.orders-refresh {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

/* ── TRACKING ────────────────────────────── */
#screen-tracking { background: var(--navy); }
.tracking-hero {
  padding: 28px 20px 22px;
  text-align: left;
  background: var(--navy);
  color: var(--white);
}
.tracking-order-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange2);
  margin-bottom: 10px;
}
.tracking-status-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 0.5px;
  line-height: 0.95;
  margin-bottom: 8px;
  color: var(--white);
}
.tracking-eta {
  font-size: 14px;
  color: var(--mutedL2);
}

.tracking-steps {
  margin: 0;
  position: relative;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 20px 18px 8px;
}
.tracking-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 34px;
  bottom: 28px;
  width: 2px;
  background: var(--border);
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: var(--r);
  margin-bottom: 10px;
}
.step-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s;
}
.step.done .step-dot { background: var(--success2); border-color: var(--success2); }
.step.active .step-dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,98,26,0.18); }
.step-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.step-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step.done .step-label { color: var(--muted); }
.step.active .step-label { color: var(--ink); font-weight: 700; }
.step:not(.done):not(.active) .step-label { color: var(--muted); }

/* ── TOAST ───────────────────────────────── */
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--white);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(13,27,42,0.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── LOADING ─────────────────────────────── */
.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.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); } }

/* ── NAV INFERIOR (home) ─────────────────── */
.app-nav {
  position: relative;
  flex-shrink: 0;
  min-height: 64px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  z-index: 40;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  background: none; border: none; font-family: inherit; cursor: pointer;
  min-height: 44px;
}
.nav-item.active { color: var(--label); font-weight: 700; }

.home-cart-bar {
  position: relative;
  flex-shrink: 0;
  width: calc(100% - 32px);
  margin: 8px auto;
  min-height: 56px;
  background: var(--orange);
  color: var(--ink);
  border-radius: 20px;
  display: none;
  align-items: center;
  padding: 0 8px 0 18px;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(232,98,26,0.35);
  z-index: 45;
  text-decoration: none;
}
.home-cart-bar { border: none; text-align: left; }
.home-cart-bar.show { display: flex; }
.home-cart-bar-info { display: flex; flex-direction: column; flex-grow: 1; }
.home-cart-bar-count { font-size: 12px; font-weight: 600; }
.home-cart-bar-cta { font-size: 16px; font-weight: 700; }
.home-cart-bar-total {
  background: var(--navy); color: var(--white);
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.4px;
  padding: 8px 14px; border-radius: 14px; line-height: 1;
}

.bottom-bar .narrow-column { width: min(560px, 100%); }
.product-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.product-actions .qty-row { margin: 0; gap: 8px; flex-shrink: 0; }
.product-actions .btn-add-cart { max-width: 420px; min-width: 0; min-height: 52px; padding: 12px; }
.summary-row { gap: 12px; }
.summary-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.summary-row > span:last-child { flex-shrink: 0; }
.order-card-top, .order-card-bottom { flex-wrap: wrap; }
.orders-list > * { flex-shrink: 0; }

@media (max-width: 430px) {
  .orders-btn {
    width: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .orders-btn span:not(.orders-btn-icon) { display: none; }
  .field-row { gap: 8px; }
}

@media (min-width: 768px) {
  #screen-home .store-badge,
  #screen-home .search-bar,
  #screen-home .hero,
  #screen-home .section-head,
  #screen-home .product-list,
  #screen-home .cat-strip,
  #screen-cart #cart-body,
  #screen-orders #orders-body,
  #screen-checkout .checkout-section,
  #screen-checkout .pix-badge,
  #screen-checkout .legal-note,
  #screen-checkout .checkout-summary-wrap,
  #screen-checkout .checkout-actions,
  #screen-product .prod-detail-body {
    width: min(100% - 36px, 820px);
    margin-left: auto;
    margin-right: auto;
  }

  #screen-home .section-head { padding-left: 0; padding-right: 0; }
  #screen-home .cat-strip { padding-left: 0; padding-right: 0; }
  #screen-home .product-list { padding-left: 0; padding-right: 0; }

  #screen-product .prod-detail-hero {
    width: min(100% - 36px, 720px);
    height: 300px;
    margin: 24px auto 0;
    border-radius: var(--r);
    padding: 24px;
  }

  #screen-product .prod-detail-body {
    padding-left: 0;
    padding-right: 0;
  }

  .home-cart-bar { max-width: 820px; }
  .app-nav {
    width: min(100% - 36px, 480px);
    margin: 8px auto 12px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(13,27,42,0.12);
  }
  .auth-body, .account-body, .tracking-body { width: min(720px, 100%); margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════════
   COMPONENTES DO PILOTO — portados para o tema claro
   (autenticação, conta, cotação de frete, entrega com código,
    pagamento com cartão, toasts, acessibilidade)
   ════════════════════════════════════════════════════════════════ */

/* ── Bases que o tema novo não cobre ── */
.scroll-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.narrow-column { width: min(560px, calc(100% - 36px)); margin: 0 auto; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
.primary-button, .secondary-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .12s ease, opacity .12s ease;
}
.primary-button { background: var(--orange); color: var(--navy); }
.primary-button:active { transform: scale(.98); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.secondary-button { background: var(--navy); color: #fff; }
.icon-button, .gps-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
  border-radius: 12px; cursor: pointer;
}
.gps-button { min-height: 46px; padding: 0 16px; gap: 8px; font-weight: 600; }

/* Topbar das telas internas (produto/carrinho/pedidos/checkout/conta/auth) */
.topbar-back:focus-visible { outline: 3px solid var(--orange); }
.header-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: #fff; }
.header-ghost { width: 44px; flex-shrink: 0; }
.account-btn { background: rgba(255,255,255,.12); border: none; color: #fff; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px 0; }
.orders-toolbar-text { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ── Splash: mantém bloco navy com o botão Google ── */
#screen-splash.active { background: var(--navy); color: #fff; }
.splash-google { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 13px; }
.splash-google[hidden] { display: none; }
.splash-logo { width: 104px; max-width: 40vw; height: auto; }
.splash-actions { display: flex; flex-direction: column; align-items: center; width: min(320px, 100%); gap: 6px; margin-top: 16px; }
.splash-actions .btn-or { margin: 0; }
.splash-status:empty { display: none; }
.splash-content .app-purpose { padding: 0; margin-top: 16px; }
.splash-content .legal-links { margin-top: 12px; }
.splash-browse { width: 100%; min-height: 44px; padding: 10px; border: none; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--white); font-size: 14px; cursor: pointer; }
.splash-email { color: var(--mutedL) !important; }

/* ── Telas de entrada: login / cadastro / recuperação ── */
.auth-body { display: flex; flex-direction: column; align-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); gap: 16px; }
.auth-body > * { flex-shrink: 0; }
.auth-body .splash-logo { width: 72px; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 24px rgba(13,27,42,.06); }
.auth-card form { display: grid; gap: 8px; }
.auth-card label { font-size: 12.5px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .4px; }
.auth-card input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 12px; background: #FDFBF7; color: var(--ink); font-size: 16px; box-sizing: border-box; }
.auth-card input:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.auth-card .primary-button { margin-top: 8px; }
.auth-link { background: none; border: none; color: var(--label); font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px; padding: 10px 4px; text-align: center; }
.auth-link:hover { text-decoration: underline; }
.auth-note { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; margin: 0; }

/* Aceite pós-cadastro: corpo rolável e ação reservada no rodapé. */
.auth-card.terms-card { width: min(620px, 100%); }
.terms-card h1 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; line-height: 1.15; font-weight: 400; letter-spacing: .5px; }
.terms-card p { font-size: 14px; line-height: 1.6; color: var(--muted2); }
.terms-section + .terms-section { margin-top: 18px; }
.terms-section h2 { font-size: 15px; line-height: 1.35; color: var(--ink); margin-bottom: 5px; }
.terms-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.terms-links a { color: var(--label); font-size: 13px; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.terms-card .terms-version { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.auth-card .terms-checkbox-row { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; cursor: pointer; }
.auth-card .terms-checkbox-row input { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; padding: 0; margin-top: 2px; accent-color: var(--orange); }
.terms-card .terms-notice { background: var(--tan); border-radius: 10px; padding: 12px; font-size: 12px; }
.terms-card .terms-feedback { color: var(--label); }
.auth-card .auth-feedback { background: var(--tan); color: var(--ink); padding: 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.checkout-gate-feedback { margin: 8px 18px; color: var(--label); font-size: 14px; }
.ui-update-notice { position: fixed; z-index: 500; left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; background: var(--card); color: var(--ink); border: 2px solid var(--orange); border-radius: 16px; box-shadow: 0 8px 24px rgba(13,27,42,.15); }
.ui-update-notice p { flex: 1 1 240px; font-size: 14px; line-height: 1.5; }
.ui-update-notice .primary-button { width: auto; min-width: 140px; min-height: 44px; padding: 10px 16px; }
.checkout-terms-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(var(--app-height, 100dvh) - 32px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--card); color: var(--ink); overflow: hidden; }
.checkout-terms-dialog[open] { display: flex; flex-direction: column; }
.checkout-terms-dialog::backdrop { background: rgba(13,27,42,.65); }
.checkout-terms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.checkout-terms-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; font-weight: 400; letter-spacing: .5px; }
.checkout-terms-scroll { overflow-y: auto; min-height: 0; flex: 1; padding: 16px 20px; }
.checkout-terms-scroll p { font-size: 14px; line-height: 1.6; color: var(--muted2); }
.checkout-terms-scroll > p { margin-bottom: 16px; }
.checkout-terms-scroll .terms-notice { background: var(--tan); border-radius: 10px; padding: 12px; font-size: 12px; }
.checkout-terms-actions { padding: 12px 20px; display: grid; gap: 8px; flex-shrink: 0; border-top: 1px solid var(--border); }
.checkout-terms-actions .terms-checkbox-row { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; color: var(--ink); font-size: 14px; line-height: 1.5; cursor: pointer; }
.checkout-terms-actions .terms-checkbox-row input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--orange); }
.checkout-terms-actions .terms-feedback { color: var(--label); font-size: 13px; line-height: 1.5; }
#screen-terms .bottom-bar { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
#screen-terms .bottom-bar .primary-button { width: min(560px, 100%); }

/* ── Minha conta ── */
.account-body { flex: 1; overflow-y: auto; padding: 20px 16px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; background: var(--cream); }
.account-profile { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--navy); border-radius: 18px; color: #fff; }
.account-avatar, .account-avatar-image { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.account-avatar { display: flex; align-items: center; justify-content: center; background: var(--orange); font-weight: 800; font-size: 18px; }
.account-avatar-image { object-fit: cover; }
.account-profile-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-name { font-size: 17px; font-weight: 800; line-height: 1.35; }
.account-email { font-size: 13px; opacity: .85; margin-top: 4px; }
.account-body > * { flex-shrink: 0; }
.account-danger { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px; border: 1px solid #F2D4CF; border-radius: 14px; background: #FBEDEB; color: #8C2B22; font-size: 14px; font-weight: 700; cursor: pointer; }
.account-section { display: flex; flex-direction: column; gap: 8px; }
.account-section-title { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1.5px; color: var(--label); padding: 0 4px; }
.account-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.account-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: none; text-align: left; cursor: pointer; }
.account-row + .account-row { border-top: 1px solid var(--border2); }
.account-row-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--cream); color: var(--label); flex-shrink: 0; }
.account-row-icon.muted { color: var(--muted); }
.account-row-copy { flex: 1; min-width: 0; }
.account-row-label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.account-row-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.5; overflow-wrap: anywhere; }
.account-row-chevron { color: var(--mutedL); }
.account-danger .account-row-icon { color: #B3261E; background: #FBEDEB; }
.account-build { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; }

/* ── Vídeo do produto ── */
.prod-detail-video { margin-top: 10px; border-radius: 14px; overflow: hidden; background: #000; }
.prod-detail-video[hidden] { display: none; }
.prod-detail-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* ── Cobertura / cotação de frete ── */
.coverage-warning { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: #FBEDEB; color: #8C2B22; font-size: 13px; font-weight: 600; line-height: 1.45; border: 1px solid #F2D4CF; }
.checkout-delivery-quote { margin: 14px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--border); }
.checkout-delivery-quote[hidden] { display: none; }
.checkout-delivery-quote h2 { font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 1px; color: var(--label); margin: 0 0 4px; }
.checkout-delivery-quote p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.checkout-delivery-quote button { margin-top: 10px; min-height: 42px; border: none; border-radius: 12px; background: var(--cream); border: 1px solid var(--border); font-weight: 700; color: var(--label); cursor: pointer; padding: 0 16px; }

/* ── Pedido em andamento (hero) ── */
.resume-order { display: none; width: 100%; margin-top: 12px; align-items: center; gap: 10px; padding: 12px 14px; border: none; border-radius: 14px; background: rgba(13,27,42,.85); color: #fff; cursor: pointer; text-align: left; }
.resume-order.show { display: flex; }
.resume-order-copy { flex: 1; min-width: 0; }
.resume-order-title { display: block; font-size: 13.5px; font-weight: 800; }
.resume-order-sub { display: block; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Pagamento (cartão/PIX no checkout e confirmação) ── */
.pay-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.pay-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); font-weight: 700; color: var(--muted2); cursor: pointer; }
.pay-option.selected { border-color: var(--orange); background: #FFF3EB; color: var(--label); }
.payment-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted2); }
.payment-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mutedL); display: inline-block; }
#card-form { display: grid; gap: 10px; margin-top: 8px; }
#card-form[hidden] { display: none; }
#card-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.returning-box { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #FFF8E6; border: 1px solid #F1E3B6; font-size: 13px; color: #7A5B0F; }
#returning-box[hidden] { display: none; }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; width: min(420px, 100%); margin: 14px auto 0; }

/* ── Rastreio + comprovante de entrega ── */
.tracking-body { padding: 24px 18px; }
.tracking-body .tracking-summary { padding: 16px; margin-top: 16px; background: var(--card); border-radius: 16px; }
.tracking-body .tracking-steps { margin-top: 16px; border-radius: 20px; }
.tracking-body .delivery-ticket { margin: 16px 0 0; }
.tracking-body .tracking-eta { margin-top: 16px; }
.delivery-pin { display: block; }
.tracking-payment { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.delivery-ticket { margin: 14px 18px 0; padding: 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--border); color: var(--ink); }
.delivery-ticket[hidden] { display: none; }
.delivery-ticket h2 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: var(--label); margin: 0 0 8px; }
.delivery-ticket p { margin: 0 0 4px; font-size: 13.5px; color: var(--muted2); line-height: 1.5; }
.delivery-ticket a { color: var(--label); font-weight: 700; }
.delivery-pin { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 10px; color: var(--label); text-align: center; margin: 10px 0; }
.delivery-ticket .primary-button { margin-top: 10px; }

/* ── Vincular conta Google ── */
.google-link-form { display: grid; gap: 8px; padding: 16px; margin: 0 16px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.google-link-form[hidden] { display: none; }
.google-link-form p { line-height: 1.5; font-size: 13px; color: var(--muted); margin: 0; }
.google-link-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #FDFBF7; color: var(--ink); font-size: 16px; box-sizing: border-box; }

/* ── Toast ── */
#toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 90; max-width: min(92vw, 560px); width: fit-content; white-space: normal; overflow-wrap: anywhere; text-align: center; box-shadow: 0 10px 30px rgba(13,27,42,.35); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Estados vazios / listas ── */
.empty-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; color: var(--mutedL); }
.empty-box.search-similar-note { padding: 22px 16px 4px; }
.empty-text { font-size: 14px; color: var(--muted); }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: var(--cream); color: var(--muted2); }
.order-card-store { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.order-card-total { font-weight: 800; color: var(--label); }
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.summary { padding: 0 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Fonte de ícones (Ionicons) usada nos componentes do piloto ── */
@font-face {
  font-family: "Ionicons";
  src: url("/assets/fonts/Ionicons.ttf") format("truetype");
  font-display: block;
}
.ion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Ionicons";
  font-style: normal;
  font-weight: normal;
  speak: none;
  line-height: 1;
}

/* Foto do produto no hero: maior e centralizada (fotos reais do catálogo) */
.prod-detail-photo { width: auto; height: auto; max-width: 74%; max-height: 82%; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.35); }

.prod-detail-body { overflow-wrap: anywhere; }
@media (max-height: 550px) {
  #screen-product .prod-detail-hero { height: 120px; padding: 12px 20px; margin-top: 0; }
}
.prod-detail-name, .confirm-title, .checkout-label, .section-title, .account-section-title, .hero-title { font-weight: 400; }

@media (max-width: 600px) {
  .cart-list { padding: 0 12px; margin: 0 16px; }
  .cart-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px; }
  .cart-item-icon { width: 48px; height: 48px; grid-row: 1 / 3; }
  .cart-item-qty { grid-column: 2; justify-self: end; }
}

/* Os overlays também cabem em paisagem e no viewport reduzido pelo teclado. */
.privacy-consent-banner { max-height: calc(var(--app-height, 100vh) - 28px); overflow-y: auto; }
.privacy-consent-modal { top: var(--app-top, 0px); bottom: auto; height: var(--app-height, 100%); }
.privacy-consent-panel { max-height: min(760px, calc(var(--app-height, 100vh) - 36px)); }
.privacy-consent-action, .privacy-consent-close { min-height: 44px; }
.privacy-consent-close { min-width: 44px; flex-shrink: 0; }

/* Declaração de propósito do app (exigência de conformidade do Google Login) */
.app-purpose {
  max-width: 560px; margin: 10px auto 0; padding: 0 22px;
  font-size: 12.5px; line-height: 1.55; text-align: center;
  color: rgba(255,255,255,.7);
}
.app-purpose a { color: rgba(255,255,255,.85); }
.app-purpose--home {
  max-width: 820px; margin: 8px auto 20px; padding: 0 18px; text-align: left;
  color: var(--muted); font-size: 11.5px;
}
.app-purpose--home a { color: var(--label); font-weight: 600; }
