/* ============================================================
   Carlinhos Frangoboy — stylesheet
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #D32F2F;
  --red-dark: #B71C1C;
  --orange:   #E64A19;
  --yellow:   #FFA000;
  --yellow-l: #FFC107;
  --white:    #FFFFFF;
  --bg:       #FFF8F0;
  --card-bg:  #FFFFFF;
  --text:     #1A1A1A;
  --text-sub: #555555;
  --border:   #E0D5C8;
  --shadow:   0 4px 20px rgba(0,0,0,.12);
  --radius:   16px;
  --radius-sm:8px;
  --wa-green: #25D366;
  --wa-dark:  #128C7E;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }

.btn-hero {
  background: var(--yellow);
  color: #1A1A1A;
  font-size: 1.15rem;
  padding: 16px 36px;
  box-shadow: 0 6px 24px rgba(255,160,0,.5);
}
.btn-hero:hover { filter: brightness(1.08); box-shadow: 0 8px 28px rgba(255,160,0,.6); }

.btn-add {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(211,47,47,.35);
  margin-top: 12px;
}
.btn-add:hover { background: var(--red-dark); box-shadow: 0 6px 18px rgba(183,28,28,.4); }

.btn-checkout {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(211,47,47,.4);
}
.btn-checkout:hover { background: var(--red-dark); }

.btn-whatsapp {
  width: 100%;
  background: var(--wa-green);
  color: var(--white);
  font-size: 1.1rem;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  margin-top: 8px;
}
.btn-whatsapp:hover { background: var(--wa-dark); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
  letter-spacing: -.3px;
}
.logo-slogan { font-size: .7rem; color: rgba(255,255,255,.85); font-weight: 400; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #1A1A1A;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  position: relative;
  transition: filter .15s;
  white-space: nowrap;
}
.cart-btn:hover { filter: brightness(1.08); }
.cart-icon { font-size: 1.2rem; }
.cart-label { display: none; }
.cart-count {
  background: var(--red-dark);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Hero / Banner ── */
.hero {
  display: block;
  background: #111;          /* fundo enquanto a imagem carrega */
  line-height: 0;            /* remove gap inline de img */
}

/* Imagem do banner: 100% de largura, proporção preservada */
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;         /* limita em telas muito largas */
  object-fit: cover;
  object-position: center top;
}

/* Barra vermelha com CTA abaixo do banner */
.hero-cta-bar {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--orange) 100%);
  padding: 20px 16px;
  line-height: 1.5;
}
.hero-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: clamp(.88rem, 2.2vw, 1.05rem);
  color: rgba(255,255,255,.93);
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
  margin: 0;
}

/* ── Section titles ── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--red);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 36px;
  font-size: .95rem;
}

/* ── Menu section ── */
.menu { padding: 60px 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ── Product card ── */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }

.product-img-wrap {
  position: relative;
  overflow: hidden;          /* contém o zoom da foto */
  border-radius: var(--radius) var(--radius) 0 0;
  background: #1a1a1a;       /* fallback enquanto carrega */
}
.product-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.product-card:hover .product-photo {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: #1A1A1A;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-badge--promo { background: var(--red); color: var(--white); }

.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.product-desc {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-price-row { margin-bottom: 4px; }
.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}

/* Promo tag */
.promo-tag {
  background: #FFF3E0;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .88rem;
  color: #E65100;
  margin-bottom: 10px;
}

/* Price table */
.price-table { margin-bottom: 14px; }
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-sub);
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.price-row:last-child { border-bottom: none; }
.promo-row { font-weight: 700; color: var(--red); }
.price-val { font-weight: 600; }

/* Qty selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 8px;
}
.qty-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--red);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: rgba(211,47,47,.1); }
.qty-display {
  min-width: 44px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 4px;
}
.sobrecoxa-price-preview {
  font-size: .85rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── Features strip ── */
.features { background: var(--red); padding: 20px 0; }
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
}
.feature-icon { font-size: 1.4rem; }

