/* BEM Presente · estilo do catálogo
   Cores da identidade oficial. Para mudar uma cor, altere só aqui. */
:root {
  --marrom: #7A4C22;        /* BEM (marrom da logo, como aparece na tela) */
  --marrom-esc: #4A2E17;    /* fundo das condições */
  --grafite: #2E2B29;       /* textos, "Presente" */
  --fundo: #FAF5EB;         /* off-white da marca */
  --areia: #F1E6D6;         /* painéis */
  --suave: rgba(46, 43, 41, .68);
  --linha: rgba(74, 46, 23, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raio: 14px;
  --bar-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--fundo); color: var(--grafite); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--marrom); }
.label { font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--marrom); }
.rule { display: block; width: 44px; border-top: 2px solid var(--marrom); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--marrom); color: var(--fundo); font-weight: 800; font-size: 15px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--marrom-esc); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-out { background: transparent; color: var(--marrom); box-shadow: inset 0 0 0 1.5px var(--marrom); }
.btn-out:hover { background: var(--marrom); color: var(--fundo); }
.link { color: var(--marrom); font-weight: 700; font-size: 14px; }
:focus-visible { outline: 2px solid var(--marrom); outline-offset: 3px; }

/* ---------- barra do topo ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(250, 245, 235, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.bar-in { height: var(--bar-h); display: flex; align-items: center; gap: 24px; }
.bar-logo img { height: 40px; width: auto; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--suave); }
.bar-nav a:hover { color: var(--marrom); }

/* ---------- capa ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); text-align: center; border-bottom: 1px solid var(--linha); }
.hero-in { display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.hero-logo { width: min(340px, 72vw); margin-bottom: 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); }
.hero p { font-size: clamp(16px, 2.2vw, 18px); color: var(--suave); max-width: 560px; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hero-links a { text-decoration: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--linha); font-family: var(--serif); font-size: 17px; background: #fff8; }
.hero-links a:hover { border-color: var(--marrom); color: var(--marrom); }

/* ---------- seções ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; }
.sec-sand { background: var(--areia); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 48px); max-width: 680px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 44px); }
.sec-head p { color: var(--suave); }

/* ---------- cestas ---------- */
.cestas { display: grid; gap: clamp(48px, 8vw, 96px); }
.cesta { display: grid; gap: 28px; }
.galeria { position: relative; border-radius: var(--raio); overflow: hidden; background: var(--areia); }
.trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.trilho button { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--areia); cursor: zoom-in; }
.trilho img { width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); background: rgba(250,245,235,.85); padding: 3px 8px; border-radius: 4px; pointer-events: none; }
.dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(46,43,41,.3); padding: 0; cursor: pointer; }
.dots button.on { background: var(--marrom); }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(250,245,235,.9); font-size: 24px; line-height: 1; cursor: pointer; display: none; }
.g-prev { left: 12px; } .g-next { right: 12px; }

.c-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.c-n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 36px; color: var(--marrom); line-height: 1; }
.c-head h3 { font-size: clamp(30px, 4vw, 40px); }
.c-desc { grid-column: 1 / -1; color: var(--suave); margin-top: 6px; }
.comp { list-style: none; margin-top: 10px; }
.comp li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.comp li:first-child { border-top: 1px solid var(--linha); }
.comp li span { color: var(--suave); font-size: 14px; text-align: right; }
.c-side { display: grid; gap: 18px; margin-top: 24px; }
.preco { display: grid; gap: 2px; padding: 18px 20px; border: 1.5px solid var(--marrom); border-radius: var(--raio); }
.preco b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--grafite); }
.preco b small { font-size: 16px; margin-right: 4px; }
.ideal p { font-family: var(--serif); font-style: italic; font-size: 17px; margin-top: 4px; }
.c-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.nota { font-size: 13px; color: var(--suave); margin-top: 14px; }

