/*
Theme Name: Eterniza Ímãs
Theme URI: https://eternizaimas.com.br
Author: Eterniza Ímãs
Author URI: https://instagram.com/eternizaimas
Description: Tema personalizado para a loja Eterniza Ímãs — presentes personalizados (ímãs, botons, chaveiros com foto e NFC) que eternizam histórias. Compatível com WooCommerce: se o WooCommerce estiver ativo, os produtos cadastrados lá aparecem automaticamente na vitrine; se não estiver, o tema mostra um catálogo de exemplo.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: eterniza-imas
Tags: e-commerce, custom-colors, custom-menu, translation-ready
*/

:root{
  --navy:#0D1B2A;
  --navy-2:#132C4D;
  --gold:#D4AF37;
  --gold-light:#e8cd7a;
  --off:#F7F2E7;
  --grey:#E6E6E6;
  --grey-dark:#333333;
  --white:#FFFFFF;
  --shadow: 0 10px 30px rgba(13,27,42,0.12);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Montserrat', sans-serif;
  color:var(--grey-dark);
  background:var(--off);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.script{
  font-family:'Playfair Display', serif;
  margin:0;
}
.script{font-style:italic;color:var(--gold);}
a{text-decoration:none;color:inherit;}
img,svg{display:block;}
ul{list-style:none; margin:0; padding:0;}
.container{max-width:1180px;margin:0 auto;padding:0 24px;}
.eyebrow{
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--gold);
}
.screen-reader-text{position:absolute; left:-9999px;}

/* ---------- HEADER ---------- */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(13,27,42,0.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(212,175,55,0.25);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width:1180px; margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{width:42px; height:42px; flex-shrink:0;}
.brand-text{line-height:1.05;}
.brand-text .name1{font-family:'Playfair Display',serif; font-weight:700; font-size:19px; color:var(--white);}
.brand-text .name2{font-family:'Playfair Display',serif; font-style:italic; font-size:17px; color:var(--gold); margin-left:2px;}
.brand-text .tag{font-size:9px; letter-spacing:.10em; text-transform:uppercase; color:var(--grey); opacity:.8;}
nav.links{display:flex; gap:28px;}
nav.links a{
  color:var(--off); font-size:14px; font-weight:600; letter-spacing:.02em;
  opacity:.85; transition:opacity .2s, color .2s;
}
nav.links a:hover{opacity:1; color:var(--gold);}
.header-actions{display:flex; align-items:center; gap:14px;}
.cart-btn{
  position:relative; display:flex; align-items:center; gap:8px;
  background:var(--gold); color:var(--navy); font-weight:700; font-size:13px;
  padding:9px 16px; border-radius:999px; border:none; cursor:pointer;
  transition:transform .15s, box-shadow .15s;
}
.cart-btn:hover{transform:translateY(-1px); box-shadow:0 6px 16px rgba(212,175,55,.35);}
.cart-count{
  background:var(--navy); color:var(--gold); font-size:11px; font-weight:700;
  min-width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  padding:0 4px;
}

/* ---------- HERO ---------- */
.hero{
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(212,175,55,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color:var(--off);
  padding:88px 24px 96px;
  position:relative;
  overflow:hidden;
}
.hero-inner{max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;}
.hero h1{
  font-size:clamp(32px, 4.4vw, 54px);
  line-height:1.12;
  color:var(--white);
  font-weight:600;
  margin-top:14px;
}
.hero h1 em{font-style:italic; color:var(--gold);}
.hero p.lead{
  margin-top:20px; font-size:16.5px; line-height:1.7; color:var(--grey); max-width:480px;
}
.hero-ctas{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:700; font-size:14.5px;
  cursor:pointer; border:none; transition:transform .15s, box-shadow .15s, background .2s;
}
.btn-gold{background:var(--gold); color:var(--navy);}
.btn-gold:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(212,175,55,.35);}
.btn-outline{background:transparent; color:var(--off); border:1.5px solid rgba(247,242,231,.45);}
.btn-outline:hover{border-color:var(--gold); color:var(--gold);}
.hero-badges{display:flex; gap:22px; margin-top:44px; flex-wrap:wrap;}
.hero-badges .badge{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--grey); opacity:.9;}
.hero-badges svg{width:16px; height:16px; stroke:var(--gold); flex-shrink:0;}
.hero-visual{
  position:relative; aspect-ratio:1/1; border-radius:28px;
  background:linear-gradient(160deg, rgba(212,175,55,.16), rgba(255,255,255,.03));
  border:1px solid rgba(212,175,55,.3);
  display:flex; align-items:center; justify-content:center;
}
.hero-visual .ring{
  width:62%; aspect-ratio:1/1; border-radius:50%;
  border:1.5px dashed rgba(212,175,55,.4);
  display:flex; align-items:center; justify-content:center;
}
.hero-visual .mark{width:58%; height:58%;}

