@import url('https://cdn.jsdelivr.net/npm/@fontsource/inter@5.0.16/index.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* =========================================
   ZarlyHQ Design System
   Brand: #ff9933 (Orange)  |  Dark: #0f172a
   ========================================= */
:root {
  /* Brand */
  --brand:        #ff9933;
  --brand-dark:   #e07e1e;
  --brand-light:  #fff7ed;
  --brand-border: #fed7aa;

  /* Neutrals */
  --dark:     #0f172a;
  --dark-2:   #1e293b;
  --dark-3:   #334155;
  --muted:    #64748b;
  --border:   oklch(85% 0.04 62);
  --surface-alt: oklch(94% 0.03 62);
  --surface:  oklch(99% 0.01 62);
  --bg:       rgb(234, 167, 107);

  /* Semantic */
  --success:      #10b981;
  --success-bg:   #ecfdf5;
  --danger:       #ef4444;
  --danger-bg:    #fef2f2;
  --warning:      #f59e0b;
  --warning-bg:   #fffbeb;
  --info:         #0ea5e9;
  --info-bg:      #f0f9ff;

  /* Shape & Motion */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px oklch(58% 0.1 58 / 0.14);
  --shadow:    0 4px 8px -1px oklch(58% 0.1 58 / 0.13), 0 2px 4px -2px oklch(58% 0.1 58 / 0.09);
  --shadow-md: 0 10px 28px -3px oklch(58% 0.1 58 / 0.15), 0 4px 8px -4px oklch(58% 0.1 58 / 0.1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 80% 40% at 50% 0%,
    oklch(55% 0.14 52 / 0.18),
    transparent 70%
  );
  background-attachment: fixed;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--dark); margin-bottom: 0.5rem; }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

main { flex: 1; padding: 2rem 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar-custom {
  background: oklch(14% 0.045 52);
  border-bottom: 1px solid oklch(22% 0.04 52);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.22);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: oklch(97% 0.012 58);
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.navbar-logo:hover { color: #ff9933; }

.logo-icon { font-size: 1.4rem; }

.navbar-menu {
  display: flex;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: oklch(62% 0.02 54);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.nav-link:hover {
  color: oklch(97% 0.012 58);
  background: oklch(22% 0.04 52);
}

.nav-link.active-nav {
  color: #ff9933;
  background: oklch(20% 0.04 52);
  font-weight: 600;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Cart Icon */
.cart-badge { position: relative; }

.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  text-decoration: none;
  background: oklch(22% 0.04 52);
  border: 1px solid oklch(30% 0.04 52);
  color: oklch(72% 0.02 54);
  transition: var(--transition);
}

.cart-link:hover { background: oklch(26% 0.04 52); border-color: oklch(36% 0.04 52); color: #ff9933; }

.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand);
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid oklch(14% 0.045 52);
  line-height: 1;
}

/* User Dropdown */
.user-dropdown { position: relative; }

.user-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.875rem;
  background: oklch(22% 0.04 52);
  border: 1px solid oklch(30% 0.04 52);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: oklch(88% 0.012 58);
  transition: var(--transition);
  text-decoration: none;
}

.user-link:hover { background: oklch(26% 0.04 52); border-color: oklch(36% 0.04 52); color: #ff9933; }

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-menu.active {
  display: block;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 0.875rem 1rem;
  background: var(--brand);
  color: #fff;
}

.dropdown-header strong { font-size: 0.9rem; display: block; line-height: 1.4; }
.dropdown-header small  { font-size: 0.75rem; opacity: 0.85; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 1rem;
  color: var(--dark-3);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover { background: var(--surface-alt); color: var(--dark); padding-left: 1.25rem; }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger:hover { background: var(--danger-bg); }

.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  line-height: 1.4;
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--dark-2); border-color: var(--dark-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--dark-3);
}
.btn-outline:hover { border-color: var(--dark); background: var(--surface-alt); color: var(--dark); }

.btn-outline-brand {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}
.btn-outline-brand:hover { background: var(--brand-light); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--dark); }

.btn-danger-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--danger);
}
.btn-danger-outline:hover { background: var(--danger-bg); border-color: var(--danger); }

.btn-sm  { padding: 0.375rem 0.875rem; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg  { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

/* =========================================
   FORMS
   ========================================= */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.825rem;
  margin-bottom: 0.375rem;
  color: var(--dark-3);
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="file"],
select, textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--surface);
  transition: var(--transition);
  line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.18);
}

