/* ==========================================================
   PÁGINA: CHURROS CONGELADOS
   Salvar como /assets/css/congelados.css
   Carregar DEPOIS de /assets/css/pagina.css (banner, fundo bege, cartões e faixa final).
   Aqui fica só o que é específico: atalhos, produtos e carrinho.
   ========================================================== */
   
/* ---------- Banner: benefícios ---------- */
.cong-beneficios { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; font-weight: 500; }
.cong-beneficios span::before { content: "✓"; margin-right: 7px; color: var(--pg-gold); font-weight: 700; }

/* ---------- Atalhos de categoria (sobem sobre o banner) ---------- */
.cong-atalhos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cong-atalho { display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: var(--pg-title); transition: transform .2s ease; }
.cong-atalho:hover { transform: translateY(-3px); }
.cong-atalho__num { font: normal 30px/1 var(--fonte-titulo); color: var(--pg-gold);}
.cong-atalho strong { display: block; font: normal 20px/1.1 var(--fonte-titulo);}
.cong-atalho small { font-size: 14px; }
.cong-atalho__seta { margin-left: auto; color: var(--pg-gold); font-size: 26px; line-height: 1; }

/* ---------- Introdução ---------- */
.cong-intro { text-align: center; padding-top: 65px; }
.cong-intro h2 { margin: 0 0 8px; color: var(--pg-title); font: normal clamp(26px, 3vw, 36px)/1.1 var(--fonte-titulo); }
.cong-intro p { margin: 0 auto; max-width: 560px; font-size: 16px; }

