/* ============================================
   MAYLA SEMIJOIAS — Sistema de Design
   Extraído da arte de comemoração de 1 ano
   Paleta: champagne, cacau, dourado rosé
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&family=Montserrat:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600&display=swap');

:root{
  /* Cores extraídas da arte de aniversário */
  --bg:            #F5EBDC;   /* champagne — fundo principal */
  --bg-soft:       #FBF6EC;   /* creme claro — cards e blocos */
  --cocoa:         #6E4429;   /* marrom cacau — script, títulos */
  --cocoa-dark:    #4A2C18;   /* cacau escuro — texto de maior peso */
  --rose-gold:     #B8825A;   /* dourado rosé — acentos, balões */
  --gold-line:     #C9A876;   /* linha dourada fina — molduras, bordas */
  --beige-circle:  #EAD9BE;   /* bege — fundo dos círculos de ícone */
  --ink:           #5C4A3B;   /* corpo de texto */
  --white:         #FFFFFF;

  --serif-script:  'Mrs Saint Delafield', cursive;
  --sans-label:    'Montserrat', sans-serif;
  --sans-body:     'Nunito Sans', sans-serif;

  --radius-pill: 999px;
  --container: 760px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* fundo com leve textura de tecido, sutil, via gradiente radial repetido */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.55), transparent 40%),
    radial-gradient(circle at 92% 85%, rgba(184,130,90,0.10), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a{ color: var(--cocoa); text-decoration: none; }
a:hover{ color: var(--rose-gold); }

img{ max-width: 100%; display:block; }

/* ---------- Cabeçalho ---------- */
header.site{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 24px 10px;
  text-align: center;
}

.brand-logo{
  width: 152px;
  height: auto;
  margin: 0 auto;
  opacity: 0.94;
}

nav.site{
  position: relative;
  z-index: 1;
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 8px;
}

nav.site a{
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--cocoa-dark);
  padding: 9px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  transition: background .2s, color .2s;
  text-transform: uppercase;
}

nav.site a:hover,
nav.site a.active{
  background: var(--cocoa);
  color: var(--bg-soft);
  border-color: var(--cocoa);
}

/* ---------- Conteúdo ---------- */
main{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 10px;
}

.eyebrow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--rose-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after{
  content:"";
  width: 28px;
  height: 1px;
  background: var(--gold-line);
}

h1.page-title{
  font-family: var(--sans-label);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  text-align: center;
  margin: 0 0 6px;
}

h1.page-title .script{
  display:block;
  font-family: var(--serif-script);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cocoa);
  line-height: 1;
  margin-bottom: 2px;
}

.lede{
  text-align:center;
  color: var(--ink);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 34px;
}

.card{
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  padding: 34px 30px;
  margin-bottom: 26px;
}

.card p{ margin: 0 0 16px; }
.card p:last-child{ margin-bottom: 0; }

/* divisor com coração, igual à arte de referência */
.divider-heart{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin: 34px 0;
}
.divider-heart::before,
.divider-heart::after{
  content:"";
  height: 1px;
  width: 70px;
  background: var(--gold-line);
}
.divider-heart svg{ width: 16px; height:16px; }

/* moldura circular decorativa, ecoando o círculo do logo */
.ring-frame{
  width: 96px;
  height: 96px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 22px;
  background: var(--bg-soft);
}
.ring-frame svg{ width: 34px; height: 34px; }

/* grade de valores com círculos bege, no estilo dos ícones da arte */
.values-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 6px 0 10px;
}

.value-card{
  text-align:center;
  padding: 26px 18px 30px;
}

.value-icon{
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--beige-circle);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 16px;
}
.value-icon svg{
  width: 32px; height: 32px;
  stroke: var(--cocoa-dark);
}

.value-title{
  font-family: var(--sans-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  margin-bottom: 10px;
}

.value-text{
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.65;
}

/* selo/pill, igual ao "início: 01 de julho" da arte */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--cocoa-dark);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  background: var(--bg-soft);
}

