/* ========================================================================== 
   MASALA MECHANICS - RESTAURANT
   Primary CSS Stylesheet & Modern Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #101010;
  --bg-card: #151515;
  --bg-light: #F7F7F7;
  --bg-white: #FFFFFF;
  
  --gold-primary: #F9BC32;
  --gold-light: #FFD66B;
  --gold-dark: #D49B1F;
  --gold-glow: rgba(249, 188, 50, 0.25);
  
  --text-white: #FFFFFF;
  --text-muted: #A0A0A0;
  --text-gray: #777777;
  --text-dark: #191919;
  --text-dark-secondary: #444444;

  --border-dark: #222222;
  --border-light: #E8E8E8;
  
  --error-red: #D93025;
  --success-green: #2E9D57;

  /* Typography */
  --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --header-height: 80px;
  --container-max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 6px 20px rgba(249, 188, 50, 0.35);
}

/* --------------------------------------------------------------------------
   2. BASE RESET & ACCESSIBILITY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-heading.dark {
  color: var(--text-dark);
}

.section-heading.light {
  color: var(--text-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 188, 50, 0.5);
}

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

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
}

.btn-dark:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   3. INITIAL DELIVERY AREA SELECTION MODAL
   -------------------------------------------------------------------------- */
.delivery-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: var(--transition-normal);
}

.delivery-modal-overlay[hidden] {
  display: none;
}

.delivery-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.delivery-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(1);
  transition: var(--transition-normal);
  position: relative;
}

.delivery-modal-overlay.hidden .delivery-modal-card {
  transform: scale(0.92);
}

.delivery-modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(249, 188, 50, 0.1);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold-primary);
  font-size: 1.75rem;
}

.delivery-modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.delivery-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.delivery-select-wrapper {
  position: relative;
  margin-bottom: 1.75rem;
  text-align: left;
}

.delivery-select {
  width: 100%;
  background: #181818;
  color: var(--text-white);
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: var(--transition-fast);
}

.delivery-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.select-arrow {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  pointer-events: none;
}

.delivery-modal-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   4. HEADER & HERO SECTION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(5, 5, 5, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(5, 5, 5, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.header-phone-btn i {
  color: var(--gold-primary);
}

.header-phone-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(249, 188, 50, 0.08);
}

.header-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(249, 188, 50, 0.12);
  border: 1px solid var(--gold-primary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.header-cart-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.header-cart-btn:hover .cart-badge {
  background: var(--bg-primary);
  color: var(--gold-primary);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../assets/images/hero_bg.webp?v=20260804-3") center / cover no-repeat;
  filter: blur(20px) brightness(0.55);
  transform: scale(1.06);
  opacity: 0.9;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.62;
  filter: brightness(0.9);
  transform: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.75) 0%,
    rgba(5, 5, 5, 0.6) 50%,
    rgba(5, 5, 5, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 3rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 188, 50, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  color: var(--gold-primary);
  display: block;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #DDD;
  margin: 0 auto 2.5rem;
  max-width: 680px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

/* Floating Cart Shortcut & WhatsApp */
.floating-cart-shortcut {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 990;
  width: 56px;
  height: 56px;
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-normal);
}

.floating-cart-shortcut:hover {
  transform: scale(1.1);
  background: var(--gold-light);
}

.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #000;
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-primary);
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --------------------------------------------------------------------------
   5. OUR RECOMMENDATIONS SECTION
   -------------------------------------------------------------------------- */
.recommendations-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 6rem 0;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.food-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.food-card-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  overflow: hidden;
  background: #EAEAEA;
}

.food-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s ease;
}

.food-card:hover .food-card-image {
  opacity: 0.94;
}

.food-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.food-card-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

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

.food-card-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Pagination Dots for Mobile Slider */
.dots-pagination {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DDD;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--gold-primary);
  width: 24px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   6. OUR BEST DEALS SECTION
   -------------------------------------------------------------------------- */
