/* ==========================================================================
   Hotel Kari Virundhu - QR Digital Menu
   Design System: Professional, clean light UI with no emojis
   Square mode selectors, SVG icons, +N options counter, and instant wishlist
   ========================================================================== */

:root {
  /* Neutral Color Palette */
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-subtle: #f1f3f5;
  --bg-pill-hover: #e9ecef;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;

  /* Brand & Mode Colors */
  --brand-black: #111827;
  --veg-green: #10b981;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius & Shadows */
  --radius-card: 20px;
  --radius-img: 14px;
  --radius-square: 8px;
  --radius-pill: 9999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-badge: 0 1px 4px rgba(0, 0, 0, 0.08);

  --transition: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Centered Mobile-first wrapper */
.app-wrapper {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-page);
  padding: 14px 16px 40px;
}

/* --------------------------------------------------------------------------
   Top App Header: Logo + "Menu" Title + Top Wishlist Count Button
   -------------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 4px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.logo-text-fallback {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-black);
}

.header-title-wrap {
  display: flex;
  flex-direction: column;
}

.header-main-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.header-sub-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Top Wishlist Button */
.top-wishlist-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.top-wishlist-btn:hover {
  background: #fafafa;
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.wishlist-svg-icon {
  color: var(--brand-black);
  flex-shrink: 0;
}

.top-wishlist-btn .wishlist-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.top-wishlist-btn .wishlist-badge {
  background: var(--brand-black);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   Dining Mode Selector: Square Buttons, No Emojis, Solid Black on Select
   -------------------------------------------------------------------------- */
.mode-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.mode-bar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mode-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--veg-green);
}

.mode-bar-active-name {
  color: var(--text-primary);
  font-weight: 700;
}

/* Square Buttons Grid */
.mode-squares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mode-square-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-square);
  color: var(--text-secondary);
  padding: 10px 4px;
  min-height: 58px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition);
}

.mode-square-btn .mode-icon-svg {
  color: #6b7280;
  transition: color var(--transition);
}

.mode-square-btn .mode-name {
  line-height: 1.1;
}

.mode-square-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--text-primary);
}

/* Active State: Filled Black with Pure White Foreground */
.mode-square-btn.active {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(17, 24, 39, 0.2);
}

.mode-square-btn.active .mode-icon-svg {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Search Bar & Veg Only Toggle Row
   -------------------------------------------------------------------------- */
.search-veg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-svg-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 38px 10px 40px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--brand-black);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.search-input-wrap input::placeholder {
  color: #9ca3af;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: #e5e7eb;
  border: none;
  color: #4b5563;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Professional Indian Vegetarian Symbol (Green Box + Dot) */
.veg-toggle-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all var(--transition);
  white-space: nowrap;
}

.veg-symbol-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--veg-green);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-symbol-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--veg-green);
}

.veg-toggle-btn .toggle-pill-switch {
  width: 26px;
  height: 15px;
  border-radius: var(--radius-pill);
  background: #e5e7eb;
  position: relative;
  transition: background var(--transition);
}

.veg-toggle-btn .toggle-pill-switch::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Veg Toggle Active State */
.veg-toggle-btn.active {
  background: #ecfdf5;
  border-color: var(--veg-green);
  color: #065f46;
}

.veg-toggle-btn.active .toggle-pill-switch {
  background: var(--veg-green);
}

.veg-toggle-btn.active .toggle-pill-switch::after {
  transform: translateX(10px);
}

/* --------------------------------------------------------------------------
   Category Navigation Bar (Pills: All, Shawarma, etc.)
   -------------------------------------------------------------------------- */
.categories-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 8px;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px;
}

.category-pill {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.category-pill:hover {
  background: #f9fafb;
  color: var(--text-primary);
}

.category-pill.active {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.15);
}

/* Available Count Subtext */
.available-count-wrap {
  margin-bottom: 14px;
}

#available-count-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Dishes Catalog & 2-Column Grid
   -------------------------------------------------------------------------- */
.menu-main {
  width: 100%;
}

