/* ── Tokens ──────────────────────────────────────── */
/* Mesma paleta da landing page (clientes/suzane/site/style.css) —
   copiada aqui porque a loja é um projeto/hospedagem separada
   (suzzanerodrigues.store), não um deploy compartilhado. Se a
   paleta da landing mudar, replicar aqui também. */
:root {
  --wine:       #4A3830;
  --wine-d:     #2A211C;
  --wine-l:     #6B5347;
  --blush:      #A69C90;
  --blush-l:    #C4BAAE;
  --pink:       #7A6A5C;
  --bg:         #F7F4F0;
  --surface:    #EAE5DE;
  --text:       #2A211C;
  --muted:      #6B6259;
  --faint:      #A39B90;
  --white:      #FFFFFF;
  --border:     rgba(42,33,28,.12);
  --ok:         #5B7A5E;
  --ok-bg:      #E7EDE7;

  --font: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-script: 'Playfair Display', Georgia, serif;
  --font-tagline: 'Lora', Georgia, serif;

  --shadow: 0 4px 20px rgba(42,33,28,.08);
  --shadow-m: 0 8px 40px rgba(42,33,28,.16);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }
ul { list-style: none; }
input, select { font-family: var(--font); }

/* ── Utilities ───────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.text-center { text-align: center; }
.surface-blush { background: var(--surface); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.section-title { font-family: var(--font-script); font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 620px; }

.btn-wine {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wine); color: var(--white);
  padding: 13px 26px; border-radius: 100px; font-size: .88rem; font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn-wine:hover { background: var(--wine-l); }
.btn-outline-wine {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--wine); border: 2px solid var(--wine);
  padding: 11px 24px; border-radius: 100px; font-size: .88rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-outline-wine:hover { background: var(--wine); color: var(--white); }
.btn-blush {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blush-l); color: var(--wine-d);
  padding: 13px 26px; border-radius: 100px; font-size: .88rem; font-weight: 700;
  transition: background .15s;
}
.btn-blush:hover { background: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: .95rem; }
.btn-wine:disabled, .btn-outline-wine:disabled { opacity: .5; cursor: not-allowed; }

/* ── Header ──────────────────────────────────────── */
#header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(247,244,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hd-inner { height: 76px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: flex; color: var(--wine); }
.logo-word { display: flex; flex-direction: column; line-height: 1.1; }
.logo-script { font-family: var(--font-script); font-style: italic; font-size: 1.15rem; font-weight: 700; color: var(--wine); }
.logo-sub { font-size: .58rem; letter-spacing: .28em; color: var(--muted); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--text); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--wine); }