/* =========================================
   BADGES
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.badge-orange   { background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand-border); }
.badge-category { background: #e0f2fe; color: #0284c7; }
.badge-allergen { background: var(--danger-bg); color: #dc2626; }
.badge-safe     { background: var(--success-bg); color: #059669; }
.badge-stock    { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }

/* =========================================
   ALERTS
   ========================================= */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1.5px solid transparent;
}

.alert-success { background: var(--success-bg); color: #047857; border-color: #bbf7d0; }
.alert-danger  { background: var(--danger-bg);  color: #b91c1c; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--info-bg);    color: #0369a1; border-color: #bae6fd; }

/* =========================================
   FILTER BAR
   ========================================= */
.filter-bar {
  background: #fff;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
}

.filter-layout { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 768px) { .filter-layout { grid-template-columns: 1fr; } }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--brand-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--brand-border);
  color: var(--brand-dark);
}

.filter-chip .close { color: var(--danger); font-weight: 700; cursor: pointer; margin-left: 2px; }

.active-filters {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* =========================================
   MENU PAGE
   ========================================= */
.bg-orange { background-color: var(--brand) !important; }

.menu-page { padding: 1.75rem 0 3rem; }

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  font-size: 0.78rem;
}

.menu-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.menu-heading h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.menu-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark-3);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.pill-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
}

/* Product Cards */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover:not(.out-of-stock) {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgb(15 23 42 / 0.09);
  border-color: #d1d5db;
}

.product-image {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: var(--surface-alt);
  position: relative;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img { transform: scale(1.04); }

.category-chip {
  position: absolute;
  bottom: 0.625rem;
  left: 0.625rem;
  background: var(--brand);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.stock-badge { position: absolute; top: 0.625rem; right: 0.625rem; z-index: 10; }

.product-card .card-body {
  padding: 0.75rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}

.product-rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--warning); margin-bottom: 0.375rem; }
.rating-count { color: var(--muted); }

.product-details { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.price { font-size: 1.1rem; font-weight: 800; color: var(--brand); }

.quantity-input { width: 3.75rem; }

/* Action row: button + icon-btns side by side */
.product-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.product-action-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.add-cart-btn {
  flex: 1;
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.45rem 0.625rem;
}
.add-cart-btn:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); }

.icon-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand-border);
  background: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.icon-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.out-of-stock { filter: grayscale(0.85); opacity: 0.72; }
.out-of-stock .btn { pointer-events: none; }

/* =========================================
   SIDEBAR WIDGETS (product list page)
   ========================================= */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-section { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-section:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }

.sticky-sidebar { position: sticky; top: 90px; }

.recent-order { padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.recent-order:last-child { border-bottom: none; padding-bottom: 0; }
.order-status-badge { font-size: 0.68rem; padding: 0.2rem 0.5rem; }
.order-link { font-size: 0.8rem; }
.order-note { margin-top: 0.3rem; }

/* =========================================
   CART & CHECKOUT
   ========================================= */
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-meta { font-size: 0.82rem; color: var(--muted); }

.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--surface-alt);
  padding: 0.25rem;
  border-radius: 999px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.qty-btn:hover { background: var(--brand); color: #fff; }

.qty-display { width: 28px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.cart-sidebar {
  background: oklch(14% 0.045 52);
  padding: 1.5rem;
  border-radius: var(--radius);
  color: oklch(90% 0.012 58);
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}

.summary-row { display: flex; justify-content: space-between; padding: 0.45rem 0; font-size: 0.9rem; color: oklch(70% 0.02 54); border-bottom: 1px solid oklch(25% 0.04 52); }
.summary-row:last-of-type { border-bottom: none; }

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0;
  border-top: 1px solid oklch(28% 0.04 52) !important;
  margin-top: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ff9933;
}

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
}

.payment-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.payment-option:hover { border-color: var(--brand); background: var(--brand-light); }
.payment-option.active { border-color: var(--brand); background: var(--brand-light); }
.payment-title { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; font-size: 0.95rem; }
.payment-desc  { font-size: 0.85rem; color: var(--muted); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 2rem; }
.pagination { list-style: none; display: inline-flex; gap: 0.5rem; padding: 0; margin: 0; }
.pagination .page-item { display: inline-flex; }

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--dark-3);
  background: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.pagination .page-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(255, 153, 51, 0.3); }
