/* ==========================================================================
   Gourmet Haven - Premium Restaurant Design System & Light Theme
   Strict Light Theme | App-Like Mobile UI | Compact Sticky Header
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Dynamic Accent Colors (Configured via Admin Settings) */
  --primary: #E63946;
  --primary-hover: #D62839;
  --primary-soft: rgba(230, 57, 70, 0.08);
  --primary-border: rgba(230, 57, 70, 0.2);
  --secondary: #FF7A00;
  --secondary-soft: rgba(255, 122, 0, 0.08);
  
  /* Strict Light Theme Palette */
  --bg-body: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-muted: #F3F1EC;
  --bg-subtle: #F8F7F4;
  
  /* Text & Typography */
  --text-main: #18191B;
  --text-muted: #646870;
  --text-light: #9196A1;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Borders & Shadows */
  --border-color: #EAE6DF;
  --border-light: #F2EFEA;
  --shadow-sm: 0 1px 3px rgba(24, 25, 27, 0.04);
  --shadow-md: 0 4px 16px rgba(24, 25, 27, 0.06);
  --shadow-lg: 0 10px 32px rgba(24, 25, 27, 0.08);
  --shadow-float: 0 14px 40px rgba(230, 57, 70, 0.15);
  
  /* Dimensions & Spacing */
  --desktop-header-height: 62px;
  --mobile-bottom-nav-height: 52px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Status Colors */
  --success: #10B981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #0284C7;
  --info-soft: rgba(2, 132, 199, 0.1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + 20px);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.serif-title {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-title-modern {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* ==========================================================================
   Desktop Header: Fixed, Sticky, and Compact (Strict 56–64px)
   ========================================================================== */
.site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1040;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  overflow-anchor: none;
}

.site-header-wrapper.is-stuck {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  margin: 0 auto;
}

.desktop-header {
  height: var(--desktop-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  flex-shrink: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-text-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-text-name span {
  color: var(--primary);
}

.brand-text-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

/* Branch Pill Selector */
.branch-pill {
  background: #f7f6f2;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.branch-pill:hover {
  background: var(--bg-surface);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Desktop Nav Center */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .desktop-nav-links {
    gap: 18px;
  }
}

@media (min-width: 1400px) {
  .desktop-nav-links {
    gap: 24px;
  }
}

.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  position: relative;
  padding: 6px 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--primary);
}

.desktop-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-right {
  flex-shrink: 0;
}

/* Cart Button & Badge */
.header-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.header-cart-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
  transform: scale(1.05);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Announcement Top Bar */
.announcement-bar {
  background-color: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  text-align: center;
}

/* Utility Font Sizes and Shadows */
.fs-7 { font-size: 0.825rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fs-9 { font-size: 0.65rem !important; }
.fw-black { font-weight: 900 !important; }
.shadow-xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; }
.shadow-2xs { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important; }

/* ==========================================================================
   App-Like Mobile Top Header (< 768px)
   ========================================================================== */
.mobile-top-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.app-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(230, 57, 70, 0.15);
  transition: transform 0.2s ease;
}

.app-brand-badge:hover {
  transform: scale(1.05);
}

