/* ==========================================================================
   Sicredi Shopping — Área de Premiação
   Design tokens extraídos de shopping.sicredi.com.br (sicredi.store-theme)
   Mobile first
   ========================================================================== */

:root {
  /* Cores extraídas via computed style do site */
  --green-primary: #3fa110;      /* bg-action-primary (botões) */
  --green-primary-hover: #36910e;
  --green-dark: #33820d;         /* links / valor em pontos */
  --green-logo-1: #146e37;
  --green-logo-2: #64c832;
  --banner-green-start: #2c700b; /* banner "Compre com o app Sicredi" */
  --banner-green-end: #1e5407;
  --text-gray: #828a82;          /* títulos H1 / nomes de produto */
  --text-input: #727273;
  --border-input: #cdd3cd;
  --bg-muted: #f2f4f0;
  --bg-base: #ffffff;
  --black: #000000;
  --danger: #d22424;

  /* Tipografia do site */
  --font-heading: 'Exo 2', 'Exo-2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Forma */
  --radius-btn: 8px;             /* br2 no tema VTEX -> 8px computado */
  --radius-card: 8px;
  --radius-pill: 999px;
  --btn-min-h: 40px;             /* min-h-regular */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--black);
  background: var(--bg-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Banner do app — "Compre com o app Sicredi"
   ========================================================================== */

.app-banner {
  background: linear-gradient(90deg, var(--banner-green-start) 0%, var(--banner-green-end) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  position: sticky;
  top: 0;
  z-index: 60;
}

.app-banner svg {
  flex: none;
}

.app-banner strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.22);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 2px;
}

.app-banner--urgent {
  background: linear-gradient(90deg, #b45309 0%, #92400e 100%);
  animation: bannerPulse 1s ease-in-out infinite;
}

.app-banner--expired {
  background: linear-gradient(90deg, #991b1b 0%, #7f1d1d 100%);
  animation: none;
}

@keyframes bannerPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* ==========================================================================
   Header — réplica do vtex-store-header mobile
   ========================================================================== */

.header {
  background: #fff;
  border-bottom: 1px solid #e6e9e4;
  position: sticky;
  top: 37px;
  z-index: 50;
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.header__menu-btn,
.header__icon-btn {
  background: none;
  border: 0;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  color: var(--green-primary);
}

.header__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.header__logo svg {
  height: 20px;
  width: auto;
  display: block;
}

.header__logo-shopping {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 20px;
  color: var(--text-gray);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Barra de busca — pill com ícone verde à direita */
.header__search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-pill);
  background: #fff;
  height: 40px;
  padding: 0 6px 0 16px;
}

.search-bar__input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-input);
  background: transparent;
  min-width: 0;
}

.search-bar__input::placeholder {
  color: var(--text-input);
  opacity: 0.8;
}

.search-bar__btn {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
}

/* ==========================================================================
   Layout principal
   ========================================================================== */

.main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* Título de seção — Exo-2 300 verde, como "Para cada tipo de pai..." */
.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.25;
  color: var(--green-primary);
  margin: 0;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  margin-top: 8px;
}

/* ==========================================================================
   Hero de congratulações
   ========================================================================== */

.hero {
  text-align: center;
  padding: 32px 8px 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf6e3;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-gray);
}

.hero__title strong {
  font-weight: 700;
  color: var(--green-primary);
}

.hero__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-input);
}

.hero__deadline {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border: 1px solid #f5dfa8;
  color: #8a6d1a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-card);
}

/* ==========================================================================
   Cards genéricos
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid #e3e7e1;
  border-radius: var(--radius-card);
  padding: 16px;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Dados do ganhador */
.winner-data {
  margin-top: 24px;
}

.data-list {
  list-style: none;
}

.data-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1ec;
  font-size: 14px;
}

.data-list__item:last-child {
  border-bottom: 0;
}

.data-list__label {
  color: var(--text-input);
  flex: none;
}

.data-list__value {
  font-weight: 700;
  color: var(--black);
  text-align: right;
}

