/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* KDR Brand Colors - Red & Yellow/Gold */
  --bg-primary: #fff8f0;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-olive: #8b0000;
  --color-green: #dc143c; /* KDR Red */
  --color-moss: #b01030; /* Darker Red */
  --color-accent: #ffd700; /* KDR Gold/Yellow */
  --border-light: #ffe4e4;
  --shadow-sm: 0 1px 3px rgba(220, 20, 60, 0.08);
  --shadow-md: 0 4px 12px rgba(220, 20, 60, 0.1);
  --shadow-3d: 0 10px 40px rgba(220, 20, 60, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========================================
   VIRTUAL WAITRESS CHARACTER
   ======================================== */
.virtual-waitress {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.waitress-container {
  position: relative;
  animation: floatWaitress 3s ease-in-out infinite;
}

@keyframes floatWaitress {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Lottie Player Styling */
.waitress-container lottie-player {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  cursor: pointer;
  transition: transform 0.3s ease;
}

.waitress-container lottie-player:hover {
  transform: scale(1.05);
}

.speech-bubble {
  position: absolute;
  bottom: 170px;
  right: 0;
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.speech-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.speech-bubble p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Hide on very small screens */
@media (max-width: 480px) {
  .speech-bubble {
    display: none;
  }
}

/* Resize on tablets */
@media (max-width: 768px) {
  .virtual-waitress {
    bottom: 10px;
    right: 10px;
  }

  .waitress-container lottie-player {
    width: 130px !important;
    height: 130px !important;
  }

  .speech-bubble {
    bottom: 120px;
    max-width: 150px;
    padding: 8px 12px;
  }

  .speech-bubble p {
    font-size: 0.75rem;
  }
}

/* ========================================
   3D HERO SECTION
   ======================================== */
/* ========================================
   SIMPLE WARM BANNER (replaces 3D hero)
   ======================================== */
.hero-banner {
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-moss) 100%
  );
  background-image:
    linear-gradient(
      135deg,
      rgba(220, 20, 60, 0.95) 0%,
      rgba(184, 17, 47, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1600&h=400&fit=crop");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 20, 60, 0.9) 0%,
    rgba(184, 17, 47, 0.85) 100%
  );
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-tagline {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.banner-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-info .info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 2rem;
  }

  .banner-tagline {
    font-size: 1rem;
  }

  .hero-banner {
    padding: 2rem 0 1.5rem;
  }
}

/* ========================================
   COMPACT HEADER (STICKY)
   ======================================== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-compact {
  padding: 1rem 0;
  text-align: center;
}

.header-name {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========================================
   FILTER BAR (Category Dropdown + Search)
   ======================================== */
.filter-bar {
  position: sticky;
  top: 60px;
  background-color: var(--bg-card);
  z-index: 90;
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.search-group {
  position: relative;
  flex: 2;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  background: white;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.category-select:hover {
  border-color: var(--color-accent);
}

.category-select:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.search-input:hover {
  border-color: var(--color-accent);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.search-icon {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 1.125rem;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .filter-controls {
    flex-direction: column;
  }

  .filter-group,
  .search-group {
    flex: 1;
    width: 100%;
  }
}

/* ========================================
   CATEGORY TABS (Legacy - Hidden)
   ======================================== */
.category-tabs-wrapper {
  display: none;
}

.category-tabs {
  display: none;
}

.category-tab {
  display: none;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  padding: 1.5rem 0 3rem;
}

.item-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ========================================
   COMPACT MENU LIST (NEW DESIGN)
   ======================================== */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Category Section */
.category-section {
  margin-bottom: 2rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-moss) 100%
  );
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.category-icon {
  font-size: 1.5rem;
}

.category-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  flex: 1;
}

.category-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* Compact Menu Item Row */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 70px;
}

.menu-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.menu-item.sold-out {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Item Thumbnail */
.item-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

/* Item Details */
.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-family: "Playfair Display", serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Action Buttons */
.item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-quick-add,
.btn-view-details {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.btn-quick-add {
  background: var(--color-green);
  color: white;
}

.btn-quick-add:hover {
  background: var(--color-moss);
  transform: scale(1.1);
}

.btn-view-details {
  background: var(--color-accent);
  color: var(--text-primary);
}

.btn-view-details:hover {
  background: #ffed4e;
  transform: scale(1.1);
}

/* Legacy card classes - keeping for backwards compatibility */
.card-image-wrapper {
  display: none;
}

.card-image {
  display: none;
}

.card-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.badge-special {
  background-color: var(--color-accent);
  color: white;
}

.badge-popular {
  background-color: var(--color-moss);
  color: white;
}

.badge-new {
  background-color: var(--text-primary);
  color: white;
}

.badge-local {
  background-color: #b8860b;
  color: white;
}

.availability-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.625rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge-available {
  background-color: var(--color-moss);
  color: white;
}

.badge-sold-out {
  background-color: #dc2626;
  color: white;
}

.card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card-name {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-description {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.card-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.add-to-cart-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  background: #e55a28;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn svg {
  flex-shrink: 0;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.empty-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.footer-divider {
  width: 2rem;
  height: 1px;
  background-color: #d1d5db;
  margin: 0 auto 1rem;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.footer-text .brand {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-subtext {
  font-size: 0.75rem;
  color: rgba(107, 107, 107, 0.6);
  margin-bottom: 0.5rem;
}

.footer-subtext span {
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-disclaimer {
  font-size: 0.625rem;
  color: rgba(107, 107, 107, 0.4);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card {
  animation: fadeIn 0.4s ease forwards;
}

.menu-card:nth-child(1) {
  animation-delay: 0.05s;
}
.menu-card:nth-child(2) {
  animation-delay: 0.1s;
}
.menu-card:nth-child(3) {
  animation-delay: 0.15s;
}
.menu-card:nth-child(4) {
  animation-delay: 0.2s;
}
.menu-card:nth-child(5) {
  animation-delay: 0.25s;
}
.menu-card:nth-child(6) {
  animation-delay: 0.3s;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .food-item {
    font-size: 2.5rem;
  }

  .floating-food {
    opacity: 0.5;
  }

  .menu-card:hover {
    transform: translateY(-4px);
  }

  .category-tab {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
}
.menu-card:nth-child(6) {
  animation-delay: 0.3s;
}

/* ========================================
   FLOATING CART BUTTON
   ======================================== */
.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  font-weight: 600;
  font-size: 0.875rem;
}

.floating-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
}

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

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.cart-total {
  font-size: 0.875rem;
  font-weight: 700;
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-primary);
}

.close-cart {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-radius: 50%;
}

.close-cart:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-cart p {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-cart small {
  font-size: 0.875rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

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

.cart-item-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.cart-item-price {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  color: var(--text-primary);
}

.quantity-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}

.remove-item {
  margin-left: auto;
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.remove-item:hover {
  opacity: 0.7;
}

.cart-footer {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.cart-summary-total {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.checkout-btn:hover {
  background: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

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

.checkout-btn:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .cart-sidebar {
    max-width: 100%;
  }

  .floating-cart-btn {
    bottom: 140px;
    padding: 12px 16px;
  }
}

/* ========================================
   ITEM DETAILS MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.item-modal {
  background: white;
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: white;
  transform: rotate(90deg);
}

.modal-close svg {
  color: var(--text-primary);
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-moss) 100%
  );
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--color-accent);
  color: white;
}

.modal-details {
  padding: 2rem;
}

.modal-name {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.modal-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.modal-price-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-price-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.modal-quantity {
  margin-bottom: 1.5rem;
}

.modal-quantity label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

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

.qty-btn:active {
  transform: scale(0.95);
}

#modalQty {
  width: 80px;
  height: 48px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-primary);
}

#modalQty:focus {
  outline: none;
  border-color: var(--color-green);
}

.modal-add-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 1.125rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.modal-add-btn:hover {
  background: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-image-wrapper {
    height: 250px;
  }

  .modal-details {
    padding: 1.5rem;
  }

  .modal-name {
    font-size: 1.5rem;
  }

  .modal-description {
    font-size: 0.9375rem;
  }

  .modal-price {
    font-size: 1.5rem;
  }
}

/* ========================================
   ACTIVE ORDER TRACKER
   ======================================== */
.active-order-tracker {
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-moss) 100%
  );
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.order-tracker-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tracker-icon {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.tracker-content {
  flex: 1;
}

.tracker-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.tracker-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.tracker-status span {
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-preparing {
  background: #dbeafe;
  color: #1e40af;
}

.status-ready {
  background: #d1fae5;
  color: #065f46;
}

.btn-track-order {
  padding: 0.625rem 1.25rem;
  background: var(--color-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-track-order:hover {
  background: var(--color-moss);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

@media (max-width: 768px) {
  .order-tracker-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }

  .tracker-content h3 {
    font-size: 0.875rem;
  }

  .btn-track-order {
    width: 100%;
  }
}