/* ---------- adicionais ---------- */
.adic-grupos { display: grid; gap: 32px; }
.adic-grupo h3 { font-size: 22px; margin-bottom: 14px; }
.adic-lista { display: grid; gap: 10px; grid-template-columns: 1fr; }
.adic { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: var(--fundo); border: 1.5px solid transparent; border-radius: var(--raio); cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.adic:hover { border-color: var(--linha); }
.adic input { position: absolute; opacity: 0; pointer-events: none; }
.adic .chk { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--marrom); display: grid; place-items: center; transition: background .15s; }
.adic .chk::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--fundo); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.adic input:checked ~ .chk { background: var(--marrom); }
.adic input:checked ~ .chk::after { opacity: 1; }
.adic:has(input:checked) { border-color: var(--marrom); background: #fff; }
.adic input:focus-visible ~ .chk { outline: 2px solid var(--marrom); outline-offset: 2px; }
.adic .nm { font-weight: 700; line-height: 1.3; }
.adic .nm small { display: block; font-weight: 400; color: var(--suave); font-size: 14px; }
.adic .pr { font-family: var(--serif); font-size: 18px; white-space: nowrap; }

/* ---------- pedido ---------- */
.pedido-box { display: grid; gap: 28px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 6px); background: #fffdf8; }
fieldset { border: 0; display: grid; gap: 12px; }
legend { margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--linha); font-weight: 700; line-height: 1.3; }
.pills span small { font-weight: 400; color: var(--suave); }
.pills input:checked + span { border-color: var(--marrom); background: var(--marrom); color: var(--fundo); }
.pills input:checked + span small { color: rgba(250,245,235,.8); }
.pills input:focus-visible + span { outline: 2px solid var(--marrom); outline-offset: 2px; }
.resumo { list-style: none; }
.resumo li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--linha); }
.resumo li button { border: 0; background: none; color: var(--suave); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; }
.resumo .vazio { color: var(--suave); font-style: italic; border: 0; }
.campos { grid-template-columns: 1fr; }
.campos label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.campos input, .campos textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 10px; background: var(--fundo); font-size: 16px; }
.campos input:focus, .campos textarea:focus { outline: none; border-color: var(--marrom); }
.total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--linha); }
.total > div { display: grid; }
.total b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; }
.total small { color: var(--suave); font-size: 13px; }
.aviso { background: var(--areia); padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* ---------- como pedir ---------- */
.steps { list-style: none; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.steps li:first-child { border-top: 1px solid var(--linha); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--marrom); line-height: 1.2; }
.steps h3 { font-size: 20px; font-weight: 400; }
.steps p { color: var(--suave); }
.terms { margin-top: 40px; background: var(--marrom-esc); color: var(--fundo); border-radius: calc(var(--raio) + 6px); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.terms h3 { font-size: 26px; font-style: italic; }
.terms ul { list-style: none; display: grid; gap: 10px; }
.terms li { position: relative; padding-left: 22px; color: rgba(250,245,235,.9); }
.terms li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; border-top: 1.5px solid var(--fundo); }

/* ---------- rodapé ---------- */
.foot { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); }
.foot-in { display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot-logo { width: 180px; }
.foot dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; }
.foot dt { font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--marrom); }
.foot dd { font-family: var(--serif); font-size: 19px; }
.foot dd a { text-decoration: none; }
.foot dd a:hover { color: var(--marrom); }
.copy { text-align: center; color: var(--suave); font-size: 13px; margin-top: 36px; }

/* ---------- barra fixa (celular) ---------- */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: var(--grafite); color: var(--fundo); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.sticky[hidden] { display: none; }
.sticky div { display: grid; line-height: 1.25; }
.sticky small { font-size: 12px; opacity: .75; }
.sticky b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.sticky .btn { background: var(--fundo); color: var(--grafite); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(30, 22, 16, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; background: var(--areia); }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(250,245,235,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }

/* ---------- celular ---------- */
@media (max-width: 719px) {
  .bar-nav { display: none; }
  .bar-in { justify-content: space-between; }
  .bar-logo img { height: 34px; }
  .total .btn { width: 100%; }
  .c-acoes .btn { flex: 1 1 auto; }
}

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  .adic-lista { grid-template-columns: 1fr 1fr; }
  .campos { grid-template-columns: 1fr 1fr; }
  .campos .full { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .steps li:nth-child(2) { border-top: 1px solid var(--linha); }
  .c-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .c-acoes { grid-column: 1 / -1; }
  .g-nav { display: block; }
  .terms { grid-template-columns: 200px 1fr; }
}

/* ---------- computador ---------- */
@media (min-width: 1000px) {
  .cesta { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .cesta:nth-child(even) .galeria { order: 2; }
  .galeria { position: sticky; top: calc(var(--bar-h) + 24px); }
  .adic-lista { grid-template-columns: repeat(3, 1fr); }
  .pedido { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
  .pedido .sec-head { position: sticky; top: calc(var(--bar-h) + 24px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; border-top: 1px solid var(--linha); }
  .steps li::before { grid-row: auto; }
  .sticky { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .bar, .sticky, #pedido, .c-acoes, .g-nav, .dots { display: none !important; }
  .galeria { position: static; }
  .cesta { break-inside: avoid; }
}
