/* ==========================================================================
   Rodrigo Caldas Confeitaria · Catálogo de Natal
   Natal soft, clean e premium · mobile-first
   ========================================================================== */

:root {
  --creme: #FBF8F3;
  --creme-2: #F4EEE4;
  --branco: #FFFEFB;
  --vinho: #8B1A1A;
  --vinho-escuro: #6F1414;
  --vinho-tinta: #F8EEEA;
  --verde: #1F3A2B;
  --dourado: #B8955A;
  --dourado-texto: #86683A;
  --dourado-claro: rgba(184, 149, 90, 0.4);
  --tinta: #2B2220;
  --texto-2: #5E524C;
  --texto-3: #7A6E67;
  --linha: rgba(43, 34, 32, 0.1);
  --linha-forte: rgba(43, 34, 32, 0.18);
  --erro: #A61B1B;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 16px;
  --raio-p: 12px;
  --sombra: 0 1px 2px rgba(70, 40, 25, 0.04), 0 10px 30px -12px rgba(70, 40, 25, 0.12);
  --sombra-forte: 0 20px 50px -20px rgba(70, 40, 25, 0.35);
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --largura: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--creme);
}
html.com-modal { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.tem-barra { padding-bottom: calc(92px + var(--seguro-baixo)); }

img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--vinho); color: #fff; text-decoration: none;
}
.pular:focus { top: 12px; }

.sobretitulo {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dourado-texto);
}
.suave { color: var(--texto-2); }
.obrig, .opcional { font-size: 12px; font-weight: 400; color: var(--texto-3); margin-left: 4px; }

