:root {
  --gold: #b89155;
  --gold-dark: #9a7340;
  --cream: #faf9f7;
  --cream-dark: #f4efe8;
  --charcoal: #1e1a16;
  --charcoal-muted: #8a857e;
  --rose: #c4848c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 26, 22, 0.10);
}

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

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; max-width: 1180px; margin: 0 auto;
}
.logo { font-family: 'Playfair Display', serif; font-size: 24px; letter-spacing: 1px; }
.logo small { display: block; font-size: 10px; letter-spacing: 4px; color: var(--gold-dark); font-family: 'Nunito Sans', sans-serif; }
.cart-btn {
  position: relative; background: transparent; font-size: 22px; padding: 6px 10px;
}
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  text-align: center; padding: 60px 18px;
}
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 10px; }
.hero p { color: var(--charcoal-muted); max-width: 520px; margin: 0 auto; }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 26px 18px 10px; }
.filtro {
  background: #fff; border: 1px solid var(--cream-dark); color: var(--charcoal);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; transition: .2s;
}
.filtro.ativo, .filtro:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Grid ---------- */
.grid {
  display: grid; gap: 22px; padding: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: 1180px; margin: 0 auto;
}
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,26,22,.16); }
.card-img { position: relative; aspect-ratio: 3/4; background: var(--cream-dark); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; color: #fff; text-transform: uppercase;
}
.badge.new { background: var(--gold); }
.badge.sale { background: var(--rose); }
.badge.exclusive { background: var(--charcoal); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: 1px; color: var(--gold-dark); text-transform: uppercase; }
.card-nome { font-family: 'Playfair Display', serif; font-size: 17px; }
.precos { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.preco { font-size: 19px; font-weight: 700; color: var(--charcoal); }
.preco-antigo { font-size: 13px; color: var(--charcoal-muted); text-decoration: line-through; }

/* ---------- Modal produto ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(30,26,22,.55);
  display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px;
}
.overlay.aberto { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 860px; width: 100%;
  max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
}
.modal-fotos { background: var(--cream-dark); }
.modal-fotos img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-info { padding: 26px; position: relative; }
.fechar {
  position: absolute; top: 14px; right: 14px; background: var(--cream-dark);
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1;
}
.modal-info h2 { font-size: 26px; margin: 8px 0; }
.opt-label { font-size: 13px; font-weight: 700; margin: 16px 0 8px; letter-spacing: .5px; }
.opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  border: 1.5px solid var(--cream-dark); background: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 14px; transition: .15s;
}
.opt.ativo, .opt:hover { border-color: var(--gold); color: var(--gold-dark); }
.cor { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--cream-dark); }
.cor.ativo { box-shadow: 0 0 0 2.5px var(--gold); }
.qtd { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qtd button { background: var(--cream-dark); width: 34px; height: 34px; border-radius: 8px; font-size: 18px; }
.btn-primary {
  background: var(--gold); color: #fff; width: 100%; padding: 14px; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .5px; transition: .2s;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Carrinho ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(30,26,22,.45); display: none; z-index: 70; }
.drawer-overlay.aberto { display: block; }
.drawer {
  position: fixed; top: 0; right: -460px; width: 420px; max-width: 92vw; height: 100%;
  background: var(--cream); z-index: 80; transition: right .3s cubic-bezier(.23,1,.32,1);
  display: flex; flex-direction: column;
}
.drawer.aberto { right: 0; }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--cream-dark); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 20px; }
.drawer-itens { flex: 1; overflow: auto; padding: 16px 20px; }
.vazio { text-align: center; color: var(--charcoal-muted); margin-top: 40px; }
.item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-dark); }
.item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--cream-dark); }
.item-info { flex: 1; font-size: 14px; }
.item-info .nome { font-weight: 700; }
.item-info .var { color: var(--charcoal-muted); font-size: 12px; }
.item-qtd { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.item-qtd button { background: var(--cream-dark); width: 26px; height: 26px; border-radius: 6px; }
.remover { background: transparent; color: var(--rose); font-size: 12px; text-decoration: underline; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--cream-dark); background: #fff; }
.linha { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.linha.total { font-size: 18px; font-weight: 700; margin-top: 8px; }
.campo { width: 100%; padding: 11px 12px; border: 1px solid var(--cream-dark); border-radius: 8px; margin-top: 10px; font-size: 14px; font-family: inherit; }
.frete-info { font-size: 12px; color: var(--charcoal-muted); margin-top: 8px; }

/* ---------- Footer ---------- */
footer.site { background: var(--charcoal); color: var(--cream); text-align: center; padding: 36px 18px; margin-top: 40px; }
footer.site .logo { color: var(--cream); }
footer.site a { color: var(--gold); text-decoration: none; }
.zap-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: var(--shadow); text-decoration: none;
}

@media (max-width: 700px) {
  .modal { grid-template-columns: 1fr; }
  .modal-fotos img { min-height: 240px; }
}
