/* staging test */
/* ============ RESET & BASE ============ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Evita overflow horizontal acidental que aparece em alguns devices mobile.
     Usa `overflow-x: clip` em vez de `hidden` porque clip NÃO cria contexto
     de rolagem — isso é essencial pra que position:sticky funcione em
     descendentes (caso do .site-header-stack). Fallback pra hidden é
     incluído pra browsers antigos. */
  overflow-x: hidden; /* fallback pra browsers antigos */
  overflow-x: clip;
  max-width: 100vw;
}
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Mesmo no body — clip preserva sticky em descendentes */
  overflow-x: hidden; /* fallback */
  overflow-x: clip;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============ TOKENS ============ */
:root {
  --blue-50:  #eaf2fb;
  --blue-100: #cfe0f5;
  --blue-500: #0a4ea3;
  --blue-600: #084386;
  --blue-700: #062f64;
  --orange:   #ff6a13;
  --orange-dark: #e85a05;
  --green:    #1ca94c;
  --red:      #e23b3b;
  --bg:       #f5f6f8;
  --surface:  #ffffff;
  --border:   #e5e7eb;
  --border-2: #d6d9df;
  --text:     #0e1726;
  --muted:    #5a6478;
  --muted-2:  #8a92a3;
  --shadow-sm: 0 1px 2px rgba(14,23,38,.06);
  --shadow:    0 4px 14px rgba(14,23,38,.08);
  --shadow-lg: 0 18px 50px rgba(14,23,38,.18);
  --radius:    12px;
  --radius-lg: 18px;
  --container: 1240px;
}