/* ------------------------------------------------------------------ Botões */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.botao:active { transform: scale(0.985); }
.botao svg { width: 20px; height: 20px; }
.botao--primario, .botao--whats { background: var(--vinho); color: #fff; }
.botao--primario:hover, .botao--whats:hover { background: var(--vinho-escuro); }
.botao--secundario { background: transparent; color: var(--vinho); border-color: rgba(139, 26, 26, 0.35); }
.botao--secundario:hover { border-color: var(--vinho); background: var(--vinho-tinta); }
.botao--largo { width: 100%; }
#produto-adicionar { justify-content: space-between; padding: 0 24px; }
.botao__preco { font-weight: 500; opacity: .95; }

.botao-texto {
  min-height: 44px; padding: 0 12px; border: 0; background: none;
  color: var(--vinho); font-size: 15px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(139,26,26,.35);
}
.botao-texto--centro { display: block; margin: 6px auto 0; }

.icone-botao {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--tinta);
  transition: background-color .2s;
}
.icone-botao:hover { background: rgba(43, 34, 32, 0.06); }
.icone-botao svg { width: 22px; height: 22px; }
.icone-botao--vidro { background: rgba(255, 254, 251, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.icone-botao--vidro:hover { background: #fff; }
.icone-botao--suave { color: var(--texto-3); }
.icone-botao--suave svg { width: 20px; height: 20px; }
.icone-botao-espaco { width: 44px; }

/* ------------------------------------------------------------------- Marca */

.monograma {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--dourado);
  box-shadow: inset 0 0 0 3px var(--creme), inset 0 0 0 4px var(--dourado-claro);
  font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .04em;
  color: var(--vinho);
}
.monograma--pequeno { width: 40px; height: 40px; font-size: 16px; }

/* -------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding: 0 20px 44px;
  overflow: hidden;
}

.faixa {
  display: flex; align-items: flex-start;
  margin: 0 -20px;
  color: var(--vinho);
}
.faixa__linha { flex: 1; height: 1px; margin-top: 13px; background: linear-gradient(90deg, rgba(139,26,26,0), rgba(139,26,26,.55) 30%, rgba(139,26,26,.55) 70%, rgba(139,26,26,0)); }
.faixa__linha:first-child { background: linear-gradient(90deg, rgba(139,26,26,.0), rgba(139,26,26,.55)); }
.faixa__linha:last-child { background: linear-gradient(90deg, rgba(139,26,26,.55), rgba(139,26,26,0)); }
.faixa__laco { width: 72px; height: 34px; margin: 0 -2px; }

.hero__marca {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 14px;
}
.hero__nome { display: flex; flex-direction: column; line-height: 1.1; }
.hero__nome-principal { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--tinta); letter-spacing: .01em; }
.hero__nome-sub { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--dourado-texto); margin-top: 3px; }

.hero__grade {
  max-width: var(--largura); margin: 36px auto 0;
  display: grid; gap: 36px;
}

.hero__texto { text-align: center; }

.selo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--dourado-claro);
  background: rgba(255,254,251,.7);
  font-size: 13px; font-weight: 500; color: var(--vinho); letter-spacing: .02em;
}
.selo__icone { width: 16px; height: 16px; color: var(--dourado); }

.hero__titulo {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.7rem, 11vw, 4.6rem); line-height: 1.0; letter-spacing: -0.01em;
  color: var(--vinho);
  text-wrap: balance;
}
.hero__subtitulo {
  margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 5vw, 1.65rem); color: var(--tinta);
}
.hero__intro { margin: 14px auto 0; max-width: 34ch; color: var(--texto-2); font-size: 15px; }
.hero__cta { margin-top: 26px; min-width: 220px; }

.hero__foto {
  position: relative; margin: 0 auto; width: 100%; max-width: 460px;
}
.hero__foto::before {
  content: ""; position: absolute; inset: -10px 10px 10px -10px;
  border: 1px solid var(--dourado-claro); border-radius: 22px;
  pointer-events: none;
}
.hero__foto img,
.hero__foto .sem-foto {
  position: relative;
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 20px; box-shadow: var(--sombra-forte);
  background: var(--creme-2);
}
.hero__ramo {
  position: absolute; right: -6px; bottom: -22px; width: 92px; height: 70px;
  color: var(--verde); opacity: .75; transform: rotate(-8deg);
}

@media (min-width: 860px) {
  .hero { padding: 0 40px 72px; }
  .faixa { margin: 0 -40px; }
  .hero__marca { justify-content: flex-start; max-width: var(--largura); margin: 18px auto 0; }
  .hero__grade { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; margin-top: 28px; }
  .hero__texto { text-align: left; }
  .hero__intro { margin-left: 0; }
}

/* ------------------------------------------------------------- Categorias */

.categorias {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.categorias--fixa { border-bottom-color: var(--linha); box-shadow: 0 6px 20px -14px rgba(70,40,25,.35); }
.categorias__trilho {
  display: flex; gap: 8px;
  max-width: var(--largura); margin: 0 auto;
  padding: 10px 20px;
  overflow-x: auto; scrollbar-width: none; scroll-padding: 0 20px;
}
.categorias__trilho::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(139, 26, 26, 0.22);
  background: var(--branco);
  color: var(--tinta); font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--vinho); }
.chip--ativo { background: var(--vinho); border-color: var(--vinho); color: #fff; }

/* --------------------------------------------------------------- Seções */

.cardapio { outline: none; }
.carregando { padding: 60px 20px; text-align: center; color: var(--texto-2); }

.secao {
  max-width: var(--largura); margin: 0 auto;
  padding: 44px 16px 8px;
  scroll-margin-top: 64px;
}
.secao__cabecalho { padding: 0 4px; margin-bottom: 20px; }
.secao__titulo {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: 1.1;
  color: var(--vinho);
}
.secao__titulo::after {
  content: ""; display: block; width: 44px; height: 1px; margin-top: 12px;
  background: var(--dourado);
}
.secao__desc { margin-top: 10px; color: var(--texto-2); font-size: 15px; max-width: 46ch; }

.grade {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
@media (min-width: 720px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .secao { padding: 64px 24px 8px; }
}
@media (min-width: 1024px) {
  .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Cards */

.card { position: relative; }
.card__botao {
  position: relative;
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0; border: 1px solid rgba(184, 149, 90, 0.2); border-radius: var(--raio);
  background: var(--branco); box-shadow: var(--sombra);
  text-align: left; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card__botao:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(70,40,25,.04), 0 18px 40px -18px rgba(70,40,25,.28); }
.card__midia { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--creme-2); }
.card__midia img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card__botao:hover .card__midia img { transform: scale(1.03); }

.card__info { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card__nome { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.15; color: var(--tinta); }
.card__desc {
  font-size: 13px; line-height: 1.45; color: var(--texto-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__preco { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--vinho); }
.card__preco strong { font-weight: 600; }
.card__apartir, .card__un { font-size: 12px; color: var(--texto-3); }
.card__mais {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 254, 251, 0.9); color: var(--vinho);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card__mais svg { width: 18px; height: 18px; }

@media (min-width: 400px) {
  .card__info { padding: 14px 14px 16px; }
  .card__nome { font-size: 1.32rem; }
}

/* Destaque: categoria com um único produto */
.grade--destaque { grid-template-columns: 1fr; }
.grade--destaque .card__info { padding: 18px 18px 20px; }
.grade--destaque .card__nome { font-size: 1.6rem; }
.grade--destaque .card__desc { -webkit-line-clamp: 3; font-size: 14px; }
.grade--destaque .card__preco { font-size: 17px; }
@media (min-width: 720px) {
  .grade--destaque .card__botao { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .grade--destaque .card__info { justify-content: center; padding: 40px 48px; gap: 10px; }
  .grade--destaque .card__nome { font-size: 2.2rem; }
  .grade--destaque .card__desc { font-size: 16px; -webkit-line-clamp: 4; }
  .grade--destaque .card__preco { margin-top: 12px; flex: 0; }
  .grade--destaque .card__midia { max-height: 520px; aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------- Card sem foto */

.sem-foto {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; padding: 24px 18px;
  background: radial-gradient(120% 80% at 50% 30%, #FFFDF9 0%, var(--creme) 60%, #F6F0E6 100%);
  text-align: center;
}
.sem-foto__moldura { position: absolute; inset: 10px; border: 1px solid var(--dourado-claro); border-radius: 10px; pointer-events: none; }
.sem-foto__moldura::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(184,149,90,.2); border-radius: 7px; }
.sem-foto__ornamento { color: var(--dourado); }
.sem-foto__ornamento--estrela { width: 40px; height: 40px; }
.sem-foto__ornamento--ramo { width: 62px; height: 46px; color: var(--verde); opacity: .8; }
.sem-foto__nome {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.1;
  color: var(--vinho); max-width: 12ch; text-wrap: balance;
}
.sem-foto__legenda { font-size: 10px; letter-spacing: .2em; white-space: nowrap; text-transform: uppercase; color: var(--dourado-texto); }

/* ------------------------------------------------------------- Como funciona */

.como {
  max-width: 980px; margin: 72px auto 0; padding: 48px 20px 24px;
  text-align: center; border-top: 1px solid var(--dourado-claro);
}
.ornamento-divisor { width: 30px; height: 30px; color: var(--dourado); margin: -64px auto 18px; background: var(--creme); padding: 0 4px; box-sizing: content-box; display: block; }
.como .secao__titulo::after { margin: 12px auto 0; }
.como__passos {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 18px; text-align: left;
}
.como__passos li { display: flex; gap: 14px; align-items: flex-start; }
.como__passos strong { display: block; font-weight: 600; }
.como__passos p { color: var(--texto-2); font-size: 14px; }
.como__num {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--dourado);
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--vinho);
}
@media (min-width: 760px) {
  .como__passos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .como__passos li { flex-direction: column; }
}

/* ----------------------------------------------------------------- Rodapé */

.rodape { padding: 48px 20px 40px; text-align: center; color: var(--texto-2); font-size: 14px; }
.rodape__nome { margin-top: 12px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--tinta); }
.rodape__nota { margin-top: 14px; font-size: 12px; color: var(--texto-3); }

/* --------------------------------------------------------- Barra do pedido */

.barra-pedido {
  position: fixed; z-index: 30;
  left: 12px; right: 12px; bottom: calc(12px + var(--seguro-baixo));
  max-width: 560px; margin: 0 auto;
  animation: subir-barra .35s cubic-bezier(.2,.8,.2,1);
}
.barra-pedido[hidden] { display: none; }
.barra-pedido.pulsar .barra-pedido__botao { animation: pulsar .5s ease; }
.barra-pedido__botao {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 64px; padding: 10px 18px 10px 14px;
  border: 0; border-radius: 18px;
  background: var(--vinho); color: #fff; text-align: left;
  box-shadow: 0 14px 34px -12px rgba(111, 20, 20, 0.55);
}
.barra-pedido__botao:hover { background: var(--vinho-escuro); }
.barra-pedido__icone { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); }
.barra-pedido__icone svg { width: 22px; height: 22px; }
.barra-pedido__badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #E9D7B5; color: var(--tinta);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.barra-pedido__texto { display: flex; flex-direction: column; line-height: 1.2; }
.barra-pedido__texto span { font-size: 12px; opacity: .85; }
.barra-pedido__texto strong { font-size: 16px; font-weight: 600; }
.barra-pedido__acao { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.barra-pedido__acao svg { width: 18px; height: 18px; }

@keyframes subir-barra { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulsar { 0%,100% { transform: scale(1); } 40% { transform: scale(1.025); } }

/* --------------------------------------------------------- Folhas (dialog) */

dialog.folha {
  padding: 0; border: 0; background: transparent; color: inherit;
  width: 100%; max-width: 100%; height: fit-content; max-height: 100dvh;
  margin: auto 0 0 0;
  overflow: visible;
}
dialog.folha::backdrop { background: rgba(35, 22, 18, 0.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
dialog.folha[open]::backdrop { animation: aparecer .25s ease; }
dialog.folha.saindo::backdrop { animation: sumir .22s ease forwards; }

.folha__corpo {
  position: relative;
  display: flex; flex-direction: column;
  max-height: 92dvh;
  background: var(--creme);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.2);
  overflow: hidden;
}
dialog.folha[open] .folha__corpo { animation: subir .32s cubic-bezier(.2,.8,.2,1); }
dialog.folha.saindo .folha__corpo { animation: descer .22s ease-in forwards; }
.folha__corpo::before {
  content: ""; position: absolute; top: 8px; left: 50%; z-index: 3;
  width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(43,34,32,.18);
}

.folha--cheia .folha__corpo { height: 100dvh; max-height: 100dvh; border-radius: 0; }
.folha--cheia .folha__corpo::before { display: none; }

.folha__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 12px 6px 20px; }
.folha__topo--borda { padding: 10px 8px; border-bottom: 1px solid var(--linha); background: var(--creme); }
.folha__topo--borda .folha__titulo { font-size: 1.4rem; text-align: center; flex: 1; }
.folha__topo--flutuante { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 0; }
.folha__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--vinho); line-height: 1.1; }

.folha__rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.folha__rodape {
  padding: 14px 20px calc(14px + var(--seguro-baixo));
  border-top: 1px solid var(--linha);
  background: var(--creme);
}
.folha__rodape:empty { display: none; }
.folha__erro { color: var(--erro); font-size: 14px; text-align: center; margin-bottom: 10px; }
.folha__erro:empty { display: none; }

@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
@keyframes descer { to { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes sumir { to { opacity: 0; } }
@keyframes surgir { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes afundar { to { opacity: 0; transform: translateY(16px) scale(.98); } }

@media (min-width: 720px) {
  dialog.folha { margin: auto; width: min(580px, calc(100% - 48px)); }
  .folha__corpo { max-height: min(88vh, 900px); border-radius: 22px; box-shadow: var(--sombra-forte); }
  .folha__corpo::before { display: none; }
  dialog.folha[open] .folha__corpo { animation: surgir .28s cubic-bezier(.2,.8,.2,1); }
  dialog.folha.saindo .folha__corpo { animation: afundar .2s ease-in forwards; }
  .folha--cheia .folha__corpo { height: min(92vh, 980px); border-radius: 22px; }
  #dlg-checkout { width: min(640px, calc(100% - 48px)); }
}

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

/* -------------------------------------------------------- Folha de produto */

.produto__midia { aspect-ratio: 5 / 4; overflow: hidden; background: var(--creme-2); }
.produto__midia img { width: 100%; height: 100%; object-fit: cover; }
.produto__midia .sem-foto__nome { font-size: 2rem; max-width: 14ch; }
.produto__midia .sem-foto__ornamento--estrela { width: 52px; height: 52px; }
.produto__info { padding: 22px 20px 18px; }
.produto__nome { margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.05; color: var(--vinho); }
.produto__desc { margin-top: 10px; color: var(--texto-2); font-size: 15px; }

.nota { margin-top: 14px; font-size: 14px; }
.nota--dourada {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(184,149,90,.1); border-left: 2px solid var(--dourado);
  color: var(--tinta);
}

/* -------------------------------------------------------- Grupos de opções */

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
fieldset.grupo > legend { float: left; width: 100%; }
fieldset.grupo > legend + * { clear: both; }

.grupo { padding: 18px 20px; border-top: 1px solid var(--linha); }
.grupo__titulo { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--tinta); }
.grupo__dica { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--texto-3); }
.grupo__resumo { margin-top: 12px; font-size: 14px; color: var(--vinho); font-weight: 500; }
.grupo__resumo--vazio { color: var(--texto-3); font-weight: 400; }
.grupo--linha { display: flex; align-items: center; justify-content: space-between; }
.grupo--linha .grupo__titulo { margin: 0; }
.grupo--erro .grupo__titulo { color: var(--erro); }
.grupo--erro .pilula span { border-color: rgba(166, 27, 27, .45); }

.opcoes { display: grid; gap: 10px; }
.opcao {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--linha-forte); border-radius: var(--raio-p);
  background: var(--branco); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.opcao input, .pilula input, .modo input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.opcao:has(input:checked) { border-color: var(--vinho); background: var(--vinho-tinta); }
.opcao:has(input:focus-visible), .modo:has(input:focus-visible) { outline: 2px solid var(--vinho); outline-offset: 2px; }
.opcao__marca {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--texto-3); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.opcao input:checked + .opcao__marca { border-color: var(--vinho); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--vinho); }
.opcao__texto { display: flex; flex-direction: column; min-width: 0; }
.opcao__rotulo { font-weight: 500; }
.opcao__detalhe { font-size: 13px; color: var(--texto-2); line-height: 1.4; }
.opcao__preco { font-weight: 600; color: var(--vinho); font-size: 15px; white-space: nowrap; }
.opcao--unica { cursor: default; }

.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilula { position: relative; cursor: pointer; }
.pilula span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--linha-forte); background: var(--branco);
  font-size: 15px; transition: all .15s;
}
.pilula:hover span { border-color: var(--vinho); }
.pilula input:checked + span { background: var(--vinho); border-color: var(--vinho); color: #fff; }
.pilula input:focus-visible + span { outline: 2px solid var(--vinho); outline-offset: 2px; }

.sabores { display: grid; }
.sabor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.sabor:last-child { border-bottom: 0; }
.sabor__nome { font-size: 15px; }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--linha-forte); border-radius: 999px; background: var(--branco);
}
.stepper__botao {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: transparent; color: var(--vinho);
}
.stepper__botao:hover:not(:disabled) { background: var(--vinho-tinta); }
.stepper__botao:disabled { color: rgba(43,34,32,.25); cursor: default; }
.stepper__botao svg { width: 18px; height: 18px; }
.stepper__valor {
  width: 46px; height: 44px; border: 0; background: transparent; text-align: center;
  font-size: 16px; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.stepper__valor::-webkit-outer-spin-button, .stepper__valor::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__valor:focus-visible { outline-offset: -2px; border-radius: 6px; }

/* ----------------------------------------------------------------- Campos */

.campo { display: grid; gap: 6px; }
.campo + .campo { margin-top: 14px; }
.campo label, .campo__rotulo { font-size: 14px; font-weight: 500; }
.campo input, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--linha-forte); border-radius: 10px; background: var(--branco);
  font-size: 16px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 88px; }
