/* ===== Variables & Reset ===== */
:root {
  --primary: #22c55e;
  /* Green-500 equivalent */
  --primary-dark: #15803d;
  --bg: #F3F4F6;
  --card-bg: #FFFFFF;
  --text-main: #000000;
  --text-muted: #6B7280;
  --danger: #EF4444;
  --radius: 12px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  padding-bottom: 120px;
}

h1,
h2,
h3 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Headers ===== */
.top-header {
  background: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  /* Centralizar logo se tiver */
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  /* Se não tiver logo, pode ser removido ou display:none via HTML */
}

/* ===== Info Stripe (Below Banner) ===== */
.info-stripe {
  background: var(--bg);
  /* Fundo cinza claro igual body ou um tom levemente diferente? User disse cinza claro */
  background: #F3F4F6;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* Permitir quebrar linha no mobile */
  gap: 8px;
  border-bottom: 1px solid #E5E7EB;
}

.sorteio-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.sorteio-icon {
  color: var(--primary);
  font-size: 18px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-left: auto;
  /* Empurrar para direita */
}

/* Responsividade para Info Stripe */
@media (max-width: 400px) {
  .info-stripe {
    justify-content: space-between;
    /* Manter na mesma linha se der, o user disse: "No mobile: manter em uma linha; se não couber, quebrar em 2 linhas" */
  }

  .price-container {
    margin-left: 0;
    /* Se quebrar, ajusta */
  }
}

.price-badge {
  background: #1F2937;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

/* ===== Hero ===== */
.hero-section img {
  width: 100%;
  display: block;
}

/* ===== Section Titles ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: #374151;
  margin: 20px 16px 12px;
}

.section-icon {
  font-size: 20px;
}

/* ===== Combos Grid (ALWAYS 2 columns) ===== */
.combos-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px;
  padding: 0 16px;
}

.combo-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 12px;
  box-shadow: var(--shadow);
  border: 1px solid #2e2f31;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  align-items: flex-start;
  /* eixo horizontal */
  text-align: left;
}

.combo-card.active,
.combo-card.selecionado {
  border: 1.5px solid var(--primary);
  background-color: #f0fdf4;
}

.combo-card.destaque {
  border: 1.5px solid var(--primary);
}

/* Badges (Overlapping top-right) */
.combo-badge {
  position: absolute;
  top: -10px;
  right: -4px;
  /* Slight overhang or flush */
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.combo-badge.hot {
  background: #2563EB;
  /* Blue for 'Mais vendido' as per print usually, or keep dark */
}

.combo-title {
  font-size: 16px;
  color: #374151;
  margin-top: 4px;
}

.combo-title strong {
  font-weight: 800;
  color: #111827;
}

.preco-linha {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  /* Push to bottom */
}

.combo-old-price {
  font-size: 11px;
  color: var(--danger);
  text-decoration: line-through;
}

.combo-new-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.combo-new-price strong {
  font-size: 14px;
  font-weight: 800;
}


/* ===== Quantity Selector (New Big Style) ===== */
.qty-selector {
  padding: 0 16px;
  margin-top: 24px;
}

/* Wrapper for fast buttons */
.qty-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

/* Each fast pill button */
.qty-pill {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1.5px solid #2f3440;
  border-radius: 10px;
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  color: #2f3440;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.1s;
  padding: 0;
}

/* Active state */
.qty-pill.active,
.qty-pill:active {
  border-color: var(--primary);
  /* Green border */
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  color: var(--primary);
  background: #fff;
}

/* Badge "Mais popular" */
.badge-popular {
  position: absolute;
  top: -14px;
  /* Centralized on border */
  left: 50%;
  transform: translateX(-50%);
  background: #B91C1C;
  color: #fff;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.badge-popular i,
.badge-popular span {
  vertical-align: middle;
}

/* Container manual stepper */
.qty-stepper {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
}

/* Buttons - and + */
.btn-step {
  width: 100%;
  height: 62px;
  border: 2px solid #2f3440;
  border-radius: 10px;
  background: #fff;
  font-size: 30px;
  font-weight: 900;
  color: #2f3440;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  /* Suave */
}

.btn-step:active {
  transform: scale(0.95);
}

/* Central Input/Display */
.qty-value {
  width: 100%;
  min-width: 0;
  height: 62px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 28px;
  font-weight: 900;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Media Query to adjust for very small screens */
@media (max-width: 380px) {
  .qty-quick {
    gap: 8px;
    /* Reduce gap to fit buttons better */
  }

  .qty-pill {
    font-size: 18px;
    /* Reduce font size */
  }

  .qty-stepper {
    gap: 12px;
  }

  .btn-step {
    width: 100%;
    /* maintain grid fill */
    height: 56px;
    font-size: 26px;
  }

  .qty-value {
    height: 56px;
    font-size: 24px;
  }
}


/* ===== Sticky Footer ===== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card-bg);
  border-top: 1px solid #E5E7EB;
  padding: 12px 16px 20px;
  /* Mais padding bottom para safe area */
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.footer-summary .qtd {
  font-size: 14px;
  color: #4B5563;
  font-weight: 600;
}

.footer-total {
  text-align: right;
  line-height: 1;
}

.footer-total span {
  display: block;
}

.footer-total .por {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.btn-cta {
  background: var(--primary);
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.4);
}

/* Helper for hidden elements */
.u-hidden {
  display: none !important;
}

/* Existing sections styling reset */
.cotas-section,
.minhas-compras-wrapper {
  padding: 16px 16px 0;
}

.minhas-compras {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  gap: 200px !important;
}

.footer-legal {
  padding: 30px 20px;
  text-align: center;
  font-size: 10px;
  color: #9CA3AF;
}

/* ===== Legal Disclaimer (rodapé longo igual print) ===== */
.legal-disclaimer {
  padding: 28px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.legal-logo {
  height: 46px;
  width: auto;
  margin: 6px 0 14px;
  opacity: .95;
}

.legal-text {
  max-width: 560px;
  color: #9CA3AF;
  /* cinza claro */
  font-size: 12px;
  line-height: 1.75;
  font-weight: 500;
}

/* se quiser mais “apagado” como no print */
.legal-text strong {
  color: #9CA3AF;
  font-weight: 600;
}

/* ===== Header igual print 2 ===== */
.top-header--split {
  background: #fff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #E5E7EB !important;
}

.top-header--split .logo {
  display: flex;
  align-items: center;
}

.top-header--split .logo img {
  height: 34px !important;
  width: auto !important;
  display: block;
}

/* Pill "Minhas compras" */
.pill-compras {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid #8a6a2a;
  color: #8a6a2a;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}