/* ============ UTILITIES ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(255,106,19,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: #cfd3db; color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); color: var(--blue-500); border: 1.5px solid var(--blue-100); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-block { width: 100%; padding: 14px 18px; font-size: 15px; }
.btn-whats { background: #25d366; color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.35); }
.btn-whats:hover { background: #1ebc5c; transform: translateY(-1px); }
.btn-gov { background: #009c3b; color: #fff; box-shadow: 0 6px 16px rgba(0, 156, 59, .35); }
.btn-gov:hover { background: #007d2e; transform: translateY(-1px); }

.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.header-top { padding: 12px 0; }
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transform: translateY(-6px);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { line-height: 1.05; }
.logo-text .brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  display: block;
}
.logo-text .sub { font-size: 11px; opacity: .85; font-weight: 500; letter-spacing: .02em; }

.search {
  position: relative;
  display: flex; align-items: center;
  background: #fff; border-radius: 10px;
  padding: 0 12px;
  box-shadow: var(--shadow-sm);
  height: 44px;
}
.search svg { color: var(--muted); flex-shrink: 0; }
.search input {
  flex: 1; border: none; outline: none; padding: 0 10px;
  background: transparent; color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--muted-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 13px; font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(226,59,59,.6); }
.status-badge.is-open .status-dot { background: #2bd86c; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(43,216,108,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(43,216,108,0); }
  100% { box-shadow: 0 0 0 0   rgba(43,216,108,0); }
}

.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .15s;
}
.cart-btn:hover { background: rgba(255,255,255,.22); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff; font-weight: 800; font-size: 11px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  border: 2px solid var(--blue-500);
}
.cart-count.hidden { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--blue-700);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,47,100,.25) 0%, rgba(6,47,100,.85) 80%, rgba(6,47,100,1) 100%),
              linear-gradient(90deg, rgba(6,47,100,.7) 0%, rgba(6,47,100,.2) 50%, rgba(6,47,100,.7) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 56px 16px 64px; max-width: var(--container); margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
  max-width: 780px;
}
.hero h1 .accent { color: #ffd180; }
.hero p { font-size: clamp(15px, 2vw, 17px); max-width: 580px; opacity: .92; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 13px; font-weight: 600; opacity: .95; }
.hero-perks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-perks svg { color: #ffd180; }

/* ============ SECTION ============ */
.section { padding: 36px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-700);
}
.section-head p { color: var(--muted); font-size: 14px; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface);
  color: var(--blue-700);
  font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--border);
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--blue-500); }
.tab .count { background: var(--bg); color: var(--muted); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tab.active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); box-shadow: 0 4px 12px rgba(10,78,163,.3); }
.tab.active .count { background: rgba(255,255,255,.22); color: #fff; }

/* ============ GRID ============ */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card-img { aspect-ratio: 1 / 1; background: #f0f2f5; display: grid; place-items: center; overflow: hidden; position: relative; }
.card-img img { width: 88%; height: 88%; object-fit: contain; transition: transform .3s ease; filter: drop-shadow(0 6px 12px rgba(0,0,0,.08)); }
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 9px; border-radius: 6px;
  background: var(--blue-700); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.card-tag.tag-oferta { background: linear-gradient(135deg, #ff9528 0%, #ff5d0e 100%); color: #fff; font-size: 10px; box-shadow: 0 4px 10px rgba(255,93,14,.35); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-add-btn {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px;
  background: var(--orange); color: #fff;
  border-radius: 9px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 12px rgba(255,106,19,.3);
  transition: background .15s ease, transform .15s ease;
  width: 100%;
}
.card-add-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.card-title {
  font-weight: 700; font-size: 14px;
  color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price-row { margin-top: auto; padding-top: 8px; }
.card-price-from { font-size: 11px; color: var(--muted); font-weight: 600; }
.card-price-original { font-size: 12px; color: var(--muted); text-decoration: line-through; font-weight: 600; display: block; line-height: 1; margin-bottom: 2px; }
.card-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.02em; line-height: 1.1;
}
.card-price small { font-size: 13px; font-weight: 700; opacity: .8; }
.card-discount { display: inline-block; background: #ffe9d4; color: #c64200; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.card-cta { margin-top: 8px; display: flex; align-items: center; justify-content: center; padding: 6px 12px; color: var(--blue-500); font-weight: 700; font-size: 12.5px; gap: 6px; }
@media (min-width: 640px) { .card-title { font-size: 15px; } .card-price { font-size: 24px; } }

/* ============ GÁS DO POVO — Banner no card de produto ============ */
/* Aparece em produtos marcados is_gas_povo_eligible quando feature está ativa.
   Botão clicável: abre o popup explicativo. Estilo: pílula verde institucional. */
.gas-povo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 9px;
  background: linear-gradient(135deg, #e8f7ee 0%, #d1f0dc 100%);
  border: 1.5px solid rgba(28, 169, 76, 0.35);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #066e2c;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  width: fit-content;
}
.gas-povo-badge:hover {
  background: linear-gradient(135deg, #d1f0dc 0%, #b8e6c8 100%);
  transform: translateY(-1px);
}
.gas-povo-badge:active { transform: translateY(0); }
.gas-povo-badge .gpb-icon { font-size: 13px; line-height: 1; }
.gas-povo-badge .gpb-text { letter-spacing: -.005em; }
.gas-povo-badge .gpb-question {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #066e2c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ============ GÁS DO POVO — Linha de taxa no resumo do checkout ============ */
.checkout-summary .gas-povo-fee-row {
  color: #066e2c;
  font-weight: 700;
  padding: 6px 0;
  border-top: 1px dashed rgba(28, 169, 76, 0.3);
  margin-top: 4px;
}
.checkout-summary .gas-povo-fee-row span:last-child {
  font-weight: 800;
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14,23,38,.55);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 91;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
}
.modal-close:hover { background: var(--bg); }
.modal-grid { display: grid; grid-template-columns: 1fr; overflow: auto; flex: 1; }
@media (min-width: 760px) { .modal-grid { grid-template-columns: 1.05fr 1fr; } }
.modal-img { background: linear-gradient(135deg, #f0f4f8 0%, #e6ecf3 100%); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 24px; }
.modal-img img { max-width: 78%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,.12)); }
@media (min-width: 760px) { .modal-img { aspect-ratio: auto; height: 100%; min-height: 380px; } }
.modal-info { padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.modal-cat { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; width: fit-content; }
.modal-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1.15; }
.modal-desc { color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 800; color: var(--blue-700); letter-spacing: -.025em; line-height: 1; }
.modal-price small { font-size: 18px; }
.modal-price-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }

.variation-block { margin-top: 4px; }
.variation-block .label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.variation-block .label .req { color: var(--orange); }
.variation-list { display: flex; flex-direction: column; gap: 8px; }
.variation-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.variation-item:hover { border-color: var(--blue-500); }
.variation-item input { position: absolute; opacity: 0; pointer-events: none; }
.variation-item .radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: border-color .15s;
}
.variation-item .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); transform: scale(0); transition: transform .15s; }
.variation-item.selected { border-color: var(--blue-500); background: var(--blue-50); }
.variation-item.selected .radio { border-color: var(--blue-500); }
.variation-item.selected .radio::after { transform: scale(1); }
.variation-item .v-name { flex: 1; font-weight: 600; font-size: 14px; }
.variation-item .v-price { font-weight: 800; color: var(--blue-700); font-size: 14px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.qty-row .label { font-size: 13px; font-weight: 700; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; font-size: 18px; font-weight: 700; color: var(--blue-700); transition: background .15s; }
.qty-control button:hover { background: var(--blue-50); }
.qty-control button:disabled { color: var(--muted-2); cursor: not-allowed; }
.qty-control .qty { min-width: 40px; text-align: center; font-weight: 800; font-size: 15px; }
.modal-actions { margin-top: auto; padding-top: 8px; }

/* ============ DRAWER ============ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--surface);
  z-index: 91;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 800; color: var(--blue-700); display: flex; align-items: center; gap: 10px; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background .15s; }
.drawer-close:hover { background: var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.drawer-empty h4 { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.drawer-empty .mascote-mini {
  width: 88px; height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-50) 0%, #d4e4f6 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.drawer-empty .mascote-mini img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.15); }

.cart-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; align-items: start; }
.cart-item-img { aspect-ratio: 1; background: #f0f2f5; border-radius: 8px; display: grid; place-items: center; padding: 6px; }
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 13px; line-height: 1.3; }
.cart-item-variation { font-size: 11px; color: var(--muted); font-weight: 600; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item-price { font-weight: 800; color: var(--blue-700); font-size: 14px; }
.cart-qty { display: inline-flex; align-items: center; background: var(--bg); border-radius: 8px; }
.cart-qty button { width: 28px; height: 28px; font-size: 14px; font-weight: 700; color: var(--blue-700); }
.cart-qty .q { min-width: 24px; text-align: center; font-weight: 800; font-size: 13px; }
.cart-item-remove { font-size: 11px; color: var(--red); font-weight: 700; margin-top: 4px; padding: 0; background: none; text-align: left; }
.cart-item-remove:hover { text-decoration: underline; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px 18px; background: var(--surface); }
.subtotal-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.subtotal-row .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.subtotal-row .value { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }

.cart-galao-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 9px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}
.cart-galao-toggle input { width: 18px; height: 18px; accent-color: var(--blue-500); flex-shrink: 0; cursor: pointer; }
.cart-galao-toggle .ct-text { font-size: 12.5px; font-weight: 700; color: var(--blue-700); line-height: 1.3; }
.cart-galao-toggle .ct-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 1px; }

.galao-check {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eaf4ff 0%, #dceaf9 100%);
  border: 1.5px solid var(--blue-100);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.galao-check input { width: 20px; height: 20px; accent-color: var(--blue-500); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.galao-check .gc-title { font-weight: 800; font-size: 13.5px; color: var(--blue-700); display: block; margin-bottom: 2px; }
.galao-check .gc-hint { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ============ CHECKOUT ============ */
.checkout { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.field label .req { color: var(--orange); }
.field input, .field textarea, .field select { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; color: var(--text); transition: border-color .15s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 11px; color: var(--muted); }
.field-error { font-size: 11px; color: var(--red); font-weight: 600; }

.checkout-summary { background: var(--blue-50); padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.checkout-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.checkout-summary .row.total { font-weight: 800; color: var(--blue-700); font-size: 15px; border-top: 1px dashed rgba(10,78,163,.2); padding-top: 8px; margin-top: 4px; }
.checkout-summary .coupon-note { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 4px; font-style: italic; }
.checkout-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-500); font-size: 13px; padding: 4px 0; margin-bottom: 4px; }
.checkout-back:hover { text-decoration: underline; }

.field.cpf-field, .field.troco-field { display: none; }
.field.cpf-field.show, .field.troco-field.show { display: flex; }

.gp-info-card {
  background: linear-gradient(135deg, #e8f7ee 0%, #d4f0de 100%);
  border: 1.5px solid #8ad1a0;
  border-radius: 12px;
  padding: 13px 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.gp-info-card.show { display: flex; }
.gp-info-card .gp-info-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; color: #066e2c; }
.gp-info-card p { font-size: 12px; line-height: 1.5; color: #0a5a26; margin: 0; }
.gp-info-card a { color: #066e2c; font-weight: 800; text-decoration: underline; }

.pix-card {
  background: linear-gradient(135deg, #f0fbf4 0%, #ddf3e3 100%);
  border: 1.5px solid #b7e2c2;
  border-radius: 12px;
  padding: 14px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.pix-card.show { display: flex; }
.pix-card .pix-head { display: flex; align-items: center; gap: 10px; }
.pix-card .pix-icon { width: 36px; height: 36px; border-radius: 8px; background: #32c466; color: #fff; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; }
.pix-card .pix-title { font-size: 13px; font-weight: 800; color: #1a6b32; line-height: 1.15; }
.pix-card .pix-sub { font-size: 11.5px; color: #2c8245; }
.pix-key-row { display: flex; align-items: stretch; background: #fff; border-radius: 8px; border: 1px solid #c5e6cf; overflow: hidden; }
.pix-key { flex: 1; padding: 10px 12px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); word-break: break-all; display: flex; align-items: center; }
.pix-copy { background: #1a6b32; color: #fff; font-weight: 800; font-size: 12px; padding: 0 14px; display: flex; align-items: center; gap: 6px; transition: background .15s; }
.pix-copy:hover { background: #145025; }
.pix-copy.copied { background: #32c466; }

/* ============ COUPON ============ */
.coupon-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.coupon-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 244, 230, .55);
  border: 1px dashed #ffc890;
  border-radius: 9px;
  font-weight: 700; font-size: 13px;
  color: #c64200;
}
.coupon-toggle:hover { background: #fff4e6; border-color: var(--orange); }
.coupon-toggle .left { display: inline-flex; align-items: center; gap: 8px; }
.coupon-input-row { display: flex; gap: 6px; margin-bottom: 4px; }
.coupon-input-row input { flex: 1; border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; background: #fff; }
.coupon-input-row input:focus { outline: none; border-color: var(--orange); }
.coupon-apply-btn { background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; padding: 0 16px; border-radius: 9px; white-space: nowrap; }
.coupon-apply-btn:hover { background: var(--orange-dark); }
.coupon-cancel { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0 0; background: none; }
.coupon-cancel:hover { color: var(--text); text-decoration: underline; }
.coupon-error { font-size: 11.5px; color: var(--red); margin-top: 4px; font-weight: 700; }
.coupon-applied {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #e8f7ee 0%, #d4f0de 100%);
  border: 1.5px solid #8ad1a0;
  border-radius: 10px;
}
.coupon-applied .coupon-icon { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1.5px solid #8ad1a0; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.coupon-applied .coupon-info { flex: 1; min-width: 0; line-height: 1.25; }
.coupon-applied .coupon-name { font-weight: 800; font-size: 13px; color: #066e2c; margin-bottom: 2px; }
.coupon-applied .coupon-desc { font-size: 11px; color: #0a5a26; font-weight: 500; }
.coupon-applied .coupon-remove { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.7); color: #066e2c; display: grid; place-items: center; flex-shrink: 0; }
.coupon-applied .coupon-remove:hover { background: #fff; color: var(--red); }
.checkout-summary .row.coupon-row { background: rgba(28,169,76,.1); border-radius: 6px; padding: 6px 10px; margin: 6px -10px 4px; color: #066e2c; font-weight: 800; }

/* ============ FOOTER ============ */
.footer { background: linear-gradient(180deg, var(--blue-700) 0%, #041f44 100%); color: rgba(255,255,255,.85); padding: 64px 0 0; margin-top: 40px; }
.footer .container { padding: 0 22px; }
@media (min-width: 720px) { .footer .container { padding: 0 32px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
@media (min-width: 720px) { .footer { padding-top: 72px; margin-top: 56px; } .footer-grid { grid-template-columns: 1.1fr 1fr 1.3fr; gap: 48px; padding-bottom: 52px; } }
.footer h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 18px; letter-spacing: -.01em; }
.footer p, .footer li { font-size: 13.5px; line-height: 1.65; }
.footer-brand .lead { margin: 16px 0 18px; font-size: 13.5px; }
.footer-brand .status-badge { background: rgba(255,255,255,.08); font-size: 12px; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 700; color: #fff; }
.address-block { margin-bottom: 16px; font-size: 13.5px; }
.address-block strong { color: #fff; display: block; margin-bottom: 6px; }
.map-wrap { border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); height: 200px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-actions { display: flex; gap: 10px; margin-top: 12px; }
.map-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }
.map-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.map-actions .btn-ghost:hover { background: rgba(255,255,255,.14); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .footer-bottom { padding-bottom: 90px; } }

/* ============ FAB WHATSAPP ============ */
.fab-whats {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 60;
  transition: transform .15s;
  text-decoration: none;
}
.fab-whats:hover { transform: scale(1.08); }

/* ============ ALERTS / INFO MODAL ============ */
.alert-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(8, 18, 38, .68); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.alert-backdrop.open { opacity: 1; pointer-events: auto; }
.alert-modal {
  position: fixed; z-index: 111;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 12px)) scale(.96);
  width: min(440px, calc(100% - 24px));
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.alert-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.alert-hero { background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%); color: #fff; padding: 28px 24px 24px; text-align: center; position: relative; overflow: hidden; }
.alert-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; position: relative; z-index: 1; }
.alert-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; position: relative; z-index: 1; }
.alert-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulseRed 1.8s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255,120,120,.55); } 70% { box-shadow: 0 0 0 7px rgba(255,120,120,0); } 100% { box-shadow: 0 0 0 0 rgba(255,120,120,0); } }
.alert-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; position: relative; z-index: 1; }
.alert-body { padding: 22px 24px 8px; text-align: center; }
.alert-body p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.alert-body p strong { color: var(--text); font-weight: 700; }
.alert-shift-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(135deg, #fff7ec 0%, #ffece0 100%); border: 1.5px solid #ffd2b0; border-radius: 12px; margin-bottom: 6px; text-align: left; }
.alert-shift-card .shift-icon { width: 42px; height: 42px; background: var(--orange); color: #fff; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(255,106,19,.35); }
.alert-shift-card .shift-meta { font-size: 11.5px; color: #9c4f17; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.alert-shift-card .shift-when { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 800; color: #6b2c00; line-height: 1.15; }
.alert-shift-card .shift-when small { display: block; font-size: 12px; font-weight: 600; color: #9c4f17; margin-top: 1px; text-transform: none; letter-spacing: 0; }
.alert-actions { padding: 14px 24px 22px; display: flex; gap: 10px; }
.alert-actions .btn { flex: 1; padding: 13px 14px; }
.alert-actions .btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.alert-actions .btn-secondary:hover { background: var(--border); }
@media (max-width: 480px) { .alert-actions { flex-direction: column-reverse; } .alert-actions .btn { width: 100%; } }

.gas-povo-seal {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  padding: 8px 16px 8px 8px;
  margin-top: 18px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 3px rgba(255, 223, 0, .25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gas-povo-seal:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3), 0 0 0 3px rgba(255,223,0,.45); }
.gas-povo-seal .gp-logo { width: 78px; height: 50px; flex-shrink: 0; display: grid; place-items: center; }
.gas-povo-seal .gp-logo img { width: 100%; height: 100%; object-fit: contain; }
.gas-povo-seal .gp-text { line-height: 1.15; min-width: 0; text-align: left; }
.gas-povo-seal .gp-eyebrow { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #009c3b; margin-bottom: 2px; }
.gas-povo-seal .gp-title { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.gas-povo-seal .gp-arrow { margin-left: 4px; color: var(--blue-500); opacity: .7; }
@media (max-width: 480px) { .gas-povo-seal { padding: 8px 14px 8px 8px; gap: 10px; } .gas-povo-seal .gp-logo { width: 64px; height: 42px; } .gas-povo-seal .gp-title { font-size: 13px; } }

/* INFO MODAL */
.info-modal {
  position: fixed; z-index: 111;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 12px)) scale(.96);
  width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.info-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.info-modal-hero { background: linear-gradient(135deg, #009c3b 0%, #006b22 100%); color: #fff; padding: 26px 24px 22px; text-align: center; position: relative; overflow: hidden; }
.info-modal-hero .info-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,223,0,.18); border: 1px solid rgba(255,223,0,.35); color: #ffdf00; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.info-modal-hero .info-icon { width: 130px; height: 80px; margin: 0 auto 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); display: grid; place-items: center; padding: 8px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.info-modal-hero .info-icon img { width: 100%; height: 100%; object-fit: contain; }
.info-modal-hero h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.info-modal-body { padding: 22px 24px 6px; overflow-y: auto; text-align: left; }
.info-modal-body p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; text-align: left; }
.info-modal-body p strong { color: var(--text); font-weight: 700; }
.info-checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.info-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text); text-align: left; }
.info-checklist li > span { flex: 1; min-width: 0; }
.info-checklist li::before { content: '✓'; background: #009c3b; color: #fff; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; margin-top: 2px; }
.info-modal-actions { padding: 12px 24px 22px; display: flex; gap: 10px; }
.info-modal-actions .btn { flex: 1; padding: 13px 14px; }
.info-modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow-sm); }
.info-modal-close:hover { background: var(--bg); }
@media (max-width: 480px) { .info-modal-actions { flex-direction: column-reverse; } }

/* ============ TRUST + COVERAGE + REORDER ============ */
.trust-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
@media (min-width: 720px) { .trust-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text); }
.trust-item .ti-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { font-weight: 800; display: block; line-height: 1.15; }
.trust-item span { color: var(--muted); font-size: 11.5px; }

.coverage-bar { background: linear-gradient(135deg, #fff7ec 0%, #ffe9d4 100%); border: 1px solid #ffd2b0; border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.coverage-bar .cb-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(255,106,19,.32); }
.coverage-bar .cb-text { flex: 1; min-width: 200px; }
.coverage-bar .cb-text strong { display: block; font-weight: 800; color: #6b2c00; line-height: 1.2; }
.coverage-bar .cb-text span { font-size: 12.5px; color: #9c4f17; }
.coverage-form { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.coverage-form input { flex: 1; border: 1.5px solid #ffd2b0; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.coverage-form input:focus { outline: none; border-color: var(--orange); }
.coverage-form button { background: var(--orange); color: #fff; font-weight: 800; padding: 0 18px; border-radius: 10px; font-size: 13.5px; white-space: nowrap; }
.coverage-form button:hover { background: var(--orange-dark); }
.coverage-result { width: 100%; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px; display: none; }
.coverage-result.show { display: block; }
.coverage-result.ok { background: rgba(28,169,76,.12); color: #0e6b2d; border: 1px solid rgba(28,169,76,.3); }
.coverage-result.no { background: rgba(226,59,59,.1); color: #9b2222; border: 1px solid rgba(226,59,59,.3); }

.reorder-banner { background: linear-gradient(135deg, var(--blue-50) 0%, #e3edf9 100%); border: 1.5px solid var(--blue-100); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reorder-banner .rb-mascote { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-500); overflow: hidden; flex-shrink: 0; }
.reorder-banner .rb-mascote img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.15); }
.reorder-banner .rb-text { flex: 1; min-width: 0; }
.reorder-banner .rb-greet { font-size: 12px; color: var(--muted); font-weight: 600; }
.reorder-banner .rb-name { font-weight: 800; font-size: 14px; color: var(--blue-700); line-height: 1.2; }
.reorder-banner .rb-action { font-size: 12px; font-weight: 700; color: var(--orange); padding: 0; background: none; text-align: left; margin-top: 2px; }
.reorder-banner .rb-action:hover { text-decoration: underline; }
.reorder-banner .rb-dismiss { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.reorder-banner .rb-dismiss:hover { background: #fff; color: var(--text); }

/* ============ TESTIMONIALS + FAQ ============ */
.testimonials { background: var(--surface); padding: 40px 0 8px; margin-top: 16px; }
.testimonials-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }
.testimonial { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.testimonial .stars { color: #f5b400; font-size: 14px; letter-spacing: 1px; }
.testimonial .quote { font-size: 13.5px; line-height: 1.55; color: var(--text); flex: 1; }
.testimonial .author { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.testimonial .avatar {
  /* Reforça circularidade — antes ficava ovalado em containers flex apertados.
     aspect-ratio garante 1:1 mesmo se algo encolher; min-width impede flex-shrink. */
  width: 44px;
  height: 44px;
  min-width: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  flex-shrink: 0;
  flex-grow: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-700);
  font-size: 14px;
  overflow: hidden;
}
.testimonial .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  /* Garante que a imagem nunca escape do container circular */
  aspect-ratio: 1 / 1;
}
.testimonial .author-info { line-height: 1.2; min-width: 0; }
.testimonial .author-name { font-weight: 800; font-size: 13px; }
.testimonial .author-loc { font-size: 11.5px; color: var(--muted); }

.faq { margin-top: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.faq-item.open { background: rgba(255,255,255,.08); }
.faq-q { width: 100%; text-align: left; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.faq-q .chev { flex-shrink: 0; transition: transform .25s ease; opacity: .8; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a > div { padding: 0 16px 14px; }

/* ============ TOAST + NO RESULTS ============ */
.toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-700); color: #fff;
  padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check { width: 20px; height: 20px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }

.no-results { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius-lg); border: 1px dashed var(--border-2); }
.no-results h3 { color: var(--text); margin: 8px 0 6px; font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .header-grid { grid-template-columns: auto auto; grid-template-rows: auto auto; }
  .logo-text .sub { display: none; }
  .search { grid-column: 1 / -1; order: 3; height: 42px; }
  .header-actions { justify-self: end; }
  .status-badge { padding: 6px 10px; font-size: 12px; }
  .status-badge .label-full { display: none; }
  .modal { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .hero-content { padding: 40px 16px 48px; }
  .footer { padding-top: 52px; margin-top: 32px; }
}

/* ============ RELATED PRODUCTS IN MODAL (Costuma vir junto) ============ */
.related-block {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.related-block .label {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.related-block .label svg { color: var(--orange); }
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.related-item:hover { border-color: var(--blue-500); background: var(--blue-50); }
.related-item .ri-img {
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  padding: 4px;
}
.related-item .ri-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.related-item .ri-info { flex: 1; min-width: 0; }
.related-item .ri-name {
  font-weight: 700; font-size: 13px;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item .ri-price { font-size: 12.5px; color: var(--blue-700); font-weight: 800; }
.related-item .ri-add {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .15s;
  border: none;
  cursor: pointer;
}
.related-item .ri-add:hover { transform: scale(1.1); }

/* ============ ENDEREÇO ESTRUTURADO (CHECKOUT) ============ */
.checkout-address-block {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 14px 14px 4px;
  margin-bottom: 14px;
  background: var(--bg-soft, #fafbfc);
}
.checkout-address-block-head {
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 12px;
  color: var(--text, #0e1726);
  letter-spacing: .01em;
}
.checkout-address-block .field { margin-bottom: 12px; }
.checkout-address-block .field:last-child { margin-bottom: 8px; }

.cep-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cep-row input {
  flex: 1;
  max-width: 180px;
}
.cep-help {
  font-size: 11.5px;
  color: var(--blue-700, #0a4ea3);
  text-decoration: underline;
  white-space: nowrap;
}
.cep-help:hover { color: var(--orange, #e55b13); }

.address-row {
  display: flex;
  gap: 10px;
}
.address-row .field {
  flex: 1;
  min-width: 0;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted, #5a6478);
  margin-top: 2px;
  transition: color .2s;
}

@media (max-width: 480px) {
  .cep-row { flex-direction: column; align-items: stretch; }
  .cep-row input { max-width: 100%; }
  .cep-help { text-align: right; }
}

/* ============ COVERAGE ALERT (CEP fora da área de atendimento) ============ */
.coverage-alert-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8, 18, 38, .6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: covAlertFadeIn .18s ease-out;
}
@keyframes covAlertFadeIn { from { opacity: 0; } to { opacity: 1; } }

.coverage-alert-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 440px; width: 100%;
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: covAlertSlideUp .22s ease-out;
}
@keyframes covAlertSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.coverage-alert-icon {
  font-size: 38px;
  margin-bottom: 6px;
  line-height: 1;
}
.coverage-alert-box h3 {
  margin: 0 0 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blue-700);
}
.coverage-alert-box p {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.coverage-alert-box p strong { font-weight: 700; }

.coverage-alert-areas {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--blue-50);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}
.coverage-alert-areas strong {
  color: var(--blue-700);
  display: block;
  margin-bottom: 2px;
}

.coverage-alert-help {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.coverage-alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.coverage-alert-actions .btn {
  flex: 1;
  min-width: 130px;
}

@media (max-width: 480px) {
  .coverage-alert-actions { flex-direction: column-reverse; }
  .coverage-alert-actions .btn { width: 100%; }
}

/* ============ FOOTER SEALS (selos de credibilidade + bandeiras) ============ */
#footerSealsBlock {
  margin-top: 18px;
}
.footer-seals-section {
  margin-bottom: 14px;
}
.footer-seals-section:last-child {
  margin-bottom: 0;
}
.footer-seals-section h5 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}

/* Selos de credibilidade — imagens clicáveis */
.credibility-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.credibility-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  padding: 6px 10px;
  height: 44px;
  min-width: 70px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
a.credibility-seal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.credibility-seal img {
  max-height: 32px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Bandeiras de cartão — SVGs monocromáticos */
.card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: rgba(255,255,255,.85);
}
.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  padding: 2px;
  transition: background .15s ease, border-color .15s ease;
}
.card-brand:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
}
.card-brand svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 480px) {
  .credibility-seal { height: 38px; min-width: 60px; }
  .credibility-seal img { max-height: 26px; }
  .card-brand { width: 38px; height: 26px; }
}

/* =============================================================
   AUTH (login / cadastro / reset de senha)
   =============================================================
   Componentes da Leva 2:
   - Botão "Entrar" no header (estilo Amazon)
   - Dropdown de conta logada
   - Modal de auth com 5 telas internas (login, register, reset-req,
     reset-done, reset-pwd)
   ============================================================= */

/* ---------- Botão "Entrar" / "Olá, [Nome] ▾" no header ---------- */
.header-auth { display: inline-flex; align-items: stretch; }

.header-auth-wrap { position: relative; }

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
  text-align: left;
  min-height: 44px;
}
.header-auth-btn:hover {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.32);
}
.header-auth-btn:active { transform: scale(.98); }

.header-auth-btn .ha-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  flex-shrink: 0;
  color: #fff;
}

.header-auth-btn .ha-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 11px;
  min-width: 0;
}
.header-auth-btn .ha-greet {
  font-size: 11px;
  font-weight: 500;
  opacity: .85;
  letter-spacing: .01em;
}
.header-auth-btn .ha-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.header-auth-btn .ha-chev {
  font-size: 10px;
  opacity: .8;
  font-weight: 600;
}

/* Estado logado: chip ligeiramente diferente */
.header-auth-btn-logged {
  background: rgba(255,255,255,.14);
}
.header-auth-btn-logged .ha-icon {
  background: var(--orange);
  color: #fff;
}

/* ---------- Dropdown menu (conta logada) ---------- */
.header-auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 6px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.header-auth-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.header-auth-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px; height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.ha-menu-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 8px 8px 0 0;
}
.ha-menu-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.ha-menu-email {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.3;
}

.ha-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease, color .12s ease;
}
.ha-menu-item:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.ha-menu-item svg {
  flex-shrink: 0;
  color: var(--blue-500);
  opacity: .85;
}
.ha-menu-item:hover svg { opacity: 1; }

.ha-menu-item-danger { color: var(--red); }
.ha-menu-item-danger svg { color: var(--red); }
.ha-menu-item-danger:hover {
  background: rgba(226,59,59,.08);
  color: var(--red);
}
.ha-menu-item-danger:hover svg { color: var(--red); }

.ha-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* ---------- Mobile: botão "Entrar" mais compacto ---------- */
@media (max-width: 640px) {
  .header-auth-btn { padding: 5px 8px; gap: 6px; min-height: 38px; }
  .header-auth-btn .ha-icon { width: 22px; height: 22px; }
  .header-auth-btn .ha-icon svg { width: 14px; height: 14px; }
  .header-auth-btn .ha-greet { display: none; }
  .header-auth-btn .ha-name { font-size: 12px; max-width: 80px; }
  .header-auth-menu { right: -4px; min-width: 220px; }
}
@media (max-width: 380px) {
  /* Em telas muito pequenas, mostra só o ícone */
  .header-auth-btn .ha-text { display: none; }
  .header-auth-btn { padding: 6px; }
}

/* =============================================================
   AUTH MODAL
   ============================================================= */

.auth-modal {
  position: fixed;
  z-index: 92;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 12px)) scale(.96);
  width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}
.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 3;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
  cursor: pointer;
}
.auth-modal-close:hover { background: var(--bg); }

/* ---------- Telas internas (login / register / reset / etc) ---------- */
.auth-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  animation: authScreenFadeIn .25s ease-out;
}
.auth-screen.show { display: flex; }
@keyframes authScreenFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero (cabeçalho com gradiente azul) ---------- */
.auth-hero {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-hero .auth-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #ffd180;
}
.auth-hero h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}
.auth-hero p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 320px;
  margin: 0 auto;
}

/* Ícone de sucesso (tela reset-done) */
.auth-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(43,216,108,.18);
  border: 1.5px solid rgba(43,216,108,.5);
  color: #2bd86c;
  display: grid;
  place-items: center;
}

/* ---------- Body (formulário) ---------- */
.auth-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-body form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-body .field { gap: 6px; }
.auth-body .field label { font-size: 11.5px; }
.auth-body .field input {
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-body .field input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(10,78,163,.12);
}

.auth-body .btn-primary { padding: 13px 18px; font-size: 14.5px; }
.auth-body .btn-primary:disabled { opacity: .7; cursor: wait; }

/* Mensagem de erro geral (não vinculada a campo) */
.auth-error {
  background: rgba(226,59,59,.08);
  color: var(--red);
  border: 1px solid rgba(226,59,59,.22);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: none;
}
.auth-error:not(:empty) { display: block; }

/* ---------- Linha de links abaixo do botão (ex: "Esqueci senha") ---------- */
.auth-link-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.auth-link {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.auth-link:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  text-decoration: underline;
}
.auth-link-strong {
  color: var(--orange);
}
.auth-link-strong:hover {
  color: var(--orange-dark);
  background: rgba(255,106,19,.08);
}

/* ---------- Foot (rodapé do modal — link pra outra tela) ---------- */
.auth-foot {
  padding: 14px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Mobile: modal vira fullscreen ---------- */
@media (max-width: 480px) {
  .auth-modal {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0);
  }
  .auth-modal.open {
    transform: translate(0, 0) scale(1);
  }
  .auth-hero { padding: 32px 20px 22px; }
  .auth-hero h3 { font-size: 20px; }
  .auth-body { padding: 22px 20px; }
  .auth-foot { padding: 14px 20px 22px; }
}

/* =============================================================
   PÁGINA /CONTA — área logada do cliente (Leva 3)
   =============================================================
   Estrutura:
   - .account-page     → body
   - .account-header   → header simplificado (logo + back + auth)
   - .account-gate     → tela "faça login" (não autenticado)
   - .account-main     → área logada
   - .account-layout   → grid sidebar + content
   - .account-sidebar  → nav lateral (vira tabs no mobile)
   - .account-content  → conteúdo da sub-página ativa
   ============================================================= */

.account-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER da /conta (versão simplificada) ---------- */
.account-header {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  padding: 12px 0;
  /* Safe area iOS: quando instalado como PWA, status bar do iPhone ocupa
     o topo. env(safe-area-inset-top) é 0 em devices sem notch.
     !important garante que não seja sobrescrito por nenhuma outra regra. */
  padding-top: max(12px, env(safe-area-inset-top)) !important;
  /* iOS Safari: força o respeito ao notch */
  -webkit-padding-top: max(12px, env(safe-area-inset-top));
}
.account-header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.account-header .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.account-header .logo-mark {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transform: translateY(-6px);
}
.account-header .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.account-header .logo-text { line-height: 1.05; }
.account-header .logo-text .brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  display: block;
}
.account-header .logo-text .sub {
  font-size: 11px; opacity: .85; font-weight: 500; letter-spacing: .02em;
}

.account-header-actions {
  display: flex; align-items: center; gap: 10px;
  justify-self: end;
}

.account-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
  transition: background .15s ease;
  white-space: nowrap;
}
.account-back-link:hover {
  background: rgba(255,255,255,.20);
}

@media (max-width: 640px) {
  .account-back-link span { display: none; }
  .account-back-link { padding: 8px 10px; }
  .account-header .logo-text .sub { display: none; }
}

/* ---------- GATE (não logado) ---------- */

/* Garante que o atributo HTML [hidden] tem prioridade sobre display:flex
   nas seções principais. Sem isso, .account-gate { display: flex } fica
   visível mesmo com hidden=true (regra de classe vence regra do user agent).
   Bug descoberto na primeira rodada de testes da Leva 3. */
.account-gate[hidden],
.account-main[hidden] {
  display: none !important;
}

.account-gate {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 16px;
}
.account-gate-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 32px 32px;
  max-width: 440px; width: 100%;
  text-align: center;
}
.account-gate-icon {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  color: var(--blue-500);
  display: grid; place-items: center;
}
.account-gate-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.account-gate-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.account-gate-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.account-gate-back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  margin-top: 4px;
}
.account-gate-back:hover { color: var(--blue-500); text-decoration: underline; }

@media (max-width: 480px) {
  .account-gate-card { padding: 32px 22px 24px; }
  .account-gate-card h1 { font-size: 19px; }
  .account-gate-icon { width: 64px; height: 64px; }
}

/* ---------- LAYOUT PRINCIPAL (sidebar + content) ---------- */
.account-main {
  flex: 1;
  padding: 24px 0 60px;
}
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- SIDEBAR ---------- */
.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
@media (max-width: 880px) {
  .account-sidebar {
    position: static;
    padding: 14px;
  }
}

.account-greet {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.account-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255,106,19,.32);
}
.account-greet-text { line-height: 1.2; min-width: 0; flex: 1; }
.account-greet-hello {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.account-greet-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 880px) {
  /* No mobile, escondemos a sidebar inteira — a bottom nav assume o controle */
  .account-sidebar { display: none; }
}

.account-nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease, color .12s ease;
  font-family: inherit;
}
.account-nav-item:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.account-nav-item.active {
  background: var(--blue-50);
  color: var(--blue-700);
}
.account-nav-item.active .acc-nav-ico { color: var(--blue-500); }
.account-nav-item.active .acc-nav-chev {
  color: var(--orange);
  transform: rotate(90deg);
}
.acc-nav-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: color .12s;
}
.account-nav-item:hover .acc-nav-ico { color: var(--blue-500); }
.acc-nav-label { flex: 1; }
.acc-nav-chev {
  font-size: 18px;
  color: var(--muted-2);
  font-weight: 800;
  line-height: 1;
  transition: transform .15s, color .15s;
}

@media (max-width: 880px) {
  /* Sidebar escondida no mobile — bottom nav assume.
     Não precisamos mais transformar nav-item em pílulas. */
}

/* ---------- CONTENT ---------- */
.account-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}
@media (max-width: 640px) {
  .account-content { padding: 22px 18px; }
}

/* Esconde todas, mostra a com .show */
.account-section { display: none; }
.account-section.show {
  display: block;
  animation: accountSectionFadeIn .25s ease-out;
}
@keyframes accountSectionFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.account-section-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.account-section-head p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .account-section-head { flex-direction: column; align-items: stretch; }
  .account-section-head h2 { font-size: 19px; }
}

/* ---------- FORMS na /conta ---------- */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.account-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-form .field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.account-form .field label .req { color: var(--orange); }
.account-form .field input,
.account-form .field textarea,
.account-form .field select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.account-form .field input:focus,
.account-form .field textarea:focus,
.account-form .field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(10,78,163,.12);
}
.account-form .field-hint {
  font-size: 11.5px;
  color: var(--muted);
}
.account-form .field-error {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 600;
  min-height: 14px;
}

.account-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.account-form-actions .btn { padding: 13px 22px; }

/* Card informativo (ex: "esqueceu a senha?" na aba senha) */
.account-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fff7ec 0%, #ffe9d4 100%);
  border: 1px solid #ffd2b0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 24px;
  max-width: 520px;
}
.info-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.info-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: #6b2c00;
}
.info-card-text strong {
  display: block;
  color: #c64200;
  font-weight: 800;
  margin-bottom: 2px;
}

/* ---------- LOADERS & EMPTY STATES ---------- */
.account-loader {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.account-loader::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: accountLoaderSpin .9s linear infinite;
}
@keyframes accountLoaderSpin {
  to { transform: rotate(360deg); }
}

.account-empty {
  text-align: center;
  padding: 50px 24px;
  background: var(--bg);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
}
.account-empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1;
}
.account-empty h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.account-empty p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.account-empty .btn {
  padding: 11px 20px;
  font-size: 13.5px;
}

/* =============================================================
   ENDEREÇOS — lista de cards + modal
   ============================================================= */

.address-list {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .address-list { grid-template-columns: repeat(2, 1fr); }
}

.address-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.address-card:hover {
  border-color: var(--blue-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.address-card.is-default {
  border-color: var(--orange);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 60%);
}

.addr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.addr-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--blue-700);
  flex-wrap: wrap;
}
.addr-card-label svg { color: var(--blue-500); flex-shrink: 0; }
.addr-card-label strong {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.addr-default-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255,106,19,.32);
}

.addr-card-body {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.addr-card-body .addr-cep {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.addr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.addr-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
  font-family: inherit;
}
.addr-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
}
.addr-btn-danger {
  color: var(--red);
}
.addr-btn-danger:hover {
  background: rgba(226,59,59,.08);
  border-color: var(--red);
}

/* ---------- Modal de endereço ---------- */
.address-modal {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
}
.address-modal-head {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: 22px 24px 18px;
}
.address-modal-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.address-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  max-width: none;
}
.address-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  flex-wrap: wrap;
}
.address-modal-actions .btn {
  flex: 1;
  min-width: 130px;
  padding: 12px 18px;
}

.addr-default-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.addr-default-toggle input {
  width: 18px; height: 18px;
  accent-color: var(--blue-500);
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}
.addr-default-toggle .ct-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.3;
}
.addr-default-toggle .ct-text small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 480px) {
  .address-modal {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .address-modal-actions { flex-direction: column-reverse; }
  .address-modal-actions .btn { width: 100%; }
}

/* =============================================================
   PEDIDOS — lista de cards
   ============================================================= */

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.order-card:hover {
  box-shadow: var(--shadow);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.order-num {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.order-num-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.order-num strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.005em;
}

/* Status badges */
.order-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-recebido {
  background: #e3f0fc;
  color: #084386;
  border: 1px solid #b8d6f0;
}
.status-em-rota {
  background: #fff4e0;
  color: #c64200;
  border: 1px solid #ffd2a0;
}
.status-entregue {
  background: #e2f4e9;
  color: #0e6b2d;
  border: 1px solid #a0d8b3;
}
.status-cancelado {
  background: #fbe5e5;
  color: #8c1c1c;
  border: 1px solid #f0b8b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.status-default {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.order-card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.order-date {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.order-total {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.015em;
}

.order-items {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.order-item-line {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}
.order-item-more {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.order-address,
.order-payment,
.order-coupon {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
}
.order-coupon strong {
  color: var(--orange);
  font-weight: 800;
}

.order-card-foot {
  padding: 0 18px 14px;
}
.order-repeat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--orange);
  border: 1.5px solid #ffd2a0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
.order-repeat-btn:hover {
  background: #fff7ec;
  border-color: var(--orange);
  color: var(--orange-dark);
}

@media (max-width: 480px) {
  .order-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =============================================================
   MODAL DE CONFIRMAÇÃO (genérico — usado pra deletar etc)
   ============================================================= */

.confirm-modal {
  width: min(420px, calc(100% - 24px));
}

/* Backdrop específico (já reaproveita .alert-backdrop, então só
   garantimos z-index correto sobre outros modais) */
.confirm-modal,
#confirmAlertBackdrop {
  z-index: 130;
}

/* =============================================================
   TOAST — variante de erro (vermelho)
   ============================================================= */

.toast.toast-error {
  background: var(--red);
}
.toast.toast-error .check {
  background: rgba(255,255,255,.25);
}

/* =============================================================
   AJUSTES MOBILE EXTRAS — /conta
   ============================================================= */

@media (max-width: 640px) {
  .account-main { padding: 16px 0 40px; }
  .account-content { padding: 18px 16px; }
  .account-section-head { margin-bottom: 16px; padding-bottom: 14px; }
}

/* =============================================================
   BOTTOM NAVIGATION (mobile only) — Leva 3 fix
   =============================================================
   Visível só em viewport <= 880px. Substitui a sidebar do desktop.
   Estilo "app nativo": fixa embaixo, ícones + label, item ativo
   destacado com ponto colorido em cima.
   ============================================================= */

.account-bottom-nav { display: none; }

@media (max-width: 880px) {
  .account-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 70;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(14,23,38,.08);
    /* iOS safe-area inset (notch / home indicator) */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .account-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px 8px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .account-bottom-item .abn-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: color .15s ease, transform .15s ease;
  }
  .account-bottom-item .abn-label {
    line-height: 1.1;
    font-size: 11px;
    letter-spacing: -.005em;
  }

  .account-bottom-item:active .abn-ico {
    transform: scale(.92);
  }

  .account-bottom-item.active {
    color: var(--blue-700);
  }
  .account-bottom-item.active .abn-ico {
    color: var(--blue-500);
  }
  /* Bolinha laranja em cima do item ativo (estilo app) */
  .account-bottom-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--orange);
  }

  /* Empurra o conteúdo pra cima da bottom nav (60px de altura + safe area) */
  .account-main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  }

  /* Layout vira 1 coluna pura */
  .account-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =============================================================
   AJUSTES MOBILE FINOS (Leva 3 — fix de margens extrapolando)
   ============================================================= */