.brand-text-mobile {
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.mobile-location-btn {
  background: transparent;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.2;
}

.mobile-header-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F4F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.mobile-header-btn:hover,
.mobile-header-btn:active {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-header-btn .cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   App Search Bar Component (Zomato / Swiggy Native App Style)
   ========================================================================== */
.mobile-search-wrapper {
  background: transparent;
}

.mobile-search-card {
  height: 46px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-search-card:focus-within {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 4px 18px rgba(230, 57, 70, 0.14);
}

.mobile-search-input {
  color: #1E293B !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  outline: none !important;
  box-shadow: none !important;
}

.mobile-search-input::placeholder {
  color: #94A3B8 !important;
  font-size: 0.825rem !important;
  font-weight: 400 !important;
  transition: opacity 0.2s ease;
}

.mobile-search-divider {
  width: 1px;
  height: 22px;
  background: #E2E8F0;
  flex-shrink: 0;
  margin: 0 4px;
}

.mobile-mic-btn {
  color: var(--primary);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mobile-mic-btn:active {
  transform: scale(0.9);
}

.mobile-mic-btn.listening {
  color: #EF4444;
  animation: pulse-mic 0.8s infinite alternate;
}

@keyframes pulse-mic {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   Mobile Service Mode Switcher (< 768px)
   ========================================================================== */
.mobile-service-switcher {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  gap: 4px;
}

.service-switcher-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.service-switcher-btn.active {
  background: #FFFFFF;
  color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 700 !important;
}

/* ==========================================================================
   Mobile Hero Promo Banner Card (< 768px)
   ========================================================================== */
.mobile-promo-card {
  background: linear-gradient(135deg, #FF4D5A 0%, #E63946 50%, #B91C1C 100%);
  color: #FFFFFF;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.22);
}

.mobile-promo-glow {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* ==========================================================================
   App-Like Mobile Bottom Navigation (Fixed)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 12px;
  right: 12px;
  height: var(--mobile-bottom-nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  position: relative;
  transition: all 0.18s ease;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
}

.mobile-nav-item .mobile-cart-badge {
  position: absolute;
  top: 6px;
  right: 25%;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  height: 16px;
  min-width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ==========================================================================
   Sticky Bottom Cart Bar (App-Like Order Summary on Mobile)
   ========================================================================== */
.mobile-cart-sticky-bar {
  position: fixed;
  bottom: calc(var(--mobile-bottom-nav-height) + 10px);
  left: 12px;
  right: 12px;
  z-index: 1025;
  background: #18191B;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-cart-sticky-bar:hover {
  color: #fff;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Horizontal Scrollable Category Pills (Food App Style)
   ========================================================================== */
.category-scroll-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
  padding: 8px 0 14px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 82px;
  text-align: center;
}

.category-pill-card img,
.category-pill-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.category-pill-card:hover,
.category-pill-card.active {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
}

.category-pill-card:hover img,
.category-pill-card:hover .category-pill-icon,
.category-pill-card.active img,
.category-pill-card.active .category-pill-icon {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.22);
}

.category-pill-card.active .category-pill-icon {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Food Item Card Design (Modern, App-Like, Touch-Optimized)
   ========================================================================== */
.food-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  height: 100%;
  position: relative;
}

.food-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.food-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: var(--bg-muted);
}

.food-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.food-card:hover .food-card-img {
  transform: scale(1.04);
}

.food-badge-dietary {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #fff;
  border: 1.5px solid;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.food-badge-dietary.veg {
  border-color: #10B981;
}

.food-badge-dietary.veg::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.food-badge-dietary.non-veg {
  border-color: #EF4444;
}

.food-badge-dietary.non-veg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #EF4444;
}

.food-badge-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(24, 25, 27, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.food-badge-pill.bestseller {
  background: #FF7A00;
}

.food-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-card-category {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.food-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.food-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.food-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.food-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.food-price-current {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
}

.food-price-old {
  font-size: 0.86rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Quick Add Button / Counter */
.food-add-btn {
  background: var(--bg-surface);
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.food-add-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.food-customizable-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
  margin-top: 3px;
}

/* ==========================================================================
   Modern Item Customization Bottom Sheet / Modal (<dialog>)
   Uses Modern Web Guidance pattern for light dismiss & smooth entry/exit
   ========================================================================== */
dialog.customization-sheet {
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  margin: auto auto 0 auto; /* Anchored to bottom on mobile */
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

@media (min-width: 768px) {
  dialog.customization-sheet {
    border-radius: var(--radius-lg);
    margin: auto; /* Centered modal on desktop */
  }
}

dialog.customization-sheet::backdrop {
  background-color: rgba(24, 25, 27, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.25s ease;
}

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

.customization-close-btn {
  background: var(--bg-muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.customization-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.customization-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.customization-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn-haven {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.22);
}

.btn-haven:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.32);
}

.btn-haven-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.btn-haven-secondary:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Order Tracking Stepper Progress Bar
   ========================================================================== */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0 20px 0;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
}

.tracking-stepper-progress {
  position: absolute;
  top: 18px;
  left: 20px;
  height: 4px;
  background: var(--primary);
  z-index: 1;
  transition: width 0.4s ease;
}

.tracking-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tracking-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tracking-step.completed .tracking-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tracking-step.active .tracking-step-dot {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.tracking-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text-muted);
}

.tracking-step.active .tracking-step-label,
.tracking-step.completed .tracking-step-label {
  color: var(--text-main);
}

/* ==========================================================================
   Admin Light Theme Styles
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #F8F9FA;
}

.admin-sidebar {
  width: 250px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-nav-item:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.admin-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.admin-content-area {
  flex-grow: 1;
  padding: 24px 30px;
  overflow-x: hidden;
}

.admin-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Mobile 2-Column Food Card Refinements (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
  .food-card {
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .food-card-img-wrap {
    padding-top: 65%;
  }

  .food-card-body {
    padding: 8px 10px 10px;
  }

  .food-card-category {
    font-size: 0.64rem;
    margin-bottom: 2px;
  }

  .food-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 4px;
    height: 2.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .food-card-desc {
    display: none; /* Keeps 2-column mobile cards neat and cleanly aligned */
  }

  .food-card-footer {
    padding-top: 6px;
    margin-top: auto;
  }

  .food-price-current {
    font-size: 0.94rem;
    font-weight: 800;
  }

  .food-price-old {
    font-size: 0.72rem;
  }

  .food-add-btn {
    padding: 3px 10px;
    font-size: 0.72rem;
  }

  .food-customizable-tag {
    font-size: 0.58rem;
    margin-top: 1px;
  }

  .food-badge-dietary {
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
  }

  .food-badge-dietary.veg::after {
    width: 6px;
    height: 6px;
  }

  .food-badge-pill {
    top: 6px;
    right: 6px;
    font-size: 0.58rem;
    padding: 2px 6px;
  }
}

/* ==========================================================================
   Global Status Badge Classes & High-Contrast Color System
   ========================================================================== */
.bg-purple {
  background-color: #7C3AED !important;
  color: #FFFFFF !important;
}
.bg-purple-subtle {
  background-color: #F3E8FF !important;
}
.text-purple {
  color: #6B21A8 !important;
}
.border-purple-subtle {
  border-color: #D8B4FE !important;
}

.bg-indigo {
  background-color: #4F46E5 !important;
  color: #FFFFFF !important;
}
.bg-indigo-subtle {
  background-color: #EEF2FF !important;
}
.text-indigo {
  color: #3730A3 !important;
}
.border-indigo-subtle {
  border-color: #C7D2FE !important;
}

/* Fix Bootstrap's pale text in subtle badges */
.badge.text-warning,
.badge.text-warning-emphasis,
.text-warning-emphasis {
  color: #92400E !important;
}
.badge.bg-warning-subtle,
.bg-warning-subtle {
  background-color: #FEF3C7 !important;
}
.badge.border-warning-subtle,
.border-warning-subtle {
  border-color: #FDE68A !important;
}

.badge.text-info,
.badge.text-info-emphasis,
.text-info-emphasis {
  color: #0369A1 !important;
}
.badge.bg-info-subtle,
.bg-info-subtle {
  background-color: #E0F2FE !important;
}
.badge.border-info-subtle,
.border-info-subtle {
  border-color: #BAE6FD !important;
}

.badge.text-success,
.text-success {
  color: #15803D !important;
}
.badge.bg-success-subtle,
.bg-success-subtle {
  background-color: #DCFCE7 !important;
}
.badge.border-success-subtle,
.border-success-subtle {
  border-color: #BBF7D0 !important;
}

.badge.text-primary,
.text-primary {
  color: #1D4ED8 !important;
}
.badge.bg-primary-subtle,
.bg-primary-subtle {
  background-color: #DBEAFE !important;
}
.badge.border-primary-subtle,
.border-primary-subtle {
  border-color: #BFDBFE !important;
}

.badge.text-danger,
.text-danger {
  color: #B91C1C !important;
}
.badge.bg-danger-subtle,
.bg-danger-subtle {
  background-color: #FEE2E2 !important;
}
.badge.border-danger-subtle,
.border-danger-subtle {
  border-color: #FECACA !important;
}

.badge.rounded-pill {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Homepage Enhanced Features & Showcase Styles
   ========================================================================== */

/* 1. Live Stats Bar */
.stats-counter-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
@media (max-width: 575.98px) {
  .serif-title.display-6,
  h2.serif-title {
    font-size: clamp(1.05rem, 4.3vw, 1.4rem) !important;
    white-space: nowrap;
  }
  .btn-haven,
  .btn-haven-secondary,
  .btn-outline-light {
    white-space: nowrap;
    font-size: clamp(11px, 3vw, 13px) !important;
    padding: 8px 14px !important;
  }
  a.text-danger.fw-bold,
  a.text-decoration-none.fw-bold {
    white-space: nowrap;
    font-size: 0.8rem;
  }
}
  .stats-counter-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.75rem;
    gap: 0.6rem;
    justify-content: center;
  }
  .stats-counter-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .stats-counter-value {
    font-size: 1.25rem;
  }
}
.stats-counter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stats-counter-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stats-counter-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stats-counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* 2. Flash Deals Live Countdown */
.flash-deal-section {
  background: linear-gradient(180deg, #FFF5F5 0%, #FAF9F6 100%);
  border-top: 1px solid #FFE4E6;
  border-bottom: 1px solid #FFE4E6;
  position: relative;
  overflow: hidden;
}
.countdown-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18191B;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.countdown-digit {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  min-width: 28px;
  text-align: center;
  color: #FFDE59;
}

/* 3. Combo Meal Feature Cards */
.combo-meal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.combo-meal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.35);
}
.combo-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-muted);
}
.combo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.combo-meal-card:hover .combo-img {
  transform: scale(1.05);
}
.combo-savings-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.combo-servings-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(24, 25, 27, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.combo-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.combo-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.75rem 0 1rem;
}
.combo-item-pill {
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.725rem;
  color: #495057;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.combo-body .btn-haven {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 4. Menu Explorer Nav Tabs */
.explorer-nav-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.explorer-nav-container::-webkit-scrollbar {
  display: none;
}
.explorer-tab-btn {
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.explorer-tab-btn:hover {
  background: #F8F9FA;
  border-color: var(--text-muted);
}
.explorer-tab-btn.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(24, 25, 27, 0.15);
}

/* 5. 3-Step Journey Cards */
.journey-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.journey-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.journey-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

/* 6. VIP Reservation Luxury Banner */
.vip-reservation-card {
  background: linear-gradient(135deg, #111827 0%, #1E293B 50%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.vip-card-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

/* ==========================================================================
   Premium Pagination Component
   ========================================================================== */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.pagination .page-item {
  margin: 0;
}
.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #18191B);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color, #EAE6DF);
  border-radius: 10px !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.pagination .page-item .page-link:hover {
  color: var(--primary, #E63946);
  background-color: var(--primary-soft, rgba(230, 57, 70, 0.08));
  border-color: var(--primary-border, rgba(230, 57, 70, 0.2));
  transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
  color: #FFFFFF !important;
  background: var(--primary, #E63946) !important;
  border-color: var(--primary, #E63946) !important;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}
.pagination .page-item.disabled .page-link {
  color: #94A3B8 !important;
  background-color: #F8FAFC !important;
  border-color: var(--border-color, #EAE6DF) !important;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.65;
}


