@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,800;1,9..144,700&family=Outfit:wght@400;500;600;700&display=swap');

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px; line-height: 1.55;
  color: #1a1a1a; background: #fafaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

:root {
  /* Brand */
  --brand:        #e85d04;
  --brand-dark:   #c44d02;
  --brand-light:  #fff3eb;
  --brand-glow:   rgba(232,93,4,.18);

  /* Surfaces */
  --bg:           #fafaf8;
  --surface:      #ffffff;
  --surface-alt:  #f5f4f0;
  --border:       #e8e6e0;
  --border-subtle:#f0ede8;

  /* Text */
  --text:         #1a1a1a;
  --text-2:       #6b6560;
  --text-3:       #9e9890;

  /* Status */
  --success:      #2d9e5f;
  --success-bg:   #edf7f2;
  --warning:      #d97706;
  --warning-bg:   #fffbeb;
  --danger:       #dc2626;
  --danger-bg:    #fef2f2;
  --info:         #2563eb;
  --info-bg:      #eff6ff;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.06);
  --shadow-brand: 0 6px 24px rgba(232,93,4,.3);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: 120ms;
  --normal: 220ms;

  /* Layout */
  --header-h: 64px;
  --cart-bar-h: 72px;
}

/* ── App Layout ─────────────────────────────────────────────────── */
.store-layout {
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────── */
.store-header {
  height: var(--header-h); flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.04);
}

.store-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -.02em;
  flex: 1;
}

.store-logo-mark {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(232,93,4,.35);
  flex-shrink: 0;
}
.store-logo-mark svg { color: white; }

.store-nav {
  display: flex; align-items: center; gap: 4px;
}
.store-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all var(--fast) var(--ease);
  position: relative;
}
.store-nav a:hover { background: var(--surface-alt); color: var(--text); }

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: white;
  font-size: 11px; font-weight: 700; line-height: 1;
}

/* ── Main ───────────────────────────────────────────────────────── */
.store-main { flex: 1; }

/* ── Footer ─────────────────────────────────────────────────────── */
.store-footer {
  padding: 24px 20px;
  text-align: center;
  font-size: 13px; color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

/* ── Menu Page ──────────────────────────────────────────────────── */
.menu-page { padding-bottom: calc(var(--cart-bar-h) + 24px); }

/* Restaurant hero banner */
.restaurant-hero {
  background: linear-gradient(135deg, #1a1008 0%, #2d1e0a 50%, #1a1008 100%);
  padding: 36px 20px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.restaurant-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.restaurant-hero-content { position: relative; z-index: 1; }
.restaurant-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800; color: white;
  letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 8px;
}
.restaurant-subtitle {
  font-size: 14px; color: rgba(255,255,255,.6);
  font-weight: 500; letter-spacing: .02em;
  text-transform: uppercase;
}

/* Category tabs */
.category-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: var(--header-h); z-index: 50;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  flex-shrink: 0; padding: 7px 16px;
  border-radius: 100px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}
.category-tab:hover { border-color: var(--brand); color: var(--brand); }
.category-tab.active {
  background: var(--brand); border-color: var(--brand);
  color: white; box-shadow: 0 2px 10px rgba(232,93,4,.3);
}

/* Menu sections */
.menu-section { padding: 24px 20px 0; }
.menu-section-title {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
  margin-bottom: 16px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

/* ── Product Card ───────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--normal) var(--ease), transform var(--normal) var(--ease);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card--unavailable {
  opacity: .55; pointer-events: none;
}

.product-image {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-alt);
  display: block;
}
.product-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f3ee 0%, #ede9e1 100%);
  display: flex; align-items: center; justify-content: center;
}
.product-image-placeholder svg {
  width: 36px; height: 36px; color: var(--text-3); opacity: .5;
}

.product-info { padding: 12px; }
.product-name {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
  line-height: 1.3; margin-bottom: 4px;
}
.product-description {
  font-size: 12.5px; color: var(--text-3);
  line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 700;
  color: var(--brand); letter-spacing: -.02em;
}
.product-iva-label {
  font-size: 10px; color: var(--text-3);
  margin-top: -2px;
}

.btn-add-to-cart {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; line-height: 1;
  flex-shrink: 0;
  transition: all var(--fast) var(--ease);
  box-shadow: 0 2px 8px rgba(232,93,4,.3);
}
.btn-add-to-cart:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand);
  transform: scale(1.08);
}

.qty-selector {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-alt); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; border: 1px solid var(--border);
  transition: all var(--fast) var(--ease);
}
.qty-btn:hover { background: var(--brand); color: white; border-color: var(--brand); }
.qty-value { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }

.unavailable-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 100px;
  background: var(--surface-alt); color: var(--text-3);
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
}

/* ── Cart FAB ───────────────────────────────────────────────────── */
.cart-fab {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  z-index: 90;
  background: var(--brand);
  color: white;
  border-radius: var(--r-lg);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-brand), 0 4px 24px rgba(0,0,0,.15);
  border: none; cursor: pointer;
  font-family: inherit;
  transition: all var(--fast) var(--ease);
  animation: fabIn 300ms var(--ease) both;
}
@keyframes fabIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cart-fab:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 30px rgba(232,93,4,.4), 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.cart-fab-icon {
  font-size: 20px; flex-shrink: 0;
}
.cart-fab-badge {
  background: rgba(255,255,255,.25); border-radius: 100px;
  padding: 2px 8px; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.cart-fab-total {
  flex: 1; text-align: right;
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}

/* ── Cart Page ──────────────────────────────────────────────────── */
.cart-page { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }

.page-title {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 800;
  color: var(--text); letter-spacing: -.03em;
  margin-bottom: 24px;
}

/* Empty cart */
.empty-cart {
  text-align: center; padding: 64px 24px;
}
.empty-cart-icon {
  font-size: 56px; margin-bottom: 16px;
  opacity: .4;
}
.empty-cart-message {
  font-size: 16px; color: var(--text-2);
  margin-bottom: 24px; line-height: 1.5;
}

/* Cart items */
.cart-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--fast) var(--ease);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fdfcfb; }

