/* Loja pública de congelados. Reusa fontes/variáveis do menu.css quando houver,
   com fallbacks próprios para funcionar de forma independente. */
.shop-page {
  --s-orange: #f47a20;
  --s-orange2: #ff9130;
  --s-gold: #f7cf72;
  --s-red: #e23a26;
  --s-cream: #f6efe4;
  --s-dim: #cbbfae;
  --s-bg: #100d0b;
  --s-card: #1a1512;
  --s-card2: #211a15;
  --s-line: rgba(244, 122, 32, .35);
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(760px 520px at 50% -6%, rgba(245, 124, 0, .18), transparent 60%),
    var(--s-bg);
  color: var(--s-cream);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shop-page * { box-sizing: border-box; }

.shop-top {
  display: flex; align-items: center; gap: 14px;
  max-width: 980px; margin: 0 auto; padding: 18px 18px 6px;
}
.shop-logo { width: 64px; height: auto; }
.shop-title { font-size: 1.8rem; margin: 0; color: var(--s-orange); text-transform: uppercase; letter-spacing: .02em; }
.shop-sub { margin: 2px 0 0; color: var(--s-dim); font-size: .92rem; }
.shop-back { color: var(--s-orange2); text-decoration: none; font-weight: 600; }

.shop-main {
  max-width: 980px; margin: 0 auto; padding: 18px;
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 1.4rem; align-items: start;
}
.shop-catalog { display: grid; gap: 1.2rem; }
.shop-min { color: var(--s-dim); margin: 0; }
.shop-min b { color: var(--s-gold); }
.shop-delivery {
  margin: 0 0 .4rem; padding: .6rem .9rem; border-radius: 10px;
  background: rgba(120, 190, 255, .1); border: 1px solid rgba(120, 190, 255, .3);
  color: var(--s-cream); font-size: .9rem; font-weight: 600;
}
.checkout-delivery {
  margin: 0 0 .7rem; padding: .55rem .8rem; border-radius: 10px;
  background: rgba(120, 190, 255, .1); border: 1px solid rgba(120, 190, 255, .3);
  color: var(--s-cream); font-size: .88rem;
}
.field-hint { color: var(--s-dim); font-size: .78rem; margin: .25rem 0 0; }
.order-deliv { color: var(--s-dim); font-size: .88rem; margin: .5rem 0 0; }
.order-deliv b { color: var(--s-gold); }

.shop-group {
  background: linear-gradient(180deg, var(--s-card2), var(--s-card));
  border: 1.5px solid var(--s-line); border-radius: 16px; padding: 1rem 1.2rem;
}
.shop-group-title {
  font-size: 1.1rem; text-transform: uppercase; color: var(--s-orange);
  margin: 0 0 .6rem; letter-spacing: .02em;
}
.shop-row {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .5rem 0; border-top: 1px solid rgba(255, 255, 255, .06);
}
.shop-row:first-of-type { border-top: 0; }
.shop-flavor { font-weight: 600; display: block; }
.shop-price { color: var(--s-dim); font-size: .85rem; }

.shop-stepper {
  display: inline-flex; align-items: center; flex-shrink: 0;
  background: rgba(244, 122, 32, .1); border: 1px solid var(--s-line);
  border-radius: 999px; padding: .15rem;
}
.shop-stepper button {
  width: 2rem; height: 2rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--s-cream); font-size: 1.25rem; line-height: 1;
}
.shop-stepper button:hover { background: var(--s-orange); color: #fff; }
.step-qty { min-width: 1.7rem; text-align: center; font-weight: 700; }

/* Carrinho (catálogo) e resumo (checkout) */
.shop-cart, .checkout-form {
  background: linear-gradient(180deg, var(--s-card2), var(--s-card));
  border: 1.5px solid var(--s-orange); border-radius: 16px; padding: 1.2rem;
}
.shop-cart { position: sticky; top: 16px; }
.shop-cart h2, .checkout-h { font-size: 1.15rem; text-transform: uppercase; color: var(--s-orange); margin: 0 0 .7rem; }
.checkout-h { margin-top: 1.4rem; }
.cart-list { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .45rem; }
.cart-list li { display: flex; justify-content: space-between; gap: .8rem; font-size: .92rem; }
.cart-empty { color: var(--s-dim); }
.cart-totals {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem;
  padding-top: .8rem; border-top: 1px solid var(--s-line); color: var(--s-dim); font-size: .9rem;
}
.cart-totals strong { margin-left: auto; color: var(--s-gold); font-size: 1.25rem; font-weight: 800; }

.btn-shop {
  width: 100%; margin-top: 1rem; padding: .85rem 1rem; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--s-orange2), var(--s-orange));
  color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn-shop:hover { filter: brightness(1.05); }
