/* ============================================
   Caixa Secreta – Estilo premium, discreto e sensual
   Tema claro e suave (imagens escuras aparecem bem)
   ============================================ */

:root {
  --fundo: #faf7fb;
  --fundo-card: #fff;
  --fundo-card-hover: #f8f4f9;
  /* Top / rodapé – roxo alinhado ao fundo #140021 */
  --fundo-barra-roxa: linear-gradient(180deg, #1c0d2e 0%, #150622 55%, #140021 100%);
  --fundo-barra-roxa-rodape: linear-gradient(180deg, #140021 0%, #150622 45%, #1a0f2c 100%);
  --texto-sobre-roxo: #f3e8ff;
  --texto-sobre-roxo-suave: rgba(243, 232, 255, 0.88);
  --borda-barra-roxa: rgba(168, 85, 247, 0.38);
  --roxo-principal: #7b2cbf;
  --roxo-escuro: #5a189a;
  --rosa-destaque: #ff4d8d;
  --rosa-suave: #e8a0b8;
  --brilho: rgba(123, 44, 191, 0.15);
  --texto: #3d3538;
  --texto-suave: #6b6266;
  --texto-titulo: #2d2629;
  --borda: rgba(123, 44, 191, 0.2);
  --borda-hover: rgba(255, 77, 141, 0.4);
  --sombra: 0 4px 20px rgba(90, 24, 154, 0.1);
  --sombra-hover: 0 8px 28px rgba(90, 24, 154, 0.15);
  --fonte-elegante: 'Cormorant Garamond', Georgia, serif;
  --fonte-moderna: 'Inter', sans-serif;
  --fonte-produtos: 'Mulish', sans-serif;
  --fonte-logo-titulo: 'Montserrat', sans-serif;
  --fonte-logo-slogan: 'Great Vibes', cursive;
  --raio: 8px;
  --transicao: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-moderna);
  font-weight: 300;
  background-color: #140021;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(123, 44, 191, 0.32) 0%, transparent 38%),
    radial-gradient(circle at 80% 10%, rgba(255, 77, 141, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(90, 24, 154, 0.34) 0%, transparent 45%),
    linear-gradient(145deg, #140021 0%, #150625 40%, #18082e 100%);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.02) 0 2px,
      rgba(0, 0, 0, 0.02) 2px 4px
    ),
    repeating-radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.65;
  z-index: 0;
}

.header,
.section,
.footer,
.modal-overlay,
.modal-checkout-overlay {
  position: relative;
  z-index: 1;
}

/* Tipografia */
h1, h2, h3 {
  font-family: var(--fonte-elegante);
  font-weight: 600;
}

a {
  color: var(--roxo-principal);
  text-decoration: none;
  transition: color var(--transicao);
}

a:hover {
  color: var(--rosa-destaque);
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fundo-barra-roxa);
  border-bottom: 1px solid var(--borda-barra-roxa);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 84px;
  padding: 0.7rem 1.25rem;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--texto-sobre-roxo);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 165px;
  display: block;
  border: none;
  outline: none;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-texto {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo h1,
.logo-nome {
  font-family: var(--fonte-logo-titulo);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-sobre-roxo);
  line-height: 1.05;
}

.slogan {
  font-family: var(--fonte-logo-slogan);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 400;
  color: var(--roxo-principal);
  margin-top: 0.05rem;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.05;
}

/* Navegação */
.nav {
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-list a {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--texto-sobre-roxo-suave);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--rosa-destaque);
}

.nav-carrinho-link {
  font-weight: 500;
  color: var(--texto-sobre-roxo);
}

.nav-carrinho-count {
  font-weight: 700;
  color: var(--rosa-destaque);
}

.nav-carrinho-count.pulse {
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

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

.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--texto-sobre-roxo);
  transition: var(--transicao);
}

.nav-toggle::before { top: 0; }
.nav-toggle::after { bottom: 0; }

.nav-toggle .bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--texto-sobre-roxo);
}

