/* =====================================================================
   CASA DOS DESTILADOS — ESTILOS
   ===================================================================== */
:root{
  --bg:#0C0B0A; --bg-2:#131110; --panel:#17140F; --panel-2:#1E1A13;
  --line:#2E2619; --line-soft:#221c14;
  --gold:#C9A24B; --gold-bright:#E4C877; --gold-deep:#9A7B33;
  --cream:#EDE4D3; --muted:#928A7B; --muted-2:#6E665A; --white:#F6F1E8; --sold:#B4472F;
  --wa:#1F7A4D;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ background:var(--bg); color:var(--cream); font-family:'Jost',sans-serif; font-weight:300; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
::selection{ background:var(--gold); color:#0C0B0A; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
img{ display:block; max-width:100%; }
.serif{ font-family:'Cormorant Garamond',serif; }
.serif-sc{ font-family:'Cormorant SC',serif; }
body::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(201,162,75,.06),transparent 60%),
             radial-gradient(ellipse 60% 40% at 100% 100%,rgba(201,162,75,.04),transparent 60%);
}

/* ======== TOPBAR (fixa, com menu sanduíche + busca + carrinho) ======== */
.topbar{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; gap:16px;
  padding:12px max(14px,4vw);
  background:rgba(12,11,10,.92); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.menu-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; border-radius:8px; flex-shrink:0;
  border:1px solid var(--line); transition:border-color .2s, background .2s;
}
.menu-toggle:hover{ border-color:var(--gold-deep); background:var(--panel); }
.menu-toggle span{ display:block; width:20px; height:2px; margin:0 auto; background:var(--gold-bright); border-radius:2px; transition:.25s; }
.topbar-brand{ display:flex; align-items:center; gap:10px; cursor:pointer; margin-right:auto; }
.topbar-brand img{ height:34px; width:auto; }
.topbar-brand .tb-name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:19px; color:var(--gold-bright); letter-spacing:.02em; white-space:nowrap; }

/* busca */
.search-wrap{ position:relative; flex:1; max-width:420px; }
.search-input{
  width:100%; padding:11px 40px 11px 40px; border-radius:24px;
  background:var(--panel); border:1px solid var(--line); color:var(--cream);
  font-family:'Jost',sans-serif; font-size:14px; transition:border-color .2s;
}
.search-input::placeholder{ color:var(--muted-2); }
.search-input:focus{ outline:none; border-color:var(--gold-deep); }
.search-ico{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); pointer-events:none; }
.search-clear{ position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:18px; display:none; }
.search-clear.show{ display:block; }
.search-clear:hover{ color:var(--cream); }

.topbar-cart{ position:relative; width:44px; height:44px; border-radius:8px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:border-color .2s,background .2s; }
.topbar-cart:hover{ border-color:var(--gold-deep); background:var(--panel); }
.topbar-cart svg{ width:20px; height:20px; color:var(--gold-bright); }
.topbar-cart .badge{ position:absolute; top:-4px; right:-4px; background:var(--sold); color:#fff; font-size:10px; font-weight:500; min-width:19px; height:19px; padding:0 5px; border-radius:10px; display:flex; align-items:center; justify-content:center; border:2px solid var(--bg); }

/* ======== MENU LATERAL (drawer de destilarias) ======== */
.drawer-overlay{ position:fixed; inset:0; z-index:70; background:rgba(0,0,0,.6); opacity:0; pointer-events:none; transition:opacity .3s; }
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.drawer{
  position:fixed; top:0; left:0; height:100%; width:min(360px,86vw); z-index:71;
  background:var(--bg-2); border-right:1px solid var(--line);
  display:flex; flex-direction:column; transform:translateX(-101%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
}
.drawer.open{ transform:translateX(0); }
.drawer-head{ padding:22px 22px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.drawer-head .dh-title{ font-family:'Cormorant SC',serif; font-weight:600; letter-spacing:.16em; font-size:13px; text-transform:uppercase; color:var(--gold); }
.drawer-head .close-btn{ font-size:22px; color:var(--muted); line-height:1; }
.drawer-head .close-btn:hover{ color:var(--cream); }
.drawer-list{ flex:1; overflow-y:auto; padding:8px 0 20px; }
.drawer-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; text-align:left; padding:14px 22px;
  font-size:15px; color:var(--cream); transition:background .18s,color .18s;
  border-left:2px solid transparent;
}
.drawer-item:hover{ background:var(--panel); color:var(--gold-bright); border-left-color:var(--gold); }
.drawer-item.active{ color:var(--gold-bright); border-left-color:var(--gold); background:var(--panel); }
.drawer-item .di-dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; margin-right:2px; }
.drawer-item .di-name{ flex:1; }
.drawer-item .di-count{ font-size:11px; color:var(--muted-2); font-variant-numeric:tabular-nums; }
.drawer-home{ margin:4px 14px 8px; padding:12px 14px; border-radius:8px; border:1px solid var(--line); display:flex; align-items:center; gap:10px; font-size:14px; color:var(--gold-bright); }
.drawer-home:hover{ background:var(--panel); border-color:var(--gold-deep); }
.drawer-home svg{ width:16px; height:16px; }

/* ======== VIEWS ======== */
.view{ display:none; position:relative; z-index:2; }
.view.active{ display:block; animation:fade .4s ease; }
@keyframes fade{ from{opacity:0} to{opacity:1} }

/* ======== HOME / HERO ======== */
.hero{
  position:relative; text-align:center; padding:70px 6vw 46px;
  border-bottom:1px solid var(--line); overflow:hidden;
}
.hero::before{ content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 55% 42% at 50% 40%,rgba(201,162,75,.08),transparent 66%); }
.hero-emblem{ position:relative; z-index:1; width:92px; margin:0 auto 20px; filter:drop-shadow(0 5px 18px rgba(0,0,0,.65)); }
.hero-script{ position:relative; z-index:1; width:min(420px,80vw); height:auto; margin:0 auto 26px; }
.hero-tagline{ position:relative; z-index:1; font-family:'Cormorant SC',serif; font-weight:600; letter-spacing:.28em; font-size:clamp(15px,2.4vw,20px); color:var(--gold-bright); text-transform:uppercase; margin-bottom:8px; }
.hero-year{ position:relative; z-index:1; font-family:'Cormorant Garamond',serif; font-weight:500; letter-spacing:.46em; font-size:14px; color:var(--muted); text-indent:.46em; margin-bottom:26px; }
.hero-sub{ position:relative; z-index:1; color:var(--muted); font-size:14.5px; max-width:480px; line-height:1.7; margin:0 auto; }