.cart-item-image {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--surface-alt);
}
.cart-item-image-placeholder {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-3); font-size: 22px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-price { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.cart-item-controls {
  display: flex; align-items: center; gap: 10px;
}
.cart-item-subtotal {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 700; color: var(--text);
  min-width: 60px; text-align: right;
}

.btn-remove {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger-bg); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: all var(--fast) var(--ease); flex-shrink: 0;
}
.btn-remove:hover { background: var(--danger); color: white; }

/* Customer form */
.customer-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.form-group {
  padding: 0 16px;
  margin-bottom: 0;
}
.form-group + .form-group {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0;
}

.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); padding-top: 12px; margin-bottom: 4px;
}
.form-input, .form-editor {
  width: 100%; border: none; outline: none;
  font-family: 'Outfit', inherit; font-size: 15px; color: var(--text);
  background: transparent; padding: 6px 0 12px;
  resize: none;
}
.form-input::placeholder, .form-editor::placeholder { color: var(--text-3); }

/* Payment section */
.payment-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.payment-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 14px 16px;
}
.payment-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all var(--fast) var(--ease);
  background: var(--surface);
}
.payment-option:hover { border-color: var(--brand); color: var(--brand); }
.payment-option.selected {
  border-color: var(--brand); background: var(--brand-light);
  color: var(--brand); font-weight: 600;
}
.payment-option-icon { font-size: 20px; }

/* Order summary */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; color: var(--text-2);
}
.summary-row + .summary-row { border-top: 1px solid var(--border-subtle); }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 0; margin-top: 6px;
  border-top: 2px solid var(--border);
  font-size: 18px; color: var(--text);
}
.summary-total .label { font-weight: 700; }
.summary-total .amount {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em;
}

/* Place order button */
.btn-place-order {
  width: 100%; padding: 16px;
  background: var(--brand); color: white;
  border-radius: var(--r-lg); border: none;
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: var(--shadow-brand);
  transition: all var(--fast) var(--ease);
  cursor: pointer;
}
.btn-place-order:hover:not(:disabled) {
  background: var(--brand-dark);
  box-shadow: 0 8px 28px rgba(232,93,4,.4);
  transform: translateY(-1px);
}
.btn-place-order:disabled { opacity: .55; cursor: default; }

/* ── Order Status Page ──────────────────────────────────────────── */
.order-status-page { max-width: 480px; margin: 0 auto; padding: 24px 20px; }

.order-header {
  text-align: center; margin-bottom: 28px;
}
.order-number {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 800;
  color: var(--text); letter-spacing: -.02em;
}
.order-eta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light);
  color: var(--brand); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
}

/* Status timeline */
.status-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.status-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 8px 0;
  position: relative;
}
.status-step:not(:last-child)::after {
  content: '';
  position: absolute; left: 15px; top: 36px;
  width: 2px; height: calc(100% - 8px);
  background: var(--border);
  border-radius: 1px;
}
.status-step--done:not(:last-child)::after { background: var(--success); }