/* ==========================================================================
   Grade de prêmios — 2 colunas no mobile (igual vitrine VTEX)
   ========================================================================== */

.prizes {
  margin-top: 8px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin-top: 20px;
}

.prize-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prize-card--selected {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary);
}

.prize-card__image-wrap {
  position: relative;
  padding: 8px;
}

.prize-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.prize-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.prize-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 4px 4px;
}

.prize-card__badge {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  min-height: 14px;
}

.prize-card__name {
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  height: 56px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.prize-card__value {
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.prize-card__value-old {
  font-size: 12px;
  color: var(--text-input);
  text-decoration: line-through;
}

.prize-card__value-free {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.prize-card__freight-note {
  font-size: 11px;
  color: var(--text-input);
  margin-top: 2px;
  margin-bottom: 10px;
}

.prize-card__cta {
  width: 100%;
  margin-top: auto;
}

.prize-card__cta--selected {
  background: var(--green-dark);
  pointer-events: none;
}

/* ==========================================================================
   Botões — réplica .vtex-button bg-action-primary
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-min-h);
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
  width: 100%;
  height: 48px;
}

.btn--primary:hover {
  background: var(--green-primary-hover);
  border-color: var(--green-primary-hover);
}

.btn--outline {
  background: #fff;
  border-color: var(--green-primary);
  color: var(--green-primary);
  width: 100%;
}

.btn--outline:hover {
  background: #f2f9ec;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Wizard — stepper de progresso e passos
   ========================================================================== */

.stepper {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 8px 8px;
}

.stepper__item {
  flex: 1;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.stepper__item::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background: #dfe4dd;
}

.stepper__item:first-child::before {
  display: none;
}

.stepper__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-input);
  color: var(--text-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.stepper__label {
  font-size: 11px;
  font-weight: 700;
  color: #a9aea7;
  text-align: center;
}

.stepper__item--active .stepper__dot {
  border-color: var(--green-primary);
  background: var(--green-primary);
  color: #fff;
}

.stepper__item--active .stepper__label {
  color: var(--green-dark);
}

.stepper__item--done .stepper__dot {
  border-color: var(--green-primary);
  background: #eaf6e3;
  color: var(--green-dark);
}

.stepper__item--done::before {
  background: var(--green-primary);
}

.wizard-step {
  display: none;
}

.wizard-step--active {
  display: block;
  animation: wizardStepIn 0.25s ease;
}

@keyframes wizardStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
}

.wizard-nav .btn {
  flex: 1;
}

/* ==========================================================================
   Checkout — endereço, frete, pagamento, resumo
   ========================================================================== */

.checkout__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.address-line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
}

.address-line + .address-line {
  margin-top: 2px;
}

.address-line--muted {
  color: var(--text-input);
}

.card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card__title-row .card__title {
  margin: 0;
  margin-bottom: 0;
}

.btn-link {
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--green-primary);
  cursor: pointer;
  white-space: nowrap;
}

.btn-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.address-summary {
  padding: 2px 0 2px;
}

.addr-save-btn {
  width: 100%;
  margin-top: 4px;
}

/* Opções de frete / pagamento — radios grandes */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover {
  border-color: var(--green-primary);
}

.option--checked {
  border-color: var(--green-primary);
  background: #f6fbef;
}

.option input {
  accent-color: var(--green-primary);
  width: 18px;
  height: 18px;
  flex: none;
}

.option__body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.option__name {
  font-size: 14px;
  font-weight: 700;
}

.option__desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-input);
  margin-top: 2px;
}

.option__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

/* Resumo do pedido */
.summary {
  margin-top: 0;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-input);
}

.summary__row--prize .summary__value {
  color: var(--green-dark);
  font-weight: 700;
}

.summary__row--total {
  border-top: 1px solid #e3e7e1;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
}

.summary__row--total .summary__value {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--green-dark);
}

.summary__value {
  font-weight: 700;
  color: var(--black);
}

.checkout__cta {
  margin-top: 20px;
}