.pagination .page-item.disabled .page-link { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* =========================================
   DATA LISTS & TABLES
   ========================================= */
.data-list { list-style: none; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.data-item {
  padding: 0.875rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.data-item:last-child { border-bottom: none; }

/* =========================================
   EMPTY STATES
   ========================================= */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: oklch(28% 0.06 52);
  background: oklch(93% 0.03 62);
  border-radius: var(--radius);
  border: 2px dashed oklch(75% 0.1 60);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.875rem; opacity: 0.6; display: block; }

/* =========================================
   NAV WRAPPER
   ========================================= */
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 500; font-size: 0.875rem; }
.back-link:hover { color: var(--dark); }

/* =========================================
   FOOTER
   ========================================= */
footer {
  margin-top: 4rem;
  padding: 1.75rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* =========================================
   UTILITY
   ========================================= */
.text-muted  { color: var(--muted); }
.text-orange { color: var(--brand); }
.text-sm  { font-size: 0.85rem; }
.text-xs  { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.zarly-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 300px;
  pointer-events: none;
}

.zarly-toast.show { opacity: 1; transform: translateY(0); }
.zarly-toast-success { border-top: 3px solid var(--success); }
.zarly-toast-error   { border-top: 3px solid var(--danger); background: #1e1e1e; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .menu-heading { flex-direction: column; align-items: flex-start; }
  .product-details { flex-direction: column; align-items: flex-start; }
  main { padding: 1.5rem 0; }
}

@media (max-width: 991px) {
  .menu-heading { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   MENU PAGE v2 — REDESIGN
   ========================================= */

/* ── Hero + Filters ───────────────────────── */
.menu-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  background: oklch(96% 0.028 66);
  border-radius: 1.1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid oklch(88% 0.05 64);
}

.menu-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: oklch(16% 0.04 52);
}

.menu-filter-form {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.filter-select-wrap { position: relative; }

.filter-inline-select {
  padding: 0.55rem 2rem 0.55rem 0.875rem;
  border: 1.5px solid oklch(82% 0.055 62);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--dark);
  background: oklch(97% 0.022 64) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 175px;
  width: auto;
}

.filter-inline-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.18);
  outline: none;
}

.filter-reset-btn {
  padding: 0.55rem 1rem;
  border: 1.5px solid oklch(82% 0.055 62);
  border-radius: var(--radius-sm);
  background: oklch(97% 0.022 64);
  color: oklch(38% 0.06 52);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.filter-reset-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

/* ── Category Cards ───────────────────────── */
.categories-section { margin-bottom: 2.25rem; }
.menu-browse-panel .categories-section { margin-bottom: 0; }

.categories-scroll {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.625rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

/* Override .pill for cat-card appearance */
a.cat-card.pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: var(--radius) !important;
  border: 1.5px solid oklch(86% 0.045 64) !important;
  background: oklch(98.5% 0.018 65) !important;
  color: var(--dark-3) !important;
  font-weight: 600 !important;
  font-size: 0.79rem !important;
  min-width: 100px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

a.cat-card.pill:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 22px rgba(255, 153, 51, 0.18) !important;
  border-color: var(--brand-border) !important;
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
}

a.cat-card.pill.pill-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  border-color: var(--brand-dark) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.38) !important;
  transform: translateY(-2px) !important;
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 2px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

a.cat-card.pill.pill-active .cat-icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

.cat-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* ── Content Row ──────────────────────────── */
.menu-content-row {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.menu-products-col {
  flex: 1;
  min-width: 0;
}

.menu-sidebar-col {
  width: 272px;
  flex-shrink: 0;
}

/* ── Sidebar Cart Widget ──────────────────── */
.sidebar-cart-widget {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(255, 153, 51, 0.32);
}

.scw-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.scw-emoji { font-size: 1.85rem; }

.scw-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  color: #fff;
  display: block;
  margin-bottom: 0.125rem;
}

.scw-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.scw-btn {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
}

.scw-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.sidebar-widget-title {
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.625rem;
  margin-bottom: 0.875rem;
  color: var(--dark);
  margin-top: 0;
}