@media (max-width: 640px) {
  /* Container mais apertado */
  .account-page .container {
    padding: 0 14px;
  }
  .account-main {
    padding-top: 14px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  }

  /* Card de conteúdo: padding menor pra economizar espaço */
  .account-content {
    padding: 18px 14px;
    border-radius: 12px;
  }

  /* Section head: título e subtitle empilhados, sem gap exagerado */
  .account-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .account-section-head h2 {
    font-size: 19px;
  }
  .account-section-head p {
    font-size: 13px;
  }
  /* Botão "Novo endereço" embaixo do head no mobile (em vez de à direita) */
  .account-section-head .btn {
    width: 100%;
  }

  /* Form de perfil: campos full width sem max-width estourado */
  .account-form {
    max-width: 100%;
  }
  .account-form-actions {
    flex-direction: column;
  }
  .account-form-actions .btn {
    width: 100%;
  }

  /* Lista de endereços: 1 coluna, gap menor */
  .address-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .address-card {
    padding: 14px 14px;
    border-radius: 12px;
  }
  .addr-card-actions {
    gap: 6px;
  }
  .addr-btn {
    padding: 7px 11px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }

  /* Pedidos: padding menor */
  .order-card-head {
    padding: 10px 14px;
  }
  .order-card-body {
    padding: 12px 14px;
  }
  .order-card-foot {
    padding: 0 14px 12px;
  }
  .order-num strong {
    font-size: 14px;
  }
  .order-total {
    font-size: 16px;
  }

  /* Card informativo (aba senha) */
  .account-info-card {
    max-width: 100%;
    padding: 12px 14px;
  }

  /* Empty states */
  .account-empty {
    padding: 40px 16px;
  }
  .account-empty-icon { font-size: 36px; }
  .account-empty h3 { font-size: 17px; }

  /* Header: logo um pouco menor pra não brigar com header-actions.
     IMPORTANTE: padding-top preserva safe-area do iPhone PWA (notch).
     Antes era `padding: 8px 0` (shorthand) que zerava o top no mobile. */
  .account-header {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .account-header .logo-mark { width: 48px; height: 48px; transform: translateY(-2px); }
  .account-header .logo-text .brand { font-size: 18px; }
}

/* =============================================================
   LEVA 4 — INTEGRAÇÃO CHECKOUT × ÁREA LOGADA
   =============================================================
   Componentes:
   - .address-picker      → seletor de endereços salvos no checkout
   - .addr-picker-chip    → chip "Editando: [Casa] (trocar)" quando 1 endereço
   - .save-addr-summary   → resumo do endereço no modal "Salvar?"
   - .profile-diffs       → diferenças mostradas no modal "Atualizar?"
   ============================================================= */

/* ---------- Slot do picker (renderizado dentro do drawer de checkout) ---------- */
.address-picker-slot {
  /* Vazio por padrão. Cresce só quando tem conteúdo. */
}
.address-picker-slot:empty { display: none; }

/* ---------- Chip "Editando: [Casa] (trocar)" — quando tem 1 endereço só ---------- */
.addr-picker-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff7ec 0%, #ffe9d4 100%);
  border: 1px solid #ffd2b0;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.addr-picker-chip .apc-label {
  color: #6b2c00;
  font-weight: 600;
}
.addr-picker-chip .apc-name {
  color: #c64200;
  font-weight: 800;
}
.addr-picker-chip.apc-new {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.addr-picker-chip.apc-new .apc-label {
  color: var(--blue-700);
}
.apc-clear {
  margin-left: auto;
  background: rgba(255,255,255,.6);
  color: #c64200;
  border: 1px solid #ffd2b0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.apc-clear:hover {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange-dark);
}
.addr-picker-chip.apc-new .apc-clear {
  color: var(--blue-700);
  border-color: var(--blue-100);
}

/* ---------- Picker com radios (2+ endereços) ---------- */
.address-picker {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.addr-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.apr-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.addr-picker-new-link {
  background: none;
  border: none;
  color: var(--orange);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s;
}
.addr-picker-new-link:hover {
  background: rgba(255,106,19,.1);
  color: var(--orange-dark);
}

.addr-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.addr-picker-radio {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.addr-picker-radio:hover {
  border-color: var(--blue-500);
}
.addr-picker-radio.selected {
  border-color: var(--blue-500);
  background: linear-gradient(135deg, #fff 0%, #f0f6fd 100%);
  box-shadow: 0 0 0 3px rgba(10,78,163,.1);
}
.addr-picker-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue-500);
  cursor: pointer;
}
.apr-info {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.apr-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.apr-default {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
}
.apr-summary {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Modal "Salvar endereço?" — resumo do endereço ---------- */
.save-addr-summary {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.4;
}

/* Foca o input do apelido no modal salvar */
#saveAddrLabel {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  width: 100%;
  font-weight: 600;
}
#saveAddrLabel:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(10,78,163,.12);
}

/* ---------- Modal "Atualizar perfil?" — lista de diffs ---------- */
.profile-diffs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  background: rgba(255,106,19,.06);
  border: 1px dashed #ffd2b0;
  border-radius: 8px;
  padding: 10px 12px;
}
.profile-diff-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  text-align: left;
}
.pdr-label {
  font-weight: 800;
  color: #c64200;
  min-width: 64px;
}
.pdr-value {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

/* ---------- Mobile fino ---------- */
@media (max-width: 480px) {
  .addr-picker-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .addr-picker-new-link {
    align-self: flex-end;
  }
  .addr-picker-radio {
    padding: 9px 10px;
  }
  .apr-summary {
    font-size: 11px;
  }
  .addr-picker-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .apc-clear {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* =============================================================
   LEVA 4 — FIX MOBILE: garantir que alert-modal não estoure tela
   em devices pequenos (modais "Salvar endereço?" e "Atualizar
   perfil?" podem ter conteúdo extenso).
   ============================================================= */
.alert-modal {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}
.alert-modal .alert-body {
  overflow-y: auto;
  flex: 1;
}
.alert-modal .alert-hero,
.alert-modal .alert-actions {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .alert-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }
  /* Hero mais compacto no mobile pequeno pra não dominar a tela */
  .alert-modal .alert-hero {
    padding: 20px 18px 16px;
  }
  .alert-modal .alert-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }
  .alert-modal .alert-icon svg {
    width: 24px;
    height: 24px;
  }
  .alert-modal .alert-title {
    font-size: 18px;
  }
  .alert-modal .alert-body {
    padding: 16px 18px 6px;
  }
  .alert-modal .alert-actions {
    padding: 12px 18px 18px;
  }
}

/* =============================================================
   LEVA 5A — UX / MICROINTERAÇÕES (visual mais profissional)
   =============================================================
   1. Skeleton loaders (em vez de "Carregando..." textual)
   2. Animação de sucesso (checkmark pulsante)
   3. Estados hover/focus/active mais vivos
   4. Senha strength meter
   5. Spinner inline em botões loading
   6. Focus visible (acessibilidade keyboard)
   ============================================================= */

/* ---------- Skeleton Loaders ---------- */
@keyframes skeletonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 0%,
    var(--bg) 50%,
    var(--border) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
  display: block;
}
/* Variantes de tamanho */
.skel-line     { height: 14px; margin-bottom: 8px; }
.skel-line-sm  { height: 10px; margin-bottom: 6px; width: 60%; }
.skel-line-lg  { height: 18px; margin-bottom: 10px; }
.skel-block    { height: 64px; margin-bottom: 12px; border-radius: 12px; }

/* Skeleton de card de endereço/pedido */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.skeleton-card .skeleton {
  border-radius: 6px;
}

/* ---------- Animação de sucesso (checkmark pulsante) ---------- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(14,23,38,.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.success-checkmark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(28,169,76,.4);
  animation: successPop .5s cubic-bezier(.34, 1.56, .64, 1);
}
.success-checkmark svg {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw .35s .25s ease-out forwards;
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Spinner inline (em botões) ---------- */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
.btn-ghost .btn-spinner,
.btn-secondary .btn-spinner {
  border-color: rgba(10,78,163,.25);
  border-top-color: var(--blue-500);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Estados de botão mais vivos ---------- */
.btn-primary {
  /* Sombra colorida quando hover */
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,106,19,.4);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255,106,19,.3);
}
.btn-whats:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.btn-ghost:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,78,163,.18);
}