.loading-box, .error-box, .empty-box {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand-black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.retry-btn, .reset-filter-btn {
  margin-top: 12px;
  background: var(--brand-black);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Category Wise Sections */
.category-block {
  margin-bottom: 24px;
}

.category-block-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.category-block-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.category-block-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 2-Column Food Cards Grid */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Individual Dish Card */
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  user-select: none;
  position: relative;
}

.dish-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.dish-card:active {
  transform: scale(0.98);
}

/* Image & Top Rating Badge (No Calories Badge) */
.dish-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #f1f3f5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Exact requested SVG fallback image style */
.dish-img.no-image-placeholder {
  object-fit: scale-down;
  background: #f8fafc;
  padding: 24px;
}

/* Top-Left Rating Badge with SVG Star */
.badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: var(--shadow-badge);
}

.badge-top-left .star-svg {
  flex-shrink: 0;
}

/* Top-Right Veg/Non-Veg Badge */
.badge-diet-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 3px;
  border-radius: 4px;
  box-shadow: var(--shadow-badge);
}

/* Card Content: Title & Bottom Row */
.dish-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.28;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.56em; /* Keeps row alignment uniform */
}

/* Bottom Price Row with Options Badge (+N) & Action Button */
.dish-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  gap: 6px;
}

.dish-price-options-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Number on Bottom for Multiple Options (like +2, +3) */
.options-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Round Black Plus / Wishlist Button with Professional SVG */
.btn-dish-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-black);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-dish-action:hover {
  transform: scale(1.08);
}

/* Card Qty Count on Action Button (1, 2, 3...) No Red Heart */
.dish-card.has-selected-qty {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dish-card.has-selected-qty .btn-dish-action {
  background: var(--brand-black);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}

.btn-dish-action .card-qty-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}



/* --------------------------------------------------------------------------
   Wishlist Modal / Drawer (When clicking top Wishlist button)
   -------------------------------------------------------------------------- */
.wishlist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 600px) {
  .wishlist-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.wishlist-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
  .wishlist-sheet {
    border-radius: 24px;
    max-height: 80vh;
  }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.wishlist-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishlist-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.wishlist-items-tag {
  background: #fee2e2;
  color: var(--heart-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.close-sheet-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.close-sheet-btn:hover {
  background: #e5e7eb;
  color: var(--text-primary);
}

.wishlist-mode-notice {
  background: #f8fafc;
  padding: 8px 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.wishlist-mode-notice strong {
  color: var(--brand-black);
}

.wishlist-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-empty-msg {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.wishlist-empty-msg .empty-heart-svg {
  margin-bottom: 8px;
  color: #cbd5e1;
}

/* Wishlist Item Row */
.wishlist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.wishlist-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f3f5;
  flex-shrink: 0;
}

.wishlist-thumb.no-image-placeholder {
  object-fit: scale-down;
  padding: 6px;
  background: #f8fafc;
}

.wishlist-row-info {
  flex: 1;
  min-width: 0;
}

.wishlist-row-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-row-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wishlist-row-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 4px;
}

.btn-remove-wishlist {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.btn-remove-wishlist:hover {
  color: var(--heart-red);
}

/* Wishlist Footer */
.wishlist-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.wishlist-total-row strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-black);
}

.counter-tell-tip {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #854d0e;
  line-height: 1.35;
}

.counter-tell-tip .tip-svg-icon {
  flex-shrink: 0;
  color: #ca8a04;
}

.wishlist-actions-row {
  display: flex;
  gap: 10px;
}

.btn-clear-wishlist {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #6b7280;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-clear-wishlist:hover {
  color: var(--heart-red);
}

.btn-done-wishlist {
  flex: 1;
  background: var(--brand-black);
  border: none;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-done-wishlist:hover {
  background: #1f2937;
}

/* ==========================================================================
   Customization Modal (Variants: choose 1, Addons: choose as many)
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.2s ease-out;
}

@media (min-width: 600px) {
  .custom-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.custom-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
  .custom-sheet {
    border-radius: 24px;
    max-height: 80vh;
  }
}

.custom-sheet-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.custom-names-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.custom-names-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dish-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.close-custom-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.close-custom-btn:hover {
  background: #e5e7eb;
  color: var(--text-primary);
}

.custom-sheet-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.custom-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-single {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-multi {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Variant Radio Cards (Choose 1 at a time) */
.variants-radio-list, .addons-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-radio-card, .addon-check-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.variant-radio-card:hover, .addon-check-card:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.variant-radio-card.selected, .addon-check-card.selected {
  border-color: var(--brand-black);
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.option-left-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variant-in-list-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

.variant-radio-card.selected .variant-in-list-badge {
  background: #e2e8f0;
  color: var(--brand-black);
}

.custom-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.variant-radio-card.selected .custom-radio-circle {
  border-color: var(--brand-black);
}

.variant-radio-card.selected .custom-radio-circle::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-black);
}

/* Add-on Card with Stepper (+ and -) */
.addon-stepper-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
  user-select: none;
}

.addon-stepper-card.has-qty {
  border-color: var(--brand-black);
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.addon-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.addon-meta-col .option-name-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.addon-unit-price-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

/* Stepper Actions */
.addon-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-addon-initial-add {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.btn-addon-initial-add:hover {
  background: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
}

.addon-qty-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--brand-black);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.btn-addon-minus, .btn-addon-plus {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--brand-black);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.btn-addon-minus:hover, .btn-addon-plus:hover {
  background: #f1f5f9;
}

.addon-qty-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--brand-black);
  min-width: 24px;
  text-align: center;
}

