/* ==========================================================
   Finno · site de pedidos
   Paleta tirada da logo: marrom #45230C sobre creme #FDF8ED
   ========================================================== */

@font-face { font-family: 'Cardo'; src: url('../assets/fonts/cardo-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cardo'; src: url('../assets/fonts/cardo-italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../assets/fonts/dmsans-var.woff') format('woff'); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --cream: #FDF8ED;
  --cream-2: #F7EEDD;
  --paper: #FFFCF6;
  --beige: #EADBC4;
  --beige-2: #DCC6A6;
  --caramel: #B8875A;
  --caramel-ink: #8A5A2E;
  --choco: #45230C;
  --choco-2: #5E3417;
  --ink: #2E1A0E;
  --muted: #6B5444;
  --line: #E6D6BE;
  --ok: #2F6B3F;
  --warn: #9A3B1E;
  --wa: #0F7A43;
  --wa-2: #0B6336;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(69, 35, 12, .06), 0 10px 30px -12px rgba(69, 35, 12, .22);
  --shadow-lg: 0 30px 80px -30px rgba(46, 26, 14, .45);
  --serif: 'Cardo', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--choco); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--choco); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--choco); color: var(--cream); padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.status-banner { background: var(--choco); color: var(--cream); text-align: center; font-size: .875rem; padding: .5rem 1rem; }
.status-banner[data-tone="warn"] { background: var(--warn); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--choco); color: var(--cream); }
.btn-primary:hover:not(:disabled) { background: var(--choco-2); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(69, 35, 12, .6); }
.btn-outline { background: transparent; border-color: var(--choco); color: var(--choco); }
.btn-outline:hover:not(:disabled) { background: var(--choco); color: var(--cream); }
.btn-link { background: none; color: var(--choco); text-decoration: underline; text-decoration-color: var(--caramel); padding-inline: .6rem; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover:not(:disabled) { background: var(--wa-2); transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding-inline: 1.8rem; font-size: 1.02rem; }
.btn-sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: .35rem 0; color: var(--choco); font-weight: 600; text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.btn-text:hover { color: var(--caramel-ink); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  display: inline-grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--choco); cursor: pointer; flex: none;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover:not(:disabled) { background: var(--cream-2); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.link-reset { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 248, 237, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: .4rem 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); }
.cart-button {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .4rem .6rem .4rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--choco); background: transparent; color: var(--choco); font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cart-button:hover { background: var(--choco); color: var(--cream); }
.cart-count { min-width: 28px; height: 28px; padding: 0 .45rem; border-radius: 999px; background: var(--choco); color: var(--cream); display: inline-grid; place-items: center; font-size: .82rem; font-variant-numeric: tabular-nums; }
.cart-button:hover .cart-count { background: var(--cream); color: var(--choco); }
.cart-count[data-empty="true"] { background: var(--beige); color: var(--choco); }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

.notice-bar { background: var(--choco); color: var(--cream); }
.notice-inner { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .5rem 0; font-size: .9rem; letter-spacing: .01em; }
.notice-inner svg { flex: none; color: var(--beige-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: auto -10% -45% 35%; height: 90%; background: radial-gradient(closest-side, rgba(234, 219, 196, .75), transparent); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--caramel-ink); }
.eyebrow img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); line-height: 1.04; margin: 1.1rem 0 1.25rem; letter-spacing: -.01em; text-wrap: balance; }
.hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.hero-media { margin: 0; justify-self: end; width: min(100%, 470px); position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--caramel); border-radius: 999px 999px 28px 28px; opacity: .55; }
.arch { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-2); box-shadow: var(--shadow-lg); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- seções ---------- */
.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.005em; }
.section-sub { color: var(--muted); margin-top: .4rem; }

.steps { padding: 3.5rem 0; background: var(--paper); border-block: 1px solid var(--line); }
.steps .section-title { text-align: center; }
.steps-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps-list li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--caramel); color: var(--choco); font-family: var(--serif); font-size: 1.35rem; display: grid; place-items: center; }
.steps-list h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.steps-list p { color: var(--muted); font-size: .95rem; }

