:root {
  color-scheme: light;
  --paper: #faf6ee;
  --white: #fffdf7;
  --ink: #2c231d;
  --quiet: #62574c;
  --wine: #781f2a;
  --wine-dark: #58151e;
  --pine: #244337;
  --gold: #9b6b31;
  --edge: #e5dbcb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(.cart-dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, textarea, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #9d531f; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-160%); background: var(--white); padding: .75rem 1rem; border-radius: .4rem; }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--edge); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.6rem; padding-block: .5rem; }
.site-brand { display: inline-flex; flex: none; }
.site-brand img { height: 4.25rem; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; column-gap: clamp(1rem, 3vw, 2.65rem); }
.nav-short { display: none; }
.main-nav a, .footer-links a { color: var(--quiet); font-size: .9rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .footer-links a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .3em; }
.cart-button { min-height: 2.85rem; display: flex; align-items: center; justify-content: center; gap: .6rem; background: var(--white); border: 1px solid var(--edge); border-radius: 100vw; cursor: pointer; padding: .45rem .55rem .45rem 1rem; font-size: .92rem; font-weight: 700; }
.cart-button:hover { border-color: var(--wine); }
.cart-count { display: grid; min-width: 1.8rem; min-height: 1.8rem; padding-inline: .24rem; place-content: center; border-radius: 100vw; background: var(--wine); color: white; font-size: .83rem; font-variant-numeric: tabular-nums; }
.bag-icon { display: inline-block; position: relative; width: .95rem; height: .8rem; border: 1.5px solid currentColor; border-radius: 2px; margin-top: .2rem; }
.bag-icon::before { content: ""; position: absolute; left: .19rem; top: -.4rem; width: .38rem; height: .43rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 100vw 100vw 0 0; }

.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(2rem, 5vw, 5.2rem); padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3.3rem, 7vw, 5.75rem); }
.hero-content { padding-block: 1.5rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); text-transform: uppercase; font-size: .875rem; letter-spacing: .11em; font-weight: 750; }
.spark { margin-right: .36rem; color: var(--gold); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; margin: 0; }
h1 { color: var(--wine); font-size: clamp(3.8rem, 8vw, 7.25rem); max-width: 11ch; line-height: .94; }
h1 em { display: block; font-weight: inherit; }
h2 { font-size: clamp(2rem, 4.4vw, 4.05rem); }
.hero-description { font-size: clamp(1.05rem, 1.65vw, 1.25rem); line-height: 1.55; color: var(--quiet); max-width: 36ch; margin: 1.4rem 0 1.7rem; }
.hero-note { margin: 1.05rem 0 0; font-size: .875rem; color: var(--quiet); }
.hero-note span { padding-inline: .24rem; }
.hero-media { position: relative; isolation: isolate; }
.hero-media::before { position: absolute; content: ""; inset: .85rem -.75rem -.75rem .75rem; border: 1px solid #c7ab7c; border-radius: 1.1rem 7.5rem 1.1rem 1.1rem; z-index: -1; }
.hero-media img { width: 100%; aspect-ratio: 1.19; height: auto; background: #e5d0b5; object-fit: cover; object-position: center; border-radius: 1rem 7.5rem 1rem 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 2.85rem; gap: .5rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; font-size: .94rem; font-weight: 750; line-height: 1.3; text-decoration: none; }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: var(--wine-dark); }
.button-secondary { background: var(--white); border-color: #be9c9a; color: var(--wine); }
.button-secondary:hover { color: #fff; background: var(--wine); border-color: var(--wine); }
.button-light { background: #fbf0db; color: var(--wine-dark); }
.button-light:hover { background: #fffdf7; }

.catalog-section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
#brigadeiros { border-top: 1px solid var(--edge); }
.section-heading { margin-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.section-heading h2 { color: var(--wine); }
.section-heading > p:last-child { margin: .8rem 0 0; color: var(--quiet); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.75vw, 1.5rem); }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--edge); border-radius: 1rem; overflow: hidden; }
.product-card > img { width: 100%; height: auto; aspect-ratio: 1.14; object-fit: cover; background: #efe3d0; }
.product-body { min-width: 0; display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: clamp(.9rem, 1.6vw, 1.25rem); }
.product-title { margin: 0; color: var(--wine-dark); font: 500 clamp(1.25rem, 2vw, 1.63rem)/1.13 var(--serif); }
.product-description { margin: .42rem 0 0; color: var(--quiet); font-size: .9rem; line-height: 1.47; }
.product-price { color: var(--wine); font-size: 1.13rem; font-weight: 750; margin: .58rem 0 0; font-variant-numeric: tabular-nums; }
.product-options { display: flex; flex-direction: column; gap: .3rem; }
.product-body > .product-options { margin-top: auto; }
.product-body > .product-actions { margin-top: auto; }
.product-options + .product-actions { margin-top: 0; }
.product-options label, .order-details label { color: var(--ink); font-size: .875rem; font-weight: 650; }
select, textarea { width: 100%; min-width: 0; padding: .62rem .7rem; background: var(--white); color: var(--ink); border: 1px solid #cbbdad; border-radius: .48rem; }
select { appearance: none; padding-right: 1.85rem; min-height: 2.65rem; background-image: linear-gradient(45deg, transparent 50%, var(--quiet) 50%), linear-gradient(135deg, var(--quiet) 50%, transparent 50%); background-position: calc(100% - 1rem) 53%, calc(100% - .72rem) 53%; background-size: .29rem .29rem; background-repeat: no-repeat; }
.product-actions { display: flex; gap: .52rem; align-items: stretch; }
.product-actions .button { flex: 1; min-width: 0; padding-inline: .58rem; min-height: 2.65rem; }
.stepper { display: inline-grid; grid-template-columns: 2rem minmax(1.4rem, auto) 2rem; align-items: center; background: var(--white); color: var(--ink); border: 1px solid #cbbdad; border-radius: .5rem; }
.stepper button { height: 100%; min-height: 2.6rem; padding: 0; background: none; border: 0; border-radius: .4rem; cursor: pointer; font-weight: 700; font-size: 1.09rem; }
.stepper button:hover:not(:disabled) { background: #f2e5da; }
.stepper button:disabled { color: #85796d; cursor: default; }
.stepper output { text-align: center; font-size: .91rem; font-weight: 700; padding-inline: .24rem; font-variant-numeric: tabular-nums; }

.truffles-section { background: #f2ebdf; border-block: 1px solid var(--edge); }
.truffle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.truffle-card > img { aspect-ratio: 1.5; object-position: center 54%; }
.truffle-card .product-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

.order-section { padding-block: clamp(2.8rem, 6vw, 5.4rem); }
.order-panel { background: var(--pine); color: var(--white); border-radius: 1rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: clamp(1.65rem, 5vw, 4rem); }
.order-panel .eyebrow, .order-panel .spark { color: #f3cf9a; }
.order-panel h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
.order-panel p:not(.eyebrow) { color: #f4eee0; margin: .8rem 0 0; max-width: 59ch; }
.order-actions { display: grid; justify-items: center; gap: .75rem; flex: none; }
.text-link { font-weight: 650; font-size: .94rem; text-underline-offset: .24em; }
.site-footer { border-top: 1px solid var(--edge); color: var(--quiet); }
.footer-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.footer-row p { margin: 0; font-size: .875rem; }
.footer-row strong { font-size: 1rem; color: var(--ink); }
.footer-links { display: flex; gap: 1.5rem; }

.cart-dialog { background: var(--white); color: var(--ink); border: 0; border-radius: 1rem 0 0 1rem; inset: 0 0 0 auto; width: min(100%, 32rem); height: 100%; height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; }
.cart-dialog::backdrop { background: rgba(38, 25, 21, .55); }
.cart-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.cart-header, .cart-content, .cart-checkout { padding-inline: clamp(1rem, 5vw, 1.75rem); }
.cart-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-block: 1.2rem; border-bottom: 1px solid var(--edge); }
.cart-header .eyebrow { margin-bottom: .4rem; }
.cart-header h2 { color: var(--wine); font-size: clamp(2rem, 7vw, 2.75rem); }
.close-button { display: grid; flex: none; place-content: center; width: 2.7rem; height: 2.7rem; border-radius: 100vw; background: var(--paper); border: 1px solid var(--edge); color: var(--wine); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.close-button:hover { background: #f4e1d8; }
.cart-content { overflow-y: auto; overscroll-behavior: contain; }
.empty-cart { padding-block: 2rem; }
.empty-cart p { margin: 0 0 1rem; color: var(--quiet); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .45rem .5rem; padding-block: 1rem; border-bottom: 1px solid var(--edge); }
.cart-item h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.cart-item p { margin: .2rem 0 0; color: var(--quiet); font-size: .875rem; }
.cart-line-price { color: var(--wine); justify-self: end; text-align: right; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cart-item .stepper { justify-self: start; }
.cart-remove { align-self: center; justify-self: end; padding: .6rem .15rem; color: var(--wine); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; font-size: .875rem; }
.order-details { display: grid; gap: .44rem; padding-block: 1.2rem; }
.order-details label:not(:first-child) { margin-top: .45rem; }
.order-details label span { font-weight: 400; color: var(--quiet); margin-left: .25rem; }
.order-details textarea { resize: vertical; }
.cart-checkout { border-top: 1px solid var(--edge); padding-block: .95rem max(1rem, env(safe-area-inset-bottom)); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; font-weight: 650; }
.cart-total strong { color: var(--wine); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cart-checkout p { color: var(--quiet); font-size: .85rem; margin: .35rem 0 .75rem; }
.button-whatsapp { width: 100%; background: var(--pine); color: white; }
.button-whatsapp:hover { background: #163327; }
.cart-status { position: fixed; width: max-content; max-width: calc(100% - 2rem); z-index: 5; inset: auto 1rem 1rem auto; margin: 0; padding: .65rem 1rem; background: var(--pine); color: white; font-size: .88rem; border-radius: .6rem; box-shadow: 0 .3rem 1rem #30281e22; pointer-events: none; }
.cart-status:empty { opacity: 0; }

@media (max-width: 64rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card > img { aspect-ratio: 1.35; }
  .main-nav { column-gap: 1rem; }
}
@media (max-width: 48rem) {
  .container { width: calc(100% - 2rem); }
  .header-row { flex-wrap: wrap; gap: .25rem 1rem; min-height: 0; padding-block: .5rem 0; }
  .site-brand img { height: 3.6rem; }
  .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: .4rem 1.25rem; padding: .45rem 0 .65rem; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 3.25rem; gap: 1.1rem; }
  .hero-content { padding-block: .35rem .7rem; }
  .hero-description { margin-block: 1.05rem 1.2rem; }
  .hero-media { margin-right: .4rem; }
  .hero-media img { aspect-ratio: 1.36; border-top-right-radius: 4rem; }
  .hero-media::before { inset: .45rem -.44rem -.5rem .45rem; border-top-right-radius: 4rem; }
  .order-panel { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .order-actions { display: flex; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 32rem) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-body { padding: 1.05rem; }
  .product-card > img { aspect-ratio: 1.58; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .cart-dialog { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