.option-name-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.option-price-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--brand-black);
}

/* Custom Sheet Footer */
.custom-sheet-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.custom-total-preview {
  display: flex;
  flex-direction: column;
}

.custom-total-preview .total-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.custom-total-preview .total-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-black);
  line-height: 1.1;
}

.btn-add-to-wishlist {
  flex: 1;
  background: var(--brand-black);
  border: none;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.2);
}

.btn-add-to-wishlist:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

/* ==========================================================================
   Dedicated Wishlist Page Specific Styles
   ========================================================================== */
.btn-back-menu {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-back-menu:hover {
  background: #f1f3f5;
  border-color: #d1d5db;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.wishlist-page-main {
  width: 100%;
}

.btn-browse-menu {
  display: inline-block;
  margin-top: 14px;
  background: var(--brand-black);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-browse-menu:hover {
  background: #1f2937;
}

.wishlist-items-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-variant-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.item-addons-line {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.summary-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.summary-row.total {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0;
}

.summary-row.total strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
}

.page-action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-page-secondary {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #6b7280;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-page-secondary:hover {
  color: #dc2626;
  border-color: #fecaca;
}

.btn-page-primary {
  flex: 1.5;
  background: var(--brand-black);
  border: none;
  color: #ffffff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-page-primary:hover {
  background: #1f2937;
}

/* ==========================================================================
   Wishlist Item Rows & Controls
   ========================================================================== */
.wishlist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.wishlist-row:hover {
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wishlist-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid var(--border-light);
}

.wishlist-thumb.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f8fafc;
}

.wishlist-row-info {
  flex: 1;
  min-width: 0;
}

.wishlist-row-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-row-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.wishlist-row-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.wishlist-stepper {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 4px;
}

.btn-wl-qty {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
}

.btn-wl-qty:hover {
  background: var(--brand-black);
  color: #ffffff;
}

.wl-qty-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
  color: var(--text-primary);
}

.wishlist-row-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.btn-remove-wishlist {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-remove-wishlist:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* WhatsApp Order Button */
.btn-whatsapp-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  margin-top: 14px;
}

.btn-whatsapp-order:hover {
  background: #1ebd5b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.42);
}

.btn-whatsapp-order:active {
  transform: translateY(0);
}

.wa-btn-icon {
  flex-shrink: 0;
}

/* Tip note */
.counter-tell-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.35;
}

.tip-svg-icon {
  flex-shrink: 0;
  color: #64748b;
}

/* WhatsApp Customer Name Modal */
.whatsapp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.whatsapp-modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.wa-modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.wa-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.wa-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.whatsapp-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-input-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.req-star {
  color: #ef4444;
}

.wa-text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: all var(--transition);
}

.wa-text-input:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.wa-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 600;
}

.wa-order-preview-box {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.preview-lbl {
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.whatsapp-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-light);
  background: #fafafa;
}

.btn-wa-cancel {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-wa-cancel:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.btn-wa-submit {
  flex: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: #25D366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
}

.btn-wa-submit:hover {
  background: #1ebd5b;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.42);
}

