:root {
  --paper: #fdf9f3;
  --white: #fffdf9;
  --cream: #f8ead7;
  --wine: #641e32;
  --wine-dark: #4c1426;
  --ink: #36252a;
  --muted: #6c5656;
  --line: #e8d9ce;
  --green: #2c513e;
  --green-light: #edf1e7;
  --serif: Georgia, "Times New Roman", serif;
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #b36536; outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .75rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 3; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; color: var(--wine); text-decoration: none; }
.brand-seal { flex: none; width: 58px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); }
.brand-seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.012); }
.brand-name { font: 600 1.63rem/.98 var(--serif); white-space: nowrap; }
.brand-name small { display: block; margin-top: .34rem; font: 700 .66rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.nav-links { display: flex; gap: clamp(1.25rem, 3.5vw, 3rem); align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav-links a:hover, .footer-content > a:last-child:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .22em; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: .5rem; text-decoration: none; font-weight: 700; line-height: 1.2; }
.bag-button { justify-self: end; color: var(--wine); background: transparent; border-color: #ccabb1; }
.bag-button:hover { background: #f3e6e3; }
.bag-icon { position: relative; flex: none; width: 14px; height: 13px; margin-top: 3px; border: 1.4px solid currentColor; border-radius: 2px; }
.bag-icon::before { position: absolute; top: -6px; left: 3px; width: 5px; height: 6px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; content: ""; }
.bag-count { min-width: 1.45rem; height: 1.45rem; padding-inline: .25rem; display: grid; place-items: center; border-radius: 1rem; background: var(--wine); color: white; font-size: .75rem; }

.demo-notice { margin-top: 1rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: #f3e8dc; color: var(--wine-dark); font-size: .9rem; }
.hero { display: grid; grid-template-columns: 44% 56%; min-height: 416px; margin-top: 1.6rem; overflow: hidden; border-radius: 1.15rem; background: var(--wine); color: var(--cream); }
.hero-copy { align-self: center; padding: clamp(2rem, 4.2vw, 3.65rem); }
.eyebrow { font-weight: 750; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #f7d2b3; }
.hero h1 { margin-block: .65rem 1rem; font-size: clamp(3.5rem, 5.55vw, 5.55rem); letter-spacing: -.058em; }
.hero h1 em { font-weight: inherit; color: #f4ccab; }
.hero-copy > p:not(.eyebrow) { max-width: 26rem; color: #f9e5dc; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1.45rem; }
.button-cream { background: var(--cream); color: var(--wine-dark); }
.button-cream:hover { background: #fff4e6; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 650; text-underline-offset: .25em; }
.hero-link:hover { color: #ffd0a7; }
.hero-photo { position: relative; background: #b47d60; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 54%; }

.catalog { padding-block: clamp(2.2rem, 5vw, 4rem); }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 1.25rem; margin-bottom: 1.4rem; }
.catalog h2, .story h2, .delivery h2 { color: var(--wine); font-size: clamp(2.5rem, 4.7vw, 3.7rem); letter-spacing: -.045em; }
.catalog-heading p { margin-top: .48rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.filters button, .bag-tabs button { min-height: 44px; padding: .55rem .83rem; color: var(--wine); background: var(--white); border: 1px solid var(--line); border-radius: 2rem; font-weight: 650; font-size: .9rem; }
.filters button:hover, .bag-tabs button:hover { border-color: #ab7781; }
.filters button[aria-pressed="true"], .bag-tabs button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: white; }
.filters button[data-filter="natal"][aria-pressed="true"], .bag-tabs button[data-type="natal"][aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.campaign-note { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #cedacb; border-radius: .65rem; background: var(--green-light); color: var(--green); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 1.37; background: #eed8c3; }
.product-photo { position: absolute; top: 50%; width: 100%; aspect-ratio: 418 / 470; transform: translateY(-50%); background-image: url("assets/ilustracoes-cardapio.png"); background-size: 400% 200%; background-repeat: no-repeat; }
.product-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: .95rem 1rem 1rem; }
.product-type { margin-bottom: .45rem; color: var(--wine); font-size: .8rem; font-weight: 750; }
.product[data-type="natal"] .product-type { color: var(--green); }
.product h3 { color: var(--ink); font-size: clamp(1.38rem, 2.3vw, 1.7rem); letter-spacing: -.025em; }
.product-description { margin-block: .55rem .9rem; color: var(--muted); font-size: .93rem; }
.product-actions { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; }
.product-price { color: var(--wine); white-space: nowrap; font-size: 1.06rem; }
.button-add { min-height: 44px; padding-inline: .8rem; background: #f5e8e4; color: var(--wine); font-size: .89rem; }
.button-add:hover { background: #ecdad8; }
.photo-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.story { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 3.6rem); border-block: 1px solid var(--line); }
.story h2 { max-width: 11ch; }
.story p { max-width: 43ch; color: var(--ink); font: 1.25rem/1.55 var(--serif); }
.delivery { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; margin-bottom: 4rem; padding: clamp(1.5rem, 4vw, 3.6rem); border-radius: 1rem; background: #f3e8dc; }
.delivery .eyebrow { color: var(--wine); margin-bottom: .6rem; }
.button-contact { margin-top: 1rem; border-color: var(--green); color: var(--green); background: var(--white); }
.button-contact:hover { background: var(--green-light); }
.delivery-details { display: grid; gap: .8rem; align-content: center; }
.delivery-details > div + div { padding-top: .8rem; border-top: 1px solid #dfccc0; }
.delivery-details dt { font-weight: 750; color: var(--wine-dark); }
.delivery-details dd { margin-top: .15rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-content { min-height: 105px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; color: var(--muted); }
.footer-content a:last-child { text-underline-offset: .22em; }

.toast { position: fixed; z-index: 4; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: .75rem 1rem; color: white; background: var(--wine-dark); border-radius: .6rem; pointer-events: none; }
.toast:empty { padding: 0; }
.bag-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 485px); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.bag-dialog::backdrop { background: #23131788; }
.bag-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.bag-header h2 { font-size: 2.15rem; color: var(--wine); }
.close-button { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: var(--white); font-size: 1.55rem; }
.bag-content { padding: 1.15rem 1.35rem 2rem; }
.bag-tabs { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1rem; }
.bag-help { color: var(--muted); margin-block: .35rem .9rem; }
.bag-items { margin: 0; padding: 0; list-style: none; }
.bag-items li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.item-name { font-weight: 700; }
.item-price { display: block; color: var(--muted); font-size: .9rem; }
.stepper { flex: none; display: flex; align-items: center; gap: .48rem; }
.stepper button { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: .4rem; background: var(--white); color: var(--wine); }
.checkout { margin-top: 1.1rem; }
.delivery-field { display: grid; gap: .4rem; font-weight: 650; }
.delivery-field select { min-height: 46px; padding: .55rem .65rem; border: 1px solid #ac8e87; border-radius: .4rem; color: var(--ink); background: var(--white); }
.totals { margin-block: 1rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.totals dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals .due { font-weight: 750; color: var(--wine); }
.button-pay { width: 100%; background: var(--wine); color: white; }
.button-pay:hover { background: var(--wine-dark); }
.confirmation { padding: 1.1rem; border-radius: .7rem; background: var(--green-light); color: var(--green); }
.confirmation h3 { margin-bottom: .5rem; font-size: 1.5rem; }
.confirmation p + p { margin-top: .65rem; }
.bag-back { width: 100%; margin-top: 1rem; border-color: var(--line); background: var(--white); color: var(--wine); }

@media (max-width: 950px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 48% 52%; min-height: 375px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --header-height: 72px; }
  .shell { width: calc(100% - 2rem); }
  .nav { grid-template-columns: 1fr auto; gap: .5rem; }
  .nav-links { display: none; }
  .brand-seal { width: 48px; }
  .brand-name { font-size: 1.4rem; }
  .brand-name small { font-size: .6rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { padding: 1.6rem 1.35rem 1.55rem; }
  .hero h1 { font-size: clamp(3.1rem, 10.8vw, 4.35rem); }
  .hero-photo { min-height: 0; aspect-ratio: 1.62; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .product-body { padding: .7rem; }
  .product h3 { font-size: 1.3rem; }
  .product-actions { gap: .4rem; }
  .story, .delivery { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
}
@media (max-width: 420px) {
  .bag-button { padding-inline: .65rem; }
  .bag-button .bag-icon { display: none; }
  .product-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