.campo input::placeholder, .campo textarea::placeholder { color: #9A8F88; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--vinho); box-shadow: 0 0 0 3px rgba(139,26,26,.12); }
.campo--erro input, .campo--erro textarea { border-color: var(--erro); }
.campo__erro { font-size: 13px; color: var(--erro); }
.campo__erro:empty { display: none; }
.campo[hidden] { display: none; }

.upload__area {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 14px; border-radius: 12px;
  border: 1px dashed var(--dourado); background: rgba(184,149,90,.06);
  color: var(--dourado-texto); font-size: 15px; font-weight: 500; cursor: pointer;
}
.upload__area:hover { background: rgba(184,149,90,.12); }
.upload__area:has(input:focus-visible) { outline: 2px solid var(--vinho); outline-offset: 2px; }
.upload__area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__area svg { width: 22px; height: 22px; }
.upload__preview { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--linha-forte); border-radius: 12px; background: var(--branco); }
.upload__preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.upload__nome { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- Carrinho */

#dlg-carrinho .folha__rolagem { padding: 0 20px; }
.linhas { list-style: none; margin: 0; padding: 0; }
.linha {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--linha);
  transition: opacity .18s, transform .18s;
}
.linha:last-child { border-bottom: 0; }
.linha--saindo { opacity: 0; transform: translateX(-12px); }
.linha__foto { display: block; width: 60px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--creme-2); }
.linha__foto img { width: 100%; height: 100%; object-fit: cover; }
.linha__foto .sem-foto { padding: 0; }
.linha__foto .sem-foto__nome, .linha__foto .sem-foto__legenda { display: none; }
.linha__foto .sem-foto__moldura { inset: 4px; border-radius: 6px; }
.linha__foto .sem-foto__moldura::after { display: none; }
.linha__foto .sem-foto__ornamento--estrela { width: 22px; height: 22px; }
.linha__foto .sem-foto__ornamento--ramo { width: 32px; height: 24px; }
.linha__nome { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.linha__detalhes { margin-top: 3px; font-size: 13px; color: var(--texto-2); line-height: 1.45; }
.linha__unit { margin-top: 2px; font-size: 12px; color: var(--texto-3); }
.linha__acoes { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.linha__total { margin-left: auto; font-weight: 600; font-size: 15px; white-space: nowrap; }

.resumo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.resumo-total { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--vinho); }
.resumo-nota { margin: 2px 0 12px; font-size: 13px; color: var(--texto-2); text-align: right; }
.folha__rodape .resumo-linha + .botao { margin-top: 12px; }

.vazio { padding: 32px 20px 44px; text-align: center; color: var(--texto-2); }
.vazio__ornamento { width: 72px; height: 54px; color: var(--verde); opacity: .7; margin: 0 auto 10px; display: block; }
.vazio__titulo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--tinta); }
.vazio .botao { margin-top: 20px; }

