/* ====================================
   CSS VARIABLES
==================================== */
:root {
  --primary-h: 15;
  --primary-s: 80%;
  --primary-l: 40%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-foreground: #faf8f5;
  --accent: hsl(35, 60%, 50%);
  --background: hsl(30, 20%, 97%);
  --foreground: hsl(20, 14%, 10%);
  --muted: hsl(30, 10%, 93%);
  --muted-foreground: hsl(20, 10%, 45%);
  --border: hsl(30, 15%, 88%);
  --card: hsl(30, 20%, 99%);
  --text-amber: #fbbf24;
  --text-orange: #fb923c;
}

/* ====================================
   BASE
==================================== */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ====================================
   TOP ANNOUNCEMENT BAR
==================================== */
.top-announcement {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #e30613;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 15px;
  z-index: 1100;
}
.top-announcement .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ====================================
   TOP HEADER
==================================== */
.top-header {
  position: fixed;
  top: 35px; left: 0;
  width: 100%;
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
  z-index: 1099;
  height: 45px;
}
.top-header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left, .header-right { display: flex; align-items: center; gap: 18px; }
.country-code { font-size: 14px; color: #555; font-weight: 500; }
.language-select { border: none; background: transparent; font-size: 14px; color: #444; cursor: pointer; outline: none; }
.header-right a { color: #222; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 5px; transition: .3s; }
.header-right a:hover { color: var(--primary); }

/* ====================================
   NAVBAR
==================================== */
#mainNav {
  top: 80px !important;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border);
}
#mainNav.scrolled .navbar-brand .fw-bold { color: var(--foreground) !important; }
#mainNav.scrolled .navbar-brand .text-amber { color: var(--primary) !important; }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  font-size: 11px;
  padding: 0.2rem 0.45rem;
}
.bg-accent { background-color: var(--accent) !important; }