/* ---------- Focus visible (acessibilidade keyboard) ---------- */
/* :focus-visible aparece SÓ quando navega por Tab — não atrapalha usuários de mouse */
.btn:focus-visible,
button:focus-visible,
.card-add-btn:focus-visible,
.tab:focus-visible,
.account-nav-item:focus-visible,
.account-bottom-item:focus-visible,
.addr-btn:focus-visible {
  outline: 3px solid rgba(255,106,19,.4);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  /* Já têm box-shadow ao focus, esse é só backup acessível */
  outline-offset: 1px;
}

/* ---------- Validação inline (campos com erro) ---------- */
.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,59,59,.12);
}
.field input.field-valid {
  border-color: var(--green);
}

/* Ícone de validação inline (✓ ou ✗) no canto direito do input */
.field-with-icon {
  position: relative;
}
.field-with-icon .field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.field-with-icon .field-icon.show {
  opacity: 1;
}
.field-with-icon .field-icon.icon-valid {
  color: var(--green);
}
.field-with-icon .field-icon.icon-invalid {
  color: var(--red);
}
.field-with-icon input {
  padding-right: 42px;
}

/* ---------- Senha strength meter ---------- */
.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  min-height: 14px;
}
.password-strength-bars {
  display: inline-flex;
  gap: 3px;
  flex: 1;
}
.password-strength-bar {
  height: 4px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: background .2s ease;
}
.password-strength.strength-weak .password-strength-bar:nth-child(1) {
  background: var(--red);
}
.password-strength.strength-medium .password-strength-bar:nth-child(-n+2) {
  background: #f5b400;
}
.password-strength.strength-strong .password-strength-bar {
  background: var(--green);
}
.password-strength-label {
  min-width: 50px;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}