/* busca grande da home */
.home-search{ position:relative; z-index:1; max-width:520px; margin:32px auto 0; }
.home-search .search-input{ padding:15px 46px; font-size:15px; border-radius:28px; }
.home-search .search-ico{ left:18px; width:18px; height:18px; }

/* seções da home */
.home-section{ padding:56px max(16px,5vw) 20px; max-width:1280px; margin:0 auto; }
.section-head{ text-align:center; margin-bottom:38px; }
.section-eyebrow{ font-family:'Cormorant SC',serif; font-weight:600; letter-spacing:.3em; font-size:12px; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:10px; }
.section-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(26px,4vw,38px); color:var(--white); }
.section-rule{ width:60px; height:1px; margin:18px auto 0; background:linear-gradient(90deg,transparent,var(--gold),transparent); }

/* grid de destilarias */
.distill-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.distill-card{
  position:relative; overflow:hidden; border-radius:6px; padding:26px 20px;
  background:linear-gradient(180deg,var(--panel),var(--bg-2)); border:1px solid var(--line-soft);
  cursor:pointer; transition:border-color .25s,transform .25s; text-align:left;
  display:flex; flex-direction:column; gap:8px; min-height:132px;
}
.distill-card::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--dc-tint,#C9A24B); opacity:.75; }
.distill-card:hover{ border-color:var(--gold-deep); transform:translateY(-3px); }
.distill-card .dc-name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:22px; color:var(--white); line-height:1.1; }
.distill-card .dc-region{ font-size:12px; color:var(--muted); line-height:1.4; }
.distill-card .dc-count{ margin-top:auto; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--dc-tint,var(--gold)); }
.distill-card .dc-arrow{ position:absolute; right:18px; bottom:18px; color:var(--muted-2); font-size:18px; transition:color .2s,transform .2s; }
.distill-card:hover .dc-arrow{ color:var(--gold-bright); transform:translateX(3px); }

/* destaques (carrossel horizontal) */
.featured-row{ display:flex; gap:16px; overflow-x:auto; padding:4px 2px 16px; scrollbar-width:thin; }
.featured-row::-webkit-scrollbar{ height:6px; }
.featured-row::-webkit-scrollbar-thumb{ background:var(--line); border-radius:3px; }
.featured-card{
  flex:0 0 210px; background:linear-gradient(180deg,var(--panel),var(--bg-2));
  border:1px solid var(--line-soft); border-radius:6px; padding:18px 16px 16px;
  display:flex; flex-direction:column; cursor:pointer; transition:border-color .25s,transform .25s;
}
.featured-card:hover{ border-color:var(--gold-deep); transform:translateY(-3px); }
.featured-card .fc-fig{ height:150px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.featured-card .fc-fig img{ max-height:150px; width:auto; object-fit:contain; filter:drop-shadow(0 8px 16px rgba(0,0,0,.55)); }
.featured-card .fc-col{ font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-deep); margin-bottom:4px; }
.featured-card .fc-name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:17px; color:var(--white); line-height:1.15; margin-bottom:8px; flex:1; }
.featured-card .fc-price{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:19px; color:var(--gold-bright); }

