/* KatuFood - ficha do produto
   Compartilhada pelo cardápio público e pelo PDV do lojista.
   Vive fora do cardapio.css porque o painel também precisa dela. */

/* ------------------------------------------------------------- cabeçalho da ficha */

.ficha-foto {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; background: var(--fundo);
}

.ficha-corpo { padding: 18px 20px 16px; }
.ficha-corpo h2 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.ficha-corpo > p.mudo { font-size: 14px; line-height: 1.5; margin-bottom: 0; }

.ficha-preco {
  font-size: 21px; font-weight: 750; margin-top: 12px;
  color: var(--verde-katu); display: flex; align-items: baseline; gap: 8px;
}
.ficha-preco small { font-size: 15px; }

/* ------------------------------------------------------------- grupo de complementos */

.grupo-comp { border-top: 8px solid var(--fundo); }

.grupo-comp .cab {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 20px; background: var(--fundo);
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 2;
}
.grupo-comp .cab h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.grupo-comp .cab .regra { font-size: 12.5px; color: var(--tinta-3); margin-top: 2px; }

.grupo-comp .obrigatorio {
  flex: none; background: var(--verde-katu); color: #fff;
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-full); font-weight: 700;
}

.grupo-comp textarea { margin: 12px 20px 16px; width: calc(100% - 40px); }

/* ------------------------------------------------------------- opções */

.opcao {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; margin: 0;
  border-bottom: 1px solid var(--linha-2);
  cursor: pointer; transition: background .12s;
}
.opcao:last-child { border-bottom: 0; }
.opcao:hover { background: var(--fundo); }

/* label inteiro acende quando a opção está marcada */
.opcao:has(input:checked) { background: var(--laranja-claro); }
.opcao:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.opcao:has(input:disabled):hover { background: none; }

.opcao input[type=radio],
.opcao input[type=checkbox] {
  flex: none; width: 19px; height: 19px; accent-color: var(--marca, var(--laranja)); cursor: inherit;
}

.opcao .nome { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.opcao .nome small { display: block; color: var(--tinta-3); font-size: 12.5px; margin-top: 1px; }
.opcao .add { flex: none; font-size: 14px; font-weight: 700; color: var(--verde); white-space: nowrap; }

/* ------------------------------------------------------------- contador de quantidade */

.contador {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--linha); border-radius: var(--r-full); background: var(--papel);
  overflow: hidden;
}
.contador button {
  width: 32px; height: 32px; border: 0; background: none; padding: 0;
  font-size: 19px; line-height: 1; font-weight: 600;
  color: var(--marca, var(--laranja)); cursor: pointer; transition: background .12s;
}
.contador button:hover:not(:disabled) { background: var(--laranja-claro); }
.contador button:disabled { color: var(--linha); cursor: not-allowed; }
.contador span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14.5px; }

/* ------------------------------------------------------------- escolha em cartão (checkout) */

.opcao-radio {
  display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--linha);
  border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; background: var(--papel);
}
.opcao-radio.selecionada { border-color: var(--marca, var(--laranja)); background: var(--laranja-claro); }
.opcao-radio input { accent-color: var(--marca, var(--laranja)); width: 18px; height: 18px; flex: none; }
.opcao-radio .t { flex: 1; }
.opcao-radio .t b { display: block; font-size: 14.5px; }
.opcao-radio .t small { color: var(--tinta-3); }