.catalog { padding: clamp(3.5rem, 7vw, 6rem) 0; outline: none; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { min-height: 42px; padding: .4rem 1.05rem; border-radius: 999px; border: 1px solid var(--beige-2); background: var(--paper); color: var(--ink); font-weight: 500; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--choco); }
.chip[aria-pressed="true"] { background: var(--choco); color: var(--cream); border-color: var(--choco); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .5s var(--ease) both; }
.card:nth-child(2) { animation-delay: .06s; } .card:nth-child(3) { animation-delay: .12s; } .card:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--cream-2); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-cat { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--caramel-ink); }
.card-title { font-size: 1.6rem; }
.card-title .link-reset:hover { text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 4px; }
.card-desc { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price { font-weight: 700; font-size: 1.12rem; color: var(--choco); font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: .78rem; color: var(--muted); display: block; line-height: 1.1; }
.price.muted { font-weight: 500; font-size: .95rem; color: var(--muted); }
.badge { position: absolute; top: .85rem; left: .85rem; padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.badge-demo { background: var(--paper); color: var(--choco); border: 1px solid var(--beige-2); }
.badge-off { background: var(--choco); color: var(--cream); }
.card.is-off .card-media img { filter: saturate(.85); }
.empty-note { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--beige-2); border-radius: var(--radius); }
.skeleton { animation: none; }
.skeleton .card-media, .skeleton .card-body span { background: linear-gradient(90deg, var(--cream-2), var(--paper), var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .card-body span { display: block; height: 14px; border-radius: 6px; }
.skeleton .card-body span:first-child { width: 60%; height: 22px; } .skeleton .card-body span:last-child { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.info { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--cream-2); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.info-card { background: var(--paper); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); }
.info-card h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.info-card p { color: var(--muted); font-size: .95rem; }
.fee-table { margin-top: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fee-table summary { cursor: pointer; padding: 1rem 1.4rem; font-weight: 600; color: var(--choco); min-height: 48px; }
.fee-table-body { padding: 0 1.4rem 1.2rem; }
.fee-table table { width: 100%; max-width: 420px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { text-align: left; padding: .45rem .25rem; border-bottom: 1px solid var(--line); font-size: .93rem; }
.fee-table th { color: var(--muted); font-weight: 600; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; }
.fee-table p { margin-top: .7rem; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--choco); color: #F3E7D3; padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 1rem; }
.footer-brand p { color: #E3D2B8; max-width: 30ch; }
.footer-col h2 { font-size: 1.35rem; color: #FDF8ED; margin-bottom: .7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col li { color: #E3D2B8; font-size: .95rem; }
.site-footer a { color: #FDF8ED; text-decoration-color: rgba(253, 248, 237, .45); }
.site-footer :focus-visible { outline-color: var(--beige); }
.footer-bottom { border-top: 1px solid rgba(253, 248, 237, .15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: #D7C3A6; }

/* ---------- barra do carrinho (celular) ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(253, 248, 237, 1) 60%, rgba(253, 248, 237, 0)); display: none; }
.cart-bar-btn { width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--choco); color: var(--cream); display: flex; align-items: center; gap: .75rem; padding: .5rem 1.1rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.cart-bar-count { background: rgba(253, 248, 237, .16); border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; }
.cart-bar-total { font-variant-numeric: tabular-nums; }
.cart-bar-cta { margin-left: auto; }

/* ---------- diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(46, 26, 14, .45); backdrop-filter: blur(2px); }
dialog[open] { animation: dlg-in .32s var(--ease); }
dialog[open]::backdrop { animation: fade-in .3s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet { width: min(980px, 100% - 2rem); max-height: calc(100dvh - 3rem); border-radius: 24px; overflow: auto; box-shadow: var(--shadow-lg); }
.sheet-close-form { position: sticky; top: 0; height: 0; z-index: 3; display: flex; justify-content: flex-end; }
.sheet-close { margin: .9rem .9rem 0 0; }
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { background: var(--cream-2); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; position: sticky; top: 0; }
.pd-info { padding: 2.2rem 2.2rem 2rem; display: flex; flex-direction: column; gap: .75rem; }
.pd-title { font-size: clamp(2rem, 3vw, 2.5rem); padding-right: 2.5rem; }
.pd-price { font-weight: 700; color: var(--choco); font-size: 1.15rem; }
.pd-desc { color: var(--muted); }
.opt-group { border: 0; padding: 0; margin: 1rem 0 0; }
.opt-group legend { font-weight: 700; color: var(--choco); margin-bottom: .55rem; display: flex; gap: .5rem; align-items: baseline; width: 100%; }
.req { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--caramel-ink); }
.opt-hint { font-size: .82rem; font-weight: 400; color: var(--muted); }
.opt-list { display: grid; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .75rem; padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--paper); transition: border-color .2s var(--ease), background-color .2s var(--ease); min-height: 52px; }
.opt:hover { border-color: var(--beige-2); }
.opt:has(input:checked) { border-color: var(--choco); background: var(--cream); }
.opt:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 2px; }
.opt.is-off { opacity: .55; cursor: not-allowed; }
.opt input { accent-color: var(--choco); width: 18px; height: 18px; flex: none; margin: 0; }
.opt-main { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.opt-detail { font-size: .85rem; color: var(--muted); }
.opt-price { font-weight: 600; font-size: .93rem; color: var(--choco); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-buy { display: flex; gap: .75rem; margin-top: 1.2rem; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); flex: none; }
.qty-btn { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; color: var(--choco); cursor: pointer; border-radius: 999px; }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-val { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-sm .qty-btn { width: 40px; height: 40px; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-top: 1.1rem; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-inline: 0; }
.field label, .label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid var(--beige-2); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--choco); box-shadow: 0 0 0 3px rgba(184, 135, 90, .35); }
.field input:disabled { background: var(--cream-2); color: var(--muted); }
[aria-invalid="true"] { border-color: var(--warn) !important; }
.field-error, .form-error { color: var(--warn); font-size: .9rem; font-weight: 500; }
.form-error:empty { display: none; }
.hint { color: var(--muted); font-size: .9rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .93rem; cursor: pointer; min-height: 40px; }
.check input { accent-color: var(--choco); width: 18px; height: 18px; }
.callout { background: var(--cream-2); border-left: 3px solid var(--caramel); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: var(--ink); }
.callout-warn { border-left-color: var(--warn); }

/* ---------- carrinho ---------- */
.drawer { margin: 0 0 0 auto; width: min(460px, 100%); height: 100dvh; max-height: 100dvh; display: none; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; animation: drawer-in .38s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.9rem; }
.drawer-body { flex: 1; overflow: auto; padding: 1rem 1.4rem; }
.drawer-foot { padding: 1.1rem 1.4rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: .6rem; background: var(--paper); }
.drawer-foot:empty { display: none; }
.cart-empty { text-align: center; padding: 3rem 1rem; display: grid; justify-items: center; gap: 1rem; color: var(--muted); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: rise .35s var(--ease); }
.cart-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--cream-2); }
.cart-name { font-family: var(--serif); font-size: 1.25rem; color: var(--choco); line-height: 1.2; }
.cart-opts, .cart-notes { font-size: .88rem; color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.cart-price { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.sum-row > :last-child { text-align: right; }
.sum-total { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .3rem; font-size: 1.1rem; }
.sum-total strong { color: var(--choco); }

/* ---------- finalização ---------- */
.checkout { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; background: var(--cream); overflow: auto; }
.checkout-head { position: sticky; top: 0; z-index: 5; background: rgba(253, 248, 237, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.checkout-head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.checkout-logo { height: 34px; width: auto; flex: none; }
.stepper { list-style: none; display: flex; gap: .4rem; margin: 0 auto; padding: 0; overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); white-space: nowrap; padding: .3rem .55rem; }
.stepper li + li::before { content: ''; width: 18px; height: 1px; background: var(--beige-2); margin-right: .35rem; }
.stepper .dot { width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--beige-2); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.stepper .current { color: var(--choco); font-weight: 700; }
.stepper .current .dot { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.stepper .of { display: none; color: var(--muted); font-weight: 500; }
.stepper .done .dot { background: var(--beige); border-color: var(--beige); color: var(--choco); }
.checkout-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; padding: 2.2rem 0 4rem; align-items: start; }
.checkout-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); animation: rise .35s var(--ease); }
.step-title { font-size: clamp(1.9rem, 3vw, 2.4rem); outline: none; }
.step-sub { color: var(--muted); margin-top: .4rem; }
.co-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.co-nav .btn { flex: 1 1 auto; }
.co-nav .btn-primary { flex: 2 1 auto; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.choice-grid.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem 1rem 3rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.choice input { position: absolute; left: 1.1rem; top: 1.15rem; accent-color: var(--choco); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--choco); background: var(--cream); }
.choice:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 2px; }
.choice-title { font-weight: 700; color: var(--choco); }
.choice-desc { font-size: .88rem; color: var(--muted); }
.inline-radios { display: flex; gap: 1.5rem; }
.narrow { max-width: 260px; }

.calendar { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-title { font-family: var(--serif); font-size: 1.35rem; color: var(--choco); }
.cal-title::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: .25rem; }
.cal-day { aspect-ratio: 1; min-height: 40px; min-width: 0; padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: var(--cream); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .15s var(--ease); }
.cal-day:hover:not(:disabled) { border-color: var(--choco); }
.cal-day:disabled { background: transparent; color: #B9A891; font-weight: 400; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(185, 168, 145, .6); }
.cal-day.is-today { box-shadow: inset 0 -2px 0 var(--beige-2); }
.cal-day.is-first:not(.is-selected) { border-color: var(--caramel); border-style: dashed; }
.cal-day.is-selected { background: var(--choco); color: var(--cream); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .8rem; color: var(--muted); margin-top: .7rem; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-first { border: 1.5px dashed var(--caramel); }
.lg-sel { background: var(--choco); margin-left: .5rem; }
.selected-date { margin-top: .5rem; color: var(--ink); }
.selected-date:empty { display: none; }

.addr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 1rem; }
.addr-grid .field { grid-column: span 6; }
.addr-grid .field-cep { grid-column: span 3; }
.addr-grid .field-street { grid-column: span 6; }
.addr-grid .field-number { grid-column: span 2; }
.addr-grid .field-complement { grid-column: span 4; }
.addr-grid .field-district { grid-column: span 6; }
.addr-grid .field-city { grid-column: span 4; }
.addr-grid .field-state { grid-column: span 2; }
.fee-box { margin-top: 1.8rem; padding: 1.2rem 1.3rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); display: grid; gap: .7rem; }
.fee-box h4 { font-size: 1.4rem; }
.fee-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.fee-msg { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.fee-msg.is-error { color: var(--warn); }
.fee-result { outline: none; }
.fee-result.ok { background: #fff; border-radius: var(--radius-sm); padding: .8rem 1rem; border: 1px solid var(--line); display: grid; gap: .3rem; }
.fee-result.ok p { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.fee-result.ok strong { color: var(--choco); font-size: 1.05rem; }
.fee-result.pending { color: var(--ink); }
.pin-map { position: relative; isolation: isolate; height: 280px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); }
.pin-map-canvas { position: absolute; inset: 0; }
.pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -100%); pointer-events: none; z-index: 600; }
.pin::before { content: ''; position: absolute; inset: 0; background: var(--choco); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.pin::after { content: ''; position: absolute; left: 10px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); }
.pad { padding: 1rem; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--beige-2); border-top-color: var(--choco); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-summary { position: sticky; top: 96px; }
.summary-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: grid; gap: .6rem; }
.summary-box > summary { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; cursor: pointer; font-family: var(--serif); font-size: 1.35rem; color: var(--choco); min-height: 44px; }
.summary-box > summary::-webkit-details-marker { display: none; }
.summary-box > summary strong { font-family: var(--sans); font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-box > summary small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.summary-box[open] > summary { margin-bottom: .3rem; }
.sum-items { list-style: none; margin: 0; padding: 0 0 .6rem; display: grid; gap: .6rem; border-bottom: 1px solid var(--line); }
.sum-items li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; font-variant-numeric: tabular-nums; }
.sum-items small { display: block; color: var(--muted); font-size: .82rem; }

.review-sec { border-top: 1px solid var(--line); padding: 1.1rem 0; margin-top: 1rem; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.review-head h4 { font-size: 1.35rem; }
.review-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.review-items li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.review-items li div { display: grid; }
.review-items span { font-size: .9rem; color: var(--muted); }
.review-values { display: grid; gap: .35rem; }
.msg-preview { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.msg-preview summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--choco); min-height: 44px; }
.msg-preview pre { margin: 0; padding: 0 1rem 1rem; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: .88rem; color: var(--ink); max-height: 360px; overflow: auto; }
.send-box { margin-top: 1rem; }
.co-nav-review { margin-top: .75rem; }
.after-send { margin-top: 1.5rem; padding: 1.3rem; border-radius: var(--radius-sm); background: #EEF5EF; border: 1px solid #C9DDCC; display: grid; gap: .6rem; outline: none; animation: rise .35s var(--ease); }
.after-send h4 { font-size: 1.45rem; color: var(--ok); }
.after-send .co-nav { margin-top: .4rem; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; width: max-content; max-width: min(460px, calc(100vw - 2rem)); z-index: 60; transform: translate(-50%, 140%); background: var(--ink); color: var(--cream); padding: .7rem .8rem .7rem 1.1rem; border-radius: 14px; display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow-lg); font-size: .93rem; transition: transform .35s var(--ease), opacity .35s var(--ease); opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-btn { background: var(--cream); color: var(--choco); border: 0; border-radius: 999px; padding: .45rem .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 38px; }
.noscript { padding: 1rem; text-align: center; background: var(--cream-2); }

/* ---------- responsivo ---------- */
@media (max-width: 959px) {
  .checkout-body { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; }
  .checkout-summary { position: static; order: -1; }
  .stepper .lbl { display: none; }
  .stepper .current .lbl { display: inline; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 380px); order: 2; }
  .hero-copy { order: 1; }
  .main-nav { display: none; }
  .cart-button { margin-left: auto; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-media img { aspect-ratio: 4 / 3; position: static; }
}
@media (max-width: 719px) {
  :root { --header-h: 64px; }
  .wrap { width: min(1180px, 100% - 2rem); }
  .brand img { height: 36px; }
  .cart-button-label { display: none; }
  .cart-button { padding: .4rem .5rem .4rem .75rem; }
  .cart-bar { display: block; }
  .cart-bar[hidden] { display: none; }
  body.has-cart-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-cart-bar .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero h1 { margin-top: .8rem; }
  .notice-inner { font-size: .84rem; text-align: left; }
  .hero-actions .btn-primary { flex: 1 1 100%; }
  .hero-media::before { inset: 12px -10px -12px 10px; }
  .steps { padding: 2.5rem 0; }
  .steps-list { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .sheet { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pd-info { padding: 1.4rem 1.25rem 2rem; }
  .pd-buy { position: sticky; bottom: 0; background: var(--paper); padding: .75rem 0 calc(.5rem + env(safe-area-inset-bottom)); margin-top: .75rem; border-top: 1px solid var(--line); }
  .drawer { width: 100%; }
  .checkout-head-inner { gap: .6rem; min-height: 60px; }
  .checkout-logo { height: 28px; }
  .stepper li:not(.current) { display: none; }
  .stepper li::before { display: none !important; }
  .stepper .dot { display: none; }
  .stepper .of { display: inline; }
  .checkout-main { padding: 1.25rem 1rem; }
  .calendar { padding: .7rem .55rem; }
  .cal-day { min-height: 36px; }
  .addr-grid .field-cep, .addr-grid .field-number, .addr-grid .field-state { grid-column: span 3; }
  .addr-grid .field-complement, .addr-grid .field-city { grid-column: span 6; }
  .co-nav { flex-direction: column-reverse; }
  .co-nav-review { flex-direction: row; }
  .card-foot { flex-wrap: wrap; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-thumb { width: 60px; height: 60px; }
  .cart-price { grid-column: 2; text-align: left; flex-direction: row; gap: .5rem; align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.pin-map .leaflet-control-attribution { font-size: 11px; line-height: 1.5; }
.pin-map .leaflet-control-zoom a { color: var(--choco); background: var(--paper); }

.fee-result.ok .fee-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .75rem; align-items: baseline; }
.fee-result.ok .fee-total strong { font-size: clamp(1.35rem, 4vw, 1.8rem); }
.fee-total span { font-weight: 700; }
.route-test-map { margin: 1rem 0; }
