/* ============================================================
   MIMO JÁ - Estilos
   Paleta: rosa suave + dourado + creme — vibe carinhosa
   ============================================================ */

:root {
  --rosa:        #E91E63;
  --rosa-claro:  #FFE4EC;
  --rosa-medio:  #F8BBD0;
  --rosa-escuro: #AD1457;
  --dourado:     #C9A961;
  --creme:       #FFF8F3;
  --texto:       #3D2C2E;
  --texto-claro: #8B7B7D;
  --borda:       #F0E0E5;
  --verde:       #4CAF50;
  --vermelho:    #E53935;
  --amarelo:     #FFA726;
  --sombra:      0 4px 20px rgba(233, 30, 99, 0.08);
  --sombra-hover:0 8px 30px rgba(233, 30, 99, 0.15);
  --raio:        14px;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background: var(--creme);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--rosa-escuro); text-decoration: none; }
a:hover { color: var(--rosa); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- TOPO ---------- */
.topbar {
  background: linear-gradient(135deg, var(--rosa-escuro), var(--rosa));
  color: white;
  padding: 8px 0;
  font-size: 13px;
  text-align: center;
}
.topbar span { margin: 0 12px; }

header.main {
  background: white;
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--rosa);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo small {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--texto-claro);
  font-weight: 400;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 45px 12px 18px;
  border: 2px solid var(--borda);
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--rosa-medio); }
.search-bar .icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rosa);
  cursor: pointer;
}

.nav-icons { display: flex; gap: 16px; align-items: center; }
.nav-icons a {
  position: relative;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-icons a:hover { background: var(--rosa-claro); }
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--rosa);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- CATEGORIAS BARRA ---------- */
.cat-bar {
  background: white;
  border-bottom: 1px solid var(--borda);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-bar .container {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  flex-wrap: nowrap;
  min-width: max-content;
}
.cat-bar a {
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--rosa-claro);
  color: var(--rosa-escuro);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.cat-bar a:hover, .cat-bar a.active {
  background: var(--rosa);
  color: white;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--rosa-claro), #FFF0F5);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '❤';
  position: absolute;
  font-size: 200px;
  color: rgba(233, 30, 99, 0.05);
  z-index: 0;
}
.hero::before { top: -40px; left: -40px; }
.hero::after  { bottom: -80px; right: -40px; transform: rotate(15deg); }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  color: var(--rosa-escuro);
  margin-bottom: 12px;
  font-weight: 700;
}
.hero p {
  font-size: 18px;
  color: var(--texto);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero .btn-hero {
  background: var(--rosa);
  color: white;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  box-shadow: var(--sombra);
  transition: all 0.2s;
}
.hero .btn-hero:hover {
  background: var(--rosa-escuro);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

/* ---------- SEÇÃO ---------- */
section { padding: 50px 0; }
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--rosa-escuro);
}
.section-subtitle {
  text-align: center;
  color: var(--texto-claro);
  margin-bottom: 36px;
}

/* ---------- CATEGORIAS GRID ---------- */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.cat-card {
  background: white;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: all 0.2s;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
}
.cat-card .icon { font-size: 28px; margin-bottom: 4px; line-height: 1; }
.cat-card .nome { font-weight: 500; color: var(--texto); font-size: 12px; line-height: 1.3; }