.pill-wrap{ text-align:center; margin: 30px 0; }

/* ---------- Filtro de produtos ---------- */
.filter-bar{
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.filter-btn{
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  padding: 9px 20px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.filter-btn:hover{ background: var(--beige-circle); }

.filter-btn.active{
  background: var(--cocoa);
  color: var(--bg-soft);
  border-color: var(--cocoa);
}

.product-card.hidden{ display:none; }

/* ---------- Grade de produtos ---------- */
.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 6px 0 10px;
}

.product-card{
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s ease;
}

.product-card:hover{ transform: translateY(-3px); }

.product-photo{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.mat-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--sans-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #fff;
}
.mat-badge.mat-ouro{ background: #B8925A; }
.mat-badge.mat-prata{ background: #8C8C94; }

.product-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info{
  padding: 18px 20px 22px;
  text-align: center;
}

.product-name{
  font-family: var(--sans-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  margin-bottom: 6px;
}

.product-desc{
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}

.product-card.is-esgotado{ opacity: 0.6; }
.product-card.is-esgotado .product-photo{ filter: grayscale(45%); }
.tag-esgotado{
  color: #9C6A6A;
  border-color: #C99;
  background: #F3E5E5;
}

.product-tag{
  display:inline-block;
  margin-top: 10px;
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-gold);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.cta-whatsapp{
  display:block;
  text-align:center;
  margin: 18px auto 0;
}

.cta-whatsapp a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-soft);
  background: var(--cocoa);
  border-radius: var(--radius-pill);
  padding: 12px 26px;
}
.cta-whatsapp a:hover{ background: var(--rose-gold); color: var(--bg-soft); }


footer.site{
  position: relative;
  z-index: 1;
  text-align:center;
  padding: 40px 24px 56px;
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cocoa);
}

footer.site .social{
  display:flex;
  justify-content:center;
  gap: 16px;
  margin-bottom: 14px;
}

footer.site a.social-link{
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  width: 40px; height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
}
footer.site a.social-link svg{ width:16px; height:16px; fill: var(--cocoa); }

footer.site small{
  display:block;
  margin-top: 10px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

@media (max-width: 480px){
  h1.page-title{ font-size: 26px; }
  h1.page-title .script{ font-size: 42px; }
  .card{ padding: 26px 20px; }
  .brand-logo{ width: 128px; }
}

/* ============================================
   CARRINHO DE COMPRAS
   ============================================ */

.add-to-cart-btn{
  display: block;
  width: 100%;
  margin-top: 14px;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-soft);
  background: var(--cocoa);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 0;
  cursor: pointer;
  transition: background .2s;
}
.add-to-cart-btn:hover{ background: var(--rose-gold); }

.notify-btn{
  display: block;
  width: 100%;
  margin-top: 14px;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--cocoa-dark);
  background: var(--beige-circle);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  padding: 10px 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .2s;
}
.notify-btn:hover{ background: var(--gold-line); }

/* Botão flutuante */
.cart-fab{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cocoa);
  border: 1px solid var(--gold-line);
  color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(74,44,24,0.28);
}
.cart-fab svg{ width: 24px; height: 24px; }

.cart-count{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose-gold);
  color: #fff;
  font-family: var(--sans-label);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-soft);
}

/* Overlay */
.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(74,44,24,0.35);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open{ opacity: 1; pointer-events: auto; }

/* Gaveta */
.cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--bg);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.open{ transform: translateX(0); }

.cart-drawer-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 16px;
  font-family: var(--sans-label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  border-bottom: 1px solid var(--gold-line);
  flex-shrink: 0;
}

.cart-drawer-body{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.cart-close{
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--cocoa);
  cursor: pointer;
}

.cart-items{
  padding: 14px 22px 0;
}

.cart-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,168,118,0.35);
}

