/* =====================================================================
   Jordana Oliveira Pâtisserie — estilos
   Paleta da identidade visual: Marrom #4B2E20 · Bege #EADBC1 · Dourado #D4AF37
   ===================================================================== */
:root {
  --marrom: #4b2e20;
  --marrom-2: #3a2318;
  --marrom-3: #2c1a11;
  --bege: #eadbc1;
  --creme: #f7efe3;
  --papel: #fffaf3;
  --dourado: #d4af37;
  --dourado-2: #b8932a;
  --dourado-texto: #9a7620;
  --texto: #3a2418;
  --texto-2: #7a5e4c;
  --linha: #e8d9c1;
  --whats: #1f9e55;
  --erro: #b3261e;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 18px;
  --sombra: 0 1px 2px rgba(75, 46, 32, .06), 0 8px 24px -12px rgba(75, 46, 32, .22);
  --topo-h: 60px;
  --ouro-grad: linear-gradient(135deg, #f1d98b 0%, #d4af37 45%, #b8932a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.travado { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .cheio { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; }

.pular { position: absolute; left: -9999px; top: 8px; background: var(--papel); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.pular:focus { left: 8px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn--ouro { background: var(--ouro-grad); color: var(--marrom-3); box-shadow: 0 6px 18px -8px rgba(212, 175, 55, .8); }
.btn--linha { border-color: rgba(212, 175, 55, .7); color: #f3e2b5; background: rgba(255, 255, 255, .03); }
.btn--linha-escura { border-color: var(--dourado-2); color: var(--marrom); background: transparent; }
.btn--marrom { background: var(--marrom); color: #f8eccf; }
.btn--marrom:hover { background: var(--marrom-2); }
.btn--whats { background: var(--whats); color: #fff; }
.btn--cheio { width: 100%; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 30;
  background: rgba(58, 35, 24, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
}
.topo__in { max-width: 1160px; margin: 0 auto; height: var(--topo-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.topo__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #efd99a; }
.topo__marca img { width: 34px; height: auto; }
.topo__marca span { font: 600 17px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; gap: 3px; }
.topo__marca small { font: 500 9.5px/1 var(--sans); letter-spacing: .42em; color: #c9ad6b; }
.topo__acoes { display: flex; align-items: center; gap: 6px; }
.icone-btn, .sacola-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #efd99a; background: transparent; border: 0;
}
.icone-btn svg, .sacola-btn svg { width: 24px; height: 24px; }
.sacola-btn { background: rgba(212, 175, 55, .14); }
.sacola-btn__qtd {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--dourado); color: var(--marrom-3); font: 600 11px/19px var(--sans); text-align: center;
}
.pulo { animation: pulo .45s ease; }
@keyframes pulo { 40% { transform: scale(1.25); } }

/* ---------- abertura ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 50% 10%, #5e3b29 0%, var(--marrom) 45%, var(--marrom-2) 100%); color: #f3e5c4; text-align: center; overflow: hidden; }
.hero__padrao {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.14'%3E%3Cpath d='M0 28L28 0l28 28-28 28z'/%3E%3C/g%3E%3Cpath fill='%23d4af37' fill-opacity='.22' d='M28 31.5s-3.6-2.3-4.8-4.6a2.7 2.7 0 0 1 4.8-2.4 2.7 2.7 0 0 1 4.8 2.4c-1.2 2.3-4.8 4.6-4.8 4.6z'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, transparent 30%, #000 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, transparent 30%, #000 100%);
}
.hero__in { position: relative; max-width: 720px; margin: 0 auto; padding: 20px 16px 84px; }
.hero__logo { width: min(330px, 62vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .25)); }
.hero__frase { margin: 12px 0 22px; font: 500 clamp(19px, 4.6vw, 24px)/1.3 var(--serif); color: #f0dfb8; letter-spacing: .01em; }
.hero__frase em { font-style: italic; color: var(--dourado); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__info { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; color: #d9c18c; }
.hero__info li { display: flex; align-items: center; gap: 7px; }
.hero__info svg { width: 18px; height: 18px; color: var(--dourado); }

.onda { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; }
.onda__fundo { fill: var(--creme); stroke: none; }
.onda__linha { fill: none; stroke: var(--dourado); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .9; }

/* ---------- categorias ---------- */
.cats {
  position: sticky; top: var(--topo-h); z-index: 20;
  background: rgba(247, 239, 227, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.cats__in {
  max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.cats__in::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; scroll-snap-align: start; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font: 500 14px/1.2 var(--sans); color: var(--texto-2); text-decoration: none;
  border: 1px solid var(--linha); background: var(--papel); transition: all .2s ease;
}
.cats a.ativo { background: var(--marrom); color: #f3e2b5; border-color: var(--marrom); }

/* ---------- seções ---------- */
.menu, .bolos { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.secao { padding: 36px 0 8px; }
.secao__titulo { text-align: center; margin-bottom: 20px; }
.secao__titulo h2 { margin: 0; font: 600 clamp(32px, 7vw, 42px)/1 var(--serif); color: var(--marrom); }
.secao__titulo h2 span { display: block; margin-top: 2px; font: 400 clamp(28px, 6vw, 36px)/1.1 var(--script); color: var(--dourado-texto); }
.secao__sub { max-width: 520px; margin: 10px auto 0; color: var(--texto-2); font-size: 15px; }
.enfeite { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: var(--dourado); }
.enfeite i { width: 46px; height: 1px; background: currentColor; opacity: .7; }
.enfeite b { font-size: 13px; line-height: 1; }

.carregando { margin: 0; padding: 64px 0; text-align: center; color: var(--texto-2); font: italic 500 20px/1.3 var(--serif); animation: respirar 1.4s ease-in-out infinite alternate; }
@keyframes respirar { from { opacity: .35; } }

/* ---------- cards de produto ---------- */
.grade { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  position: relative; display: flex; gap: 14px; align-items: stretch; padding: 12px; border-radius: var(--raio);
  background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease; text-align: left; width: 100%;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(75, 46, 32, .06), 0 14px 30px -14px rgba(75, 46, 32, .3); }
.card__img {
  flex: none; width: 112px; height: 112px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0%, #f6ead6 60%, #ecdcc1 100%);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card__nome { margin: 2px 0 2px; font: 700 21px/1.1 var(--serif); color: var(--marrom); }
.card__abrir { all: unset; cursor: pointer; }
.card__abrir::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.card__abrir:focus-visible) { outline: 2px solid var(--dourado); outline-offset: 2px; }
.card__acao { position: relative; z-index: 1; }
.card__desc {
  margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--texto-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__pe { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__preco { font: 600 16px/1 var(--sans); color: var(--marrom); }
.card__preco small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: var(--texto-2); }
.card__selo {
  position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--marrom); color: #f3e2b5; font: 500 11px/1.4 var(--sans); letter-spacing: .03em;
}
.add {
  width: 38px; height: 38px; border-radius: 50%; border: 0; flex: none;
  background: var(--ouro-grad); color: var(--marrom-3); display: grid; place-items: center;
  box-shadow: 0 4px 12px -6px rgba(184, 147, 42, .9);
}
.add svg { width: 20px; height: 20px; stroke-width: 2.4; }
.mini-qtd { display: flex; align-items: center; gap: 2px; background: var(--marrom); border-radius: 999px; padding: 3px; }
.mini-qtd button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #f3e2b5; font-size: 20px; line-height: 1; }
.mini-qtd output { min-width: 18px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; }

/* ---------- montador de bolo ---------- */
.bolos { padding: 48px 16px 8px; }
.montador { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.passo { margin: 0; padding: 18px 16px 16px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); box-shadow: var(--sombra); min-width: 0; }
.passo legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0;
  font: 600 13.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--marrom);
}
.passo legend b { font: 600 26px/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: 0; color: var(--dourado-texto); padding-right: 12px; border-right: 1px solid var(--dourado); }
.passo legend small { font: 400 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--texto-2); }
.passo > :not(legend) { clear: both; }
.nota { margin: 12px 0 0; font-size: 13px; color: var(--texto-2); }

.tamanhos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.tamanho {
  height: 100%; padding: 12px 8px 12px; border-radius: 14px; border: 1.5px solid var(--linha); background: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center; transition: all .2s ease;
}
.tamanho svg { width: 64px; height: 48px; color: var(--marrom); stroke-width: 1.4; margin-bottom: 4px; }
.tamanho strong { font: 400 26px/1.05 var(--script); color: var(--marrom); }
.tamanho span { font-size: 12px; color: var(--texto-2); line-height: 1.3; margin-top: 2px; }
.tamanho em { font-style: normal; font: 600 16px/1 var(--sans); color: var(--dourado-texto); margin-top: 8px; }
.opcao input:checked + .tamanho { border-color: var(--dourado); background: #fdf6e6; box-shadow: 0 0 0 3px rgba(212, 175, 55, .2); }
.opcao input:focus-visible + * { outline: 2px solid var(--dourado); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--linha); background: #fff; font-size: 14px; color: var(--texto); transition: all .15s ease;
}
.chip input:checked + span { background: var(--marrom); border-color: var(--marrom); color: #f8eccf; }
.chip input:checked + span::before { content: "✓"; font-size: 12px; color: var(--dourado); }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }

.decoracoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.deco { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--linha); background: #fff; transition: all .2s ease; height: 100%; display: flex; flex-direction: column; }
.deco img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.deco span { padding: 9px 8px; font: 600 16px/1.15 var(--serif); color: var(--marrom); text-align: center; }
.deco--ref { justify-content: center; align-items: center; gap: 6px; padding: 16px; background: #fdf8ef; border-style: dashed; aspect-ratio: auto; }
.deco--ref svg { width: 34px; height: 34px; color: var(--dourado-texto); }
.deco--ref span { padding: 0; }
.deco--ref small { font-size: 12px; color: var(--texto-2); text-align: center; }
.opcao input:checked + .deco { border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.opcao input:checked + .deco::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--marrom); color: var(--dourado); display: grid; place-items: center; font-size: 14px;
}
.opcao input:disabled + .deco { opacity: .4; cursor: not-allowed; }

.campos { display: grid; gap: 12px; margin-bottom: 14px; }
.passo .campos { margin-bottom: 0; }
.campo { display: block; margin-bottom: 14px; }
.campos .campo { margin-bottom: 0; }
.campo > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--marrom); }
.campo input, .campo textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--linha);
  background: #fff; font-size: 16px; resize: vertical; transition: border-color .15s ease;
}
.campo textarea { min-height: 70px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.campo input.invalido { border-color: var(--erro); }

.montador__resumo {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 14px 18px; border-radius: var(--raio); background: var(--marrom); color: #f3e2b5;
  box-shadow: 0 14px 30px -12px rgba(44, 26, 17, .6);
}
.montador__resumo > div { display: flex; flex-direction: column; min-width: 0; }
.montador__rotulo { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #c9ad6b; }
.montador__resumo strong { font: 600 22px/1.15 var(--serif); font-variant-numeric: lining-nums; color: #fff; }
.montador__resumo small { font-size: 11.5px; color: #d6bf8a; }
.montador__resumo .btn { flex: none; background: var(--ouro-grad); color: var(--marrom-3); padding: 0 18px; }
.montador__erro { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fbe9e7; color: var(--erro); font-size: 14px; }

/* ---------- sobre ---------- */
.sobre { margin-top: 56px; background: var(--bege); background: linear-gradient(180deg, var(--creme), var(--bege)); }
.sobre__in { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: grid; gap: 8px; }
.sobre__foto img { width: min(300px, 74vw); height: auto; margin: 0 auto; }
.sobre__texto { padding-bottom: 72px; }
.script { margin: 0; font: 400 34px/1 var(--script); color: var(--dourado-texto); }
.sobre h2 { margin: 2px 0 10px; font: 600 clamp(30px, 6vw, 40px)/1.05 var(--serif); color: var(--marrom); }
.sobre p { color: var(--texto-2); }
.lista-coracao { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.lista-coracao li { position: relative; padding-left: 24px; font-size: 15px; }
.lista-coracao li::before { content: "♥"; position: absolute; left: 0; top: 1px; color: var(--dourado-2); font-size: 13px; }
.sobre__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- rodapé ---------- */
.rodape { position: relative; background: var(--marrom-2); color: #cdb27a; text-align: center; padding: 64px 16px 120px; }
.rodape .onda--topo { top: -1px; bottom: auto; transform: scaleY(-1); }
.rodape .onda--topo .onda__fundo { fill: var(--bege); }
.rodape img { width: 60px; height: auto; margin: 0 auto 12px; }
.rodape__frase { margin: 0 0 8px; font: italic 500 20px/1.3 var(--serif); color: #efd99a; }
.rodape__contato, .rodape__copy { margin: 4px 0; font-size: 13.5px; }
.rodape__contato a { color: inherit; }
.rodape__copy { opacity: .7; font-size: 12px; }
.rodape__painel {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .3); color: #cdb27a; font-size: 12.5px; text-decoration: none; opacity: .75; transition: opacity .2s ease, border-color .2s ease;
}
.rodape__painel svg { width: 15px; height: 15px; }
.rodape__painel:hover, .rodape__painel:focus-visible { opacity: 1; border-color: var(--dourado); }

/* ---------- barra da sacola ---------- */
.barra-sacola {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 25; transform: translateX(-50%);
  width: min(480px, calc(100% - 28px)); min-height: 56px; padding: 0 20px 0 10px; border: 0; border-radius: 999px;
  display: flex; align-items: center; gap: 12px; background: var(--marrom); color: #f3e2b5;
  box-shadow: 0 16px 34px -12px rgba(44, 26, 17, .65), inset 0 0 0 1px rgba(212, 175, 55, .35);
  font: 500 15px/1 var(--sans); animation: subir .3s ease;
}
.barra-sacola strong { margin-left: auto; font-weight: 600; color: #fff; }
.barra-sacola__qtd { min-width: 36px; height: 36px; border-radius: 50%; background: var(--ouro-grad); color: var(--marrom-3); display: grid; place-items: center; font-weight: 600; }
@keyframes subir { from { transform: translate(-50%, 30px); opacity: 0; } }
body.com-bolo-resumo .barra-sacola { display: none; }

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal__fundo { position: absolute; inset: 0; background: rgba(44, 26, 17, .55); animation: aparecer .2s ease; }
.modal__caixa {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; background: var(--papel);
  border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden;
  animation: deslizar .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes deslizar { from { transform: translateY(40px); opacity: .4; } }
.fechar, .voltar {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 250, 243, .92); color: var(--marrom); font-size: 26px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.voltar { right: auto; left: 10px; font-size: 30px; padding-bottom: 4px; }

.folha { overflow-y: auto; }
.folha__img { background: radial-gradient(circle at 50% 42%, #fffdf8 0%, #f4e7d1 60%, #e9d7ba 100%); }
.folha__img img { width: min(300px, 72vw); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto; }
.folha__corpo { padding: 18px 20px 4px; }
.folha__cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dourado-texto); font-weight: 500; }
.folha h3 { margin: 4px 0 6px; font: 700 30px/1.05 var(--serif); color: var(--marrom); }
.folha p { margin: 0 0 12px; color: var(--texto-2); font-size: 15px; }
.folha__preco { display: block; margin-bottom: 16px; font: 600 20px/1 var(--sans); color: var(--marrom); }
.folha__preco small { font-weight: 400; font-size: 13px; color: var(--texto-2); }
.folha__rodape {
  position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  background: var(--papel); border-top: 1px solid var(--linha);
}
.qtd { display: flex; align-items: center; border: 1.5px solid var(--linha); border-radius: 999px; flex: none; background: #fff; }
.qtd button { width: 42px; height: 46px; border: 0; background: none; font-size: 22px; color: var(--marrom); }
.qtd output { min-width: 24px; text-align: center; font-weight: 600; }

.gaveta { height: 92vh; height: 92dvh; }
.gaveta__topo { position: relative; padding: 18px 56px; text-align: center; border-bottom: 1px solid var(--linha); flex: none; }
.gaveta__topo h3 { margin: 0; font: 700 24px/1.2 var(--serif); color: var(--marrom); }
.gaveta__topo .fechar, .gaveta__topo .voltar { top: 50%; transform: translateY(-50%); box-shadow: none; background: var(--creme); }
.gaveta__etapa { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gaveta__rolar { flex: 1; overflow-y: auto; padding: 16px 18px; -webkit-overflow-scrolling: touch; }
.gaveta__rodape { flex: none; padding: 14px 18px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--papel); }
.totais { display: grid; gap: 4px; margin-bottom: 12px; }
.totais div { display: flex; justify-content: space-between; align-items: baseline; }
.totais strong { font: 600 20px/1.2 var(--sans); color: var(--marrom); }
.totais__taxa { font-size: 13.5px; color: var(--texto-2); }

.itens { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.item { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--linha); }
.item__img { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle, #fffdf8, #f0e1c8); }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__corpo { flex: 1; min-width: 0; }
.item__nome { margin: 0; font: 700 18px/1.15 var(--serif); color: var(--marrom); }
.item__det { margin: 2px 0 0; font-size: 12.5px; color: var(--texto-2); line-height: 1.35; }
.item__pe { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.item__preco { font-weight: 600; font-size: 15px; }
.item .mini-qtd { background: var(--creme); }
.item .mini-qtd button { color: var(--marrom); }
.item .mini-qtd output { color: var(--marrom); }

.vazia { text-align: center; padding: 40px 10px; color: var(--texto-2); }
.vazia img { margin: 0 auto 10px; opacity: .8; width: 70px; height: auto; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--creme); border: 1px solid var(--linha); }
.seg--grade { grid-template-columns: repeat(4, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 42px; padding: 4px 6px; border-radius: 10px; font-size: 14px; text-align: center; cursor: pointer; color: var(--texto-2); transition: all .15s ease; }
.seg input:checked + span { background: var(--marrom); color: #f8eccf; font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--dourado); }

.enviado { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.enviado img { width: 84px; height: auto; }
.enviado h4 { margin: 0; font: 700 30px/1 var(--serif); color: var(--marrom); }
.enviado p { margin: 0 0 8px; color: var(--texto-2); max-width: 320px; }

.aviso {
  position: fixed; left: 50%; top: calc(var(--topo-h) + 12px); z-index: 60; transform: translate(-50%, -20px);
  padding: 10px 18px; border-radius: 999px; background: var(--marrom-3); color: #f3e2b5; font-size: 14px;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: all .25s ease; white-space: nowrap;
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- telas menores ---------- */
@media (max-width: 360px) {
  .topo__marca span { font-size: 15px; letter-spacing: .08em; }
  .topo__marca small { letter-spacing: .3em; }
  .card__img { width: 96px; height: 96px; }
  .card__nome { font-size: 19px; }
  .seg--grade { grid-template-columns: 1fr 1fr; }
}

/* ---------- telas maiores ---------- */
@media (min-width: 640px) {
  .grade { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tamanhos { grid-template-columns: repeat(5, 1fr); }
  .decoracoes { grid-template-columns: repeat(4, 1fr); }
  .campos { grid-template-columns: 1fr 1fr; }
  .campo--cheio { grid-column: 1 / -1; }
  .card__img { width: 128px; height: 128px; }
  .passo { padding: 22px 22px 20px; }
}
@media (min-width: 760px) {
  .modal { align-items: center; padding: 24px; }
  .modal__caixa { border-radius: 24px; max-width: 460px; max-height: 88vh; }
  .modal--lado { justify-content: flex-end; padding: 0; align-items: stretch; }
  .modal--lado .modal__caixa { max-width: 440px; height: 100%; max-height: none; border-radius: 24px 0 0 24px; animation-name: lateral; }
  @keyframes lateral { from { transform: translateX(40px); opacity: .4; } }
  .sobre__in { grid-template-columns: 340px 1fr; align-items: end; gap: 40px; }
  .sobre__foto img { width: 100%; }
  .sobre__texto { padding: 40px 0 80px; }
  .hero__in { padding: 48px 16px 120px; }
  .hero__logo { width: 380px; }
  .onda { height: 80px; }
}
@media (min-width: 1000px) {
  .grade { grid-template-columns: repeat(3, 1fr); }
  .card { flex-direction: column; padding: 0; overflow: hidden; }
  .card__img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; border-radius: 0; }
  .card__img img { object-fit: contain; }
  .card__corpo { padding: 14px 16px 16px; }
  .card__nome { font-size: 23px; }
  .card__selo { top: 12px; left: 12px; }
  .decoracoes { grid-template-columns: repeat(7, 1fr); }
  .deco span { font-size: 15px; }
}
@media (hover: hover) {
  .cats a:not(.ativo):hover { border-color: var(--dourado); color: var(--marrom); }
  .chip span:hover, .tamanho:hover, .deco:hover { border-color: var(--dourado-2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
