﻿/* ============================================================
   BELLA MODA — tema roxo  |  mobile-first
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #faf5ff;
  --surface:   #ffffff;
  --texto:     #2e1065;
  --texto-2:   #6b5b95;
  --borda:     #ede9fe;
  --sombra:    0 8px 30px rgba(124, 58, 237, .12);
  --raio:      18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------- HEADER ---------------- */
.topo {
  position: sticky; top: 0; z-index: 100;
  /*background: linear-gradient(135deg, var(--roxo), var(--roxo-2));*/
  background-color:#7c3aed;
  color: #fff;
  box-shadow: 0 4px 20px rgba(76, 29, 149, .25);
}
.topo-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.logo-emoji { font-size: 1.6rem; }
.logo-txt {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem; font-weight: 600; letter-spacing: .3px;
}
.logo img { height: 40px; }

.busca {
  flex: 1; display: flex;
  background: rgba(255,255,255,.95);
  border-radius: 999px; overflow: hidden;
  max-width: 460px;
}
.busca input {
  flex: 1; border: 0; padding: 10px 16px;
  font-family: inherit; font-size: .95rem; color: var(--texto);
  background: transparent; outline: none;
}
.busca button {
  border: 0; background: transparent; padding: 0 14px;
  font-size: 1.05rem; cursor: pointer;
}