.cart-item img{
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.cart-item-info{ flex: 1; min-width: 0; }

.cart-item-name{
  font-family: var(--sans-label);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa-dark);
  margin-bottom: 2px;
}

.cart-item-mat{
  font-weight: 600;
  color: var(--rose-gold);
  font-size: 10.5px;
}

.cart-item-price{
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}

.cart-qty{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans-label);
  font-size: 13px;
}

.qty-btn{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--bg-soft);
  color: var(--cocoa-dark);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-item-remove{
  background: none;
  border: none;
  color: var(--rose-gold);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Cross-sell */
.cross-sell-wrap{
  padding: 0 22px;
}

.cross-sell-title{
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-gold);
  margin: 10px 0 10px;
}

.cross-sell-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.cross-sell-item{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 8px 10px;
}

.cross-sell-item img{
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cross-sell-info{ flex: 1; min-width: 0; }

.cross-sell-name{
  font-family: var(--sans-label);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cocoa-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cross-sell-price{
  font-size: 12px;
  color: var(--ink);
}

.cross-sell-add{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--cocoa);
  color: var(--bg-soft);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Totais */
.cart-totals{
  padding: 12px 22px 0;
  border-top: 1px solid var(--gold-line);
}

.cart-total-line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans-label);
  font-size: 15px;
  color: var(--cocoa-dark);
  padding: 10px 0;
}

/* Formulário */
.cart-form{
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-label{
  font-family: var(--sans-label);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cocoa);
}

.cart-input{
  width: 100%;
  font-family: var(--sans-body);
  font-size: 13.5px;
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--bg-soft);
  resize: none;
  box-sizing: border-box;
}

/* Ações */
.cart-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px;
  flex-shrink: 0;
  border-top: 1px solid var(--gold-line);
  background: var(--bg);
}

.cart-btn{
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 13px 0;
  cursor: pointer;
  border: 1px solid var(--gold-line);
}

.cart-btn-secondary{
  background: var(--bg-soft);
  color: var(--cocoa-dark);
}

.cart-btn-primary{
  background: var(--cocoa);
  color: var(--bg-soft);
  border-color: var(--cocoa);
}
.cart-btn-primary:hover{ background: var(--rose-gold); }

/* Toast */
.cart-toast{
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--cocoa-dark);
  color: var(--bg-soft);
  font-family: var(--sans-label);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.cart-toast.show{
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px){
  .cart-fab{ right: 16px; bottom: 18px; width: 50px; height: 50px; }
  .cart-fab svg{ width: 21px; height: 21px; }
}

/* Cupom de desconto */
.coupon-wrap{
  padding: 4px 22px 0;
}

.coupon-row{
  display: flex;
  gap: 8px;
}

.coupon-input{
  flex: 1;
  text-transform: uppercase;
}

.coupon-btn{
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cocoa-dark);
  background: var(--beige-circle);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-btn:hover{ background: var(--gold-line); }

.coupon-msg{
  font-family: var(--sans-label);
  font-size: 11.5px;
  margin-top: 8px;
  min-height: 14px;
}
.coupon-msg.coupon-success{ color: #4A7A4E; }
.coupon-msg.coupon-error{ color: #A9504B; }

.cart-item-price-old{
  text-decoration: line-through;
  opacity: 0.55;
  margin-right: 6px;
}
.cart-item-price-new{
  color: var(--rose-gold);
  font-weight: 700;
}

.cart-subtotal-line span:first-child,
.cart-subtotal-line span:last-child{
  font-size: 13px;
  opacity: 0.8;
  font-weight: 400;
}
.cart-discount-line{ color: #A9504B; }
.cart-discount-line span{ font-size: 13px; font-weight: 600; }

/* Trava o scroll da página de fundo enquanto o carrinho está aberto */
body.cart-open{
  overflow: hidden;
  height: 100vh;
}

.cart-drawer{
  -webkit-overflow-scrolling: touch;
}