/* ── Cart panel ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.2);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--red);
  color: var(--white);
}
.cart-header h2 { font-size: 1.2rem; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.cart-close:hover { background: rgba(255,255,255,.2); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-sub);
}
.cart-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 12px; }

.cart-items { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}
.cart-item-name {
  font-weight: 700;
  font-size: .95rem;
  grid-column: 1 / -1;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ci-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: background .15s;
}
.ci-btn:hover { background: #FFEBEE; }
.ci-btn--del { color: #999; border-color: #ccc; }
.ci-btn--del:hover { background: #ffeaea; color: var(--red); }
.ci-qty { min-width: 28px; text-align: center; font-weight: 700; font-size: .95rem; }
.cart-item-price {
  align-self: center;
  font-weight: 700;
  color: var(--red);
  font-size: .95rem;
  white-space: nowrap;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--border);
  background: var(--white);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cart-total-val { color: var(--red); font-size: 1.2rem; }
.delivery-info { margin-bottom: 14px; }
.free-delivery {
  background: #E8F5E9;
  color: #1B5E20;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ── Checkout Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 48px rgba(0,0,0,.3);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}
.modal-header h2 { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.2); }

.modal-body {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Order summary */
.order-summary {
  background: #FFF8F0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}
.order-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--red); }
.summary-list { list-style: none; margin-bottom: 10px; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.summary-list li:last-child { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.summary-delivery {
  font-size: .85rem;
  color: #1B5E20;
  background: #E8F5E9;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
  font-weight: 600;
}

/* ── Endereço de retirada ── */
.pickup-address-info { margin-top: 12px; margin-bottom: 4px; }
.pickup-address-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFF3E0;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.pickup-address-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.pickup-address-box strong {
  display: block;
  font-size: .88rem;
  color: var(--red);
  margin-bottom: 4px;
}
.pickup-address-box p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ── Delivery options ── */
.delivery-choice { margin-bottom: 20px; }
.delivery-choice h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.delivery-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.delivery-option input[type="radio"]:checked + .option-card {
  border-color: var(--red);
  background: #FFF0EE;
}
.option-icon { font-size: 1.6rem; }
.option-card strong { display: block; font-size: .9rem; color: var(--text); }
.option-card small { font-size: .78rem; color: var(--text-sub); }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.required { color: var(--red); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #D32F2F; background: #FFF0EE; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Seção Horário & Pagamento ── */
.info-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 3px solid var(--border);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  padding: 16px 20px;
}
.info-card-header h3 { font-size: 1rem; font-weight: 700; }
.info-icon { font-size: 1.6rem; }
.info-card-body { padding: 20px; }

/* Horário */
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: .95rem;
}
.schedule-day { font-weight: 700; color: var(--text); }
.schedule-time { color: var(--red); font-size: .9rem; }
.schedule-note {
  background: #FFF3E0;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  color: #E65100;
  line-height: 1.5;
}

/* Pagamento — grid na seção */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.payment-icon { font-size: 1.2rem; }

/* Pagamento — seleção no checkout */
.payment-choice { margin-top: 4px; }
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.payment-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s, background .15s;
  text-align: center;
}
.payment-opt-card span:first-child { font-size: 1.4rem; }
.payment-option input[type="radio"]:checked + .payment-opt-card {
  border-color: var(--red);
  background: #FFF0EE;
  color: var(--red);
}

/* ── Footer ── */
.footer {
  background: var(--red-dark);
  color: var(--white);
  text-align: center;
  padding: 36px 16px 24px;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--yellow); margin-bottom: 6px; }
.footer-slogan { font-size: .9rem; opacity: .85; margin-bottom: 16px; }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa-green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .95rem;
  margin-bottom: 20px;
  transition: background .15s;
}
.footer-wa:hover { background: var(--wa-dark); }
.footer-copy { font-size: .78rem; opacity: .6; }

/* WhatsApp icon */
.wa-icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1A1A1A;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Error text ── */
.error-msg {
  font-size: .78rem;
  color: var(--red);
  margin-top: 4px;
  display: block;
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .cart-label { display: inline; }
}

/* Tablet */
@media (max-width: 768px) {
  .hero-banner-img {
    max-height: 320px;
    object-position: 40% top; /* centraliza o mascote */
  }
  .hero-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-sub { font-size: .92rem; }
  .btn-hero { width: 100%; justify-content: center; font-size: 1rem; padding: 15px 20px; }
}

/* Mobile */
@media (max-width: 480px) {
  /* Layout geral */
  .products-grid    { grid-template-columns: 1fr; }
  .delivery-options { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .menu             { padding: 36px 0; }

  /* Header */
  .logo-name  { font-size: .95rem; }
  .logo-img   { height: 42px; width: 42px; }
  .cart-btn   { padding: 9px 14px; font-size: .88rem; }

  /* Banner */
  .hero-banner-img {
    max-height: 200px;
    object-position: 38% top;
  }
  .hero-cta-bar { padding: 16px; }
  .hero-sub     { font-size: .85rem; }
  .btn-hero     { font-size: .95rem; padding: 13px 20px; width: 100%; justify-content: center; }

  /* Features */
  .features-grid { gap: 6px 16px; }
  .feature-item  { font-size: .82rem; }

  /* Carrinho */
  .cart-panel { width: 100vw; }

  /* Modal — sobe como bottom sheet */
  .modal-overlay.open { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 95dvh;
  }
}

/* ── Banner de instalação PWA ── */
.install-banner {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 24px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  z-index: 1500;
  transition: bottom .4s cubic-bezier(.4,0,.2,1);
  border-top: 4px solid var(--red);
}
.install-banner.show { bottom: 16px; }

.install-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}
.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.install-text strong {
  font-size: .92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-text span {
  font-size: .78rem;
  color: var(--text-sub);
}
.install-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.install-btn:hover { background: var(--red-dark); }
.install-dismiss {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #aaa;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.install-dismiss:hover { color: var(--text); }

/* ── Modal pós-instalação PWA ── */
.post-install-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
}
.post-install-overlay.show { opacity: 1; }

.post-install-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.35);
  transform: translateY(30px);
  transition: transform .35s ease;
}
.post-install-overlay.show .post-install-box {
  transform: translateY(0);
}

.post-install-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.post-install-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.3;
}
.post-install-msg {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 22px;
}
.post-install-msg strong { color: var(--text); }

.post-install-open {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(211,47,47,.4);
  margin-bottom: 10px;
}
.post-install-open:hover { background: var(--red-dark); }

.post-install-close {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: .88rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  display: block;
  width: 100%;
}
.post-install-close:hover { color: var(--text); }