/* ======== PÁGINA DE DESTILARIA / RESULTADOS ======== */
.page-wrap{ padding:44px max(16px,5vw) 130px; max-width:1280px; margin:0 auto; }
.breadcrumb{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); margin-bottom:26px; }
.breadcrumb a:hover{ color:var(--gold-bright); }
.breadcrumb .sep{ color:var(--muted-2); }
.cat-head{ text-align:center; margin-bottom:8px; }
.cat-eyebrow{ font-family:'Cormorant SC',serif; font-weight:600; letter-spacing:.3em; font-size:12px; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:10px; }
.cat-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(30px,5vw,46px); color:var(--white); line-height:1.05; }
.cat-region{ color:var(--muted); font-size:13.5px; margin-top:12px; }
.cat-rule{ width:70px; height:1px; margin:22px auto 46px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }

.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px; }
.card{ background:linear-gradient(180deg,var(--panel),var(--bg-2)); border:1px solid var(--line-soft); border-radius:3px; padding:20px 18px 18px; display:flex; flex-direction:column; position:relative; overflow:hidden; transition:border-color .25s,transform .25s; animation:rise .5s ease backwards; }
.card::before{ content:''; position:absolute; inset:0 0 auto 0; height:1px; background:linear-gradient(90deg,transparent,rgba(201,162,75,.35),transparent); opacity:0; transition:opacity .25s; }
.card:hover{ border-color:var(--gold-deep); transform:translateY(-3px); }
.card:hover::before{ opacity:1; }
@keyframes rise{ from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.card-figure{ height:150px; margin-bottom:16px; display:flex; align-items:center; justify-content:center; position:relative; }
.card-figure .bottle-photo{ max-height:132px; width:auto; max-width:100%; object-fit:contain; border-radius:2px; filter:drop-shadow(0 8px 16px rgba(0,0,0,.55)); }
.card h3{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:19px; line-height:1.15; color:var(--white); margin-bottom:3px; }
.card .variant{ font-size:12px; color:var(--muted); line-height:1.35; margin-bottom:2px; min-height:16px; }
.card .vol{ font-size:10.5px; letter-spacing:.14em; color:var(--muted-2); text-transform:uppercase; margin-top:6px; }
.card-foot{ margin-top:auto; padding-top:16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.price{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:20px; color:var(--gold-bright); white-space:nowrap; }
.card .search-col{ font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-deep); margin-bottom:8px; cursor:pointer; }
.card .search-col:hover{ color:var(--gold-bright); }

.add-btn{ border:1px solid var(--gold-deep); color:var(--gold-bright); width:34px; height:34px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:20px; line-height:1; transition:all .2s; }
.add-btn:hover{ background:var(--gold); color:#0C0B0A; border-color:var(--gold); }
.qty-control{ display:flex; align-items:center; gap:12px; border:1px solid var(--gold-deep); border-radius:20px; padding:5px 10px; flex-shrink:0; }
.qty-control button{ color:var(--gold-bright); font-size:16px; width:16px; height:20px; line-height:1; }
.qty-control span{ font-size:13px; min-width:14px; text-align:center; font-variant-numeric:tabular-nums; }
.sold-badge{ position:absolute; top:14px; right:-30px; transform:rotate(38deg); background:var(--sold); color:#fff; font-size:9px; letter-spacing:.18em; font-weight:500; padding:3px 34px; text-transform:uppercase; }
.card.esgotado .add-btn,.card.esgotado .qty-control{ display:none; }
.card.esgotado .price{ color:var(--muted-2); }
.card.esgotado::after{ content:'Sob consulta'; margin-top:auto; padding-top:16px; font-size:11px; letter-spacing:.1em; color:var(--sold); text-transform:uppercase; }
.img-error{ font-size:10px; color:var(--muted-2); text-align:center; line-height:1.4; padding:20px; }

/* ======== BLOCO "NÃO ENCONTROU?" ======== */
.notfound{
  margin:16px auto 0; max-width:560px; text-align:center;
  padding:40px 28px; border:1px dashed var(--line); border-radius:10px; background:var(--panel);
}
.notfound.big{ margin-top:60px; }
.notfound h3{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:26px; color:var(--white); margin-bottom:10px; }
.notfound p{ font-size:14px; color:var(--muted); line-height:1.65; margin-bottom:22px; }
.notfound .wa-inline{ display:inline-flex; align-items:center; gap:10px; padding:14px 26px; border-radius:6px; background:var(--wa); color:#F6F1E8; font-weight:500; font-size:14px; transition:filter .2s; }
.notfound .wa-inline:hover{ filter:brightness(1.12); }
.notfound .wa-inline svg{ width:18px; height:18px; }

/* resultados de busca: título */
.results-head{ text-align:center; margin-bottom:40px; }
.results-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:clamp(24px,4vw,34px); color:var(--white); }
.results-head .rh-sub{ font-size:13.5px; color:var(--muted); margin-top:8px; }
.results-head .rh-sub b{ color:var(--gold-bright); font-weight:500; }

/* ======== CARRINHO ======== */
.overlay{ position:fixed; inset:0; z-index:49; background:rgba(0,0,0,.6); opacity:0; pointer-events:none; transition:opacity .3s; }
.overlay.open{ opacity:1; pointer-events:auto; }
.cart-panel{ position:fixed; top:0; right:0; height:100%; width:min(430px,94vw); z-index:50; background:var(--bg-2); border-left:1px solid var(--line); display:flex; flex-direction:column; transform:translateX(101%); transition:transform .32s cubic-bezier(.4,0,.2,1); }
.cart-panel.open{ transform:translateX(0); }
.cart-head{ padding:26px 24px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.cart-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:24px; color:var(--white); }
.cart-head .close-btn{ font-size:24px; color:var(--muted); line-height:1; }
.cart-head .close-btn:hover{ color:var(--cream); }
.cart-items{ flex:1; overflow-y:auto; padding:8px 24px; }
.cart-empty{ text-align:center; color:var(--muted); font-size:14px; margin-top:64px; line-height:1.7; }
.cart-empty .em-icon{ font-size:34px; color:var(--muted-2); display:block; margin-bottom:14px; }
.cart-item{ display:flex; gap:14px; padding:18px 0; border-bottom:1px solid var(--line-soft); }
.cart-item .ci-fig{ width:46px; height:64px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.cart-item .ci-fig .bottle-photo{ max-height:64px; width:auto; object-fit:contain; border-radius:2px; }
.ci-info{ flex:1; min-width:0; }
.ci-info h4{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:16px; color:var(--white); line-height:1.15; }
.ci-info .ci-col{ font-size:11px; color:var(--muted-2); letter-spacing:.06em; margin-top:1px; }
.ci-info .ci-unit{ font-size:11.5px; color:var(--muted); margin-top:4px; }
.ci-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:9px; }
.ci-total{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:16px; color:var(--gold-bright); }
.ci-remove{ font-size:10.5px; letter-spacing:.08em; color:var(--muted-2); text-transform:uppercase; margin-top:8px; }
.ci-remove:hover{ color:var(--sold); }
.cart-foot{ padding:22px 24px 26px; border-top:1px solid var(--line); background:var(--panel); }
.cart-total-row{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:4px; }
.cart-total-row .lbl{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.cart-total-row .val{ font-family:'Cormorant Garamond',serif; font-weight:700; font-size:30px; color:var(--gold-bright); }
.cart-note{ font-size:11px; color:var(--muted-2); line-height:1.55; margin:12px 0 18px; }
.wa-btn{ width:100%; padding:16px; border-radius:4px; background:var(--wa); color:#F6F1E8; font-family:'Jost',sans-serif; font-weight:500; font-size:14px; letter-spacing:.03em; display:flex; align-items:center; justify-content:center; gap:11px; transition:filter .2s; }
.wa-btn:hover{ filter:brightness(1.12); }
.wa-btn:disabled{ opacity:.35; cursor:not-allowed; filter:none; }
.wa-btn svg{ width:19px; height:19px; }

/* ======== FOOTER ======== */
footer{ position:relative; z-index:2; border-top:1px solid var(--line); padding:52px 6vw 60px; text-align:center; }
footer .f-emblem{ width:58px; margin:0 auto 20px; opacity:.9; }
footer .f-name{ font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:26px; color:var(--gold-bright); margin-bottom:8px; }
footer .f-contact{ font-size:14px; color:var(--cream); margin-bottom:6px; }
footer .f-contact strong{ color:var(--gold-bright); font-weight:500; }
footer .f-note{ font-size:11.5px; color:var(--muted-2); line-height:1.6; max-width:440px; margin:16px auto 0; }

/* ======== RESPONSIVO ======== */
@media(max-width:640px){
  .topbar-brand .tb-name{ display:none; }
  .grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .card{ padding:16px 13px 15px; }
  .card-figure{ height:120px; }
  .card-figure .bottle-photo{ max-height:110px; }
  .card h3{ font-size:16px; }
  .price{ font-size:17px; }
  .page-wrap{ padding:30px 14px 120px; }
  .distill-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .distill-card{ padding:18px 15px; min-height:120px; }
  .distill-card .dc-name{ font-size:18px; }
  .home-section{ padding:44px 14px 16px; }
  .hero{ padding:48px 5vw 36px; }
}