/* ========== BANNER (Hero full width) ========== */
.banner {
  position: relative;
  width: 100%;
  min-height: 42vh;
  margin: 0;
  background: #140021;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Celular: arte larga com texto à esquerda — cover corta as bordas; contain mostra 100% da imagem */
@media (max-width: 767px) {
  .banner {
    min-height: 280px;
    min-height: min(52dvh, 360px);
  }

  .banner-img-wrap {
    padding: 0 0.25rem;
    box-sizing: border-box;
  }

  .banner-img {
    object-fit: contain;
    object-position: center center;
  }
}

@media (min-width: 768px) {
  .banner {
    min-height: 45vh;
  }
}

@media (min-width: 1024px) {
  .banner {
    min-height: 50vh;
  }
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(90, 24, 154, 0.15) 100%);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, var(--brilho) 0%, transparent 60%);
  pointer-events: none;
}

/* ========== SEÇÕES ========== */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #f5e9ff;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.titulo-ofertas-dia {
  font-family: var(--fonte-moderna);
  font-weight: 700;
  color: #f7b9d3;
  letter-spacing: 0.03em;
}

/* ========== PROMOÇÃO RELÂMPAGO ========== */
.promo-relampago {
  padding: 2rem 0;
}

.container-promo {
  max-width: 720px;
}

.promo-card {
  background: linear-gradient(165deg, rgba(255, 77, 141, 0.12) 0%, rgba(123, 44, 191, 0.12) 100%);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(123, 44, 191, 0.2);
}

.promo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.promo-titulo-esq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-piscou {
  font-family: var(--fonte-moderna);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--rosa-destaque);
  letter-spacing: 0.02em;
  line-height: 1;
}

.promo-mega {
  display: inline-block;
  background: linear-gradient(90deg, var(--roxo-principal) 0%, var(--rosa-destaque) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.15rem;
}

.promo-titulo-dir {
  text-align: right;
}

.promo-oferta {
  display: block;
  font-size: 0.85rem;
  color: var(--roxo-principal);
  font-weight: 500;
}

.promo-relampago-txt {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--roxo-escuro);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.promo-countdown {
  margin-bottom: 1.5rem;
}

.promo-countdown-label {
  display: block;
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-bottom: 0.5rem;
}

.promo-countdown-boxes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.promo-countdown-item {
  background: var(--roxo-escuro);
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  min-width: 52px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(90, 24, 154, 0.35);
}

.promo-countdown-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.promo-countdown-unidade {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.promo-produtos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.promo-item {
  font-family: var(--fonte-produtos);
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.promo-item-img-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fundo);
}

.promo-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-item-info {
  flex: 1;
  min-width: 180px;
}

.promo-item-nome {
  font-weight: 600;
  color: var(--texto-titulo);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.promo-item-desc {
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-bottom: 0.5rem;
}

.promo-item-badge {
  display: inline-block;
  background: var(--roxo-escuro);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.promo-item-precos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.promo-item-de {
  font-size: 0.85rem;
  color: var(--texto-suave);
  text-decoration: line-through;
}

.promo-item-pix {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rosa-destaque);
}

.promo-item-parcela {
  font-size: 0.8rem;
  color: var(--texto-suave);
}

.promo-item-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: var(--rosa-destaque);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicao);
}

.promo-item-btn:hover {
  background: var(--roxo-principal);
  transform: translateY(-1px);
}

.promo-cta {
  display: block;
  text-align: center;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(90deg, var(--roxo-principal) 0%, var(--rosa-destaque) 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transicao);
  box-shadow: 0 4px 16px rgba(123, 44, 191, 0.35);
}

.promo-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.promo-vazio {
  text-align: center;
  padding: 1.5rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
}

/* ========== CATÁLOGO ========== */
/* Busca e filtros */
.busca-filtros-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.busca-wrap {
  flex: 1;
  min-width: 200px;
}

