:root {
  --bg: #07080c;
  --surface: rgba(17, 21, 29, 0.92);
  --surface-strong: rgba(27, 32, 41, 0.96);
  --text: #f8f5ef;
  --muted: #aeb1bb;
  --accent: #ff8a35;
  --accent-soft: rgba(255, 138, 53, 0.18);
  --success: #6ddf90;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 106, 29, 0.42), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(42, 82, 132, 0.28), transparent 35%),
    linear-gradient(135deg, #05070c 0%, #0c111a 52%, #07080d 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button,
.pizza-card,
.promo-card,
.dough-card,
.slot-card,
.cart-panel {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

button:active {
  transform: scale(0.98);
}

.cliente-app {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px 14px 120px;
}

.cliente-header {
  min-height: 210px;
  display: flex;
  align-items: end;
  margin-bottom: 18px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 134, 54, 0.42), transparent 36%),
    linear-gradient(145deg, rgba(11, 14, 21, 0.96), rgba(39, 22, 16, 0.9));
  box-shadow: var(--shadow);
}

.cliente-kicker {
  margin: 0 0 8px;
  color: #ffc67e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(4.2rem, 16vw, 7rem);
  font-weight: 400;
  line-height: 0.8;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.cliente-subtitle {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.cliente-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.cliente-section,
.cart-panel {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(17, 21, 29, 0.94), rgba(10, 13, 19, 0.94));
  box-shadow: var(--shadow);
}

.cliente-section {
  padding: 22px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
}

.section-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.promo-grid,
.dough-grid,
.pizza-grid,
.slot-grid {
  display: grid;
  gap: 12px;
}

.promo-card,
.dough-card,
.pizza-card,
.slot-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(34, 38, 48, 0.78), rgba(19, 22, 30, 0.86));
  padding: 18px;
}

.pizza-card:hover,
.slot-card:hover {
  border-color: rgba(255, 138, 53, 0.44);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.promo-card strong,
.dough-card strong,
.pizza-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.pizza-card-top {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.pizza-card-top span {
  color: #ffc67e;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-card p,
.pizza-card p,
.dough-card p {
  margin: 0;
  color: var(--muted);
}

.promo-price,
.pizza-price {
  margin-top: 12px;
  color: #ffb15f;
  font-size: 1.08rem;
  font-weight: 850;
}

.category-block {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.category-block h3 {
  margin: 6px 0 0;
  color: #ffc67e;
  font-size: 1.15rem;
}

.ingredient-warning {
  margin-top: 10px;
  color: #ffd08f;
  font-size: 0.93rem;
}

.pizza-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.round-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 174, 76, 0.32);
  border-radius: 50%;
  background: var(--accent-soft);
  color: #ffb15f;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.quantity-value {
  min-width: 24px;
  text-align: center;
  font-weight: 850;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 850;
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, #ffae4d, #ff6b2b);
  color: #170b05;
  box-shadow: 0 14px 34px rgba(255, 105, 42, 0.22);
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.cart-panel {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 20px;
}

.cart-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffae4d, #ff6b2b);
  color: #170b05;
  font-size: 1rem;
  font-weight: 900;
}

.cart-empty,
.empty-state {
  color: var(--muted);
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span,
.cart-total {
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  font-weight: 800;
}

.checkout-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.checkout-group {
  display: grid;
  gap: 10px;
}

.checkout-group > strong {
  color: #ffc67e;
}

.day-choice-grid {
  display: grid;
  gap: 10px;
}

.day-choice {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
}

.day-choice strong,
.day-choice span {
  display: block;
}

.day-choice span {
  margin-top: 5px;
  color: var(--muted);
}

.day-choice.selected {
  border-color: rgba(255, 138, 53, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 138, 53, 0.2), 0 0 30px rgba(255, 138, 53, 0.15);
}

.slot-card {
  width: 100%;
  text-align: left;
  color: var(--text);
}

.slot-card.selected {
  border-color: rgba(255, 138, 53, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 138, 53, 0.2), 0 0 30px rgba(255, 138, 53, 0.15);
}

.slot-card strong,
.slot-card span {
  display: block;
}

.slot-card span {
  margin-top: 5px;
  color: var(--muted);
}

.customer-form {
  display: grid;
  gap: 10px;
}

.customer-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.customer-form input:focus {
  border-color: rgba(255, 138, 53, 0.9);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 53, 0.12);
}

.message {
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.message.error {
  color: #ffd2d2;
  background: rgba(255, 107, 107, 0.13);
}

.message.success {
  color: #d9ffe4;
  background: rgba(109, 223, 144, 0.13);
}

.confirmation-panel {
  display: grid;
  gap: 14px;
}

.confirmation-panel h2 {
  margin-bottom: 0;
}

.confirmation-number {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 138, 53, 0.14);
  color: #ffc67e;
  font-size: 1.3rem;
  font-weight: 900;
}

.order-recap {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.order-recap span {
  color: var(--muted);
}

@media (max-width: 919px) {
  .cliente-app {
    padding-bottom: 28px;
  }

  .cart-panel {
    position: sticky;
    bottom: 10px;
    border-color: rgba(255, 138, 53, 0.26);
    box-shadow:
      0 -14px 44px rgba(0, 0, 0, 0.4),
      0 0 28px rgba(255, 138, 53, 0.08);
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 60px;
  }

  .pizza-actions,
  .cart-item {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 920px) {
  .cliente-app {
    padding: 30px 24px 64px;
  }

  .cliente-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .cart-panel {
    top: 24px;
    bottom: auto;
  }

  .promo-grid,
  .dough-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pizza-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .pizza-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