@media (max-width: 900px) {
  .categorias-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .categorias-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-card { padding: 10px 4px; border-radius: 10px; }
  .cat-card .icon { font-size: 24px; }
  .cat-card .nome { font-size: 11px; }
}
@media (max-width: 380px) {
  .categorias-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- PRODUTOS GRID ---------- */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.produto-card {
  background: white;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.produto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}
.produto-card .img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--rosa-claro);
  overflow: hidden;
}
.produto-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.produto-card:hover .img-wrapper img { transform: scale(1.05); }
.produto-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rosa);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.produto-card .badge-lancamento {
  background: var(--dourado);
}
.card-stars {
  color: #FFC107;
  font-size: 14px;
  margin-bottom: 6px;
}
.produto-card .info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.produto-card .categoria {
  font-size: 11px;
  color: var(--rosa);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.produto-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--texto);
  line-height: 1.3;
  min-height: 42px;
}
.produto-card .precos { margin-top: auto; margin-bottom: 12px; }
.preco-antigo {
  text-decoration: line-through;
  color: var(--texto-claro);
  font-size: 13px;
  margin-right: 8px;
}
.preco {
  font-size: 22px;
  font-weight: 700;
  color: var(--rosa-escuro);
}
.btn {
  background: var(--rosa);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { background: var(--rosa-escuro); }
.btn:disabled { background: var(--texto-claro); cursor: not-allowed; }

.btn-outline {
  background: white;
  color: var(--rosa);
  border: 2px solid var(--rosa);
}
.btn-outline:hover { background: var(--rosa); color: white; }

/* ---------- PÁGINA PRODUTO ---------- */
.produto-detalhe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 0;
}
.produto-detalhe .img-grande {
  border-radius: var(--raio);
  overflow: hidden;
  background: white;
  box-shadow: var(--sombra);
  aspect-ratio: 1;
}
.produto-detalhe .img-grande img { width: 100%; height: 100%; object-fit: cover; }
.produto-detalhe h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  color: var(--rosa-escuro);
  margin-bottom: 12px;
}
.produto-detalhe .desc {
  font-size: 16px;
  color: var(--texto);
  margin: 20px 0;
  line-height: 1.7;
}
.produto-detalhe .preco-grande {
  font-size: 36px;
  font-weight: 700;
  color: var(--rosa);
  margin: 20px 0;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.qty-control button {
  width: 38px;
  height: 38px;
  border: 2px solid var(--rosa);
  background: white;
  color: var(--rosa);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
}
.qty-control button:hover { background: var(--rosa); color: white; }
.qty-control input {
  width: 60px;
  text-align: center;
  border: 2px solid var(--borda);
  padding: 8px;
  border-radius: 8px;
  font-size: 16px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- CARRINHO ---------- */
.carrinho-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  margin: 30px 0;
}
.carrinho-itens, .resumo {
  background: white;
  border-radius: var(--raio);
  padding: 24px;
  box-shadow: var(--sombra);
}
.carrinho-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--borda);
}
.carrinho-item:last-child { border-bottom: none; }
.carrinho-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.carrinho-item .nome { font-weight: 500; margin-bottom: 4px; }
.carrinho-item .preco-item { color: var(--rosa); font-weight: 600; }
.carrinho-item .remove {
  background: none;
  border: none;
  color: var(--vermelho);
  cursor: pointer;
  font-size: 20px;
}
.carrinho-item .qty-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carrinho-item .qty-mini button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--borda);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
}
.resumo h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--rosa-escuro);
}
.resumo .linha {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.resumo .total {
  font-size: 22px;
  font-weight: 700;
  color: var(--rosa-escuro);
  padding-top: 16px;
  margin-top: 12px;
  border-top: 2px solid var(--borda);
}
.cupom-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.cupom-box input {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--borda);
  border-radius: 8px;
  font-size: 13px;
  text-transform: uppercase;
}
.cupom-box button {
  background: var(--dourado);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--texto);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--borda);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--rosa-medio); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.required { color: var(--vermelho); }

.box {
  background: white;
  border-radius: var(--raio);
  padding: 24px;
  box-shadow: var(--sombra);
  margin-bottom: 20px;
}
.box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--rosa-escuro);
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; }
.alert-error   { background: #FFEBEE; color: #C62828; }
.alert-info    { background: var(--rosa-claro); color: var(--rosa-escuro); }

.vazio {
  text-align: center;
  padding: 60px 20px;
  color: var(--texto-claro);
}
.vazio .icone { font-size: 80px; margin-bottom: 16px; }

/* ---------- SUCESSO ---------- */
.sucesso-box {
  text-align: center;
  padding: 60px 30px;
  background: white;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  margin: 40px auto;
  max-width: 600px;
}
.sucesso-box .icone {
  font-size: 80px;
  margin-bottom: 16px;
}
.sucesso-box h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--rosa);
  margin-bottom: 8px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--rosa-escuro);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