.step-indicator {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all var(--normal) var(--ease);
}
.status-step--done   .step-indicator { background: var(--success); }
.status-step--active .step-indicator {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
  animation: pulse 2s infinite;
}
.status-step--pending .step-indicator { background: var(--border); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-light); }
  50%       { box-shadow: 0 0 0 8px var(--brand-glow); }
}

.step-checkmark {
  width: 14px; height: 14px; color: white;
}
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: white; opacity: .7;
}
.step-dot--active { opacity: 1; }

.step-label {
  flex: 1; padding-top: 6px;
}
.step-label-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.2;
}
.status-step--pending .step-label-title { color: var(--text-3); font-weight: 500; }
.status-step--active  .step-label-title { color: var(--brand); }

/* Order items summary */
.order-items-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.order-item-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border-subtle);
}
.order-item-row:last-child { border-bottom: none; }
.order-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-top: 2px solid var(--border);
  font-weight: 700; color: var(--text); font-size: 15px;
}
.order-total-row .amount {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 800; color: var(--brand);
}

/* ── Order Confirmation Page ────────────────────────────────────── */
.order-confirmation-page {
  max-width: 480px; margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
}

.confirmation-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  animation: successPop 400ms var(--ease) both;
}
@keyframes successPop {
  from { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.1); }
  to   { transform: scale(1);   opacity: 1; }
}

.confirmation-title {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800;
  color: var(--text); letter-spacing: -.03em;
  margin-bottom: 8px;
}
.confirmation-subtitle {
  font-size: 15px; color: var(--text-2);
  line-height: 1.6; margin-bottom: 28px;
}

.confirmation-order-number {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.order-number-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.order-number-value {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em;
  margin-top: 4px;
}

.confirmation-message { font-size: 14px; color: var(--text-3); line-height: 1.6; margin-bottom: 28px; }

.confirmation-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── Generic Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  background: var(--brand); color: white;
  border-radius: var(--r-lg); border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 2px 12px rgba(232,93,4,.25);
  transition: all var(--fast) var(--ease);
  cursor: pointer; text-align: center;
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  background: var(--surface); color: var(--text-2);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 500;
  transition: all var(--fast) var(--ease);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }

.btn-full { width: 100%; }

/* ── Loading / Error / Empty states ────────────────────────────── */
.loading-state, .error-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 24px; gap: 12px; text-align: center;
}

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-text { font-size: 14px; color: var(--text-3); }

.error-state { color: var(--danger); }
.error-message {
  display: block; padding: 12px 16px;
  background: var(--danger-bg); color: var(--danger);
  border-radius: var(--r-sm); font-size: 13.5px;
  border-left: 3px solid var(--danger);
  margin-bottom: 12px;
}

.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; border-left: 3px solid; margin-bottom: 16px; }
.alert-danger  { background: var(--danger-bg);  color: #991b1b; border-color: var(--danger); }
.alert-success { background: var(--success-bg); color: #065f46; border-color: var(--success); }

/* ── Blazor loading progress ────────────────────────────────────── */
.loading-progress {
  position: relative; display: block;
  width: 8rem; height: 8rem; margin: 20vh auto 1rem;
}
.loading-progress circle {
  fill: none; stroke: #e8e6e0; stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.loading-progress circle:last-child {
  stroke: var(--brand);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text::after {
  content: var(--blazor-load-percentage-text, "Cargando...");
  font-size: 13px; color: var(--text-3);
}

#blazor-error-ui {
  background: var(--danger-bg); border-top: 1px solid var(--danger);
  bottom: 0; left: 0; right: 0; position: fixed;
  padding: 12px 20px; display: none; z-index: 1000;
  font-size: 13.5px; color: #991b1b;
  align-items: center; gap: 16px;
}
#blazor-error-ui.blazor-error-boundary { display: flex; }
#blazor-error-ui .reload { color: var(--brand); text-decoration: underline; font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; opacity: .5; margin-left: auto; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Page enter animation ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.menu-page, .cart-page, .order-status-page, .order-confirmation-page {
  animation: fadeUp 260ms var(--ease) both;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .cart-fab { left: auto; right: 24px; width: auto; min-width: 260px; }
  .payment-options { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .restaurant-hero { padding: 56px 20px 48px; }
  .menu-page { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
  .cart-page { padding-top: 40px; }
}