/* ---------- Grade de produtos (a última linha fica centralizada) ---------- */
.cong-products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cong-products-grid > .cong-product { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
.cong-products-grid--4 > .cong-product { flex-basis: calc((100% - 66px) / 4); }

.cong-product { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.cong-product:hover { transform: translateY(-3px); box-shadow: 0 18px 38px #7a5a3a33; }

.cong-product__image {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, #ead7bf, #f4e8d8);
}
.cong-product__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cong-product__placeholder { max-width: 220px; padding: 20px; text-align: center; }
.cong-product__placeholder span { display: block; margin-bottom: 8px; color: var(--pg-gold); font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.cong-product__placeholder strong { color: var(--pg-title); font: normal 22px/1.15 var(--fonte-titulo); }
.cong-product__badge {
  position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px);
  padding: 6px 12px; color: var(--pg-title); background: #fffdf9; border-radius: 999px; font-size: 12px; font-weight: 700;
}

.cong-product__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.cong-product__code { margin-bottom: 6px; color: var(--pg-gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.cong-product h3 { margin: 0 0 8px; color: var(--pg-title); font: normal 22px/1.15 var(--fonte-titulo);}
.cong-product__description { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.cong-product__detail { margin: 0 0 18px; color: var(--pg-gold); font-size: 14px; font-weight: 700; }

.cong-product__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pg-line); }
.cong-product__price { display: flex; flex-direction: column; gap: 2px; }
.cong-product__price span { font-size: 12px; }
.cong-product__price strong { color: var(--pg-title); font-size: 22px; white-space: nowrap; }
.cong-add-button { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* ---------- Carrinho flutuante (fica acima do botão "Posso ajudar?") ---------- */
.cong-cart-fab {
  position: fixed; z-index: 900; right: 22px; bottom: 92px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  color: var(--pg-title); background: #fffaf4; border: 2px solid var(--orange); border-radius: 999px;
  box-shadow: 0 8px 24px #5b1b0440; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cong-cart-fab svg, .cong-cart-empty svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cong-cart-fab strong { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; color: var(--pg-title); background: var(--orange); border-radius: 999px; font-size: 12px; }

/* ---------- Gaveta do carrinho (acima do chat, que usa z-index 9999) ---------- */
.cong-cart-overlay { position: fixed; z-index: 10000; inset: 0; background: #1a110c8c; }
.cong-cart-overlay[hidden] { display: none; }
.cong-cart-drawer {
  position: fixed; z-index: 10001; top: 0; right: 0; display: flex; flex-direction: column;
  width: min(440px, 100%); height: 100%; height: 100dvh;
  background: var(--pg-card); color: var(--pg-ink); box-shadow: -12px 0 40px #0000001f;
  transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility .24s ease;
}
.cong-cart-drawer.is-open { transform: none; visibility: visible; }

.cong-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--pg-line); }
.cong-cart-drawer__header h2 {   margin: 0;
  color: var(--pg-title);
  font: normal 28px/1.1 var(--fonte-titulo); }
.cong-cart-close { display: grid; place-items: center; width: 40px; height: 40px; color: var(--pg-title); background: #fffdf9; border: 1px solid var(--pg-line); border-radius: 50%; font-size: 26px; cursor: pointer; }

.cong-cart-drawer__items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px;
}
.cong-cart-empty { padding: 60px 10px; text-align: center; }
.cong-cart-empty svg { width: 38px; height: 38px; margin-bottom: 14px; color: var(--pg-gold); }
.cong-cart-empty h3 { margin: 0 0 8px; color: var(--pg-title); font: normal 24px/1.1 var(--fonte-titulo); }
.cong-cart-empty p { margin: 0; font-size: 14px; }

.cong-cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--pg-line); }
.cong-cart-item__name { margin-bottom: 4px; color: var(--pg-title); font-size: 15px; font-weight: 700; }
.cong-cart-item__price { font-size: 14px; }
.cong-cart-item__controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cong-cart-qty-button { display: grid; place-items: center; width: 32px; height: 32px; color: var(--pg-title); background: #fffdf9; border: 1px solid var(--pg-line); border-radius: 8px; font-size: 18px; cursor: pointer; }
.cong-cart-qty { min-width: 18px; text-align: center; font-weight: 700; }
.cong-cart-item__remove { padding: 0; color: var(--pg-gold); background: none; border: 0; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cong-cart-item__total { align-self: start; color: var(--pg-title); font-weight: 700; white-space: nowrap; }

.cong-cart-drawer__footer {
    flex-shrink: 0;
    max-height: 65dvh;
    overflow-y: auto;
    padding: 18px 24px 24px;
    background: var(--pg-card);
    border-top: 1px solid var(--pg-line);
}
.cong-cart-subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cong-cart-subtotal strong { color: var(--pg-title); font-size: 24px; }
.cong-cart-note { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.cong-checkout-button { width: 100%; min-height: 50px; }
.cong-continue-shopping { display: block; margin: 12px auto 0; padding: 6px; color: var(--pg-gold); background: none; border: 0; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Etapa 2: dados do cliente (formulário pronto, ligado na próxima etapa) */
.cong-checkout[hidden] { display: none; }
.cong-checkout { display: grid; gap: 12px; margin-bottom: 14px; }
.cong-checkout label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.cong-checkout input:not([type="hidden"]), .cong-checkout textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; color: var(--pg-ink); background: #fffdf9;
  border: 1px solid var(--pg-line); border-radius: 12px; font: inherit;
}
.cong-checkout textarea { min-height: 80px; resize: vertical; }
.cong-checkout input:focus, .cong-checkout textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px #c6a47755; }
.cong-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .cong-products-grid > .cong-product,
  .cong-products-grid--4 > .cong-product { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 700px) {
  .cong-atalhos { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
  .cong-products-grid { gap: 16px; }
  .cong-products-grid > .cong-product,
  .cong-products-grid--4 > .cong-product { flex-basis: 100%; }
  .cong-product { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .cong-product__image { aspect-ratio: auto; min-height: 100%; }
  .cong-product__placeholder strong { font-size: 18px; }
  .cong-product__body { padding: 14px 14px 16px; }
  .cong-product h3 { font-size: 19px; }
  .cong-product__footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .cong-add-button { width: 100%; }
  .cong-cart-fab { right: 14px; bottom: 76px; }
  .cong-cart-drawer__header, .cong-cart-drawer__items, .cong-cart-drawer__footer { padding-inline: 18px; }
}


/* ==========================================================
   BANNER: SÓ A FOTO E O VÉU, IGUAL AO DO CARDÁPIO / EVENTOS / A CHUCRÊ
   Colar no FIM do congelados.css (apague a versão anterior deste bloco).
   Não mexe em textos, botões, linhas nem espaçamentos.

   A foto tem o MESMO tamanho nas páginas: ocupa só os 540px de cima do banner
   (a altura padrão) e, abaixo disso, o véu vira bege liso. Assim, mesmo que o
   banner do Congelados seja mais alto, a foto não é ampliada e não mostra borda.
   ========================================================== */

.cong-page .pg-banner {
  --hero-img: url('/assets/images/banner-orcamento.jpg');   /* outra foto: troque aqui */

  position: relative;
  isolation: isolate;
  background: #f8f0e6;            /* zera qualquer imagem de fundo vinda do pagina.css */
}

/* Foto: 68% da largura, nos 540px de cima */
.cong-page .pg-banner::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: 68%;
  height: 540px;
  background: var(--hero-img) center 42% / cover no-repeat;
}

/* Véu bege: forte à esquerda; some na base dos 540px e continua bege liso abaixo */
.cong-page .pg-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 351px, #f8f0e6 540px),
    linear-gradient(90deg,
      rgba(248, 240, 230, 0.98) 0%,
      rgba(248, 240, 230, 0.94) 30%,
      rgba(248, 240, 230, 0.68) 48%,
      rgba(248, 240, 230, 0.24) 72%,
      rgba(248, 240, 230, 0.08) 100%);
}

.cong-page .pg-banner__conteudo { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .cong-page .pg-banner::before { width: 82%; }
}

/* Celular: foto na base do banner, véu proporcional */
@media (max-width: 620px) {
  .cong-page .pg-banner::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: auto;
    height: min(100%, 72vw);
    background-position: center bottom;
  }
  .cong-page .pg-banner::after {
    background:
      linear-gradient(180deg, transparent 65%, #f8f0e6 100%),
      linear-gradient(90deg,
        rgba(248, 240, 230, 0.98) 0%,
        rgba(248, 240, 230, 0.94) 30%,
        rgba(248, 240, 230, 0.68) 48%,
        rgba(248, 240, 230, 0.24) 72%,
        rgba(248, 240, 230, 0.08) 100%);
  }
}
.cong-titulo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cong-titulo svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    fill: none;
    stroke: #8b6245;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Informações e instruções de preparo ---------- */

.cong-intro p + p {
    margin-top: 12px;
}

.cong-info {
    margin-top: 30px;
    padding: 26px 30px;
    color: var(--pg-ink);
    background: #f8f0e6;
    border: 1px solid var(--pg-line);
    border-radius: 18px;
}

.cong-info__titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cong-info__titulo svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    fill: none;
    stroke: #8b6245;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cong-info__titulo h3 {
    margin: 0;
    color: var(--pg-title);
    font: normal 28px/1.2 var(--fonte-titulo);
    -webkit-text-stroke: 0.4px currentColor;
}

.cong-info__lista,
.cong-preparo ul {
    margin: 0;
    padding-left: 21px;
    font-size: 14px;
    line-height: 1.8;
}

.cong-info__lista li,
.cong-preparo li {
    padding-left: 3px;
}

.cong-preparo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.cong-preparo {
    padding: 18px;
    background: #fffaf4;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
}

.cong-preparo h4 {
    margin: 0 0 10px;
    color: var(--pg-title);
    font: normal 20px/1.2 var(--fonte-titulo);
}

.cong-info__final {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--pg-line);
    font-size: 14px;
    line-height: 1.7;
}

.cong-info--compacta {
    margin-top: 24px;
}

@media (max-width: 700px) {
    .cong-info {
        padding: 20px 18px;
    }

    .cong-info__titulo h3 {
        font-size: 21px;
    }

    .cong-preparo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* ---------- Apresentação dos produtos congelados ---------- */

.cong-intro {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 25px;
}

.cong-apresentacao {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 30px;
    background: #f8f0e6;
    border: 1px solid var(--pg-line);
    border-radius: 18px;
    text-align: left;
}

.cong-apresentacao__texto {
    text-align: left;
}

.cong-apresentacao__texto h2 {
    margin: 0 0 12px;
    color: var(--pg-title);
    font: normal 42px/1.2 var(--fonte-titulo);
    text-align: left;
}

.cong-apresentacao__texto p {
    margin: 0;
    color: var(--pg-ink);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.cong-apresentacao__texto p + p {
    margin-top: 10px;
}

.cong-apresentacao__imagem {
    width: 100%;
    height: 235px;
    overflow: hidden;
    border-radius: 13px;
}

.cong-apresentacao__imagem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 100%;
}

@media (max-width: 700px) {
    .cong-apresentacao {
        grid-template-columns: minmax(0, 1fr) 115px;
        gap: 14px;
        padding: 17px;
    }

    .cong-apresentacao__texto h2 {
        font-size: 22px;
    }

    .cong-apresentacao__texto p {
        font-size: 12px;
        line-height: 1.55;
    }

    .cong-apresentacao__imagem {
        height: 140px;
    }
}

@media (max-width: 420px) {
    .cong-apresentacao {
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 10px;
        padding: 14px;
    }

    .cong-apresentacao__texto h2 {
        font-size: 19px;
    }

    .cong-apresentacao__imagem {
        height: 120px;
    }
}

.cong-divisor {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cong-divisor::before,
.cong-divisor::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pg-line);
}

.cong-divisor span {
    color: #8b6245;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================
   SELEÇÃO DE SABORES DOS KITS CONGELADOS
   Painel adaptado à gaveta lateral
========================================= */

.cong-flavor-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px 24px;
}

.cong-flavor-dialog__content {
    padding: 0;
}

.cong-flavor-dialog__content h2 {
    margin: 0 0 8px;
    color: var(--pg-title);
    font-family: var(--fonte-titulo);
    font-size: 1.4rem;
    line-height: 1.2;
}

.cong-flavor-dialog__content > p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.cong-flavor-dialog__field {
    margin-bottom: 12px;
}

.cong-flavor-dialog__field label {
    display: block;
    margin-bottom: 6px;
    color: var(--pg-ink);
    font-size: 14px;
    font-weight: 700;
}

.cong-flavor-dialog__field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--pg-line);
    border-radius: 9px;
    background: #fff;
    color: #333;
    font: inherit;
}

.cong-flavor-dialog__field select:focus {
    outline: 2px solid var(--pg-gold);
    outline-offset: 2px;
}

.cong-flavor-dialog__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(198, 164, 119, 0.14);
}

.cong-flavor-dialog__summary p {
    margin: 0;
    font-size: 13px;
}

.cong-flavor-dialog__summary strong {
    color: var(--pg-title);
    white-space: nowrap;
    font-size: 1rem;
}

.cong-flavor-dialog__note {
    font-size: 13px;
    color: var(--pg-ink);
}

.cong-flavor-dialog__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 9px;
    margin-top: 16px;
}

