/* ═══════════════════════════════════════════════════════════════
   combos.css — Estilos de combos (admin e landing)
   Depende de: style.css (tokens)
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin — linha de item no formulário ─────────────────────── */
.combo-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
  flex-wrap: nowrap;
}
.combo-item-row select {
  flex: 2; min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.85rem; font-family: inherit; background: var(--surface);
}
.combo-item-row input[type=number] {
  width: 80px; flex-shrink: 0;
  padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.85rem; font-family: inherit; background: var(--surface);
}
.combo-item-row > span {
  font-size: 0.72rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.combo-item-row .btn { flex-shrink: 0; }

/* ── Landing — painel do carrinho ────────────────────────────── */
#combos-section {
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
#combos-section:empty { display: none; }

.combos-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 8px;
}

.combos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.combo-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
  overflow: hidden;
}
.combo-card.active-combo {
  border-color: var(--navy);
  background: rgba(0,77,128,0.04);
}


.combo-card-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-card-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}

.combo-type-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--gold-soft); color: var(--navy-dark);
  border: 0.5px solid var(--gold-border);
  border-radius: 20px; padding: 2px 8px;
  font-size: 0.65rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}

/* Barra de combo ativo no carrinho */
.cart-combo-bar {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
  background: rgba(0,77,128,0.06);
  border: 1px solid rgba(0,77,128,0.2);
  border-radius: 10px; padding: 10px 12px;
  margin: 10px 0 4px;
  font-size: 0.82rem; color: var(--navy-dark);
}
.cart-combo-bar strong { font-weight: 700; }
.cart-combo-bar .remove-combo-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  padding: 1px 4px; border-radius: 4px;
  transition: color 0.15s; flex-shrink: 0; margin-top: 1px;
}
.cart-combo-bar .remove-combo-btn:hover { color: #dc2626; }

/* Total com desconto */
.cart-total-original {
  text-decoration: line-through; color: var(--muted);
  font-size: 0.88em; display: block; line-height: 1.4;
}
.cart-total-discount {
  color: var(--navy-dark); font-weight: 700; font-size: 1.05em;
}

/* ── Landing — seção pública de combos (fora do carrinho) ────── */
.combos-section {
  padding: 0.5rem 2rem;
  max-width: 1600px; margin: 1rem auto;
}
.combos-header { text-align: center; margin-bottom: 1.5rem; }
.combos-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy-dark); text-transform: capitalize;
  letter-spacing: -0.01em; padding-bottom: 0.2rem;
}
.combos-sub { font-size: 0.9rem; color: var(--muted); }

/* Grid público */
.combos-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.combo-public-card {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 0.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,53,96,0.07);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.combo-public-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,53,96,0.13);
}
.combo-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.combo-info { padding: 0.85rem 1rem 1rem; }
.combo-items-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 4px;
}
.combo-name { font-size: 1rem; font-weight: 700; color: var(--navy-dark); }

.combo-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: white;
  width: 110px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  border-radius: 20px; z-index: 2; overflow: hidden;
}
.combo-badge span { position: relative; z-index: 1; }

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .combos-public-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .combo-img { height: 160px; }
  .combos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .combos-section { padding: 0.5rem 1rem; }
  .combos-grid { grid-template-columns: 1fr; gap: 8px; }
  .combo-card { padding: 10px; }
  .combo-card-name { font-size: 0.8rem; }
}