/* ================================
   Pimenta Rosa — Estilos Globais
   ================================ */

:root {
  --pink:       #C2185B;
  --pink-dark:  #880E4F;
  --pink-med:   #E91E8C;
  --pink-light: #F48FB1;
  --pink-pale:  #FCE4EC;
  --cream:      #FFF9FB;
  --text:       #1A1A1A;
  --muted:      #6c757d;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--cream);
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }

.text-pink      { color: var(--pink) !important; }
.bg-rosa-claro  { background: var(--pink-pale); }
.xsmall         { font-size: .75rem; }

/* ================================
   Topo informativo
   ================================ */
.topo-info {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  color: white;
  font-size: .8rem;
  padding: 6px 0;
}

/* ================================
   Navbar
   ================================ */
.navbar { padding: 10px 0; }

/* Logo da loja */
.navbar-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer-logo-wrap { }
.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
}
.brand-icon { font-size: 1.4rem; }

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: all .2s;
}
.nav-link:hover { background: var(--pink-pale); color: var(--pink) !important; }

.busca-input { border-color: #e0e0e0; font-size: .85rem; }
.btn-outline-pink {
  border-color: var(--pink); color: var(--pink);
  font-size: .85rem;
}
.btn-outline-pink:hover { background: var(--pink); color: white; }

.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem;
  padding: 4px 8px; border-radius: 8px; transition: .2s;
}
.btn-icon:hover { color: var(--pink); background: var(--pink-pale); }

.btn-cart {
  position: relative; color: var(--text);
  font-size: 1.2rem; padding: 4px 8px;
  border-radius: 8px; transition: .2s;
}
.btn-cart:hover { color: var(--pink); background: var(--pink-pale); }

.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--pink); color: white;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ================================
   Botões
   ================================ */
.btn-pink {
  background: var(--pink); color: white; border: none;
  border-radius: 8px; font-weight: 600; transition: .2s;
}
.btn-pink:hover { background: var(--pink-dark); color: white; transform: translateY(-1px); }

.btn-white { background: white; color: var(--pink); border: none; border-radius: 8px; font-weight: 700; }
.btn-white:hover { background: var(--pink-pale); color: var(--pink-dark); }

/* ================================
   Hero
   ================================ */
.hero {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 50%, #FF6BAE 100%);
  min-height: 480px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

/* Logo marca d'água no hero */
.hero-logo-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; max-width: 500px;
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}
.hero-overlay { width: 100%; padding: 60px 0; }

.hero-sub   { font-size: 1rem; opacity: .8; letter-spacing: 2px; text-transform: uppercase; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero-desc  { font-size: 1.1rem; opacity: .9; max-width: 520px; margin: 0 auto; }

.hero-interno {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  padding: 60px 0;
}

/* ================================
   Diferenciais
   ================================ */
.diferencial { padding: 16px 8px; }
.diferencial i { display: block; margin-bottom: 6px; }

/* ================================
   Categorias
   ================================ */
.categoria-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px;
  background: white;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: .2s;
  color: var(--text);
}
.categoria-card:hover {
  border-color: var(--pink);
  background: var(--pink-pale);
  transform: translateY(-3px);
  color: var(--pink);
}

.cat-icon { font-size: 1.6rem; margin-bottom: 8px; color: var(--pink); }
.cat-name { font-size: .82rem; font-weight: 600; text-align: center; }

/* ================================
   Seção Títulos
   ================================ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-dark);
}

/* ================================
   Cards de Produto
   ================================ */
.produto-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: .25s;
}
.produto-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.produto-img-wrap {
  position: relative;
  background: var(--pink-pale);
  aspect-ratio: 1;
  overflow: hidden;
}
.produto-img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .3s;
}
.produto-card:hover .produto-img { transform: scale(1.04); }

.produto-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--pink-pale);
  color: var(--pink-light);
}
.produto-img-placeholder.grande { min-height: 320px; border-radius: var(--radius); }

