/* Tsale Cestas — loja (HTML/CSS/JS puro) */
/* Tema claro (padrão) */
:root {
  color-scheme: light;
  --ink: #1F1A17;
  --muted: #5E5650;
  --body: #3D3632;
  --ground: #FBF9F6;
  --panel: #F4EFE8;
  --surface: #FFFFFF;
  --line: #E7E0D6;
  --line-soft: #EFE9E1;
  --field: #CFC6BB;
  --accent: #6B1F2C;
  --accent-dark: #4A1520;
  --accent-soft: #F7F1EA;
  --on-accent: #FBF9F6;
  --on-accent-muted: #EADBD6;
  --topbar-bg: #6B1F2C;
  --topbar-ink: #FBF9F6;
  --ok: #2F5A3A;
  --warn: #9A6B1F;
  --bad: #9B1C1C;
  --stripe-a: #EFE8DE;
  --stripe-b: #F4EEE6;
  --inverse-bg: #1F1A17;
  --inverse-ink: #FBF9F6;
  --inverse-muted: #CFC6BB;
  --inverse-accent: #D9C7A8;
  --inverse-link: #F0D9C4;
  --inverse-line: #1F1A17;
  --photo-dim: none;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Tema escuro: grafite quente com o dourado da cesta do logo. Vale quando o aparelho
   está no modo escuro (salvo se o cliente escolheu o claro) ou quando ele escolhe o escuro. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #F1EBE3; --muted: #ADA296; --body: #D9D0C6;
    --ground: #171412; --panel: #201C19; --surface: #26211E;
    --line: #39322D; --line-soft: #2F2925; --field: #554B44;
    --accent: #D9B77E; --accent-dark: #E8CFA3; --accent-soft: #2E2720;
    --on-accent: #1E1916; --on-accent-muted: #4A3C2A;
    --topbar-bg: #2B2420; --topbar-ink: #E8CFA3;
    --ok: #8CC79C; --warn: #E0B467; --bad: #F29A9A;
    --stripe-a: #26211E; --stripe-b: #2B2622;
    --inverse-bg: #24201C; --inverse-ink: #F1EBE3; --inverse-muted: #C9BFB4;
    --inverse-accent: #D9B77E; --inverse-link: #E8CFA3; --inverse-line: #3A332D;
    --photo-dim: brightness(.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F1EBE3; --muted: #ADA296; --body: #D9D0C6;
  --ground: #171412; --panel: #201C19; --surface: #26211E;
  --line: #39322D; --line-soft: #2F2925; --field: #554B44;
  --accent: #D9B77E; --accent-dark: #E8CFA3; --accent-soft: #2E2720;
  --on-accent: #1E1916; --on-accent-muted: #4A3C2A;
  --topbar-bg: #2B2420; --topbar-ink: #E8CFA3;
  --ok: #8CC79C; --warn: #E0B467; --bad: #F29A9A;
  --stripe-a: #26211E; --stripe-b: #2B2622;
  --inverse-bg: #24201C; --inverse-ink: #F1EBE3; --inverse-muted: #C9BFB4;
  --inverse-accent: #D9B77E; --inverse-link: #E8CFA3; --inverse-line: #3A332D;
  --photo-dim: brightness(.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.serif { font-family: var(--serif); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* Fotos: se a imagem falhar, fica a textura listrada */
.photo { position: relative; overflow: hidden; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: var(--photo-dim); }
a:hover .photo img { transform: scale(1.04); }

/* Barra de aviso + cabeçalho */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); text-align: center; font-size: 13px; padding: 10px 16px; }
.header { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { font-weight: 500; color: var(--muted); }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 500; flex: 1; justify-content: center; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.icons { display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--ink); text-decoration: none; }
.badge { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.badge.on { display: flex; }
.menu-btn { display: none; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; outline: 2px solid transparent; outline-offset: 0; transition: background .2s, color .2s, outline-color .25s, outline-offset .25s; }
/* Ao passar o mouse, um contorno se afasta do botão (--anel = cor do contorno) */
.btn:hover:not(:disabled) { outline-color: var(--anel, var(--accent)); outline-offset: 4px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; --anel: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--inverse-ink); color: var(--inverse-bg); --anel: var(--inverse-ink); }
.btn-light:hover { background: #fff; color: var(--inverse-bg); }
.btn-block { display: flex; width: 100%; }

/* Home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-block: 56px 48px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 66px); line-height: 1.02; letter-spacing: -.01em; }
.hero p.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero .stack { display: flex; flex-direction: column; gap: 22px; }
.hero .photo { height: clamp(320px, 42vw, 540px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.perks { background: var(--panel); border-block: 1px solid var(--line); }
.perks .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-block: 24px; }
.perk { display: flex; gap: 14px; align-items: center; }
.perk strong { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }

.section { padding-block: 72px 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); }
.section-head a { font-size: 14px; font-weight: 600; }

.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.occasion { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; font-weight: 600; font-size: 15px; }
.occasion .photo { height: 220px; }
/* Chegada lateral (classes postas pelo store.js); o clip evita rolagem lateral durante o movimento */
#ocasioes { overflow-x: clip; }
.occasions.chegada { opacity: 0; transform: translateX(140px); }
.occasions.chegada.chegou { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.22, .8, .3, 1); }
/* Realce ao passar o mouse ou focar: foto aproxima e um fio dourado cresce sob o nome */
.occasion .nome { position: relative; align-self: flex-start; padding-bottom: 6px; }
.occasion .nome::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.occasion:hover .nome::after, .occasion:focus-visible .nome::after { transform: scaleX(1); }
.occasion:hover .photo img, .occasion:focus-visible .photo img { transform: scale(1.08); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.card:hover { color: var(--ink); }
.card .photo { height: 340px; margin-bottom: 6px; }
.card .tag { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.card .name { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.15; }
.card .price { font-size: 15px; font-weight: 600; }
.card .price small { font-weight: 400; color: var(--muted); font-size: 13px; }
/* Revelação em cascata (classes postas pelo store.js; --atraso escalona os cards) */
.card.revela { opacity: 0; transform: translateY(24px); transition: opacity .55s ease var(--atraso, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--atraso, 0ms); }
.card.revela.visivel { opacity: 1; transform: none; }
.pill-tag { position: absolute; top: 12px; left: 12px; background: var(--ground); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }

.how { background: var(--panel); padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.how h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; max-width: 12ch; }
.how .n { font-family: var(--serif); font-size: 42px; color: var(--accent); }
.how strong { display: block; margin: 4px 0 6px; }
.how p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.corp { background: var(--inverse-bg); color: var(--inverse-ink); margin-top: 72px; }
.corp .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; padding-block: 64px; }
.corp h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 46px); line-height: 1.08; }
.corp p { margin: 0; color: var(--inverse-muted); font-size: 16px; line-height: 1.6; }
.corp .eyebrow { color: var(--inverse-accent); }
.corp :focus-visible { outline-color: var(--inverse-accent); }
.corp .stack { display: flex; flex-direction: column; gap: 16px; }
.corp .photo { height: 320px; }

.footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 48px; font-size: 14px; color: var(--muted); }
.footer strong { color: var(--ink); }
.footer .col { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--muted); }
/* Links do rodapé: ao passar o mouse, o texto clareia e uma linha dourada se desenha */
.footer a.lnk { align-self: flex-start; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; padding-bottom: 2px; transition: color .3s, background-size .3s ease; }
.footer a.lnk:hover, .footer a.lnk:focus-visible { color: var(--ink); background-size: 100% 1px; }
.footer .ext { display: inline-block; margin-left: 4px; vertical-align: -1px; }
/* Dica de destino: aparece acima do link depois de um instante com o mouse parado */
.footer [data-dica] { position: relative; }
.footer [data-dica]::after { content: attr(data-dica); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: 4px; background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 500; line-height: 1.3; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.footer [data-dica]:hover::after, .footer [data-dica]:focus-visible::after { opacity: 1; transform: none; transition-delay: .3s; }
.footer a.rede[data-dica]::after { left: 50%; transform: translate(-50%, 4px); }
.footer a.rede[data-dica]:hover::after, .footer a.rede[data-dica]:focus-visible::after { transform: translate(-50%, 0); }
.redes { display: flex; gap: 10px; margin-top: 6px; }
.footer a.rede { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; outline: 2px solid transparent; outline-offset: 0; transition: color .2s, border-color .2s, outline-color .25s, outline-offset .25s; }
.footer a.rede:hover { color: var(--accent); border-color: var(--accent); outline-color: var(--accent); outline-offset: 3px; }
.credits { border-top: 1px solid var(--line); padding-block: 16px; font-size: 12px; color: var(--muted); }

/* Produto */
.crumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pdp { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 24px 72px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .main { height: clamp(360px, 46vw, 620px); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { padding: 0; border: 0; height: 110px; cursor: pointer; border-radius: 4px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { outline-color: var(--ink); }
.includes { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.includes h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: 26px; }
.includes ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; font-size: 14px; line-height: 2; color: var(--body); }

.buy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.buy h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 54px); line-height: 1.02; }
.price-big { font-size: 28px; font-weight: 700; margin-top: 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .label { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 12px; display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { cursor: pointer; font-size: 14px; font-weight: 600; padding: 12px 16px; min-height: 44px; border-radius: 2px; text-align: center; background: var(--surface); color: var(--ink); border: 1px solid var(--field); transition: all .15s; }
.choice small { display: block; font-weight: 500; font-size: 12px; margin-top: 3px; color: var(--muted); }
.choice[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.choice[aria-pressed="true"] small { color: var(--on-accent-muted); }
.addons { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.addon { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; min-height: 56px; }
.addon:last-child { border-bottom: 0; }
.addon input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.addon img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.addon .nm { flex: 1; font-size: 14px; }
.addon .pr { font-size: 14px; color: var(--muted); }
textarea, .input { width: 100%; font-size: 15px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); }
textarea { resize: vertical; }
.input { height: 48px; padding-block: 0; }
.counter { font-size: 12px; color: var(--muted); text-align: right; display: block; margin-top: 6px; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.assure { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }

/* Monte sua cesta */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; align-items: center; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--field); display: flex; align-items: center; justify-content: center; }
.steps .done .dot { border-color: var(--muted); }
.steps .now { color: var(--ink); }
.steps .now .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps .sep { color: var(--field); }

.builder { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 32px 72px; }
.builder .pick { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.builder h1 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.5vw, 48px); line-height: 1.05; }
.bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.base { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; min-height: 72px; }
.base img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.base strong { display: block; font-size: 14px; }
.base span { font-size: 12px; color: var(--muted); }
.base[aria-pressed="true"] { border: 2px solid var(--accent); padding: 9px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab { cursor: pointer; font-size: 14px; font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 999px; background: transparent; border: 1px solid var(--field); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s; }
.item.on { border: 2px solid var(--accent); padding: 9px; }
.item .photo { height: 150px; }
.item strong { font-size: 14px; display: block; }
.item span { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty button { width: 44px; height: 44px; border-radius: 2px; font-size: 18px; cursor: pointer; }
.qty .minus { border: 1px solid var(--field); background: var(--surface); }
.qty .plus { border: 1px solid var(--ink); background: var(--ink); color: var(--ground); }
.qty .plus:disabled { opacity: .35; cursor: not-allowed; }
.qty output { font-weight: 700; font-size: 15px; min-width: 24px; text-align: center; }

.summary { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.summary h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; }
.summary .photo { height: 180px; }
.bar { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); width: 0; transition: width .25s, background .25s; }
.bar.full > div { background: var(--warn); }
.lines { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 14px; }
.line { display: flex; justify-content: space-between; gap: 12px; color: var(--body); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.total b { font-size: 28px; }

/* Checkout */
.checkout { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.co-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.co-head h1 { margin: 0; font-size: 17px; font-weight: 700; }
.co-head .secure { margin-left: auto; padding-right: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { margin: 0; font-size: 15px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field .input { font-weight: 400; }
.order-item { display: flex; gap: 12px; align-items: center; }
.order-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.order-item .t { flex: 1; min-width: 0; }
.order-item .t strong { display: block; font-size: 15px; }
.order-item .t span { font-size: 13px; color: var(--muted); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.addr { font-size: 14px; line-height: 1.5; color: var(--body); background: var(--accent-soft); padding: 10px 12px; border-radius: 4px; }
.pay { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 14px; cursor: pointer; border-radius: 4px; background: var(--surface); border: 1px solid var(--field); text-align: left; }
.pay .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pay .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.pay[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); padding: 11px 13px; }
.pay[aria-pressed="true"] .radio::after { background: var(--ink); }
.pay .t { flex: 1; }
.pay .t strong { display: block; font-size: 15px; }
.pay .t span { font-size: 12px; color: var(--muted); }
.sum { padding: 4px 2px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sum .row { display: flex; justify-content: space-between; }
.sum .discount { color: var(--ok); }
.sum .grand { font-size: 18px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--inverse-bg); color: var(--inverse-ink); border: 1px solid var(--inverse-line); padding: 14px 20px; border-radius: 4px; font-size: 14px; display: flex; gap: 14px; align-items: center; transition: transform .3s ease; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--inverse-link); font-weight: 600; }

/* WhatsApp flutuante */
.fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--inverse-bg); border: 1px solid var(--inverse-line); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(31,26,23,.25); z-index: 20; }

/* Celular */
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; gap: 0; order: 3; flex-basis: 100%; }
  .nav.open a { padding: 14px 0; border-top: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .header .wrap { gap: 8px; justify-content: space-between; }
  .logo { font-size: 26px; }
  .hero { padding-block: 24px 32px; gap: 24px; }
  .hero .photo { order: -1; }
  .occasions { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .occasion { flex: 0 0 130px; scroll-snap-align: start; font-size: 13px; }
  .occasion .photo { height: 130px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card .photo { height: 200px; }
  .card .name { font-size: 19px; }
  .card .price small { display: block; }
  .how { padding: 28px 20px; }
  .section { padding-top: 48px; }
  .choices.three { grid-template-columns: 1fr; }
  .includes ul { columns: 1; }
  .summary { position: static; }
  .thumb { height: 72px; }
}

/* ---------- Loja conectada ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip[aria-current="page"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.empty { padding: 48px 0; color: var(--muted); }
.loading { padding: 120px 24px; text-align: center; color: var(--muted); }
.desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); white-space: pre-line; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-bottom: 1px solid var(--line-soft); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; background: var(--panel); }
.cart-line .t { flex: 1; min-width: 0; }
.cart-line .t strong { display: block; font-size: 15px; }
.cart-line .t span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cart-line .rm { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 0; min-height: 36px; }
.field select, .select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); font-size: 15px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.req { color: var(--accent); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }
.input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.btn-wa { background: #1F6E43; color: #fff; --anel: #2E9A5E; }
.btn-wa:hover { background: #17573A; color: #fff; }
.hint { font-size: 12px; color: var(--muted); }
.toast { display: block; line-height: 1.5; }
.field > span:first-child { display: block; }
@media (max-width: 760px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item { padding: 8px; gap: 8px; }
  .item.on { padding: 7px; }
  .item .photo { height: 110px; }
  .qty button { width: 40px; height: 40px; }
  /* Produto: nome, preço e botão logo depois da foto; "O que vem na cesta" por último */
  .pdp { gap: 24px; }
  .pdp .gallery { display: contents; }
  .pdp > *, .pdp .gallery > * { flex: 1 1 100%; }
  .pdp .includes { order: 2; margin-top: 0; }
  /* Monte sua cesta: total e botão sempre à vista */
  .builder { padding-bottom: 110px; }
  .builder .monte-bar { display: flex; }
  body:has(.monte-bar) .fab { bottom: 92px; }
  body:has(.monte-bar) .toast { bottom: 96px; }
}

.monte-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31,26,23,.08); }
.monte-bar b { display: block; font-size: 18px; color: var(--ink); }
.monte-bar span { display: block; font-size: 12px; color: var(--muted); }
.monte-bar .btn { padding-inline: 18px; }
.toast-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toast-acoes button { min-height: 40px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--inverse-link); background: transparent; color: var(--inverse-ink); font: inherit; font-weight: 600; cursor: pointer; }
.toast-acoes button[data-limpar] { background: var(--inverse-ink); color: var(--inverse-bg); border-color: var(--inverse-ink); }