/* --------------------------------------------------------------- Checkout */

.etapas { list-style: none; display: flex; gap: 8px; margin: 0; padding: 16px 20px 4px; }
.etapas li {
  flex: 1; padding-top: 8px; border-top: 2px solid var(--linha-forte);
  font-size: 12px; color: var(--texto-3); font-weight: 500;
}
.etapas li.ativa { border-top-color: var(--vinho); color: var(--vinho); }
.checkout .grupo:first-of-type { border-top: 0; }

.modos { display: grid; gap: 10px; margin-bottom: 14px; }
.modo {
  position: relative;
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center;
  min-height: 64px; padding: 14px 16px;
  border: 1px solid var(--linha-forte); border-radius: var(--raio-p); background: var(--branco);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.modo:has(input:checked) { border-color: var(--vinho); background: var(--vinho-tinta); }
.modo__icone { width: 24px; height: 24px; color: var(--vinho); }
.modo__texto { display: flex; flex-direction: column; }
.modo__texto strong { font-weight: 600; font-size: 15px; }
.modo__texto span { font-size: 13px; color: var(--texto-2); }
@media (min-width: 520px) { .modos { grid-template-columns: 1fr 1fr; } }

.cal { padding: 4px 0 0; }
.cal__mes { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-align: center; color: var(--tinta); margin-bottom: 10px; }
.cal__semana, .cal__grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__semana span { text-align: center; font-size: 12px; font-weight: 600; color: var(--texto-3); padding-bottom: 6px; }
.cal__dia {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; aspect-ratio: 1 / 1; max-height: 58px; padding: 0;
  border: 1px solid var(--linha); border-radius: 10px; background: var(--branco);
  font-size: 15px; font-weight: 500; color: var(--tinta);
  transition: background-color .15s, border-color .15s, color .15s;
}
.cal__dia--livre:hover, .cal__dia--ultimas:hover { border-color: var(--vinho); }
.cal__dia--ultimas { border-color: rgba(184,149,90,.6); }
.cal__ponto { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--dourado); }
.cal__dia--esgotado { background: transparent; border-style: dashed; border-color: rgba(139,26,26,.25); color: rgba(139,26,26,.6); cursor: not-allowed; }
.cal__dia--esgotado .cal__num { text-decoration: line-through; text-decoration-thickness: 1px; }
.cal__tag { font-size: 9px; line-height: 1; margin-top: 2px; }
.cal__dia--fechado, .cal__dia--passado, .cal__dia--fora { background: transparent; border-color: transparent; color: rgba(43,34,32,.3); cursor: not-allowed; }
.cal__dia--sel { background: var(--vinho); border-color: var(--vinho); color: #fff; }
.cal__dia--sel .cal__ponto { background: #fff; }
.cal__legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 14px 0 0; padding: 0; font-size: 12px; color: var(--texto-2); }
.cal__legenda li { display: inline-flex; align-items: center; gap: 6px; }
.leg { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--linha-forte); background: var(--branco); }
.leg--ultimas { border-color: var(--dourado); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--dourado); }
.leg--esgotado { border-style: dashed; border-color: rgba(139,26,26,.5); background: transparent; }
.cal__info { margin-top: 8px; text-align: center; font-size: 13px; color: var(--vinho); }
.cal__escolhida { margin-top: 12px; text-align: center; font-size: 15px; }
.cal__escolhida:empty { display: none; }
.cal__escolhida strong { color: var(--vinho); text-transform: none; }
#grupo-data .campo__erro { text-align: center; margin-top: 8px; }