/* ====================================
   HERO
==================================== */
.hero-section {
  min-height: 85vh;
  background-image: url('https://images.pexels.com/photos/2291770/pexels-photo-2291770.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--background), transparent);
  z-index: 1;
}
.min-vh-85 { min-height: 85vh; }
.text-gradient {
  background: linear-gradient(to right, var(--text-amber), var(--text-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-amber { color: var(--text-amber); }
.text-orange { color: var(--text-orange); }
.bg-amber-20 { background-color: rgba(251, 191, 36, 0.2) !important; }
.border-amber { border-color: rgba(251, 191, 36, 0.3) !important; }
.bg-white-10 { background-color: rgba(255,255,255,0.1) !important; }
.border-white-20 { border-color: rgba(255,255,255,0.2) !important; }
.shadow-primary { box-shadow: 0 4px 14px rgba(204, 76, 29, 0.25); }

/* ====================================
   CATEGORY NAV
==================================== */
.category-nav {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  top: 146px !important;
  z-index: 900;
}
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--muted);
  color: var(--foreground);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.category-btn:hover { background-color: #e8e5e0; }
.category-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px rgba(204, 76, 29, 0.2);
}

/* ====================================
   MENU
==================================== */
.menu-section { padding-bottom: 6rem; }
.menu-category { margin-bottom: 3rem; scroll-margin-top: 200px; }
.category-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.category-description { color: var(--muted-foreground); font-size: 0.875rem; }
.title-underline { height: 3px; width: 48px; background: var(--primary); border-radius: 2px; margin-top: 0.75rem; }

.menu-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.menu-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: rgba(204, 76, 29, 0.2);
}
.menu-card.unavailable { opacity: 0.6; cursor: default; }
.menu-card-body { padding: 1.25rem; }

.menu-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  display: flex; align-items: center; gap: 0.25rem;
}
.menu-badge.popular { background: #f59e0b; color: white; }
.menu-badge.veg { right: 0.75rem; left: auto; background: #10b981; color: white; }

.menu-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; line-height: 1.3; }
.menu-description {
  color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.menu-price { font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.spice-indicator { display: flex; gap: 0.125rem; margin-top: 0.5rem; }
.spice-indicator i { color: #ef4444; font-size: 0.75rem; }

.quantity-control {
  display: flex; align-items: center;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 50px; overflow: hidden;
}
.quantity-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: inherit;
  cursor: pointer; transition: background 0.2s;
}
.quantity-btn:hover { background: rgba(255,255,255,0.1); }
.quantity-display { width: 24px; text-align: center; font-size: 0.875rem; font-weight: 600; }

/* ====================================
   RESTAURANT INFO
==================================== */
.info-card { transition: transform 0.2s, box-shadow 0.2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.icon-box { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.icon-box-lg { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.bg-primary-10 { background-color: rgba(204, 76, 29, 0.1); }

/* ====================================
   FOOTER
==================================== */
.footer-section { background: var(--foreground); }
.text-white-25 { color: rgba(255,255,255,0.35); }
.border-white-10 { border-color: rgba(255,255,255,0.1) !important; }

/* ====================================
   CART DRAWER
==================================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 1040; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: var(--background); z-index: 1050;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s ease;
}
.cart-drawer.active { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; border-bottom: 1px solid var(--border);
}
.btn-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%;
  cursor: pointer; transition: background 0.2s;
}
.btn-close-btn:hover { background: var(--muted); }

.cart-order-type .btn-check:checked + label {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: var(--primary) !important;
}
.cart-order-type .btn-outline-secondary { border-color: var(--border); color: var(--muted-foreground); }
.cart-order-type .btn-outline-secondary:hover { background: var(--muted); border-color: var(--border); color: var(--foreground); }

.cart-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 0.75rem;
}
.cart-item-name { font-weight: 500; font-size: 0.875rem; line-height: 1.3; }
.cart-item-price { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: 0.25rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.375rem; }
.cart-item-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; cursor: pointer; transition: all 0.2s; font-size: 0.75rem;
}
.cart-item-btn:hover { background: var(--muted); }
.cart-item-btn.delete-btn:hover { border-color: #ef4444; color: #ef4444; }
.cart-item-qty { width: 24px; text-align: center; font-size: 0.875rem; font-weight: 600; }

/* ====================================
   MOBILE CART BAR
==================================== */
.mobile-cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 1rem; z-index: 950;
}
@media (min-width: 576px) { .mobile-cart-bar { display: none !important; } }

/* ====================================
   SERVICE MODAL
==================================== */
.service-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.service-modal-overlay.active { display: flex; }

.service-modal {
  background: #fff;
  width: 90%;
  max-width: 700px;
  position: relative;
  border-radius: 12px;
  text-align: center;
  padding: 50px 60px 40px;
  max-height: 90vh;
  overflow-y: auto;
}

.service-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.service-options {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
}

.service-item {
  cursor: pointer;
  padding: 16px 24px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
}
.service-item:hover { background: #f5f5f5; transform: translateY(-2px); }
.service-item.active { background: #f1f1f1; }
.service-item i { font-size: 40px; display: block; margin-bottom: 8px; color: var(--primary); }
.service-item span { font-weight: 600; font-size: 1rem; }

.service-close {
  position: absolute;
  right: -12px; top: -12px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: #333; color: #fff;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.service-close:hover { background: #555; }

#scheduleArea { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
#scheduleArea h3 { font-size: 1.1rem; font-weight: 600; text-align: center; margin-bottom: 0; }
#dateArea { max-width: 340px; margin: 24px auto 0; text-align: left; }

/* ====================================
   DUMMY MAP
==================================== */
.dummy-map {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  margin-top: 16px;
  background: linear-gradient(135deg, #dff0f7 0%, #c8e6f0 50%, #b5dcea 100%);
  border: 1px solid #a8d4e0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dummy-map-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(150,200,215,0.35) 39px, rgba(150,200,215,0.35) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(150,200,215,0.35) 39px, rgba(150,200,215,0.35) 40px);
}
.dummy-map-pin {
  position: relative; z-index: 1;
  font-size: 2.5rem;
  color: #e30613;
  text-shadow: 0 4px 12px rgba(227,6,19,0.3);
  animation: bounce 1.5s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.dummy-map-label {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
}

/* ====================================
   ANIMATIONS
==================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cart-item { animation: slideUp 0.25s ease; }

/* ====================================
   RESPONSIVE
==================================== */
@media (max-width: 991px) {
  #mainNav { top: 80px !important; }
  .category-nav { top: 146px !important; }
}

@media (max-width: 768px) {
  .top-announcement { font-size: 12px; padding: 6px 10px; }
  .top-header { height: auto; padding: 8px 0; }
  .top-header .container { flex-direction: column; gap: 8px; padding: 5px 15px; }
  .header-left, .header-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px; }
  #mainNav { top: 105px !important; }
  .category-nav { top: 170px !important; }
  .hero-section { padding-top: 150px; }
  .service-modal { padding: 40px 20px 30px; }
  .service-options { gap: 30px; }
}

@media (max-width: 575.98px) {
  .display-3 { font-size: 2.5rem; }
  .menu-category { scroll-margin-top: 200px; }
}

@media (max-width: 480px) {
  .top-announcement { font-size: 11px; }
  .header-right a, .language-select, .country-code { font-size: 12px; }
  #mainNav { top: 110px !important; }
  .category-nav { top: 175px !important; }
}