.hd-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cart-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--wine-d); transition: background .15s; }
.cart-btn:hover { background: var(--surface); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 100px; background: var(--wine); color: var(--white);
  font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

.ham { display: none; flex-direction: column; gap: 5px; width: 26px; }
.ham span { display: block; width: 100%; height: 2px; background: var(--wine); transition: transform .25s, opacity .2s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-nav { display: none; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.mob-nav.open { display: flex; }
.mob-nav a { padding: 12px 0; font-size: .95rem; border-bottom: 1px solid var(--border); }

/* ── Banner de aviso (loja em fase de lançamento) ── */
.loja-aviso {
  background: var(--wine-d); color: var(--blush-l);
  font-size: .8rem; text-align: center; padding: 9px 16px; line-height: 1.5;
}

/* ── Hero da loja ──────────────────────────────────  */
/* ── Banner/carrossel do hero (vitrine, não texto solto) ──── */
.hb { position: relative; background: var(--wine-l); overflow: hidden; }
.hb-track { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.hb-slide { flex: 0 0 100%; min-width: 0; }
.hb-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 72px 24px;
}
.hb-text { color: var(--white); }
.hb-text .eyebrow { color: var(--blush-l); }
.hb-text h1 {
  font-family: var(--font-script); font-size: clamp(2rem, 3vw + 1.1rem, 3rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 16px; color: var(--white);
}
.hb-text h1 em { font-style: italic; color: var(--blush-l); }
.hb-sub { color: rgba(255,255,255,.75); font-size: 1.02rem; line-height: 1.65; margin-bottom: 24px; max-width: 460px; }
.hb-photo {
  aspect-ratio: 1/1; background: var(--white); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
}
.hb-photo img { width: 100%; height: 100%; object-fit: contain; padding: 36px; }

.hb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14);
  color: var(--white); font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hb-arrow:hover { background: rgba(255,255,255,.28); }
.hb-prev { left: 20px; }
.hb-next { right: 20px; }

.hb-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hb-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .15s, transform .15s; }
.hb-dot.active { background: var(--white); transform: scale(1.3); }

@media(max-width:768px) {
  .hb-inner { grid-template-columns: 1fr; padding: 40px 20px 56px; gap: 24px; text-align: center; }
  .hb-text { order: 2; }
  .hb-photo { order: 1; max-width: 260px; margin: 0 auto; }
  .hb-sub { margin-left: auto; margin-right: auto; }
  .hb-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .hb-prev { left: 8px; }
  .hb-next { right: 8px; }
}

/* ── Filtro de categorias ──────────────────────────── */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 40px; }
.cat-chip {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--white); color: var(--muted); font-size: .82rem; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-chip:hover { border-color: var(--wine); color: var(--wine); }
.cat-chip.active { background: var(--wine); color: var(--white); border-color: var(--wine); }

/* ── Grid de produtos ──────────────────────────────── */
.produtos-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.produto-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.produto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.produto-card-img { position: relative; aspect-ratio: 1/1; background: var(--white); overflow: hidden; }
/* object-fit:contain (não cover) — fotos de produto de catálogo (fundo
   branco, item centralizado) não podem ser cortadas nas bordas. */
.produto-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.produto-badge {
  position: absolute; top: 10px; left: 10px; background: var(--wine); color: var(--white);
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
}
.produto-esgotado-overlay {
  position: absolute; inset: 0; background: rgba(247,244,240,.72);
  display: flex; align-items: center; justify-content: center;
}
.produto-esgotado-overlay span {
  background: var(--wine-d); color: var(--white); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
}
.produto-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produto-cat { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pink); }
.produto-nome { font-family: var(--font-heading); font-size: .92rem; font-weight: 700; color: var(--wine-d); line-height: 1.35; }
.produto-nome a { color: inherit; }
.produto-preco-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.produto-preco { font-size: 1.1rem; font-weight: 700; color: var(--wine); }
.produto-preco-de { font-size: .78rem; color: var(--faint); text-decoration: line-through; }
.produto-add {
  margin-top: 10px; width: 100%; padding: 10px; border-radius: 100px;
  background: var(--surface); color: var(--wine-d); font-size: .8rem; font-weight: 700;
  border: 1px solid var(--border); transition: background .15s, color .15s;
}
.produto-add:hover:not(:disabled) { background: var(--wine); color: var(--white); }

/* ── Placeholder honesto (sem produto real ainda) ──── */
.placeholder-note {
  max-width: 640px; margin: 0 auto 32px; text-align: center;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 14px;
  padding: 16px 20px; font-size: .82rem; color: var(--muted); line-height: 1.6;
}

/* ── Página de produto ─────────────────────────────── */
.produto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.produto-galeria-principal {
  aspect-ratio: 1/1; border-radius: 20px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--wine-l);
}
.produto-galeria-principal img { width: 100%; height: 100%; object-fit: contain; padding: 32px; box-sizing: border-box; }
.produto-galeria-principal svg { width: 45%; }
.produto-galeria-thumbs { display: flex; gap: 10px; }
.produto-thumb { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface); flex-shrink: 0; }
.produto-thumb.active { border-color: var(--wine); }
.produto-thumb img { width: 100%; height: 100%; object-fit: cover; }