.aviso-pix {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 6px 20px 24px; padding: 14px 16px;
  border: 1px solid var(--dourado-claro); border-radius: var(--raio-p);
  background: rgba(184,149,90,.09);
}
.aviso-pix svg { width: 22px; height: 22px; color: var(--dourado-texto); margin-top: 1px; }
.aviso-pix p { font-size: 14px; font-weight: 500; }

/* ------------------------------------------------------------------ Recibo */

.recibo {
  margin: 16px 20px; padding: 26px 20px 20px;
  background: var(--branco); border: 1px solid var(--dourado-claro); border-radius: 18px;
  box-shadow: var(--sombra);
}
.recibo__cabecalho { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--dourado-claro); }
.recibo__ornamento { width: 28px; height: 28px; color: var(--dourado); margin: 0 auto 8px; display: block; }
.recibo__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--vinho); line-height: 1.1; margin-top: 4px; }
.recibo__dados { margin: 0; padding: 16px 0; display: grid; gap: 12px; border-bottom: 1px dashed var(--linha-forte); }
.recibo__dados div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.recibo__dados dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); padding-top: 2px; }
.recibo__dados dd { margin: 0; font-size: 15px; }
.recibo__itens { list-style: none; margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--linha-forte); }
.recibo__itens li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; }
.recibo__item { font-weight: 500; }
.recibo__qtd { color: var(--vinho); font-weight: 600; margin-right: 2px; }
.recibo__det { font-size: 13px; color: var(--texto-2); line-height: 1.45; margin-top: 2px; }
.recibo__valor { white-space: nowrap; font-weight: 500; text-align: right; }
.recibo__valor small { display: block; font-size: 11px; font-weight: 400; color: var(--texto-3); }
.recibo__totais { margin: 0; padding-top: 14px; display: grid; gap: 8px; }
.recibo__totais div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.recibo__totais dt { font-size: 15px; }
.recibo__totais dd { margin: 0; font-weight: 600; }
.recibo__total { font-family: var(--serif); font-size: 1.7rem; color: var(--vinho); }
.recibo__totais .destaque { padding: 10px 12px; margin: 0 -12px; border-radius: 10px; background: var(--vinho-tinta); color: var(--vinho); }
.recibo__obs { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--linha-forte); font-size: 14px; }
.recibo__obs p + p { margin-top: 4px; }

.enviado { padding: 44px 24px 24px; text-align: center; max-width: 420px; margin: 0 auto; }
.enviado p { color: var(--texto-2); margin-top: 12px; }
.enviado p strong { color: var(--tinta); }
.enviado__selo {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  border: 1px solid var(--verde); color: var(--verde);
  box-shadow: inset 0 0 0 4px var(--creme), inset 0 0 0 5px rgba(31,58,43,.25);
}
.enviado__selo svg { width: 30px; height: 30px; }
.enviado__titulo { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--vinho); }
.enviado__ramo { width: 90px; height: 68px; color: var(--verde); opacity: .6; margin: 26px auto 0; display: block; }
#dlg-checkout .folha__rodape .botao + .botao-texto { margin-top: 6px; }

/* ------------------------------------------------------------------- Toast */

.aviso-toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--seguro-baixo)); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--tinta); color: var(--creme); font-size: 14px; font-weight: 500;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
.aviso-toast.visivel { opacity: 1; transform: translate(-50%, 0); }