.btn-carrinho {
  position: relative; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18);
  color: #fff; font-size: 1.1rem;
  padding: 9px 14px; border-radius: 999px;
  transition: background .2s;
}
.btn-carrinho:hover { background: rgba(255,255,255,.3); }
.contador {
  position: absolute; top: -6px; right: -6px;
  background: #fff; color: var(--roxo);
  font-size: .72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.contador.tem { transform: scale(1); }

.categorias {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 0 16px 12px;
  max-width: 1100px; margin: 0 auto;
  scrollbar-width: none;
}
.categorias::-webkit-scrollbar { display: none; }
.categorias a {
  white-space: nowrap;
  padding: 6px 16px; border-radius: 999px;
  font-size: .9rem; color: #fff;
  background: rgba(255,255,255,.12);
  transition: all .2s;
}
.categorias a.ativo, .categorias a:hover {
  background: #fff; color: var(--roxo); font-weight: 600;
}

/* ---------------- BANNER ---------------- */
.banner {
  position: relative; max-width: 1100px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: var(--raio);
}
.banner-stack {
  position: relative;
  width: 100%;
  height: 230px;
}
.banner-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-color: var(--roxo-esc);
  display: flex; align-items: flex-end;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.banner-slide.ativo {
  opacity: 1;
  pointer-events: auto;
}
.banner-slide::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(46,16,101,.75), transparent 70%);
}
.banner-overlay {
  position: relative; z-index: 1;
  color: #fff; padding: 24px;
}
.banner-overlay h2 {
  font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600;
}
.banner-overlay p { font-size: .95rem; opacity: .95; margin-top: 4px; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--roxo);
  font-size: 1.4rem; cursor: pointer; z-index: 2;
  display: grid; place-items: center;
}
.banner-nav.prev { left: 24px; }
.banner-nav.next { right: 24px; }
.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: .2s;
}
.banner-dots span.ativo { background: #fff; width: 22px; border-radius: 4px; }

/* ---------------- PRODUTOS ---------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 26px 16px; }
.titulo-secao {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.7rem; margin-bottom: 18px; color: var(--roxo-esc);
}
.vazio { text-align: center; color: var(--texto-2); padding: 40px 0; }

.grade {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface); border-radius: var(--raio);
  overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(124,58,237,.2); }
.card-img { position: relative; aspect-ratio: 4/5; cursor: pointer; background: var(--borda); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.sem-foto {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: linear-gradient(135deg, #f3e8ff, #ede9fe);
}
.sem-foto span { font-size: 3.4rem; line-height: 1; }
.sem-foto small { color: var(--texto-2); font-size: .78rem; }
.tag-promo {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #ec4899; color: #fff; font-size: .7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .5px;
}
.badge-fotos {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(46,16,101,.7); color: #fff;
  font-size: .7rem; padding: 3px 8px; border-radius: 999px;
}
.card-corpo { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-corpo h3 { font-size: 1rem; font-weight: 600; cursor: pointer; line-height: 1.25; }
.mini-cores { display: flex; gap: 5px; }
.bolinha { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--borda); }
.precos { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.preco-velho { text-decoration: line-through; color: var(--texto-2); font-size: .85rem; }
.preco-atual { font-size: 1.2rem; font-weight: 700; color: var(--roxo); }
.btn-ver {
  border: 0; cursor: pointer; width: 100%;
  background: var(--borda); color: var(--roxo-esc);
  font-family: inherit; font-weight: 600; font-size: .9rem;
  padding: 9px; border-radius: 10px; transition: .2s;
}
.btn-ver:hover { background: var(--roxo); color: #fff; }

/* ---------------- MODAL PRODUTO ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(46,16,101,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.aberto { display: flex; }
.modal {
  background: var(--surface); border-radius: 22px;
  max-width: 880px; width: 100%; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  animation: sobe .3s ease;
}
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--roxo-esc);
  font-size: 1rem; cursor: pointer;
}
.modal-galeria { position: relative; background: var(--borda); }
.modal-galeria > img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; aspect-ratio: 4/5; }
.gal-nav {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--roxo);
  font-size: 1.3rem; cursor: pointer; z-index: 3;
}
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-thumbs {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center; padding: 0 10px;
}
.gal-thumbs img {
  width: 46px; height: 46px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; opacity: .7;
}
.gal-thumbs img.ativo { border-color: var(--roxo); opacity: 1; }

.modal-info { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-info h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; }
.modal-preco { font-size: 1.6rem; font-weight: 700; color: var(--roxo); }
.modal-desc { color: var(--texto-2); font-size: .95rem; }

.opcoes { display: flex; flex-direction: column; gap: 8px; }
.opcoes-titulo { font-size: .9rem; color: var(--texto-2); }
.opcoes-titulo strong { color: var(--texto); }
.opcoes-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cor {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--borda); cursor: pointer; position: relative;
  transition: transform .15s;
}
.chip-cor:hover { transform: scale(1.1); }
.chip-cor.sel { border-color: var(--roxo); box-shadow: 0 0 0 3px rgba(124,58,237,.25); }
.chip-tam {
  min-width: 42px; padding: 8px 12px; border-radius: 10px;
  border: 2px solid var(--borda); background: #fff; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .9rem; color: var(--texto);
  transition: .15s;
}
.chip-tam:hover { border-color: var(--roxo-2); }
.chip-tam.sel { background: var(--roxo); color: #fff; border-color: var(--roxo); }

.modal-acoes { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn-add, .btn-zap {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: 1rem; padding: 13px; border-radius: 12px; transition: .2s;
}
.btn-add { background: var(--roxo); color: #fff; }
.btn-add:hover { background: var(--roxo-esc); }
.btn-zap { background: #25D366; color: #fff; }
.btn-zap:hover { filter: brightness(.95); }
.aviso-opcao { color: #ec4899; font-size: .85rem; min-height: 18px; }

/* ---------------- DRAWER CARRINHO ---------------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(46,16,101,.5); display: none;
}
.drawer-overlay.aberto { display: block; }
.drawer {
  position: fixed; top: 0; right: -420px; z-index: 360;
  width: 92%; max-width: 400px; height: 100%;
  background: var(--surface); display: flex; flex-direction: column;
  transition: right .3s ease; box-shadow: -10px 0 40px rgba(46,16,101,.25);
}
.drawer.aberto { right: 0; }
.drawer-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: linear-gradient(135deg, var(--roxo), var(--roxo-2)); color: #fff;
}
.drawer-topo h3 { font-family: 'Fraunces', serif; font-weight: 600; }
.drawer-topo button { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.drawer-itens { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.drawer-vazio { text-align: center; color: var(--texto-2); padding: 40px 10px; }
.item {
  display: flex; gap: 12px; background: var(--bg);
  border-radius: 14px; padding: 10px;
}
.item img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.item-info h4 { font-size: .92rem; font-weight: 600; }
.item-opc { font-size: .78rem; color: var(--texto-2); }
.item-preco { font-weight: 700; color: var(--roxo); font-size: .92rem; }
.item-qtd { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.item-qtd button {
  width: 26px; height: 26px; border: 0; border-radius: 7px;
  background: var(--borda); color: var(--roxo-esc); font-weight: 700; cursor: pointer;
}
.item-qtd span { min-width: 20px; text-align: center; font-weight: 600; }
.item-remover { background: none; border: 0; color: #ec4899; cursor: pointer; font-size: .8rem; align-self: flex-start; }
.drawer-rodape { padding: 16px 20px; border-top: 1px solid var(--borda); }
.total-linha { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.total-linha strong { font-size: 1.4rem; color: var(--roxo); }
.btn-finalizar {
  width: 100%; border: 0; cursor: pointer;
  background: #25D366; color: #fff; font-family: inherit; font-weight: 700;
  font-size: 1.05rem; padding: 14px; border-radius: 12px;
}
.btn-finalizar:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ---------------- TOAST ---------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--roxo-esc); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .92rem; z-index: 400; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--sombra);
}
.toast.mostra { transform: translateX(-50%) translateY(0); }

/* ---------------- RODAPÉ ---------------- */
.rodape { text-align: center; padding: 36px 16px; color: var(--texto-2); }
.rodape strong { font-family: 'Fraunces', serif; color: var(--roxo); }
.rodape-zap {
  display: inline-block; margin: 12px 0; padding: 10px 24px;
  background: #25D366; color: #fff; border-radius: 999px; font-weight: 600;
}
.copy { font-size: .8rem; margin-top: 8px; }

/* ---------------- DESKTOP ---------------- */
@media (min-width: 720px) {
  .grade { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .banner-stack { height: 320px; }
  .banner-overlay h2 { font-size: 2.2rem; }
}
@media (min-width: 1000px) {
  .grade { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .modal { grid-template-columns: 1fr; max-height: 94vh; }
  .modal-galeria > img { aspect-ratio: 1/1; }
  .logo-txt { display: none; }
}