footer h4 {
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
}
footer a { color: var(--rosa-claro); display: block; padding: 4px 0; }
footer a:hover { color: white; }
footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--rosa-medio);
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); color: white; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p  { font-size: 14px; }
  /* Corações decorativos do hero — menores no mobile */
  .hero::before, .hero::after {
    font-size: 100px;
  }
  .hero::before { top: -20px; left: -20px; }
  .hero::after  { bottom: -40px; right: -20px; }

  /* ===== HEADER MOBILE ===== */
  header.main .container {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 12px;
  }
  /* Logo menor */
  .logo { font-size: 22px; gap: 6px; }
  .logo small { font-size: 9px; letter-spacing: 0.5px; }

  /* Nav icones: só ícone (esconde texto), mas mantém badge */
  .nav-icons { gap: 6px; }
  .nav-icons a {
    padding: 8px;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 0;
  }
  /* Esconde só os spans de TEXTO (não o emoji nem o badge) */
  .nav-icons a > span:nth-child(2):not(.cart-count) { display: none; }
  /* Emoji maior pra ficar visível */
  .nav-icons a > span:first-child { font-size: 22px; line-height: 1; }
  /* Badge de carrinho ajustado pra não cortar */
  .cart-count {
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    border: 2px solid white;
  }

  /* Busca em linha cheia */
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .search-bar input { font-size: 14px; padding: 10px 14px; }

  /* Topbar compacta */
  .topbar { font-size: 11px; padding: 6px 8px; }
  .topbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
  .topbar span { margin: 0; white-space: nowrap; }

  /* ===== PRODUTO ===== */
  .produto-detalhe { grid-template-columns: 1fr; gap: 24px; }
  .produto-detalhe h1 { font-size: 26px; }

  /* ===== CARRINHO / CHECKOUT ===== */
  .carrinho-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  /* Em telas BEM pequenas, esconde topbar pra ganhar espaço */
  .topbar { display: none; }
  header.main .container { padding: 10px 12px; }

  /* Logo ainda menor + esconde subtítulo */
  .logo { font-size: 19px; }
  .logo small { display: none; }

  /* Nav: 3 botões em 1 linha — emojis maiores */
  .nav-icons a {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }
  .nav-icons a > span:first-child { font-size: 24px; }

  /* Busca mais compacta */
  .search-bar input { padding: 9px 12px; font-size: 14px; }

  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 13px; }
  /* Esconde corações decorativos do hero em telas bem pequenas */
  .hero::before, .hero::after { display: none; }
  .hero { padding: 36px 0; }
}

/* ============================================================
   COMPONENTES EXTRAS - login, conta, galeria, avaliações
   ============================================================ */

/* ---------- BARRA SUPERIOR DE LINKS DE CLIENTE ---------- */
.top-cliente { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.top-cliente a { color: var(--texto); text-decoration: none; }
.top-cliente a:hover { color: var(--rosa); }
.top-cliente .pipe { color: var(--borda); }

/* ---------- ESTRELAS DE AVALIAÇÃO ---------- */
.stars { display: inline-flex; gap: 2px; font-size: 14px; color: #FFB400; line-height: 1; }
.stars-input { display: inline-flex; gap: 4px; }
.stars-input span {
  cursor: pointer;
  font-size: 28px;
  color: #ddd;
  transition: color 0.15s;
}
.stars-input span.active,
.stars-input span:hover,
.stars-input span:hover ~ span:not(.active) { color: #FFB400; }

/* ---------- GALERIA DE PRODUTO ---------- */
.galeria { display: flex; gap: 12px; }
.galeria .miniaturas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
}
.galeria .miniatura {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: white;
}
.galeria .miniatura.active { border-color: var(--rosa); }
.galeria .miniatura img { width: 100%; height: 100%; object-fit: cover; }
.galeria .principal {
  flex: 1;
  border-radius: var(--raio);
  overflow: hidden;
  background: white;
  box-shadow: var(--sombra);
  aspect-ratio: 1;
}
.galeria .principal img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* ---------- ABAS ---------- */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--borda);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tabs button {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-claro);
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tabs button:hover { color: var(--rosa); }
.tabs button.active {
  color: var(--rosa-escuro);
  border-bottom-color: var(--rosa);
  font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- BADGES ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.tag-destaque { background: var(--rosa); color: white; }
.tag-lancamento { background: var(--dourado); color: white; }
.tag-promocao { background: #FF6B35; color: white; }

/* ---------- FAVORITO (coração) ---------- */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-claro);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 2;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--rosa); }

