:root{
  --cream:#fff9f0; --ink:#48251f; --red:#a91e3e; --red-dark:#87112c;
  --line:#e7d6c7; --muted:#6b4e44; --gold:#cf984d; --ribbon:#f6ebde;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:120px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
button,input,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
p,h1,h2,h3{margin-top:0}

/* Faixa superior */
.topline{background:var(--red);color:#fff;text-align:center;padding:10px 16px;font-size:11px;letter-spacing:2.4px}

/* Cabeçalho: fundo ocupa a tela toda, conteúdo centralizado */
header{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px max(24px,calc((100% - 1184px)/2 + 24px));
  background:rgba(255,249,240,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{font-family:'Playfair Display',Georgia,serif;font-size:27px;font-style:italic;font-weight:700;line-height:1}
.brand small{display:block;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:2px;text-align:right;margin-top:4px}
.brand i{font-family:'Playfair Display',Georgia,serif;font-size:23px;color:var(--red);letter-spacing:0;font-style:italic}
nav{display:flex;gap:28px;font-size:14px}
nav a{padding:10px 2px;min-height:44px;display:inline-flex;align-items:center}
nav a:hover{color:var(--red)}
.bag{min-height:44px;border:1px solid var(--line);background:transparent;border-radius:30px;padding:0 16px;font-size:14px;display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.bag:hover{border-color:var(--red)}
.bag span{display:inline-grid;place-items:center;background:var(--red);color:#fff;border-radius:50%;min-width:24px;height:24px;font-size:12px;font-weight:700}

/* Layout */
.wrap{max-width:1184px;margin:0 auto;padding-left:24px;padding-right:24px}

/* Hero */
.hero{display:grid;grid-template-columns:1fr 1fr;gap:56px;padding:64px 24px 72px;align-items:center}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:2.2px;color:var(--red);margin:0 0 18px}
h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(46px,5.4vw,74px);font-weight:500;line-height:1.05;letter-spacing:-1.5px;margin-bottom:24px}
h1 em{color:var(--red)}
.intro{font-size:17px;line-height:1.7;color:var(--muted);margin-bottom:26px}
.hero-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;font-size:14px;color:var(--muted);margin-bottom:26px}
.hero-price strong{font-family:'Playfair Display',Georgia,serif;font-size:34px;font-weight:600;color:var(--red)}
.hero-price span{font-size:13px}
.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:52px;background:var(--red);color:#fff;padding:14px 24px;border:0;border-radius:10px;font-size:15px;font-weight:600;transition:background .18s,transform .18s}
.primary:hover{background:var(--red-dark);transform:translateY(-2px)}
.hero-note{display:flex;align-items:center;gap:10px;font-size:13px;margin-top:26px;color:var(--muted)}
.hero-note span{font-size:22px;color:var(--red)}
.hero-photo{margin:0;border-radius:140px 140px 24px 24px;overflow:hidden;box-shadow:0 18px 50px #55211318;aspect-ratio:900/679}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}

/* Faixa */
.ribbon{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--ribbon);display:flex;justify-content:space-evenly;align-items:center;gap:20px;padding:20px;font-size:11px;letter-spacing:2px;overflow:hidden;white-space:nowrap}
.ribbon span{color:var(--red);font-size:16px}

/* Sabores */
.flavors{padding:72px 24px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:36px}
.section-heading .eyebrow{margin-bottom:12px}
.section-heading>p{font-size:14px;line-height:1.7;color:var(--muted);margin:0;text-align:right}
h2{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:40px;line-height:1.2;letter-spacing:-.8px;margin-bottom:0}
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;align-items:stretch}
.product{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fffdf9;box-shadow:0 5px 20px #48251f06;transition:transform .2s,box-shadow .2s}
.product:hover{transform:translateY(-4px);box-shadow:0 12px 30px #48251f12}
.product-photo{aspect-ratio:1/1;background:#f6ebde;border-bottom:1px solid var(--line)}
.product-photo img{width:100%;height:100%;object-fit:cover}
.product-body{display:flex;flex-direction:column;flex:1;padding:20px}
.product h3{font-family:'Playfair Display',Georgia,serif;font-size:23px;font-weight:500;margin-bottom:8px}
.product p{font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:18px}
.product-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px}
.product-bottom strong{font-size:21px;font-weight:700}
.product-bottom small{display:inline;font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}
.add{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;border:1px solid var(--red);background:#f9edf0;color:var(--red);font-size:14px;font-weight:600;transition:background .18s,color .18s}
.add span{font-size:20px;font-weight:400}
.add:hover{background:var(--red);color:#fff}
.small-note{font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0 0}

/* Como pedir */
.story{display:grid;grid-template-columns:1fr 1fr;gap:96px;padding:64px 24px 80px;border-top:1px solid var(--line)}
.story>div>p:last-child{margin:22px 0 0;color:var(--muted);line-height:1.8;font-size:15px;max-width:380px}
.story ol{list-style:none;margin:0;padding:0}
.story li{display:flex;gap:22px;margin-bottom:28px}
.story li>span{font-family:'Playfair Display',serif;font-size:30px;color:#ba8c72;line-height:1}
.story h3{font-size:16px;margin:2px 0 6px}
.story li p{font-size:14px;color:var(--muted);margin:0}

/* Fechamento */
.closing{padding:52px 24px;background:#f3e2d7;text-align:center}
.closing>span{font-size:34px;color:var(--red)}
.closing h2{font-size:32px;margin:10px 0 22px}
.closing a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:var(--red);border-bottom:1px solid var(--red);padding-bottom:4px}

footer{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1184px;margin:0 auto;padding:36px 24px}
footer p{margin:0;font-size:13px;color:var(--muted)}
footer>a:last-child{font-size:13px;min-height:44px;display:inline-flex;align-items:center}

/* Carrinho */
dialog{border:0;border-radius:16px;width:min(520px,calc(100% - 24px));padding:28px;max-height:90dvh;color:var(--ink);background:var(--cream);box-shadow:0 30px 80px #32140e40}
dialog::backdrop{background:#32140e99;backdrop-filter:blur(4px)}
.cart-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}
.cart-head h2{font-size:30px}
.cart-head .eyebrow{font-size:10px;margin-bottom:10px}
.close{min-width:44px;min-height:44px;border:0;background:none;font-size:30px;line-height:1;color:var(--ink)}
.cart-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:12px}
.cart-row small{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.cart-row p,#cart-items>p{font-size:14px;color:var(--muted)}
.quantity{display:flex;align-items:center;gap:12px}
.quantity span{min-width:20px;text-align:center;font-weight:600}
.quantity button{width:44px;height:44px;background:#fff;border:1px solid var(--line);border-radius:50%;font-size:20px;color:var(--ink)}
.quantity button:disabled{opacity:.4;cursor:not-allowed}
.total{display:flex;justify-content:space-between;align-items:baseline;margin-top:22px;font-size:15px}
.total strong{font-size:24px}
label{display:block;font-size:14px;margin:20px 0 8px;font-weight:500}
label span{color:var(--muted);font-weight:400}
input,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px;font-size:16px;color:var(--ink)}
textarea{resize:vertical;min-height:80px}
.checkout{width:100%;margin-top:22px;justify-content:center}
.checkout[aria-disabled=true]{opacity:.45;pointer-events:none}

/* Barra de pedido flutuante */
.quick-cart{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:15;display:flex;align-items:center;gap:16px;width:min(460px,calc(100% - 32px));min-height:56px;padding:14px 20px;background:var(--red);border:1px solid #ffffff40;border-radius:16px;color:#fff;box-shadow:0 10px 35px #48251f35;font-size:14px}
.quick-cart[hidden]{display:none}
.quick-cart>strong{margin-left:auto;white-space:nowrap;font-size:16px}
.quick-cart b{background:#ffffff24;padding:2px 8px;border-radius:6px;margin-left:6px;font-size:12px}
.has-order footer{padding-bottom:120px}

/* Aviso */
.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:#fff;border-radius:30px;padding:13px 22px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 32px);text-align:center;z-index:20}
.has-order .toast{bottom:100px}
.toast.visible{opacity:1;transform:translate(-50%,0)}
body:has(dialog[open]){overflow:hidden}

/* Tablet */
@media (max-width:1100px){
  .products{grid-template-columns:repeat(2,1fr)}
  .story{gap:56px}
}

/* Celular */
@media (max-width:760px){
  header{display:grid;grid-template-columns:1fr auto;gap:12px 10px;padding:14px 18px 0}
  .brand{justify-self:start;padding-bottom:12px}
  .bag{grid-column:2;grid-row:1;justify-self:end;margin-bottom:12px}
  nav{grid-column:1/-1;grid-row:2;justify-content:center;gap:28px;border-top:1px solid var(--line);padding:4px 0 0}
  nav a{font-size:14px;min-height:44px}
  .hero{grid-template-columns:1fr;gap:32px;padding:32px 22px 44px;text-align:center}
  .hero-copy{display:flex;flex-direction:column;align-items:center}
  .hero-copy .primary{width:100%;max-width:340px;justify-content:center}
  .intro{font-size:15px}
  .hero-price{justify-content:center}
  .hero-note{justify-content:center}
  .hero-photo{width:100%;max-width:460px;margin:0 auto;border-radius:110px 110px 20px 20px;aspect-ratio:1/1}
  h1{font-size:52px}
  .ribbon{justify-content:flex-start;font-size:10px;letter-spacing:1.5px}
  .flavors{padding:44px 16px}
  .wrap{padding-left:16px;padding-right:16px}
  .section-heading{display:block}
  .section-heading>p{text-align:left;margin-top:14px}
  h2{font-size:34px}
  .products{grid-template-columns:1fr 1fr;gap:12px}
  .product-body{padding:14px}
  .product h3{font-size:20px}
  .product p{font-size:13px;min-height:84px;margin-bottom:12px}
  .product-bottom strong{font-size:18px}
  .product-bottom small{display:block;margin:4px 0 0}
  .story{grid-template-columns:1fr;gap:32px;padding:44px 16px 52px}
  .closing h2{font-size:27px}
  footer{flex-direction:column;text-align:center;gap:18px;padding:32px 16px}
  .has-order footer{padding-bottom:120px}
  dialog{padding:22px}
}

@media (max-width:360px){
  .products{grid-template-columns:1fr}
  .product p{min-height:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
  .product:hover,.primary:hover{transform:none}
}