.password-strength.strength-weak   .password-strength-label { color: var(--red); }
.password-strength.strength-medium .password-strength-label { color: #c8870c; }
.password-strength.strength-strong .password-strength-label { color: var(--green); }

/* ---------- Transições suaves entre abas (account-section) ---------- */
.account-section.show {
  animation: accountSectionFadeIn .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Cards de produto com efeito mais profissional ---------- */
.card {
  /* Já tem hover com translateY/sombra. Adiciona transição mais suave */
  transition: transform .25s cubic-bezier(.4, 0, .2, 1),
              box-shadow .25s cubic-bezier(.4, 0, .2, 1),
              border-color .15s ease;
}
.card:active {
  transform: translateY(-1px);
}

/* =============================================================
   LEVA 5B — ROBUSTEZ (offline banner + esqueci senha)
   ============================================================= */

/* ---------- Offline banner (fixo no topo, discreto) ---------- */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #c64200 0%, #9b2222 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.offline-banner.show {
  transform: translateY(0);
}
.offline-banner svg {
  flex-shrink: 0;
  opacity: .9;
}

/* Empurra o body um pouco quando o banner aparece (não some atrás do header) */
body:has(.offline-banner.show) {
  /* Usa CSS nesting/has — fallback gracioso pra browsers antigos */
  scroll-padding-top: 36px;
}

@media (max-width: 480px) {
  .offline-banner {
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .offline-banner svg { width: 14px; height: 14px; }
}

/* ---------- Link "Esqueci minha senha" no card info ---------- */
.account-info-card {
  /* Já existe — só adiciono flex-direction pra empilhar o link */
  flex-direction: row;
}
.account-info-card .info-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-info-link {
  background: none;
  border: none;
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0 0;
  text-align: left;
  align-self: flex-start;
  text-decoration: none;
  font-family: inherit;
  transition: color .15s ease;
}
.account-info-link:hover:not(:disabled) {
  color: var(--orange-dark);
  text-decoration: underline;
}
.account-info-link:disabled {
  opacity: .65;
  cursor: default;
}
.account-info-link .btn-spinner {
  border-color: rgba(255,106,19,.3);
  border-top-color: var(--orange);
}

/* =============================================================
   TOPBAR DE MENSAGENS ROTATIVAS (Leva pós-5)
   =============================================================
   Topbar e header empilhados juntos no wrapper #site-header-stack.
   O wrapper é position:sticky top:0 → ambos rolam juntos como um bloco.
   Isso evita o gap branco que aparecia quando topbar (fixed) e
   header (sticky) eram posicionados separadamente.

   Z-index do wrapper 80 (mesmo do header original).
   Drawer (91) e modais (90/110) continuam por cima quando ativos.
   ============================================================= */

/* Stack que segura topbar + header juntos */
.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 80;
  /* Garante que rola junto e nada vaza */
  isolation: isolate;
  /* Safe area iPhone PWA: caso a .topbar esteja oculta (hidden), o .header
     fica encostado no topo do viewport e precisa respeitar o notch. Como o
     padding aqui vai pra cima de TODO o stack, e a .topbar tem fundo azul
     que cobre essa área quando visível, isso só "aparece" quando topbar
     está oculta. */
  background: var(--blue-500);
}
.site-header-stack:has(.topbar[hidden]) {
  padding-top: env(safe-area-inset-top);
}

/* Topbar agora é position: static dentro do stack — flui naturalmente */
.topbar {
  position: relative;
  background: linear-gradient(135deg, #0a4ea3 0%, #062f64 100%);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  box-sizing: border-box;
  /* Safe area iPhone com PWA: quando o site está instalado na home screen,
     o status bar do iOS (relógio/bateria) fica em cima do conteúdo. Esse
     padding-top adiciona espaço extra correspondente ao notch/dynamic island.
     IMPORTANTE: aplicado aqui na .topbar (que tem o gradient azul) pra que
     o azul cubra a área toda — se aplicasse só no .topbar-track interno,
     ficaria um gap branco entre o status bar e o conteúdo. */
  padding-top: env(safe-area-inset-top);
}

.topbar[hidden] { display: none !important; }

/* Header dentro do stack — não precisa mais ser sticky individualmente
   (o wrapper já faz isso). Mantemos a aparência visual. */
.site-header-stack .header {
  position: relative;
  top: auto;
  z-index: auto;
}

.topbar-track {
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: 100%;
  box-sizing: border-box;
}
.topbar-track.topbar-fade-out {
  opacity: 0;
  transform: translateY(-4px);
}
.topbar-track.topbar-fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: topbarSlideIn 350ms cubic-bezier(.4, 0, .2, 1);
}
@keyframes topbarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar-emoji {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.topbar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

/* Mobile: padding lateral menor + permite quebra do texto */
@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .topbar-track {
    padding: 7px 12px;
    gap: 6px;
  }
  .topbar-emoji { font-size: 14px; }
  .topbar-text {
    white-space: normal;
    line-height: 1.3;
  }
}

/* Mobile pequeno (iPhone SE etc): ainda mais compacto */
@media (max-width: 380px) {
  .topbar { font-size: 11.5px; }
  .topbar-track {
    padding: 6px 10px;
  }
}

/* =============================================================
   AJUSTES FINOS DE MOBILE (margens consistentes)
   =============================================================
   Foco em devices com viewport <= 400px (iPhone SE, iPhone 13 mini etc).
   Em alguns aparelhos, especialmente quando juntam topbar + header + cards,
   as margens laterais "comem" o conteúdo. Ajustes pra estabilizar.
   ============================================================= */

/* No mobile pequeno (<= 480px) o container ganha padding lateral
   um pouco menor pra dar respiro maior pro conteúdo interno */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Hero: padding lateral consistente com container */
  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Botões do CTA do hero: em viewport apertado, empilham 100% width */
  .hero-cta {
    width: 100%;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: center;
  }

  /* Header: logo e ações cabem melhor no mobile pequeno */
  .header .logo-mark {
    width: 50px;
    height: 50px;
  }
  .header .logo-text .brand {
    font-size: 17px;
  }
  /* Botão "Faça login" e "Fechada/Aberta" no header com padding menor */
  .header-actions .auth-btn,
  .header-actions .status-badge {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  /* Card "Pagamento aceito aqui" (Gás do Povo) com padding lateral menor */
  .gas-do-povo-card,
  .hero-perks {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile muito pequeno (iPhone SE 1ª geração, <= 360px):
   Ainda mais compacto, especialmente no header */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header .logo-mark {
    width: 44px;
    height: 44px;
  }
  .header .logo-text .brand {
    font-size: 16px;
  }
  /* Esconde o "Olá," no botão de auth pra economizar espaço */
  .auth-btn .auth-greeting {
    display: none;
  }
}

/* =============================================================
   PWA — BANNERS (Instalação + Atualização)
   =============================================================
   Banners discretos que aparecem em momentos estratégicos.
   ============================================================= */

/* ----- Banner de atualização (no topo) ----- */
.pwa-update-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 200;
  max-width: 92%;
  width: 480px;
  margin-top: 12px;
  background: linear-gradient(135deg, #066e2c 0%, #044a1d 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.pwa-update-banner.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  font-size: 14px;
  font-weight: 700;
}
.pwa-update-content > span {
  flex: 1;
}
.pwa-update-content button:not(.pwa-update-dismiss) {
  background: #fff;
  color: #066e2c;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s;
}
.pwa-update-content button:not(.pwa-update-dismiss):hover {
  transform: translateY(-1px);
}
.pwa-update-dismiss {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.pwa-update-dismiss:hover {
  background: rgba(255,255,255,.25);
}

/* ----- Banner de instalação (embaixo) ----- */
.pwa-install-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 200;
  max-width: 92%;
  width: 380px;
  background: var(--surface, #fff);
  color: var(--text, #0e1726);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(14,23,38,.18);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.pwa-install-banner.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.pwa-install-content {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 14px;
}
.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-50, #e8f1ff) 0%, var(--blue-100, #cfe1ff) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pwa-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pwa-install-text {
  min-width: 0;
  line-height: 1.3;
}
.pwa-install-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blue-700, #062f64);
}
.pwa-install-text span {
  display: block;
  font-size: 11.5px;
  color: var(--muted, #5a6478);
  margin-top: 2px;
}
.pwa-install-btn {
  background: var(--orange, #ff6a13);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(255,106,19,.32);
  transition: transform .15s, box-shadow .15s;
}
.pwa-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,106,19,.42);
}
.pwa-install-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,.06);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted, #5a6478);
  cursor: pointer;
  font-family: inherit;
}
.pwa-install-dismiss:hover {
  background: rgba(0,0,0,.12);
}