/* ---------- SECTION HEADS ---------- */
.section{padding:84px 0;}
.section-head{max-width:640px; margin:0 auto 48px; text-align:center;}
.section-head h2{font-size:clamp(26px,3vw,36px); margin-top:10px; font-weight:600; color:var(--navy);}
.section-head p{margin-top:14px; color:#555; font-size:15px; line-height:1.7;}
.section.on-navy{background:var(--navy); color:var(--off);}
.section.on-navy .section-head h2{color:var(--white);}
.section.on-navy .section-head p{color:var(--grey);}

/* ---------- NOTICE ---------- */
.notice{
  max-width:1180px; margin:28px auto 0; padding:14px 20px;
  background:#fff7e0; border:1px solid #f0dca0; border-radius:12px;
  font-size:13px; color:#6b5411; display:flex; gap:10px; align-items:flex-start;
}
.notice svg{flex-shrink:0; margin-top:2px; width:16px; height:16px; stroke:#a3821f;}

/* ---------- PRODUCTS ---------- */
.filters{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:40px;}
.filter-chip{
  padding:8px 16px; border-radius:999px; font-size:13px; font-weight:600;
  background:var(--white); border:1px solid var(--grey); cursor:pointer; transition:.2s;
}
.filter-chip.active, .filter-chip:hover{background:var(--navy); color:var(--off); border-color:var(--navy);}
.grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:26px;}
.card{
  background:var(--white); border-radius:18px; overflow:hidden;
  box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition:transform .2s, box-shadow .2s;
}
.card:hover{transform:translateY(-4px); box-shadow:0 16px 36px rgba(13,27,42,0.16);}
.card-media{
  aspect-ratio:4/3; position:relative; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow:hidden;
}
.card-media.has-photo{background:var(--grey);}
.card-media.has-photo img{width:100%; height:100%; object-fit:cover;}
.card-media::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(220px 140px at 80% 10%, rgba(212,175,55,.25), transparent 60%);
  pointer-events:none;
}
.card-media.has-photo::before{display:none;}
.card-media svg{width:34%; height:34%; position:relative; z-index:1;}
.card-tag{
  position:absolute; top:12px; left:12px; background:rgba(212,175,55,.92); color:var(--navy);
  font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px; letter-spacing:.03em; z-index:2;
}
.card-body{padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1;}
.card-body h3{font-size:17px; color:var(--navy); font-weight:600;}
.card-body p{font-size:13px; color:#666; line-height:1.55; margin:0; min-height:36px;}
.price-row{display:flex; align-items:baseline; gap:6px; margin-top:6px;}
.price{font-family:'Playfair Display',serif; font-weight:700; font-size:21px; color:var(--navy);}
.price-note{font-size:11px; color:#999;}
.card-actions{display:flex; align-items:center; gap:10px; margin-top:14px;}
.qty{display:flex; align-items:center; border:1px solid var(--grey); border-radius:999px; overflow:hidden;}
.qty button{
  width:30px; height:30px; border:none; background:var(--off); cursor:pointer; font-size:15px; font-weight:700; color:var(--navy);
}
.qty span{width:26px; text-align:center; font-size:13px; font-weight:700;}
.add-btn{
  flex:1; background:var(--navy); color:var(--off); border:none; border-radius:999px;
  padding:9px 14px; font-weight:700; font-size:12.5px; cursor:pointer; transition:.2s;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.add-btn:hover{background:var(--gold); color:var(--navy);}
.add-btn.added{background:#2e7d4f;}
.empty-state{text-align:center; color:#777; padding:40px 20px; grid-column:1/-1;}

/* ---------- OCCASIONS ---------- */
.chip-grid{display:flex; flex-wrap:wrap; gap:12px; justify-content:center;}
.occ-chip{
  display:flex; align-items:center; gap:8px; background:rgba(247,242,231,.06);
  border:1px solid rgba(212,175,55,.28); color:var(--off);
  padding:10px 18px; border-radius:999px; font-size:13px; font-weight:600;
}
.occ-chip svg{width:15px; height:15px; stroke:var(--gold);}

/* ---------- ABOUT / VALUES ---------- */
.values{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:56px;}
.value{text-align:center; padding:26px 18px; background:var(--white); border-radius:16px; box-shadow:var(--shadow);}
.value .icon-wrap{
  width:52px; height:52px; border-radius:50%; background:var(--navy); display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.value .icon-wrap svg{width:24px; height:24px; stroke:var(--gold);}
.value h4{font-size:14.5px; font-weight:700; color:var(--navy); margin-bottom:6px;}
.value p{font-size:12.5px; color:#666; line-height:1.5; margin:0;}

/* ---------- NFC STEPS ---------- */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:20px;}
.step{background:rgba(247,242,231,.05); border:1px solid rgba(212,175,55,.25); border-radius:16px; padding:26px 22px;}
.step .num{
  width:34px; height:34px; border-radius:50%; background:var(--gold); color:var(--navy);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Playfair Display',serif; margin-bottom:14px;
}
.step h4{font-size:15px; color:var(--white); margin-bottom:8px; font-weight:600;}
.step p{font-size:13px; color:var(--grey); line-height:1.6; margin:0;}

/* ---------- CONTACT / FOOTER ---------- */
.contact-wrap{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;}
.contact-cards{display:flex; flex-direction:column; gap:14px;}
.contact-card{
  display:flex; align-items:center; gap:14px; background:var(--white); border-radius:16px;
  padding:16px 20px; box-shadow:var(--shadow);
}
.contact-card .ic{
  width:44px; height:44px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-card .ic svg{width:22px; height:22px; fill:#fff;}
.contact-card .who{font-size:12px; color:#888; font-weight:600; text-transform:uppercase; letter-spacing:.04em;}
.contact-card .num{font-size:16px; font-weight:700; color:var(--navy);}
.contact-card .go{margin-left:auto; font-size:12px; font-weight:700; color:var(--navy); opacity:.5;}

footer.site-footer{background:var(--navy); color:var(--grey); padding:54px 0 26px;}
.footer-top{display:flex; justify-content:space-between; align-items:flex-start; gap:32px; flex-wrap:wrap; padding-bottom:34px; border-bottom:1px solid rgba(247,242,231,.12);}
.footer-brand p{font-size:13px; color:var(--grey); max-width:280px; line-height:1.6; margin-top:12px;}
.footer-cols{display:flex; gap:64px; flex-wrap:wrap;}
.footer-col h5{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--gold); margin-bottom:14px;}
.footer-col a, .footer-col span{display:block; font-size:13.5px; color:var(--grey); margin-bottom:9px;}
.footer-col a:hover{color:var(--gold);}
.socials{display:flex; gap:12px; margin-top:16px;}
.socials a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(212,175,55,.4);
  display:flex; align-items:center; justify-content:center;
}
.socials a svg{width:16px; height:16px; stroke:var(--gold);}
.socials a:hover{background:var(--gold);}
.socials a:hover svg{stroke:var(--navy);}
.footer-bottom{display:flex; justify-content:space-between; padding-top:22px; font-size:12px; color:#8892a0; flex-wrap:wrap; gap:10px;}

/* ---------- CART DRAWER ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(13,27,42,.55); z-index:90; opacity:0; pointer-events:none; transition:opacity .25s;
}
.overlay.open{opacity:1; pointer-events:auto;}
.drawer{
  position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw; background:var(--off);
  z-index:91; transform:translateX(100%); transition:transform .3s ease; display:flex; flex-direction:column;
  box-shadow:-10px 0 40px rgba(0,0,0,.2);
}
.drawer.open{transform:translateX(0);}
.drawer-head{
  display:flex; align-items:center; justify-content:space-between; padding:22px 24px; background:var(--navy); color:var(--off);
}
.drawer-head h3{font-size:19px; font-weight:600;}
.drawer-head button{background:none; border:none; cursor:pointer;}
.drawer-head button svg{stroke:var(--off); width:20px; height:20px;}
.drawer-body{flex:1; overflow-y:auto; padding:18px 24px;}
.empty-cart{text-align:center; padding:60px 10px; color:#888;}
.empty-cart svg{width:52px; height:52px; stroke:var(--grey); margin:0 auto 16px;}
.cart-item{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--grey);}
.cart-item .ci-media{
  width:64px; height:64px; border-radius:12px; background:linear-gradient(145deg, var(--navy), var(--navy-2)); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.cart-item .ci-media img{width:100%; height:100%; object-fit:cover;}
.cart-item .ci-media svg{width:50%; height:50%;}
.cart-item .ci-info{flex:1;}
.cart-item .ci-info h4{font-size:14px; color:var(--navy); font-weight:700; margin-bottom:4px;}
.cart-item .ci-info .ci-price{font-size:12.5px; color:#777;}
.ci-controls{display:flex; align-items:center; justify-content:space-between; margin-top:8px;}
.ci-remove{font-size:11.5px; color:#b23b3b; font-weight:700; cursor:pointer; background:none; border:none;}
.drawer-foot{padding:20px 24px 26px; border-top:1px solid var(--grey); background:var(--white);}
.total-row{display:flex; justify-content:space-between; font-size:15px; font-weight:700; color:var(--navy); margin-bottom:16px;}
.total-row .amt{font-family:'Playfair Display',serif; font-size:22px;}
.checkout-note{font-size:11.5px; color:#888; margin-bottom:14px; line-height:1.6;}
.checkout-btns{display:flex; flex-direction:column; gap:10px;}
.wa-btn{
  display:flex; align-items:center; justify-content:center; gap:9px; background:#25D366; color:#fff;
  padding:13px; border-radius:12px; font-weight:700; font-size:13.5px; border:none; cursor:pointer;
}
.wa-btn svg{width:17px; height:17px; fill:#fff;}
.wa-btn.secondary{background:#1ea855;}

/* toast */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--navy); color:var(--off); padding:13px 22px; border-radius:999px; font-size:13px; font-weight:600;
  z-index:99; opacity:0; pointer-events:none; transition:.25s; display:flex; align-items:center; gap:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.toast svg{width:16px; height:16px; stroke:var(--gold);}

/* ---------- BASIC PAGE (page.php) ---------- */
.basic-page{padding:80px 0; min-height:40vh;}
.basic-page h1{font-size:38px; color:var(--navy); margin-bottom:24px;}
.basic-page .entry-content{font-size:15.5px; line-height:1.8; color:#444;}
.basic-page .entry-content p{margin:0 0 18px;}

@media(max-width:920px){
  nav.links{display:none;}
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{max-width:340px; margin:0 auto;}
  .grid{grid-template-columns:repeat(2,1fr);}
  .values{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:1fr;}
  .contact-wrap{grid-template-columns:1fr;}
  .footer-top{flex-direction:column;}
}
@media(max-width:560px){
  .grid{grid-template-columns:1fr;}
  .values{grid-template-columns:1fr;}
  .drawer{width:100%;}
}