.produto-info-cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.produto-info-nome { font-family: var(--font-script); font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.produto-info-preco { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.produto-info-preco .preco { font-size: 1.7rem; font-weight: 700; color: var(--wine); }
.produto-info-preco .parcela { font-size: .82rem; color: var(--muted); }
.produto-estoque { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.produto-info-desc { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.produto-info-desc p { margin-bottom: 12px; }

.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 100px; overflow: hidden; width: fit-content; }
.qty-stepper button { width: 40px; height: 40px; font-size: 1.1rem; color: var(--wine); }
.qty-stepper button:hover { background: var(--surface); }
.qty-stepper input { width: 44px; text-align: center; border: none; font-size: .95rem; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.produto-acoes { display: flex; gap: 14px; align-items: center; margin: 20px 0 8px; flex-wrap: wrap; }

/* ── Carrinho ──────────────────────────────────────── */
.carrinho-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.carrinho-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.carrinho-item-img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.carrinho-item-img img { width: 100%; height: 100%; object-fit: cover; }
.carrinho-item-nome { font-family: var(--font-heading); font-weight: 700; font-size: .92rem; color: var(--wine-d); margin-bottom: 4px; }
.carrinho-item-preco { font-size: .85rem; color: var(--muted); }
.carrinho-item-remove { font-size: .76rem; color: var(--pink); font-weight: 600; margin-top: 6px; }
.carrinho-item-total { font-weight: 700; color: var(--wine); text-align: right; white-space: nowrap; }

.resumo-box { background: var(--white); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.resumo-linha { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.resumo-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; color: var(--wine-d); padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }

.carrinho-vazio { text-align: center; padding: 60px 24px; color: var(--muted); }
.carrinho-vazio svg { width: 56px; height: 56px; color: var(--faint); margin: 0 auto 16px; }

/* ── Footer ────────────────────────────────────────── */
footer { background: var(--wine-d); padding: 40px 0 26px; }
.foot-inner { text-align: center; }
.foot-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.foot-logo .logo-script { color: var(--blush-l); }
.foot-social a { font-size: .82rem; color: rgba(255,255,255,.7); margin: 0 10px; }
.foot-social a:hover { color: var(--white); }
.foot-copy { font-size: .74rem; color: rgba(255,255,255,.55); margin-top: 14px; }
.foot-credit { text-decoration: underline; text-underline-offset: 2px; }

@media(max-width:1024px) {
  .produtos-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .produto-layout { grid-template-columns: 1fr; gap: 32px; }
  .carrinho-layout { grid-template-columns: 1fr; }
  .resumo-box { position: static; }
  .nav-links { display: none; }
  .ham { display: flex; }
}
@media(max-width:640px) {
  .produtos-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .produto-card-body { padding: 12px; }
  .carrinho-item { grid-template-columns: 56px 1fr; }
  .carrinho-item-total { grid-column: 2; text-align: left; }
}

/* ── Cookie consent ──────────────────────────────────
   Site ainda não usa nenhum cookie de rastreamento (só localStorage
   pro carrinho, que não é cookie e não precisa desse aviso por lei —
   mas deixamos a estrutura pronta e visível, pra já cobrir o dia que
   entrar analytics/pixel: o script só carrega depois do "Aceitar",
   mesmo padrão do initCookieConsent() do site institucional da FRAMEUP). */
#cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: -160px;
  max-width: 640px; margin: 0 auto; z-index: 700;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow-m);
  transition: bottom .4s ease;
}
#cookie-banner.show { bottom: 20px; }
#cookie-banner p { font-size: .8rem; color: var(--muted); margin: 0; flex: 1 1 300px; line-height: 1.5; }
#cookie-banner p a { color: var(--wine); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { padding: 9px 18px; font-size: .82rem; }
@media(max-width:640px) {
  #cookie-banner { left: 10px; right: 10px; padding: 16px; }
}

/* ── Luna Beauty — assistente ─────────────────────────
   Chat com roteiro fixo (nome → dúvida), sem IA generativa
   conectada. Respostas batem contra o CATALOGO real do script.js;
   fora do escopo de produto, oferece transferir pro WhatsApp da
   Suzzane — nunca inventa resposta sobre o que não sabe. */
#luna-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 650;
  width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 8px 26px rgba(42,33,28,.35);
  transition: transform .15s;
}
#luna-btn:hover { transform: scale(1.06); }
#luna-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

#luna-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 660;
  width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-m);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#luna-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.luna-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--wine); color: var(--white); flex-shrink: 0; }
.luna-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.luna-avatar img { width: 100%; height: 100%; object-fit: cover; }
.luna-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.luna-head-text strong { font-family: var(--font-heading); font-size: .88rem; }
.luna-head-text span { font-size: .7rem; color: rgba(255,255,255,.7); }
#luna-close { color: var(--white); font-size: 1.3rem; line-height: 1; padding: 4px; opacity: .8; }
#luna-close:hover { opacity: 1; }

.luna-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.luna-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .84rem; line-height: 1.5; }
.luna-msg.bot { align-self: flex-start; background: var(--white); color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.luna-msg.user { align-self: flex-end; background: var(--wine); color: var(--white); border-bottom-right-radius: 4px; }
.luna-msg a.luna-wa-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: #25d366; color: var(--white); font-weight: 700; font-size: .78rem;
  padding: 8px 14px; border-radius: 100px;
}
.luna-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 14px; background: var(--white); border-radius: 14px; border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.luna-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: luna-bounce 1.2s infinite; }
.luna-typing span:nth-child(2) { animation-delay: .15s; }
.luna-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes luna-bounce { 0%,60%,100%{ transform: translateY(0); opacity:.5; } 30%{ transform: translateY(-4px); opacity:1; } }

#luna-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--white); }
#luna-input { flex: 1; border: 1px solid var(--border); border-radius: 100px; padding: 9px 14px; font-size: .84rem; }
#luna-input:focus { outline: none; border-color: var(--wine); }
#luna-form button { width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--white); flex-shrink: 0; font-size: .95rem; }
#luna-form button:hover { background: var(--wine-l); }

@media(max-width:480px) {
  #luna-btn { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  #luna-panel { bottom: 82px; right: 12px; left: 12px; width: auto; height: 70vh; }
}