/* Mobile: banners ocupam quase a largura toda */
@media (max-width: 480px) {
  .pwa-install-banner {
    width: calc(100% - 24px);
    bottom: 12px;
  }
  .pwa-update-banner {
    width: calc(100% - 24px);
  }
  .pwa-install-content {
    grid-template-columns: 42px 1fr auto;
    padding: 12px;
    gap: 10px;
  }
  .pwa-install-icon {
    width: 42px;
    height: 42px;
  }
  .pwa-install-text strong { font-size: 13.5px; }
  .pwa-install-text span { font-size: 11px; }
}

/* Quando PWA está instalado, não mostra prompt customizado em /conta */
.pwa-mode-standalone .pwa-install-banner {
  display: none !important;
}

/* =============================================================
   PUSH NOTIFICATIONS — Modal opt-in + Toggle perfil
   ============================================================= */

/* Modal de opt-in (aparece após 1º pedido) */
.push-optin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 23, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.push-optin-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.push-optin-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.92);
  transition: transform 250ms cubic-bezier(.34, 1.56, .64, 1);
}
.push-optin-backdrop.show .push-optin-modal {
  transform: scale(1);
}
.push-optin-hero {
  background: linear-gradient(135deg, #0a4ea3 0%, #062f64 100%);
  color: #fff;
  padding: 32px 28px 24px;
  text-align: center;
}
.push-optin-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  animation: bellRing 0.8s ease-in-out infinite alternate;
}
@keyframes bellRing {
  0%   { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}
.push-optin-hero h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.push-optin-hero p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
}
.push-optin-perks {
  padding: 22px 28px 12px;
}
.push-optin-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13.5px;
  color: #2d3748;
}
.push-optin-perk:last-child {
  border-bottom: none;
}
.push-optin-perk > span:first-child {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.push-optin-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}
.push-optin-actions button {
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.push-optin-actions .btn-secondary {
  background: transparent;
  color: #5a6478;
  border: 1.5px solid #e5e7eb;
}
.push-optin-actions .btn-secondary:hover {
  background: #f5f6f8;
}
.push-optin-actions .btn-primary,
.push-optin-actions .push-optin-cta {
  background: #ff6a13;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 19, 0.35);
}
.push-optin-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 19, 0.45);
}
.push-optin-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .push-optin-actions {
    flex-direction: column-reverse;
  }
  .push-optin-actions button {
    width: 100%;
  }
}