.badge-oferta {
  position: absolute; top: 10px; right: 10px;
  background: #E53935; color: white;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.badge-destaque {
  position: absolute; top: 10px; left: 10px;
  background: var(--pink); color: white;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.badge-esgotado {
  position: absolute; top: 10px; left: 10px;
  background: #616161; color: white;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.cart-toast {
  background: #ffffff;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.15) !important;
  min-width: 320px;
  border-left: 4px solid var(--pink) !important;
}
.badge-cat {
  background: var(--pink-pale); color: var(--pink);
  font-size: .72rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px;
}

.produto-body { padding: 14px; }
.produto-cat  { font-size: .72rem; font-weight: 700; color: var(--pink); letter-spacing: .5px; text-transform: uppercase; }
.produto-nome { margin: 4px 0 8px; font-size: .92rem; line-height: 1.3; }
.produto-nome a { color: var(--text); font-weight: 600; }
.produto-nome a:hover { color: var(--pink); }

.preco-orig   { color: var(--muted); font-size: .8rem; display: block; }
.preco-atual  { color: var(--pink); font-weight: 700; font-size: 1rem; }

/* Detalhe produto */
.produto-detalhe-nome { font-size: 1.7rem; font-weight: 700; }
.preco-atual-grande { color: var(--pink); font-size: 1.8rem; font-weight: 700; margin-top: 4px; }

/* ================================
   Banner Atacado
   ================================ */
.banner-atacado {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 100%);
}

/* ================================
   Newsletter
   ================================ */
.newsletter-box {
  border: 2px dashed var(--pink-light);
  border-radius: var(--radius);
  background: var(--pink-pale);
}

/* ================================
   Filtros
   ================================ */
.filtro-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.filtro-link {
  color: var(--muted);
  font-size: .88rem;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  transition: .15s;
}
.filtro-link:hover, .filtro-link.ativo {
  color: var(--pink);
  background: var(--pink-pale);
  font-weight: 600;
}

/* ================================
   Carrinho
   ================================ */
.cart-img-thumb { width: 56px; height: 56px; flex-shrink: 0; }
.cart-img-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cart-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--pink-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ================================
   Footer
   ================================ */
.footer { background: #1a0a10; color: rgba(255,255,255,.85); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--pink-light); }
.footer-title { color: var(--pink-light); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .88rem; transition: .15s; }
.footer-links a:hover { color: var(--pink-light); }
.footer .text-muted { color: rgba(255,255,255,.65) !important; }
.footer hr { border-color: rgba(255,255,255,.15); }
.footer .text-center.text-muted { color: rgba(255,255,255,.55) !important; }

.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: .2s;
}
.social-btn:hover { background: var(--pink); color: white; transform: scale(1.1); }
.social-btn.green:hover { background: #25D366; }
.social-btn.instagram { background: var(--pink); color: white; }
.social-btn.instagram:hover { background: var(--pink-dark); }
.social-btn.whatsapp { background: #25D366; color: white; }
.social-btn.whatsapp:hover { background: #1da851; }
.social-btn.large { width: 44px; height: 44px; font-size: 1.1rem; }

/* ================================
   Botões Flutuantes
   ================================ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366; color: white;
  border-radius: 50%; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 9999; transition: .2s;
  animation: pulse-wa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.12); color: white; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.8), 0 0 0 8px rgba(37,211,102,.15); }
}

.carrinho-float {
  position: fixed; bottom: 92px; right: 24px;
  width: 56px; height: 56px;
  background: var(--pink); color: white;
  border-radius: 50%; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(232,118,156,.5);
  z-index: 9999; transition: .2s; text-decoration: none;
}
.carrinho-float:hover { transform: scale(1.12); color: white; }
.carrinho-float .float-badge {
  position: absolute; top: -4px; right: -4px;
  background: #e53935; color: white;
  font-size: .65rem; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ================================
   Sobre
   ================================ */
.sobre-img-box {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink-pale);
}
.sobre-img-placeholder {
  min-height: 340px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}

.numero-card {
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--pink-pale);
}
.numero-valor { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--pink); }
.numero-label { font-size: .8rem; color: var(--muted); }

.valor-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  height: 100%;
}

/* ================================
   Contato
   ================================ */
.contato-item { display: flex; gap: 16px; align-items: flex-start; }
.contato-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--pink-pale); color: var(--pink);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ================================
   Admin
   ================================ */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 4px solid var(--pink);
}
.stat-val { font-size: 2rem; font-weight: 700; color: var(--pink); font-family: 'Playfair Display', serif; }
.stat-label { font-size: .82rem; color: var(--muted); }

