.page-hero {
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0.75rem 0;
}

/* ── CART LAYOUT ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 3rem 2rem;
  align-items: start;
}

/* ── CART ITEMS ── */
.cart-items-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  animation: fadeUp 0.3s ease forwards;
}

.cart-item:hover {
  border-color: var(--border-light);
}

.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cart-item-note-wrap {
  margin-top: 0.5rem;
}

.cart-item-note {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cart-item-note:focus {
  outline: none;
  border-color: var(--accent);
}

.cart-qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-qty-val {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
  font-size: 1rem;
}

.cart-remove:hover { color: var(--red); }

/* ── EMPTY CART ── */
.empty-cart {
  grid-column: 1/-1;
  text-align: center;
  padding: 6rem 2rem;
}

.empty-cart svg { opacity: 0.2; margin-bottom: 1.5rem; }

.empty-cart h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ── ORDER SUMMARY ── */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(72px + 1rem);
}

.order-summary h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.order-type-select {
  margin-bottom: 1.5rem;
}

.order-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.order-type-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.order-type-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.order-type-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.order-type-opt input { display: none; }

.order-type-opt span:first-of-type { font-size: 1.5rem; }
.order-type-opt span:last-of-type { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.order-type-opt.selected span:last-of-type { color: var(--accent); }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-row.total span:last-child { color: var(--accent); font-size: 1.3rem; }

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── SUCCESS ICON ── */
.success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #34d399, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .cart-layout { padding: 2rem 1.25rem; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .cart-layout { padding: 1.5rem 1.25rem; }
  .order-summary { padding: 1.25rem; }
  .cart-items-panel { padding: 1.25rem; }
  .page-hero { padding: 5.5rem 1.25rem 2rem; }
  .page-hero-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .checkout-form { gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .summary-row { font-size: 0.85rem; }
  .summary-row.total { font-size: 1rem; }
  .checkout-btn { padding: 0.9rem 1.5rem; font-size: 1rem; }
}

@media (max-width: 480px) {
  .cart-layout { padding: 1rem; }
  .cart-item { flex-wrap: wrap; gap: 0.75rem; }
  .cart-item-img { width: 56px; height: 56px; flex-shrink: 0; }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-name { font-size: 0.95rem; white-space: normal; }
  .cart-qty-btn { width: 44px; height: 44px; font-size: 1.1rem; }
  .cart-qty-val { min-width: 2rem; font-size: 0.95rem; }
  .cart-remove { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .order-type-tabs { gap: 0.4rem; }
  .order-type-tab { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
  .guests-row { flex-wrap: wrap; gap: 0.5rem; }
  .cart-empty { padding: 3rem 1rem; }

  /* Sticky submit button on mobile */
  #submitBtn {
    position: sticky;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    border-radius: var(--radius-sm);
  }

  /* Floating cart button full width */
  .cart-float-btn {
    left: 1rem;
    right: 1rem;
    width: auto;
    text-align: center;
    border-radius: var(--radius);
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}