.checkout__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-input);
}

/* ==========================================================================
   Modal de Pagamento PIX
   ========================================================================== */

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pix-modal[hidden] {
  display: none;
}

.pix-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.pix-modal__container {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pix-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-muted);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pix-modal__close:hover {
  background: var(--border-input);
  color: var(--black);
}

.pix-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 18px 48px 16px 20px;
  border-bottom: 1px solid var(--border-input);
}

.pix-modal__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f8f6;
  border-radius: 10px;
  margin: 0;
}

.pix-modal__heading {
  min-width: 0;
  flex: 1;
}

.pix-modal__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}

.pix-modal__subtitle {
  font-size: 13px;
  color: var(--text-gray);
  margin: 3px 0 0;
}

.pix-modal__body {
  padding: 24px;
}

.pix-modal__qr-wrap {
  text-align: center;
}

.pix-modal__qr {
  background: var(--bg-muted);
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  border: 1px solid var(--border-input);
}

.pix-modal__qr canvas {
  width: 180px;
  height: 180px;
  display: block;
}

.pix-modal__deadline {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
}

.pix-modal__deadline strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: #eaf6e3;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 2px;
}

.pix-modal__value {
  text-align: center;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-muted);
  border-radius: 10px;
}

.pix-modal__value-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.pix-modal__value-amount {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-primary);
}

.pix-modal__code-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pix-modal__code {
  flex: 1;
  background: var(--bg-muted);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-modal__copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-primary);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.pix-modal__copy:hover {
  background: var(--green-primary-hover);
}

.pix-modal__copy--copied {
  background: #4ade80;
}

.pix-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pix-modal__step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-gray);
}

.pix-modal__step-num {
  width: 24px;
  height: 24px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.pix-modal__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-input);
  text-align: center;
}

.pix-modal__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
}

.pix-modal__partners {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #8a918a;
}

/* Estados do modal */
.pix-modal__waiting,
.pix-modal__success {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.pix-modal__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-input);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: pixSpin 0.8s linear infinite;
}

@keyframes pixSpin {
  to { transform: rotate(360deg); }
}

.pix-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-input);
  border-top-color: #32BCAD;
  border-radius: 50%;
  animation: pixSpin 0.8s linear infinite;
}

.pix-modal__waiting-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin: 20px 0 6px;
}

.pix-modal__waiting-hint {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

.pix-modal__success-icon {
  animation: pixSuccessPop 0.4s ease;
}

@keyframes pixSuccessPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.pix-modal__success-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  margin: 20px 0 8px;
}

.pix-modal__success-text {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* ==========================================================================
   Sucesso
   ========================================================================== */

.success {
  text-align: center;
  padding: 48px 8px;
}

.success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eaf6e3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success__protocol {
  display: inline-block;
  margin-top: 12px;
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

/* ==========================================================================
   Regulamento — accordion
   ========================================================================== */

.regulation {
  margin-top: 40px;
}

.accordion {
  margin-top: 16px;
  border-top: 1px solid #e3e7e1;
}

.accordion__item {
  border-bottom: 1px solid #e3e7e1;
}

.accordion__btn {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  text-align: left;
}

.accordion__btn svg {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--green-primary);
}

.accordion__item--open .accordion__btn svg {
  transform: rotate(180deg);
}

.accordion__content {
  display: none;
  padding: 0 4px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-input);
}

.accordion__item--open .accordion__content {
  display: block;
}

/* ==========================================================================
   Footer — fundo branco, títulos pretos, links verdes (computado no site)
   ========================================================================== */