/* Card de notificações no /conta#perfil */
.profile-notifications-card {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
}
.profile-notifications-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-notifications-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f1ff 0%, #cfe1ff 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-notifications-text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.profile-notifications-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #062f64;
}
.profile-notifications-text span {
  display: block;
  font-size: 12px;
  color: #5a6478;
  margin-top: 2px;
}
.profile-notifications-info {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
}

/* Toggle switch (usado no /conta e admin) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: #066e2c;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================================
   ADMIN — Aba Notificações
   =============================================================
   Layout em duas colunas claras: ícone + texto à esquerda, controle à direita.
   Cada linha é um label clicável que cobre toda a área.
   ============================================================= */

/* Toggle grande do device (ativar/desativar push neste dispositivo) */
.notif-admin-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0eeff 100%);
  border: 1.5px solid #b9d4ff;
  border-radius: 12px;
  margin-bottom: 14px;
}
.notif-admin-toggle-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.notif-admin-toggle-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #062f64;
}
.notif-admin-toggle-text small {
  display: block;
  font-size: 12.5px;
  color: #5a6478;
  margin-top: 3px;
}
/* O texto "Ativadas/Desativadas" ao lado do toggle */
.notif-admin-toggle > span {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
}

/* Linhas de checkbox (Recebido/Em Rota/Entregue/Cancelado/Admin novo pedido) */
.notif-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.notif-row:hover {
  background: #f0f4f8;
  border-color: #cbd5e1;
}
.notif-row:has(input:checked) {
  background: #f0fdf4;
  border-color: #86d9a8;
}
.notif-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #066e2c;
  margin: 0;
}
.notif-row-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.notif-row-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.notif-row-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0e1726;
}
.notif-row-text small {
  display: block;
  font-size: 12px;
  color: #5a6478;
  margin-top: 2px;
}