.best-deals-section {
  background-color: var(--bg-secondary);
  padding: 6rem 0;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.deal-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.deal-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: var(--error-red);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.deal-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  overflow: hidden;
  background: var(--bg-primary);
}

.deal-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}

.deal-card:hover .deal-image {
  opacity: 0.94;
}

.deal-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.deal-savings {
  margin: -0.5rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.deal-savings span {
  margin-right: 0.35rem;
  color: #8f8f8f;
  text-decoration: line-through;
}

.deal-items-list {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.deal-items-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.deal-items-list li i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
}

.deal-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   7. FOOD MENU SECTION (LIGHT GRAY BACKGROUND MATCHING RECOMMENDATIONS)
   -------------------------------------------------------------------------- */
.food-menu-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 6rem 0;
}

.menu-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.menu-tab-btn {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid #E2E2E2;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-tab-btn span.count {
  font-size: 0.85rem;
  opacity: 0.7;
}

.menu-tab-btn:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.menu-tab-btn.active {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.menu-tab-btn.active span.count {
  opacity: 1;
  font-weight: 800;
}

/* Menu Items Grid Layout (Matching Recommendations) */
.menu-list-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.menu-item-row {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.menu-item-row:hover {
  border-color: var(--gold-primary);
  background: #FAFAFA;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.menu-item-thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  object-position: center;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  background: #F0F0F0;
}

.menu-item-info {
  flex-grow: 1;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.menu-item-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.menu-item-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.menu-item-add-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249, 188, 50, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  transition: var(--transition-fast);
}

.menu-item-row:hover .menu-item-add-icon {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   8. PRODUCT DETAIL MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: var(--transition-normal);
}

.modal-overlay.active .product-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

.product-modal-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #EAEAEA;
  transition: opacity 0.15s ease;
}

.product-modal-hero-img.is-loading {
  opacity: 0;
}

.product-modal-content {
  padding: 2rem;
}

.product-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--text-white);
}

.product-modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-primary);
  white-space: nowrap;
}