.cong-flavor-dialog__actions button {
    width: 100%;
    min-height: 44px;
}

.cong-flavor-dialog__actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 620px) {
    .cong-flavor-panel {
        padding: 16px 18px 22px;
    }
}

.cong-cart-drawer [hidden] {
    display: none !important;
}


/* =========================================
   CONFIRMAÇÃO DE PEDIDO RECEBIDO
========================================= */

.cong-pedido-sucesso {
    width: calc(100% - 48px);
    max-width: 370px;
    box-sizing: border-box;
    margin: auto;
    padding: 26px 22px;
    text-align: center;
    background: #fffaf4;
    border: 1px solid var(--pg-line);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(87, 27, 12, 0.07);
}

.cong-pedido-sucesso__icone {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    color: #fff;
    background: #6d9065;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
}

.cong-pedido-sucesso__etiqueta {
    display: block;
    margin-bottom: 8px;
    color: #8b6245;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.cong-pedido-sucesso h3 {
    margin: 0 0 12px;
    color: var(--pg-title);
    font: normal 25px/1.2 var(--fonte-titulo);
}

.cong-pedido-sucesso__mensagem {
    margin: 0;
    color: var(--pg-ink);
    font-size: 14px;
    line-height: 1.6;
}

.cong-pedido-sucesso__protocolo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 20px 0;
    padding: 14px;
    background: #f3e8d9;
    border: 1px solid #e8d7c3;
    border-radius: 12px;
}

.cong-pedido-sucesso__protocolo span {
    color: #8b6245;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.cong-pedido-sucesso__protocolo strong {
    color: var(--pg-title);
    font-size: 27px;
}

.cong-pedido-sucesso__aviso {
    margin: 0 0 20px;
    color: #74685e;
    font-size: 12px;
    line-height: 1.5;
}

.cong-pedido-sucesso .cong-checkout-button {
    width: 100%;
    min-height: 46px;
}

@media (max-width: 620px) {
    .cong-pedido-sucesso {
        width: calc(100% - 36px);
        padding: 22px 18px;
    }

    .cong-pedido-sucesso h3 {
        font-size: 22px;
    }
}