/* ---------- PARCELAMENTO ---------- */
.parcelamento {
  font-size: 14px;
  color: var(--verde);
  margin: 4px 0;
  font-weight: 500;
}
.pix-info {
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pix-info strong { color: #2E7D32; }

/* ---------- BOX RESUMO PIX/CARTÃO ---------- */
.payment-box {
  background: white;
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  padding: 20px;
  text-align: center;
}
.payment-box.pix img {
  max-width: 220px;
  margin: 12px auto;
  display: block;
  border-radius: 12px;
}
.copy-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.copy-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
}
.copy-box button {
  background: var(--rosa);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- OPÇÕES DE FRETE / PAGAMENTO (radio cards) ---------- */
.opt-cards { display: grid; gap: 10px; }
.opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--borda);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.opt-card:hover { border-color: var(--rosa-medio); background: #FFF8FA; }
.opt-card.selected {
  border-color: var(--rosa);
  background: var(--rosa-claro);
}
.opt-card input[type=radio] { margin: 0; }
.opt-card .opt-icon { font-size: 28px; }
.opt-card .opt-body { flex: 1; }
.opt-card .opt-title { font-weight: 600; }
.opt-card .opt-sub { font-size: 12px; color: var(--texto-claro); }
.opt-card .opt-price { font-weight: 700; color: var(--rosa-escuro); }
.opt-card .opt-price.free { color: var(--verde); }

/* ---------- PAINEL DO CLIENTE ---------- */
.conta-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin: 30px 0;
}
.conta-menu {
  background: white;
  border-radius: var(--raio);
  padding: 18px 0;
  box-shadow: var(--sombra);
  height: max-content;
}
.conta-menu .user-info {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 12px;
}
.conta-menu .user-info .nome {
  font-weight: 600;
  color: var(--rosa-escuro);
}
.conta-menu .user-info .email {
  font-size: 12px;
  color: var(--texto-claro);
}
.conta-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--texto);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.conta-menu a:hover { background: var(--rosa-claro); color: var(--rosa-escuro); }
.conta-menu a.active {
  background: var(--rosa-claro);
  color: var(--rosa-escuro);
  border-left-color: var(--rosa);
  font-weight: 500;
}
.conta-content {
  background: white;
  border-radius: var(--raio);
  padding: 28px;
  box-shadow: var(--sombra);
}
.conta-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--rosa-escuro);
  margin-bottom: 20px;
}