.product-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.options-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.options-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.option-chip {
  background: #181818;
  border: 1px solid #333;
  color: var(--text-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.option-chip:hover {
  border-color: var(--gold-primary);
}

.option-chip.selected {
  background: rgba(249, 188, 50, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.quantity-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  background: #181818;
  border: 1px solid #333;
  border-radius: var(--radius-full);
  padding: 0.25rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

.qty-val {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-add-to-cart-btn {
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   9. SHOPPING CART SIDEBAR / DRAWER
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-dark);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-white);
}

.cart-drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-cart-view {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  margin: auto 0;
}

.empty-cart-icon {
  font-size: 3.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.cart-item-card {
  background: #151515;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.cart-item-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  object-position: center;
  background: #F0F0F0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
}

.cart-item-option {
  font-size: 0.8rem;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-weight: 700;
  color: var(--text-white);
}

.cart-item-remove-btn {
  color: #666;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  padding: 0.2rem;
}

.cart-item-remove-btn:hover {
  color: var(--error-red);
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-dark);
  background: #0B0B0B;
}

.coupon-area {
  margin-bottom: 1.25rem;
}

.coupon-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  background: #181818;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: #FFF;
  font-size: 0.9rem;
  flex-grow: 1;
  text-transform: uppercase;
}

.coupon-input:focus {
  border-color: var(--gold-primary);
}

.coupon-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.total-row.discount-row {
  color: var(--success-green);
}

.total-row.grand-total {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-primary);
  border-top: 1px solid var(--border-dark);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.checkout-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   10. CHECKOUT SECTION OR MODAL
   -------------------------------------------------------------------------- */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  z-index: 3000;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-header-bar {
  background: var(--bg-primary);
  color: var(--text-white);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.back-to-cart-btn {
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-container {
  padding: 3rem 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}

.checkout-grid > *,
.form-grid > * {
  min-width: 0;
}

.checkout-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.checkout-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark-secondary);
}

.form-control {
  width: 100%;
  background: #FAFAFA;
  border: 1px solid #DDD;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: #FFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control.error {
  border-color: var(--error-red);
  background: #FFF5F5;
}

.error-text {
  font-size: 0.8rem;
  color: var(--error-red);
  display: none;
}

.error-text.active {
  display: block;
}

/* Order Summary Box */
.order-summary-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.summary-item-row span {
  min-width: 0;
  overflow-wrap: break-word;
}

.payment-methods-wrap {
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.payment-option.selected {
  border-color: var(--gold-primary);
  background: rgba(249, 188, 50, 0.06);
}

.payment-info-box {
  background: #FFF9E6;
  border: 1px solid #FFE599;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
  color: #7A5200;
  margin-bottom: 1rem;
  display: none;
}

.payment-info-box.active {
  display: block;
}

/* --------------------------------------------------------------------------
   11. ORDER CONFIRMATION MODAL
   -------------------------------------------------------------------------- */
.confirmation-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 2.5rem;
  text-align: center;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  background: rgba(46, 157, 87, 0.15);
  border: 2px solid var(--success-green);
  border-radius: 50%;
  color: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.order-id-badge {
  display: inline-block;
  background: rgba(249, 188, 50, 0.15);
  color: var(--gold-primary);
  font-weight: 800;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-dark);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-contact-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-list i {
  color: var(--gold-primary);
}

.footer-contact-list a {
  color: inherit;
  transition: var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--gold-primary);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .recommendations-grid,
  .menu-list-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 0 0.5rem;
  }

  .header-phone-btn {
    display: none;
  }

  .header-logo img {
    height: 42px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .recommendations-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .recommendations-grid::-webkit-scrollbar {
    display: none;
  }

  .recommendations-grid .food-card {
    flex: 0 0 clamp(280px, 76vw, 340px);
    min-width: 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .dots-pagination {
    display: flex;
  }

  .menu-list-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .floating-cart-shortcut {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .floating-whatsapp-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .header-logo {
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    justify-self: start;
  }

  .header-logo img {
    width: min(125px, 100%);
    height: auto;
    max-height: 40px;
  }

  .header-cart-btn {
    flex: 0 0 auto;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #headerCartTotal {
    white-space: nowrap;
  }

  .cart-icon-wrapper {
    gap: 0.15rem;
  }

  .cart-badge {
    width: 18px;
    height: 18px;
    margin-left: 0;
    font-size: 0.68rem;
  }

  .recommendations-section {
    padding: 3.5rem 0;
  }

  .recommendations-section .section-title-wrapper {
    margin-bottom: 2rem;
  }

  .recommendations-grid .food-card-body {
    padding: 1.5rem;
  }

  .recommendations-grid .food-card-title {
    font-size: 1.6rem;
  }

  .recommendations-grid .food-card-desc {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
  }

  .recommendations-grid .food-card-footer {
    gap: 0.75rem;
  }

  .recommendations-grid .food-card-price {
    min-width: 0;
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .recommendations-grid .btn-sm {
    flex: 0 0 auto;
    padding: 0.7rem 1.05rem;
    font-size: 0.9rem;
    letter-spacing: 0.75px;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .product-modal-card {
    max-height: 94vh;
    max-height: 94dvh;
  }

  .product-modal-content {
    padding: 1.25rem;
  }

  .quantity-controls-wrap {
    gap: 0.75rem;
  }

  .quantity-selector {
    flex: 0 0 auto;
  }

  .quantity-selector .qty-btn {
    width: 32px;
    height: 32px;
  }

  .quantity-selector .qty-val {
    min-width: 32px;
  }

  .modal-add-to-cart-btn {
    min-width: 0;
    padding: 0.8rem 1rem;
    gap: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .modal-add-to-cart-btn span {
    white-space: nowrap;
  }

  .cart-drawer {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cart-drawer-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
  }

  .cart-drawer-body {
    min-height: 0;
    padding: 1rem;
    overflow: visible;
  }

  .cart-item-card {
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .cart-item-thumb {
    width: 72px;
    height: 56px;
  }

  .cart-drawer-footer {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