.footer {
  background: #fff;
  border-top: 1px solid #e6e9e4;
  padding: 32px 16px 40px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.footer__links a {
  color: var(--green-dark);
  font-size: 14px;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid #e6e9e4;
}

.footer__brand svg {
  height: 18px;
  width: auto;
}

.footer__brand span {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 18px;
  color: var(--text-gray);
}

/* ==========================================================================
   Estado de link inválido
   ========================================================================== */

.invalid {
  text-align: center;
  padding: 64px 16px;
}

.invalid__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 26px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.invalid__text {
  font-size: 14px;
  color: var(--text-input);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   Utilitários
   ========================================================================== */

[hidden] {
  display: none !important;
}

.divider {
  border: 0;
  border-top: 1px solid #e3e7e1;
  margin: 24px 0;
}

/* ==========================================================================
   Admin — dashboard de leads
   ========================================================================== */

.admin-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  align-self: center;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 4px;
}

.admin-head .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e3e7e1;
  border-radius: var(--radius-card);
  padding: 16px;
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-input);
  margin-top: 4px;
}

.stat-card--green .stat-card__value { color: var(--green-primary); }
.stat-card--dark .stat-card__value { color: var(--green-dark); }
.stat-card--gray .stat-card__value { color: var(--text-gray); }

/* Badges de status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--pendente { background: #f2f2f2; color: #6b6b6b; }
.badge--sorteado { background: #eaf6e3; color: var(--green-dark); }
.badge--resgatado { background: #e3f0fb; color: #1d5fa8; }
.badge--expirado { background: #fbe6e6; color: var(--danger); }

/* Toolbar de filtros */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.toolbar__search {
  flex: 1;
}

.input,
.select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-input);
  background: #fff;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary);
}

.toolbar__buttons {
  display: flex;
  gap: 8px;
}

.toolbar__buttons .btn {
  flex: 1;
  white-space: nowrap;
}

.btn--small {
  min-height: 36px;
  height: 36px;
  font-size: 12px;
  padding: 0 12px;
  width: auto;
}

.btn--danger {
  background: #fff;
  border-color: var(--danger);
  color: var(--danger);
}

.btn--danger:hover {
  background: #fdf0f0;
}

/* Lista de leads */
.leads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.lead-card {
  background: #fff;
  border: 1px solid #e3e7e1;
  border-radius: var(--radius-card);
  padding: 16px;
}

.lead-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.lead-card__name {
  font-size: 15px;
  font-weight: 800;
}

.lead-card__meta {
  font-size: 12px;
  color: var(--text-input);
  margin-top: 2px;
  word-break: break-all;
}

.lead-card__rows {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 13px;
}

.lead-card__row {
  display: flex;
  flex-direction: column;
}

.lead-card__row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-input);
}

.lead-card__row-value {
  font-weight: 700;
}

.lead-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef1ec;
  align-items: center;
}

.lead-card__status-select {
  flex: 1;
  min-width: 140px;
  height: 36px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: #fff;
}

.lead-card__redemption {
  margin-top: 12px;
  background: #f6fbef;
  border: 1px solid #dcecce;
  border-radius: var(--radius-card);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--green-dark);
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-input);
  font-size: 14px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal--open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 28, 0.55);
}

.modal__panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 20px;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-gray);
}

.modal__close {
  background: none;
  border: 0;
  padding: 6px;
  color: var(--text-input);
}

/* Formulário */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-input);
}

.field__hint {
  font-size: 11px;
  color: var(--text-input);
}

.textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  color: var(--text-input);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.form-actions .btn {
  flex: 1;
}

.form-error {
  display: none;
  margin-top: 12px;
  background: #fbe6e6;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-card);
}

.form-error--visible {
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(80px);
  z-index: 200;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Desktop (>= 768px) — mobile first, ajustes progressivos
   ========================================================================== */

/* ==========================================================================
   Ofertas especiais (airfry + iPhone) — visual Sicredi Shopping
   ========================================================================== */

.specials {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e6ebe4;
}

.specials__head {
  margin-bottom: 14px;
}

.specials__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  color: var(--green-primary);
  margin: 0 0 6px;
}

.specials__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.4;
}

.specials__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-card);
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deal--featured {
  border: 1px solid #c5dcb8;
  border-left: 4px solid var(--green-primary);
  background: #f7fbf4;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(63, 161, 16, 0.08);
}