.busca-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  font-family: var(--fonte-moderna);
  font-size: 0.95rem;
  background: var(--fundo-card);
  transition: border-color var(--transicao);
}

.busca-input:focus {
  outline: none;
  border-color: var(--roxo-principal);
}

.busca-msg {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.busca-msg-aviso {
  color: var(--roxo-principal);
}

.filtros-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filtros-wrap label {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.filtro-input {
  width: 5rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  font-family: var(--fonte-moderna);
  font-size: 0.9rem;
  background: var(--fundo-card);
}

/* Mais vendidos */
.mais-vendidos-section {
  background: linear-gradient(180deg, rgba(123, 44, 191, 0.06) 0%, transparent 100%);
}

.mais-vendidos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.mais-vendidos-grid:has(> .produto-card:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.mais-vendidos-grid .produto-card {
  margin: 0;
}

.mais-vendidos-grid:has(> .produto-card:only-child) .produto-card {
  width: 100%;
  max-width: 320px;
}

.mais-vendidos-vazio {
  text-align: center;
  color: var(--texto-suave);
  padding: 2rem 1rem;
  font-size: 1rem;
}

.categoria-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.categoria-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--borda);
  background: var(--fundo-card);
  color: var(--texto-suave);
  font-family: var(--fonte-moderna);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--raio);
  transition: var(--transicao);
}

.categoria-tab:hover,
.categoria-tab.ativo {
  background: var(--roxo-principal);
  color: #fff;
  border-color: var(--roxo-principal);
}

.ordenacao-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ordenacao-label {
  font-family: var(--fonte-moderna);
  font-size: 0.95rem;
  color: var(--texto);
  font-weight: 400;
}

.ordenacao-select {
  font-family: var(--fonte-moderna);
  font-size: 0.95rem;
  color: var(--texto);
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6266' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color var(--transicao);
}

.ordenacao-select:hover,
.ordenacao-select:focus {
  border-color: var(--roxo-principal);
  outline: none;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.produto-card {
  font-family: var(--fonte-produtos);
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
  transition: var(--transicao);
  box-shadow: var(--sombra);
}

.produto-card:hover {
  border-color: var(--borda-hover);
  box-shadow: var(--sombra-hover);
  transform: translateY(-2px);
  background: var(--fundo-card-hover);
}

.produto-card:hover .produto-img-wrap::after {
  opacity: 0;
}

.produto-card {
  position: relative;
}

.produto-selos {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
}

.produto-selo {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.produto-selo.mais-vendido {
  background: var(--roxo-principal);
  color: #fff;
}

.produto-selo.desconto {
  background: var(--rosa-destaque);
  color: #fff;
}

.produto-img-wrap {
  position: relative;
  height: 220px;
  background: var(--fundo);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produto-img-placeholder {
  width: 100%;
  min-height: 100%;
  background: var(--fundo);
}

.produto-img-wrap--dupla {
  flex-direction: row;
}

.produto-img-wrap--dupla img {
  width: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

.produto-img-wrap:not(.produto-img-wrap--dupla) img {
  width: 100%;
}

.produto-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(248, 246, 245, 0.4) 100%);
  opacity: 0;
  transition: opacity var(--transicao);
  pointer-events: none;
}

.produto-card .produto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.produto-info {
  padding: 1.25rem;
}

.produto-nome {
  font-family: var(--fonte-produtos);
  font-size: 1.15rem;
  color: var(--texto-titulo);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.produto-descricao {
  font-family: var(--fonte-produtos);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--texto-suave);
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

.produto-preco {
  font-size: 1.1rem;
  color: var(--roxo-principal);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--raio);
  font-family: var(--fonte-moderna);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transicao);
  border: none;
  text-align: center;
}

.btn-carrinho {
  width: 100%;
  background: var(--roxo-principal);
  color: #fff;
  border: 1px solid var(--roxo-principal);
}

.btn-carrinho:hover {
  background: var(--rosa-destaque);
  color: #fff;
  border-color: var(--rosa-destaque);
}

.produto-botoes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.produto-card .btn,
.produto-card .btn-whatsapp-card {
  font-family: var(--fonte-produtos);
}

.btn-whatsapp-card {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: var(--raio);
  transition: var(--transicao);
}

.btn-whatsapp-card:hover {
  background: #20bd5a;
  color: #fff;
  border-color: #20bd5a;
  filter: brightness(1.05);
}

.carrinho-item.adicionado {
  animation: itemAdicionado 0.5s ease;
}

@keyframes itemAdicionado {
  0% { background: rgba(123, 44, 191, 0.2); }
  100% { background: transparent; }
}

/* ========== CARRINHO ========== */
.carrinho-section {
  background: linear-gradient(180deg, transparent 0%, rgba(123, 44, 191, 0.06) 100%);
}

.carrinho-content {
  max-width: 640px;
  margin: 0 auto;
}

.carrinho-lista {
  margin-bottom: 1.5rem;
}

.carrinho-item {
  font-family: var(--fonte-produtos);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  margin-bottom: 0.75rem;
}

.carrinho-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--fundo);
}