/* ---------- PEDIDO CARD (no painel cliente) ---------- */
.pedido-card {
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.pedido-card:hover {
  border-color: var(--rosa-medio);
  box-shadow: var(--sombra);
}
.pedido-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.pedido-card-header .id-data {
  font-size: 13px;
  color: var(--texto-claro);
}
.pedido-card-header .id-data strong { color: var(--rosa-escuro); }

.status-pill {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-novo         { background: #FFE0B2; color: #E65100; }
.status-confirmado   { background: #BBDEFB; color: #1565C0; }
.status-em_producao  { background: #E1BEE7; color: #6A1B9A; }
.status-em_entrega   { background: #FFF9C4; color: #F57F17; }
.status-entregue     { background: #C8E6C9; color: #2E7D32; }
.status-cancelado    { background: #FFCDD2; color: #C62828; }

/* ---------- LOGIN/CADASTRO ---------- */
.auth-page {
  max-width: 440px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.auth-page h1 {
  font-family: 'Playfair Display', serif;
  color: var(--rosa-escuro);
  text-align: center;
  margin-bottom: 6px;
}
.auth-page .sub {
  color: var(--texto-claro);
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}
.auth-page .form-group input {
  padding: 12px 14px;
}
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; color: var(--texto-claro); }
.auth-link a { color: var(--rosa); font-weight: 500; }

@media (max-width: 768px) {
  .conta-layout { grid-template-columns: 1fr; }
  .galeria { flex-direction: column-reverse; }
  .galeria .miniaturas { flex-direction: row; width: 100%; overflow-x: auto; }
  .auth-page { padding: 24px; margin: 20px; }
}


/* Preço PIX (na página do produto) */
.preco-pix {
  margin-top: 8px;
  font-size: 16px;
  color: #2E7D32;
  display: flex; align-items: center; gap: 6px;
}
.preco-pix strong { font-size: 18px; color: #1B5E20; }
.pix-econ {
  background: #C8E6C9; color: #1B5E20;
  padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
}

/* ---------- PAGINAÇÃO ---------- */
.paginacao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}
.paginacao .pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: white;
  color: var(--texto);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--borda);
  transition: all 0.15s;
  font-size: 14px;
}
.paginacao .pag-btn:hover:not(.disabled):not(.active) {
  border-color: var(--rosa);
  color: var(--rosa);
  transform: translateY(-1px);
}
.paginacao .pag-btn.active {
  background: var(--rosa);
  color: white;
  border-color: var(--rosa);
  pointer-events: none;
}
.paginacao .pag-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.paginacao .pag-elipse {
  padding: 0 6px;
  color: var(--texto-claro);
}
@media (max-width: 500px) {
  .paginacao .pag-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px; }
}

/* ============================================================
   TOAST de notificação
   ============================================================ */
.mimo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 100px);
  background: linear-gradient(135deg, var(--rosa-escuro), var(--rosa));
  color: white;
  padding: 14px 24px;
  border-radius: 30px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(173, 20, 87, 0.4);
  font-weight: 500;
  font-size: 14px;
  max-width: calc(100vw - 32px);
  text-align: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(.4,1.4,.6,1);
  pointer-events: none;
}
.mimo-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ============================================================
   AJUSTES MOBILE GERAIS — evitar zoom forçado pelo navegador
   ============================================================ */

/* Garante que NADA cause scroll horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* iOS Safari: campos com font-size < 16px causam zoom automático ao focar */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Botões grandes o suficiente pra dedo (Apple HIG: 44x44) */
@media (max-width: 768px) {
  button, .btn, .btn-sm, a.btn {
    min-height: 44px;
  }
  .btn-sm { min-height: 36px; padding: 8px 14px; }

  /* Container com padding menor pra ganhar espaço */
  .container { padding-left: 14px; padding-right: 14px; }

  /* Cards de produto: 2 colunas em vez de 1 sozinho ocupando tela toda */
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .produto-card .img-wrapper { height: 160px; }
  .produto-card .info { padding: 10px; }
  .produto-card h3 { font-size: 14px; line-height: 1.3; min-height: 36px; }
  .produto-card .preco { font-size: 16px; }
  .produto-card .preco-antigo { font-size: 12px; }
  .produto-card .categoria { font-size: 11px; }
  .produto-card .btn { padding: 8px 10px; font-size: 13px; }

  /* Footer compacto */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Telas BEM pequenas (320-400px) */
@media (max-width: 380px) {
  .produtos-grid { gap: 8px; }
  .produto-card .img-wrapper { height: 130px; }
  .produto-card h3 { font-size: 13px; min-height: 34px; }
  .produto-card .info { padding: 8px; }
}