.deal--hero .deal__hero-media {
  position: relative;
  margin: 0 0 12px;
  border-radius: 10px;
  background: #f3f3f3;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal--hero .deal__image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.05);
  padding: 6px;
}

.deal--hero .deal__off {
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 5px 8px;
}

.deal--hero .deal__pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
}

.deal--hero .deal__name {
  font-size: 16px;
  color: var(--black);
  min-height: 0;
  -webkit-line-clamp: 2;
}

.deal--hero .deal__now {
  font-size: 28px;
}

.deal--hero .deal__cta {
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
}

.deal--featured .deal__kind {
  color: var(--green-dark);
  font-size: 13px;
}

.deal--added {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary);
}

.deal--expired {
  opacity: 0.55;
  pointer-events: none;
}

.deal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.deal__kind {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
}

.deal__timer {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-input);
  white-space: nowrap;
}

.deal__timer .flash-timer__value,
.deal__timer strong {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--danger);
}

.deal__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: stretch;
}

.deal__media {
  position: relative;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eef1ee;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  overflow: hidden;
}

.deal__image {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.deal--featured .deal__image {
  transform: none;
}

.deal__off {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.deal__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.deal__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.deal__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.deal__was {
  font-size: 12px;
  color: var(--text-input);
  text-decoration: line-through;
}

.deal__now {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.deal__scarcity {
  margin-top: 8px;
}

.deal__bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: #e8ece7;
  overflow: hidden;
}

.deal__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
}

.deal__stock {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
  line-height: 1.3;
}

.deal__stock strong {
  font-weight: 800;
}

.deal__cta {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
}

.deal__cta--done,
.deal__cta:disabled {
  background: var(--green-primary) !important;
  opacity: 0.85;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .deal,
  .prize-card {
    transition: none;
  }
}

/* ==========================================================================
   Desktop (>= 768px) — mobile first, ajustes progressivos
   ========================================================================== */

@media (min-width: 768px) {
  .flash-offer__card {
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 20px;
  }

  .flash-offer__image {
    max-height: 160px;
  }

  .flash-offer__name {
    font-size: 16px;
  }

  .flash-offer__price {
    font-size: 32px;
  }

  .flash-offer__btn {
    max-width: 280px;
  }

  .hero__title {
    font-size: 40px;
  }

  .prize-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
  }

  .specials__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .deal--hero .deal__hero-media,
  .deal--hero .deal__image {
    min-height: 240px;
    height: 240px;
  }

  .deal__row {
    grid-template-columns: 120px 1fr;
  }

  .deal__media {
    min-height: 120px;
  }

  .deal__image {
    height: 104px;
  }

  .specials__title {
    font-size: 26px;
  }

  .checkout__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
  }

  .checkout__steps {
    margin-top: 0;
  }

  .summary {
    position: sticky;
    top: 96px;
  }

  .footer__cols {
    display: flex;
    gap: 64px;
  }

  /* Admin desktop */
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .toolbar {
    flex-direction: row;
    align-items: center;
  }

  .toolbar__buttons {
    flex: none;
  }

  .leads-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .modal {
    align-items: center;
  }

  .modal__panel {
    border-radius: 16px;
  }
}

/* ==========================================================================
   Formulário de Endereço
   ========================================================================== */

.address-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-primary);
}

.form-group input::placeholder {
  color: var(--text-input);
}

.form-group--cep {
  flex: 0 0 140px;
  position: relative;
}

.form-group--number {
  flex: 0 0 100px;
}

.form-group--street {
  flex: 2;
}

.form-group--city {
  flex: 2;
}

.form-group--state {
  flex: 0 0 70px;
}

.cep-loading {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(25%);
  font-size: 11px;
  color: var(--green-primary);
}

@media (max-width: 600px) {
  .form-row {
    flex-wrap: wrap;
  }

  .form-group--cep,
  .form-group--number,
  .form-group--state {
    flex: 0 0 calc(50% - 6px);
  }

  .form-group--street,
  .form-group--city {
    flex: 0 0 100%;
  }
}