.carrinho-item-detalhes {
  flex: 1;
}

.carrinho-item-nome {
  font-size: 0.95rem;
  color: var(--texto-titulo);
  margin-bottom: 0.25rem;
}

.carrinho-item-preco {
  font-size: 0.9rem;
  color: var(--roxo-principal);
}

.carrinho-item-qtd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carrinho-item-qtd button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--borda);
  background: var(--fundo);
  color: var(--texto);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: var(--transicao);
}

.carrinho-item-qtd button:hover {
  background: var(--roxo-principal);
  color: #fff;
  border-color: var(--roxo-principal);
}

.carrinho-item-qtd span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.carrinho-item-remover {
  background: none;
  border: none;
  color: var(--texto-suave);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transicao);
}

.carrinho-item-remover:hover {
  color: #b33;
}

.carrinho-vazio {
  color: var(--texto-suave);
  text-align: center;
  padding: 2rem;
}

.carrinho-total {
  padding: 1.25rem;
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}

.carrinho-total p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.carrinho-total strong {
  color: var(--texto-titulo);
}

#carrinho-total {
  color: var(--roxo-principal);
  font-size: 1.25rem;
}

.btn-whatsapp {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-weight: 500;
  border-radius: var(--raio);
  text-align: center;
  transition: var(--transicao);
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ========== FRETE E CONDIÇÕES (cards visuais) ========== */
.frete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.frete-card {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--sombra);
  position: relative;
  transition: var(--transicao);
}

.frete-card:hover {
  box-shadow: var(--sombra-hover);
}

.frete-card-icone {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--roxo-principal) 0%, var(--rosa-destaque) 100%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 48px;
  text-align: center;
}

.frete-card-icone--pagamento {
  background: linear-gradient(135deg, var(--roxo-escuro) 0%, var(--roxo-principal) 100%);
}

.frete-card-icone::before {
  font-style: normal;
}

.frete-card--entrega .frete-card-icone::before {
  content: '📦';
}

.frete-card--pagamento .frete-card-icone::before {
  content: '💳';
}

.frete-card h3 {
  font-size: 1.25rem;
  color: var(--roxo-principal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.frete-card ul {
  list-style: none;
}

.frete-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--texto);
  font-size: 0.95rem;
  line-height: 1.5;
}

.frete-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--rosa-destaque);
  font-weight: 700;
}

/* ========== LANÇAMENTO ========== */
.lancamento {
  background: linear-gradient(180deg, rgba(107, 74, 122, 0.08) 0%, transparent 100%);
}

.lancamento-texto {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: #ead9f6;
  line-height: 1.7;
}