/* ── Product card meta row ────────────────── */
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--warning);
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.product-meta-row .rating-count { color: var(--muted); }
.product-meta-row .meta-dot { color: var(--muted); font-weight: 700; }
.product-meta-row .stock-avail { color: var(--success); font-weight: 600; font-size: 0.72rem; }

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.unavail-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ── Responsive overrides ─────────────────── */
@media (max-width: 1100px) {
  .menu-sidebar-col { width: 248px; }
}

@media (max-width: 991px) {
  .menu-content-row { flex-direction: column; }
  .menu-sidebar-col { width: 100%; }
  .menu-hero { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .menu-filter-form { flex-direction: column; align-items: stretch; }
  .filter-inline-select { min-width: auto; width: 100%; }
  .filter-reset-btn { width: 100%; text-align: center; }
  a.cat-card.pill { min-width: 88px !important; padding: 1rem 1.125rem !important; }
  .cat-icon-wrap { width: 44px; height: 44px; font-size: 1.15rem; }
}

/* =========================================
   LEFT SIDEBAR
   ========================================= */
:root { --sidebar-w: 185px; }

.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: oklch(95% 0.055 62);
  border-right: 2.5px solid #ff9933;
  display: flex;
  flex-direction: column;
  z-index: 1200;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.left-sidebar::-webkit-scrollbar { width: 6px; }
.left-sidebar::-webkit-scrollbar-track { background: transparent; }
.left-sidebar::-webkit-scrollbar-thumb { background: oklch(75% 0.12 58); border-radius: 3px; }

/* Keep sidebar links clickable even when page content layers are complex */
.left-sidebar,
.left-sidebar * {
  pointer-events: auto;
}

/* ── Logo ─────────────────── */
.lsb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid oklch(86% 0.07 62);
  margin-bottom: 0.5rem;
}

.lsb-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: oklch(14% 0.045 52);
  border: 2px solid #ff9933;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lsb-logo-icon svg {
  width: 22px;
  height: 22px;
}
.lsb-logo-icon circle { fill: rgb(255 153 51 / 0.2); }
.lsb-logo-icon path  { stroke: #ff9933; }

/* ── Nav items ────────────── */
.lsb-nav {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
}

.lsb-nav li { width: 100%; }

.lsb-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  color: oklch(32% 0.06 52);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.1rem;
  line-height: 1.4;
}

#lsb-complaints-link {
  cursor: pointer;
}

.lsb-link:hover {
  background: oklch(87% 0.09 58);
  color: oklch(16% 0.04 52);
  padding-left: 1rem;
}

.lsb-link.lsb-active {
  background: oklch(14% 0.045 52);
  color: oklch(97% 0.012 58);
}

.lsb-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsb-icon svg {
  width: 18px;
  height: 18px;
}

.lsb-label { flex: 1; }

/* Notification badge */
.lsb-badge-wrap { position: relative; }

.lsb-badge {
  background: oklch(14% 0.045 52);
  color: #ff9933;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* Extra pages chevron */
.lsb-extra .lsb-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.65;
  flex-shrink: 0;
}

.lsb-extra .lsb-chevron svg {
  width: 14px;
  height: 14px;
}

/* ── User footer ──────────── */
.lsb-footer {
  padding: 0.75rem;
  border-top: 1px solid oklch(86% 0.07 62);
  flex-shrink: 0;
  background: oklch(92% 0.065 62);
}

.lsb-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lsb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(14% 0.045 52);
  border: 2px solid #ff9933;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: oklch(97% 0.012 58);
  flex-shrink: 0;
}