.btn-shop:disabled { opacity: .5; cursor: not-allowed; }
.btn-shop-ghost { background: transparent; border: 1.5px solid var(--s-line); color: var(--s-cream); }
.btn-whats { background: linear-gradient(180deg, #2ad15a, #1fb54c); color: #06340f; display: inline-block; max-width: 440px; margin: 1.4rem auto 0; }
.order-whats-note { color: var(--s-dim); font-size: .82rem; margin-top: .5rem; }

/* Checkout */
.checkout-form { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; }
.field { margin-bottom: .7rem; }
.field label { display: block; font-size: .85rem; color: var(--s-dim); }
.field input, .field textarea {
  width: 100%; margin-top: .25rem; padding: .6rem .7rem; border-radius: 10px;
  border: 1px solid var(--s-line); background: rgba(0, 0, 0, .25); color: var(--s-cream);
  font-family: inherit; font-size: 1rem;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.cep-row { display: flex; gap: .6rem; align-items: end; }
.cep-row label { flex: 1; }
.cep-row .btn-shop { width: auto; margin: 0; white-space: nowrap; }
.frete-box {
  margin-top: .8rem; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(244, 122, 32, .08); border: 1px solid var(--s-line);
}
.frete-line { display: flex; justify-content: space-between; padding: .15rem 0; }
.frete-line.grand { border-top: 1px solid var(--s-line); margin-top: .3rem; padding-top: .4rem; font-weight: 700; }
.frete-no { color: var(--s-gold); }
.pay-note { color: var(--s-dim); background: rgba(0,0,0,.2); padding: .7rem; border-radius: 10px; }
.pay-opt { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; margin-bottom: .5rem;
  border: 1px solid var(--s-line); border-radius: 10px; cursor: pointer; }
.pay-opt input { accent-color: var(--s-orange); }
.btn-pay { background: linear-gradient(180deg, var(--s-gold), #e6a92e); color: #3a2402; max-width: 440px; margin: 1.4rem auto 0; display: inline-block; }
.order-paid { color: #2ad15a; font-weight: 700; margin-top: 1.2rem; }
.order-pay-warn { color: var(--s-gold); margin-top: 1.2rem; }
.consent { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0; font-size: .9rem; color: var(--s-dim); }
.checkout-fine { color: var(--s-dim); font-size: .78rem; text-align: center; margin-top: .6rem; }
.shop-error { background: var(--s-red); color: #fff; padding: .7rem .9rem; border-radius: 10px; margin-bottom: 1rem; }

/* Loja fechada */
.shop-closed { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--s-dim); }
.shop-closed-ico { font-size: 3rem; }
.shop-closed h2 { color: var(--s-cream); }

/* Confirmação */
.order-confirm { grid-column: 1 / -1; max-width: 620px; margin: 0 auto; text-align: center; }
.order-check { font-size: 3rem; }
.order-confirm h1 { color: var(--s-orange); text-transform: uppercase; }
.order-greet { color: var(--s-dim); }
.status-timeline { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.status-timeline li { color: var(--s-dim); font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.status-timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-block; }
.status-timeline li.done .dot { background: var(--s-orange); }
.status-timeline li.current { color: var(--s-gold); font-weight: 700; }
.order-card {
  text-align: left; background: linear-gradient(180deg, var(--s-card2), var(--s-card));
  border: 1.5px solid var(--s-line); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.order-card h2 { font-size: 1.05rem; color: var(--s-orange); text-transform: uppercase; margin: 0 0 .6rem; }
.order-items { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.order-items li { display: flex; justify-content: space-between; gap: .8rem; }
.order-totals { justify-content: space-between; }
.order-totals.grand strong { margin-left: 0; }
.order-note { color: var(--s-dim); font-size: .85rem; }

@media (max-width: 820px) {
  .shop-main { grid-template-columns: 1fr; }
  .shop-cart { position: static; }
}