/* ========== RODAPÉ ========== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--borda-barra-roxa);
  text-align: center;
  background: var(--fundo-barra-roxa-rodape);
}

.footer-whatsapp {
  font-size: 1rem;
  color: var(--rosa-destaque);
  margin-bottom: 0.5rem;
}

.footer-whatsapp a {
  color: var(--rosa-destaque);
}

.footer-brand {
  font-family: var(--fonte-elegante);
  font-size: 0.95rem;
  color: var(--texto-sobre-roxo-suave);
}

.footer-links {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #e0c3ff;
}

.footer-links a:hover {
  color: var(--rosa-destaque);
}

/* ========== RESPONSIVO (MOBILE-FIRST) ========== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle .bar {
    display: block;
    height: 2px;
    background: var(--texto-sobre-roxo);
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1f1033 0%, #140021 100%);
    flex-direction: column;
    padding: 4rem 1.5rem 1.5rem;
    gap: 0;
    border-left: 1px solid var(--borda-barra-roxa);
    transform: translateX(100%);
    transition: transform var(--transicao);
    z-index: 99;
  }

  .nav-list.ativo {
    transform: translateX(0);
  }

  .nav-list li {
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  }

  .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .carrinho-item {
    flex-wrap: wrap;
  }

  .carrinho-item-qtd {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 769px) {
  .nav-list {
    display: flex !important;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    transform: none;
    border: none;
  }

  .nav-list li {
    border: none;
  }
}

/* ========== MODAL CHECKOUT (Cadastro + Frete + Pagamento) ========== */
.modal-overlay,
.modal-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.ativo,
.modal-checkout-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.modal-checkout,
.modal-finalizar {
  background: var(--fundo-card);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-fechar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--fundo);
  color: var(--texto);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transicao);
}

.modal-fechar:hover {
  background: var(--roxo-principal);
  color: #fff;
}

.modal-titulo {
  font-size: 1.35rem;
  color: var(--texto-titulo);
  margin-bottom: 0.25rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-bottom: 1.25rem;
}

.form-finalizar label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-titulo);
  margin-bottom: 0.35rem;
}

.form-finalizar input[type="text"],
.form-finalizar input[type="tel"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--fonte-moderna);
}

.form-finalizar input:focus {
  outline: none;
  border-color: var(--roxo-principal);
}

.input-cep-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.input-cep-wrap input {
  flex: 1;
  margin-bottom: 0;
}

.btn-calcular-frete {
  padding: 0.6rem 1rem;
  background: var(--roxo-principal);
  color: #fff;
  border: none;
  border-radius: var(--raio);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transicao);
}

.btn-calcular-frete:hover {
  filter: brightness(1.1);
}

.form-msg {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  min-height: 1.2em;
}

.form-msg.erro,
.form-checkout .form-erro {
  color: #b33;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.form-msg.ok {
  color: #2a7;
}

.form-endereco {
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}

.resumo-frete {
  background: var(--fundo);
  border-radius: var(--raio);
  padding: 1rem;
  margin-bottom: 1rem;
}

.resumo-frete p {
  margin-bottom: 0.35rem;
}

.resumo-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--borda);
  font-size: 1.1rem;
  color: var(--roxo-principal);
}

.forma-pagamento {
  border: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.forma-pagamento legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-titulo);
  margin-bottom: 0.5rem;
}

.radio-pagamento {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--texto);
}

.radio-pagamento input {
  width: auto;
  margin: 0;
}

.btn-confirmar-whatsapp {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: var(--raio);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicao);
}

.btn-confirmar-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-confirmar-whatsapp:disabled,
.btn-confirmar-pedido:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.btn-confirmar-pedido {
  width: 100%;
}

/* Modal checkout responsivo */
@media (max-width: 480px) {
  .modal-checkout,
  .modal-finalizar {
    margin: 0.5rem;
    max-height: 85vh;
    padding: 1.25rem;
  }
  .input-cep-wrap {
    flex-direction: column;
  }
  .btn-calcular-frete {
    width: 100%;
  }
}

/* Ajuste para banner quando imagem não carrega */
.banner-img-wrap:has(.banner-img[src=""]) ~ .banner-overlay,
.banner-img:not([src]) {
  opacity: 0;
}