.bg-pink-light { background: var(--pink-pale) !important; }
.text-pink { color: var(--pink) !important; }

/* ================================
   Timeline de Status do Pedido
   ================================ */
.status-timeline {
  display: flex; align-items: center; gap: 0;
}
.timeline-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 0 0 auto;
}
.timeline-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  background: #e9ecef; color: #aaa;
  border: 2px solid #e9ecef;
  transition: .3s;
}
.timeline-step.ativo  .timeline-icon { background: var(--pink); color: white; border-color: var(--pink); }
.timeline-step.passado .timeline-icon { background: #198754; color: white; border-color: #198754; }
.timeline-label { font-size: .72rem; color: var(--muted); text-align: center; max-width: 80px; }
.timeline-step.ativo  .timeline-label { color: var(--pink); font-weight: 700; }
.timeline-step.passado .timeline-label { color: #198754; }

.timeline-linha {
  flex: 1; height: 3px; background: #e9ecef; margin: 0 4px; margin-bottom: 22px;
  transition: .3s;
}
.timeline-linha.completa { background: #198754; }

/* ================================
   Checkout / Pagamento
   ================================ */
.pagamento-card {
  border: 2px solid #e9ecef;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.pagamento-card:hover { border-color: var(--pink-light); }

.pagamento-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer;
  background: white;
}
.pagamento-header:hover { background: var(--pink-pale); }

.pagamento-body {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  padding: 0 20px;
}

.pag-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pix-icon { background: #E8FAF8; }
.wa-icon  { background: #E8F8EB; }

.pag-chevron { color: var(--muted); transition: transform .25s; }

.btn-pix {
  background: #32BCAD; color: white; border: none;
  border-radius: 8px; font-weight: 600; transition: .2s;
}
.btn-pix:hover { background: #28a095; color: white; transform: translateY(-1px); }

.pix-badge {
  display: inline-flex; align-items: center;
  background: #E8FAF8; border-radius: 12px;
  padding: 8px 16px;
}

.pix-valor-badge {
  background: var(--pink-pale);
  border-radius: 12px; padding: 12px 24px;
  display: inline-block;
}

.passo-a-passo { background: #f8f9fa; border-radius: 10px; padding: 16px; }
.passo-num {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--pink); color: white;
  border-radius: 50%; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.confirmado-icon {
  font-size: 5rem; color: #32BCAD;
}

.pix-qr-wrap {
  width: 180px; height: 180px;
  padding: 8px; border: 2px solid #e9ecef;
  border-radius: 12px; background: white;
}
.pix-qr-wrap img { width: 100%; height: 100%; }

/* ================================
   Login / Conta cliente
   ================================ */
.dropdown-toggle-clean {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.2rem;
  padding: 4px 8px; border-radius: 8px; transition: .2s;
}
.dropdown-toggle-clean:hover { color: var(--pink); background: var(--pink-pale); }
.dropdown-toggle-clean::after { display: none; }

/* ================================
   Admin — abas
   ================================ */
#adminTabs .nav-link { color: var(--muted); font-size: .88rem; }
#adminTabs .nav-link.active { color: var(--pink); border-bottom-color: transparent; font-weight: 700; }

/* ================================
   Seletor de Cores — Admin
   ================================ */
.cor-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; position: relative;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.cor-label:hover { transform: scale(1.12); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.cor-check-icon { display: none; font-size: .75rem; }
.cor-nome {
  position: absolute; bottom: -18px;
  font-size: .6rem; color: #555; white-space: nowrap;
  text-align: center; width: 70px;
}
.cor-input:checked + .cor-label { transform: scale(1.1); box-shadow: 0 0 0 3px var(--pink), 0 4px 12px rgba(0,0,0,.3); }
.cor-input:checked + .cor-label .cor-check-icon { display: block; }
.cor-check { margin-bottom: 22px; }

/* ================================
   Responsivo
   ================================ */
@media (max-width: 576px) {
  .hero { min-height: 360px; }
  .hero-title { font-size: 2rem; }
  .produto-detalhe-nome { font-size: 1.3rem; }
  .section-title { font-size: 1.3rem; }
}