/* Barra de ação (botão Salvar) — fica fora dos cards, no final */
.notif-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 0;
}
.notif-actions-bar .btn {
  min-width: 200px;
}

/* Mobile: ajustes finos */
@media (max-width: 640px) {
  .notif-admin-toggle {
    flex-wrap: wrap;
    gap: 12px;
  }
  .notif-admin-toggle > span {
    width: 100%;
    text-align: right;
  }
  .notif-row {
    padding: 11px 13px;
    gap: 11px;
  }
  .notif-row-icon { font-size: 20px; }
  .notif-actions-bar .btn {
    width: 100%;
    min-width: 0;
  }
}


/* =============================================================
   REVIEW PROMPT — Popup pedindo avaliação Google
   =============================================================
   Aparece 2.5s depois do carregamento do site pra clientes que tiveram
   o primeiro pedido entregue. Não-bloqueador (ESC fecha, click fora
   fecha como "talvez depois").
   ============================================================= */

.review-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 250; /* acima dos outros modais */
  background: rgba(14, 23, 38, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.review-prompt-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.review-prompt-card {
  background: #fff;
  border-radius: 18px;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(14, 23, 38, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.review-prompt-overlay.show .review-prompt-card {
  transform: translateY(0) scale(1);
}
.review-prompt-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.review-prompt-close:hover {
  background: #f3f4f6;
  color: #0e1726;
}
.review-prompt-stars {
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 14px;
  animation: starsPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes starsPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.review-prompt-card h3 {
  font-family: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0e1726;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.review-prompt-card p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 22px;
}
.review-prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.review-prompt-actions .btn {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.review-prompt-actions .btn-ghost-soft {
  background: #f3f4f6;
  color: #4b5563;
}
.review-prompt-actions .btn-ghost-soft:hover {
  background: #e5e7eb;
}
.review-prompt-actions .btn-primary {
  background: linear-gradient(135deg, #ff6a13 0%, #e85a05 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 106, 19, 0.3);
}
.review-prompt-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 106, 19, 0.4);
}
.review-prompt-actions .btn-primary:active {
  transform: translateY(0);
}

/* Mobile: botões em coluna no estreito */
@media (max-width: 380px) {
  .review-prompt-card {
    padding: 24px 18px 20px;
  }
  .review-prompt-card h3 { font-size: 18px; }
  .review-prompt-actions {
    flex-direction: column-reverse;
  }
}