.lsb-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.lsb-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: oklch(18% 0.04 52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.lsb-user-role {
  font-size: 0.65rem;
  color: oklch(48% 0.06 52);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.lsb-signin-btn {
  display: block;
  text-align: center;
  background: oklch(14% 0.045 52);
  border: 1.5px solid #ff9933;
  color: oklch(97% 0.012 58);
  padding: 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.lsb-signin-btn:hover { background: oklch(20% 0.045 52); color: oklch(97% 0.012 58); }

/* ── Main wrapper offset ──── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content { flex: 1; }

/* ── Responsive ──────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .left-sidebar { display: none; }
  .main-wrapper { margin-left: 0; }
}

/* =========================================
   CUSTOMER ORDERS PAGE
   ========================================= */
.orders-page { padding: 1.75rem 0 3rem; }

.orders-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.orders-section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: oklch(16% 0.04 52);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Upcoming order card ── */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.upcoming-card {
  background: oklch(98.5% 0.018 65);
  border-radius: var(--radius);
  border: 1px solid oklch(88% 0.045 64);
  padding: 1.25rem 1.375rem;
  box-shadow: 0 2px 8px oklch(58% 0.1 58 / 0.08);
  transition: var(--transition);
}
.upcoming-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.upcoming-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.upcoming-order-id {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
}

.upcoming-order-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.125rem;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending      { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.status-pay          { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-preparing    { background: #fefce8; color: #92400e; border: 1px solid #fef08a; }
.status-ready        { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.status-on-way       { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.upcoming-items-section {
  margin-bottom: 1.125rem;
}

.upcoming-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.upcoming-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.upcoming-item-qty {
  font-weight: 700;
  color: var(--brand);
  min-width: 24px;
}

.upcoming-item-name {
  flex: 1;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-item-price {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.upcoming-item-more {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  padding-left: 24px;
}

.upcoming-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.upcoming-total-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.upcoming-total-label strong {
  color: var(--dark);
  font-size: 0.9rem;
}

.upcoming-track-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.upcoming-track-btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

/* Unpaid / awaiting payment within upcoming orders */
.upcoming-subgroup-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b45309;
  padding: .35rem 0 .1rem;
  border-top: 1.5px solid #fde68a;
  margin-top: .25rem;
}
.upcoming-subgroup-label:first-child { border-top: none; margin-top: 0; }
.subgroup-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
}
.unpaid-card {
  border: 1.5px solid #fde68a !important;
  background: oklch(99% 0.025 78) !important;
  position: relative;
  overflow: hidden;
}
.pay-now-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  background: #d97706;
  color: #fff;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.pay-now-btn:hover { background: #b45309; color: #fff; transform: translateY(-1px); }

/* Progress steps */
.order-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.progress-step::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  margin-bottom: 0.375rem;
  z-index: 1;
}

.progress-step.done::before {
  background: var(--success);
  border-color: var(--success);
}

.progress-step.active::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.25);
}

.progress-step + .progress-step::after {
  content: '';
  position: absolute;
  right: 50%;
  top: 4px;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step.done + .progress-step::after { background: var(--success); }

/* ── Previous order card ── */
.previous-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.previous-card {
  background: oklch(98.5% 0.018 65);
  border-radius: var(--radius);
  border: 1px solid oklch(88% 0.045 64);
  padding: 1.25rem 1.375rem;
  box-shadow: 0 2px 8px oklch(58% 0.1 58 / 0.08);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.previous-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.prev-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.625rem;
}

.prev-order-id { font-weight: 800; font-size: 1rem; color: var(--dark); }

.prev-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.prev-meta-item { display: flex; align-items: center; gap: 0.3rem; }

.prev-items-list {
  flex: 1;
  margin-bottom: 1rem;
}

.prev-item-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--dark-3);
  padding: 0.2rem 0;
}

.prev-item-qty {
  font-weight: 700;
  color: var(--dark);
  min-width: 1.25rem;
}

.prev-item-name { flex: 1; }

.prev-more {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.prev-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid oklch(90% 0.03 64);
}

/* ── Shared action button base ── */
.prev-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.625rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.prev-action-btn:focus-visible {
  outline: 2px solid #ff9933;
  outline-offset: 2px;
}

/* Details — dark authority, calm primary */
.prev-action-details {
  background: oklch(19% 0.035 52);
  color: oklch(93% 0.012 62);
  border-color: oklch(19% 0.035 52);
}
.prev-action-details:hover {
  background: oklch(26% 0.04 52);
  border-color: oklch(26% 0.04 52);
  color: oklch(97% 0.006 60);
  transform: translateY(-1px);
}

/* Reorder — brand orange, warm commerce */
.prev-action-reorder {
  background: #ff9933;
  color: oklch(14% 0.045 52);
  border-color: #ff9933;
}
.prev-action-reorder:hover {
  background: oklch(70% 0.155 55);
  border-color: oklch(70% 0.155 55);
  color: oklch(14% 0.045 52);
  transform: translateY(-1px);
}

/* Complaint — warm rose ghost, available but understated */
.prev-action-complaint {
  background: oklch(98% 0.008 20);
  color: oklch(43% 0.1 22);
  border-color: oklch(84% 0.04 22);
}
.prev-action-complaint:hover {
  background: oklch(95% 0.016 22);
  border-color: oklch(68% 0.07 22);
  color: oklch(36% 0.1 22);
}
.prev-action-complaint:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Review — soft violet, friendly engagement */
.prev-action-review {
  background: oklch(97% 0.01 290);
  color: oklch(42% 0.14 290);
  border-color: oklch(83% 0.06 290);
}
.prev-action-review:hover {
  background: oklch(94% 0.018 290);
  border-color: oklch(66% 0.1 290);
  color: oklch(36% 0.15 290);
}

.status-completed { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-delivered { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-rejected  { background: var(--danger-bg); color: #b91c1c; border: 1px solid #fecaca; }
.status-approved  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.orders-empty {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  margin-bottom: 2rem;
}

.orders-empty-icon { font-size: 2.5rem; opacity: 0.4; margin-bottom: 0.75rem; display: block; }

@media (max-width: 640px) {
  .upcoming-grid { grid-template-columns: 1fr; }
  .previous-grid { grid-template-columns: 1fr; }
}

/* ── Sticky cart FAB ───────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: oklch(99% 0.006 68);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.375rem;
  font-weight: 800;
  font-size: 0.875rem;
  font-family: inherit;
  border: 2px solid oklch(62% 0.18 42);
  box-shadow: 0 6px 28px rgba(180, 80, 0, 0.42), 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: background 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.cart-fab:hover {
  background: var(--brand-dark);
  color: oklch(99% 0.006 68);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 153, 51, 0.42), 0 2px 6px rgba(15, 23, 42, 0.1);
}
.cart-fab:active { transform: translateY(0); }

.cart-fab-badge {
  background: oklch(99% 0.006 68);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  letter-spacing: 0;
  line-height: 1;
}

@media (max-width: 480px) {
  .cart-fab { padding: 0.75rem 1.125rem; bottom: 1.25rem; right: 1.25rem; }
  .cart-fab-label { display: none; }
}

/* ── Browse panel ─────────────────────────────────────────── */
.menu-browse-panel {
  background: oklch(96% 0.03 68);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 2rem;
  margin-top: 0;
  border: 1px solid oklch(88% 0.05 64);
}

.menu-browse-panel .categories-section {
  border-bottom: 1px solid oklch(86% 0.04 62);
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
}

/* ── Product card (.pcard) ──────────────────────────────── */
.pcard {
  background: oklch(99% 0.008 62);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid oklch(91% 0.018 62);
  box-shadow: 4px 4px 0 0 #170400, 0 1px 4px oklch(9% 0.04 32 / 0.05);
  transition: box-shadow 0.18s ease-out, transform 0.18s ease-out;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  box-shadow: 6px 6px 0 0 #170400, 0 2px 8px oklch(9% 0.04 32 / 0.08);
  transform: translateY(-2px);
}

.pcard-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: oklch(93% 0.025 62);
}

.pcard-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(68% 0.12 55);
}
.pcard-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}
.pcard:hover .pcard-img-wrap img { transform: scale(1.04); }

.pcard-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-soldout-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: oklch(96% 0.012 68);
  background: rgba(15, 23, 42, 0.55);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.pcard-cat {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: oklch(99% 0.006 68);
  background: rgba(15, 23, 42, 0.52);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pcard-body {
  padding: 0.625rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.pcard-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: oklch(18% 0.015 68);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-meta {
  font-size: 0.7rem;
  color: var(--brand);
  font-weight: 600;
}

.pcard-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pcard-allergen-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  line-height: 1.4;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.pcard-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.pcard-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: oklch(99% 0.006 68);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
  font-family: inherit;
  flex-shrink: 0;
  padding: 0;
}
.pcard-add:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.4);
}
.pcard-add:active:not(:disabled) { transform: scale(0.94); }
.pcard-add:disabled {
  background: oklch(87% 0.006 68);
  color: oklch(62% 0.01 68);
  cursor: not-allowed;
}

.pcard-fav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: oklch(62% 0.01 68);
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.pcard-fav:hover {
  background: #fff;
  color: #ef4444;
  transform: scale(1.14);
}
.pcard-fav-on {
  color: #ef4444;
}
.pcard-fav-on svg { fill: #ef4444; }
