﻿/**
 * SKAWIJA Modern Customer UI Stylesheet
 * Mobile-first responsive design for food ordering app
 * Inspired by modern coffee shop app aesthetics
 */

/* ========================================
   CSS VARIABLES - THEME (SKAWIJA BRAND)
   ======================================== */
:root {
  /* Primary Brand Colors */
  --primary: #E30613;
  --primary-dark: #C8000E;
  --primary-light: #FEE2E2;

  /* Brand Colors */
  --black: #0B0B0B;
  --white: #FFFFFF;

  /* Background Colors */
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --card-bg: #FFFFFF;

  /* Text Colors */
  --text-dark: #111111;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Border & Dividers */
  --border: #E6E6E6;
  --border-light: #F5F5F5;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #E30613;
  --info: #3B82F6;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
body.home-page {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding-top: 0px;
  /* Increased to account for 80px header */
  padding-bottom: 80px;
  /* Space for floating cart bar on mobile */
}

/* ========================================
   STICKY APP HEADER
   ======================================== */
/* ========================================
   STICKY APP HEADER
   ======================================== */
.app-header {
  position: sticky;
  /* Sticky as requested */
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  z-index: 9999;
  /* Forced high z-index */
  display: grid !important;
  /* Forced Grid Layout */
  grid-template-columns: 64px 1fr 64px;
  /* Fixed side slots, flexible center */
  align-items: center;
  padding: 0 var(--spacing-lg);
  width: 100%;
  overflow: visible !important;
  /* Prevent clipping */
}

/* 3-Column Layout Slots */
.header-slot {
  display: flex !important;
  align-items: center;
  height: 100%;
}

.header-left {
  justify-content: flex-start;
  grid-column: 1;
}

.header-center {
  justify-content: center;
  grid-column: 2;
}

.header-right {
  justify-content: flex-end;
  grid-column: 3;
}

.brand-logo {
  height: 48px !important;
  /* Enforce height */
  width: auto !important;
  object-fit: contain;
  filter: none;
  transition: var(--transition);
  display: block;
  /* Ensure it's not hidden */
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.cart-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #F5F5F5;
  border: none;
  display: flex !important;
  /* Force flex */
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10000;
  /* Ensure button itself is clickable/visible */
}

.cart-btn:hover {
  background: #FFEBEE;
  /* Light red hover */
  transform: scale(1.05);
  color: var(--primary-dark);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero-banner {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(227, 6, 19, 0.3);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-section {
  margin: var(--spacing-lg) 0;
  position: sticky;
  top: 70px;
  z-index: 999;
  background: var(--bg-light);
  padding: var(--spacing-md) 0;
}

.search-container {
  position: relative;
  max-width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  gap: var(--spacing-sm);
}

.search-input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 var(--spacing-md) 0 48px;
  font-size: 0.95rem;
  background: white;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.search-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-button {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--black);
  border: none;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.filter-button:hover {
  background: var(--primary);
  transform: scale(1.05);
}

/* ========================================
   CATEGORY TABS (Horizontal Scroll)
   ======================================== */
.category-section {
  margin: var(--spacing-lg) 0;
}

.category-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-xs) 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.category-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.category-chip {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(227, 6, 19, 0.05);
}

.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.25);
}

.menu-title-wrap {
  text-align: center;
  margin: 18px 0 12px;
}

.menu-title {
  font-weight: 800;
  font-size: 30px;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.menu-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  /* short line */
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  /* follows theme */
  opacity: 0.95;
}

/* ========================================
   MENU GRID (Responsive 2/3/4 Columns) - FIXED
   ======================================== */
.menu-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin: var(--spacing-lg) 0;
  width: 100% !important;
  box-sizing: border-box;
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--spacing-lg) !important;
  }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ========================================
   MENU CARD
   ======================================== */
.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-light);
}

.menu-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-image {
  transform: scale(1.08);
}

.menu-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.menu-badge.food {
  background: rgba(76, 175, 80, 0.9);
}

.menu-badge.drink {
  background: rgba(33, 150, 243, 0.9);
}

.menu-badge.dessert {
  background: rgba(255, 152, 0, 0.9);
}

.menu-info {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.menu-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stock-badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-badge.available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.stock-badge.out {
  background: rgba(227, 6, 19, 0.1);
  color: var(--primary);
}

.add-to-cart-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.add-to-cart-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ========================================
   FLOATING CART BAR (Modern & Responsive)
   ======================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-items-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.cart-total-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.checkout-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0 32px;
  height: 56px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.4);
  filter: brightness(1.1);
}

.checkout-btn:active {
  transform: translateY(0);
}

/* Tablet & Desktop: Floating Capsule Style */
@media (min-width: 768px) {
  .floating-cart-bar {
    display: flex;
    /* Force visible */
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 32px;
  }

  body.home-page {
    padding-bottom: 120px;
    /* Space for the floating bar */
  }
}

/* Animation for appearance */
.floating-cart-bar {
  animation: slideUpFade 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes slideUpFade {
  from {
    transform: translate(-50%, 100%);
    /* For desktop/center alignment assumption */
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Fix animation for mobile (reset transform) */
@media (max-width: 767px) {
  @keyframes slideUpFadeMobile {
    from {
      transform: translateY(100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .floating-cart-bar {
    transform: none;
    animation-name: slideUpFadeMobile;
  }
}

/* ========================================
   CART MODAL/PANEL STYLES
   ======================================== */
.cart-panel {
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 90vh;
  overflow-y: auto;
}

.cart-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.close-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.close-cart-btn:hover {
  background: var(--border);
}

.cart-items {
  padding: var(--spacing-md);
}

.cart-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.cart-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

/* ========================================
   VOUCHER CARD ENHANCEMENTS (New)
   ======================================== */
.voucher-card {
  border: 2px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
  transition: all .18s ease;
  width: 100%;
  box-sizing: border-box;
}

.voucher-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.voucher-card-header i {
  font-size: 18px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  padding: 10px;
  border-radius: 12px;
  min-width: 40px; /* Ensure circular shape consistency */
  text-align: center;
}

.voucher-title {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.voucher-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Active State (Focus) */
.voucher-card.is-active {
  border-color: rgba(34, 197, 94, 0.75);
  background: rgba(34, 197, 94, 0.09);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

/* Error State */
.voucher-card.is-error {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.06);
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.voucher-message {
  margin-top: 8px;
  font-size: 12px;
  min-height: 18px;
}

.voucher-message.success {
  color: #16a34a;
  font-weight: 600;
}

.voucher-message.error {
  color: #ef4444;
  font-weight: 600;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .voucher-card {
    padding: 12px;
  }
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
}

.quantity-stepper {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border: none;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-display {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.remove-item-btn {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.remove-item-btn:hover {
  transform: scale(1.2);
}

.cart-item-subtotal {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-cart {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.empty-cart-icon {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.empty-cart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.empty-cart-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container-modern {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Mobile Small (< 375px) */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .menu-grid {
    gap: var(--spacing-sm);
  }

  .menu-name {
    font-size: 0.9rem;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .app-header {
    padding: 0 var(--spacing-lg);
  }

  .hero-banner {
    padding: var(--spacing-xl) var(--spacing-xl);
  }

  .search-section {
    position: relative;
    top: 0;
  }
}

/* Desktop (> 1025px) */
@media (min-width: 1025px) {
  body.home-page {
    padding-top: 0px;
  }

  .app-header {
    height: 80px;
    padding: 0 var(--spacing-xl);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .menu-card {
    transition: all 0.3s ease;
  }

  .menu-card:hover {
    transform: translateY(-8px);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

  .app-header,
  .floating-cart-bar,
  .search-section,
  .category-section,
  .add-to-cart-btn {
    display: none !important;
  }
}

/* ========================================
   CHECKOUT FORM BUTTONS & INPUTS
   ======================================== */

/* Get Location Button */
#get-location,
.btn-get-location {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

#get-location:hover,
.btn-get-location:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.2);
}

/* Exact Amount Button (Uang Pas) */
#exact-amount-btn,
.btn-uangpas,
#uangpas {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  transition: var(--transition) !important;
}

#exact-amount-btn:hover,
.btn-uangpas:hover,
#uangpas:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.2);
}

/* Input Group Prefix (Rp) */
.input-group-text,
.prefix-rp,
.input-group-prepend .input-group-text {
  background: var(--black) !important;
  color: white !important;
  border: 1px solid var(--border) !important;
  border-right: none !important;
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
}

/* Input Group Form Control */
.input-group .form-control,
.input-group input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  border-left: none !important;
}

/* Global Form Focus States - Red Theme */
.form-control:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15) !important;
  outline: none !important;
}

/* Override Bootstrap Default Blue Focus */
.btn:focus,
.btn-outline-success:focus,
.btn-outline-warning:focus,
button:focus {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15) !important;
  outline: none !important;
}

/* Ensure Delivery Form Buttons Match Theme */
.delivery-form .btn,
#delivery-fields .btn {
  transition: var(--transition);
}

.delivery-form .btn-outline-success,
#delivery-fields .btn-outline-success {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
}

.delivery-form .btn-outline-success:hover,
#delivery-fields .btn-outline-success:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* ========================================
   HEADER - SYMMETRICAL GRID LAYOUT
   ======================================== */

/* Header Container - 3-Column Grid for Perfect Symmetry */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;

  /* Grid layout for symmetry */
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;

  /* Safe area support for iPhone notch */
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top, 0);
}

/* Header Slots */
.header-slot {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-left {
  justify-content: flex-start;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
}

/* Brand Logo - Fixed Size */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
  display: block;
  flex-shrink: 0;
}

/* Brand Title - Center Slot */
.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

/* Cart Button - Fixed Size */
.cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.cart-btn i {
  font-size: 18px;
  color: var(--black);
  transition: var(--transition);
}

.cart-btn:hover i {
  color: white;
}

/* Cart Badge - Positioned on Button */
.cart-btn .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive - Tablet & Desktop */
@media (min-width: 768px) {
  .app-header {
    height: 70px;
    grid-template-columns: 72px 1fr 72px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 18px;
  }

  .cart-btn {
    width: 48px;
    height: 48px;
  }

  .cart-btn i {
    font-size: 20px;
  }
}

/* Override old header styles */
.app-header-content,
.app-logo,
.cart-button,
.header-left.old-style {
  display: none !important;
}

/* Hide new app-header - use original navbar instead */
.app-header {
  display: none !important;
}

.header-slot,
.header-left,
.header-center,
.header-right,
.brand-logo,
.brand-title,
.cart-btn {
  display: none !important;
}

/* ========================================
   CHECKOUT FORM BUTTONS & INPUTS
   ======================================== */

/* Get Location Button */
#get-location,
.btn-get-location {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

#get-location:hover,
.btn-get-location:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.2);
}

/* Exact Amount Button (Uang Pas) */
#exact-amount-btn,
.btn-uangpas,
#uangpas {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  transition: var(--transition) !important;
}

#exact-amount-btn:hover,
.btn-uangpas:hover,
#uangpas:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.2);
}

/* Input Group Prefix (Rp) */
.input-group-text,
.prefix-rp,
.input-group-prepend .input-group-text {
  background: var(--black) !important;
  color: white !important;
  border: 1px solid var(--border) !important;
  border-right: none !important;
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
}

/* Input Group Form Control */
.input-group .form-control,
.input-group input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  border-left: none !important;
}

/* Global Form Focus States - Red Theme */
.form-control:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15) !important;
  outline: none !important;
}

/* Override Bootstrap Default Blue Focus */
.btn:focus,
.btn-outline-success:focus,
.btn-outline-warning:focus,
button:focus {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15) !important;
  outline: none !important;
}

/* Ensure Delivery Form Buttons Match Theme */
.delivery-form .btn,
#delivery-fields .btn {
  transition: var(--transition);
}

.delivery-form .btn-outline-success,
#delivery-fields .btn-outline-success {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: white !important;
}

.delivery-form .btn-outline-success:hover,
#delivery-fields .btn-outline-success:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* ========================================
   HEADER - SYMMETRICAL GRID LAYOUT
   ======================================== */

/* Header Container - 3-Column Grid for Perfect Symmetry */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;

  /* Grid layout for symmetry */
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;

  /* Safe area support for iPhone notch */
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top, 0);
}

/* Header Slots */
.header-slot {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-left {
  justify-content: flex-start;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
}

/* Brand Logo - Fixed Size */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
  display: block;
  flex-shrink: 0;
}

/* Brand Title - Center Slot */
.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

/* Cart Button - Fixed Size */
.cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.cart-btn i {
  font-size: 18px;
  color: var(--black);
  transition: var(--transition);
}

.cart-btn:hover i {
  color: white;
}

/* Cart Badge - Positioned on Button */
.cart-btn .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive - Tablet & Desktop */
@media (min-width: 768px) {
  .app-header {
    height: 70px;
    grid-template-columns: 72px 1fr 72px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 18px;
  }

  .cart-btn {
    width: 48px;
    height: 48px;
  }

  .cart-btn i {
    font-size: 20px;
  }
}

/* Override old header styles */
.app-header-content,
.app-logo,
.cart-button,
.header-left.old-style {
  display: none !important;
}

/* Hide old navbar on home page - use new app-header instead */
body.home-page .navbar.navbar-light {
  display: none !important;
}

/* ========================================
   NAVBAR OVERRIDE - SYMMETRICAL LAYOUT
   ======================================== */

/* Override old navbar styles for perfect symmetry */
.navbar {
  background: #fff !important;
  height: 64px !important;
  padding: 0 14px !important;
  /*display: grid !important;*/
  grid-template-columns: 60px 1fr 60px !important;
  align-items: center !important;
  box-shadow: var(--shadow-lg) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

.navbar-brand {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.navbar-brand img {
  height: 42px !important;
  width: 42px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 50% !important;
  /*background: #fff !important;*/
  padding: 2px !important;
}

.navbar-brand:hover img {
  transform: scale(1.05) !important;
}

/* Cart wrapper for right alignment */
.cart-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Cart notification button */
.cart-notification {
  position: relative !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: #E30613 !important;
  transition: var(--transition) !important;
}

.cart-notification:hover {
  background: rgba(227, 6, 19, 0.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.cart-notification i {
  font-size: 18px !important;
}

/* Cart badge */
.cart-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 50% !important;
  background: #E30613 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive - Tablet & Desktop */
@media (min-width: 768px) {
  .navbar {
    height: 70px !important;
    grid-template-columns: 72px 1fr 72px !important;
    padding: 0 18px !important;
  }

  .navbar-brand img {
    height: 46px !important;
    width: 46px !important;
  }

  .cart-notification {
    width: 48px !important;
    height: 48px !important;
  }

  .cart-notification i {
    font-size: 20px !important;
  }
}

/* ========================================
   LEGACY SLIDE PANEL STYLES
   (Preserved for functionality)
   ======================================== */
.slide-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 1050;
  transition: right 0.3s ease-out;
  overflow: hidden;
}

.slide-panel.active {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-content {
  height: calc(100% - 60px);
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px;
}

/* Payment Summary */
.payment-summary {
  background-color: rgba(227, 6, 19, 0.05);
  /* Adjusted to primary */
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(227, 6, 19, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-weight: 600;
  color: var(--text-dark);
}

.total-row {
  border-top: 1px solid rgba(227, 6, 19, 0.2);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 1.1rem;
}

.total-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Payment Form */
.payment-form {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(227, 6, 19, 0.1);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .slide-panel {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .slide-panel {
    max-width: 100%;
    padding: 1rem;
  }
}

/* ========================================
   NAVBAR VISIBILITY HARD SCRIPT
   ======================================== */
.navbar-modern {
  position: sticky !important;
  top: 0 !important;
  /*z-index: 99999 !important;*/
  background: white;
  transition: all 0.3s ease;
  box-shadow: none;
  width: 100% !important;
}

/* Glass Effect on Scroll */
.navbar-modern.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Strict Grid System for Symmetry */
.nav-grid {
  display: grid !important;
  grid-template-columns: 64px 1fr 64px !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
}

/* Vertical Center Alignment Logic */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
}

.cart-notification {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 170, 19, 0.08);
  /* Keep brand match */
  color: #e11d2e !important;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100000 !important;
}

/* Strict Responsive Heights */

/* Desktop & Tablet (>= 768px) */
@media (min-width: 768px) {
  .navbar-modern {
    height: 64px !important;
  }

  .navbar-brand img {
    height: 70px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .cart-notification {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .navbar-modern {
    height: 72px !important;
  }

  .navbar-brand img {
    height: 70px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .cart-notification {
    width: 48px !important;
    height: 48px !important;
  }
}

.cart-notification i {
  font-size: 18px !important;
  display: block !important;
}

/* Safety: Prevent Clipping */
body {
  overflow-x: hidden;
}

/* ========================================
   LIST VIEW MODE (Grid/List Toggle)
   ======================================== */
body.view-list .menu-grid {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

body.view-list .menu-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 16px;
  padding: 12px;
  height: auto !important;
  /* Reset any fixed height */
}

body.view-list .menu-image-wrapper {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border-radius: 12px;
  overflow: hidden;
  padding-top: 0 !important;
  /* Override aspect ratio padding */
}

body.view-list .menu-image {
  position: relative !important;
  /* Reset absolute positioning */
  height: 100% !important;
  width: 100% !important;
}

body.view-list .menu-badge {
  top: 4px;
  left: 4px;
  font-size: 0.65rem;
  padding: 2px 6px;
}

body.view-list .menu-info {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.view-list .menu-name {
  font-size: 1rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.view-list .menu-desc {
  display: none !important;
  /* Hide description in list view for compactness */
}

body.view-list .menu-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

body.view-list .menu-price {
  font-size: 1.1rem;
  margin: 0;
}

body.view-list .add-to-cart-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  /* Force no border */
  box-sizing: border-box !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  font-size: 0 !important;
  line-height: 0 !important;
  /* Fix vertical alignment */
  overflow: hidden !important;
  white-space: nowrap !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.view-list .add-to-cart-btn .btn-text {
  display: none !important;
}

body.view-list .add-to-cart-btn i {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  width: 16px !important;
  /* Fix icon width for FontAwesome */
  text-align: center !important;
}

/* Strict Focus/Active State Control */
body.view-list .add-to-cart-btn:focus,
body.view-list .add-to-cart-btn:active,
body.view-list .add-to-cart-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  background: var(--primary) !important;
  border-color: transparent !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  color: white !important;
}

body.view-list .add-to-cart-btn:active {
  opacity: 0.9;
}

/* Disabled state in List Mode */
body.view-list .add-to-cart-btn:disabled,
body.view-list .add-to-cart-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--text-muted) !important;
}

/* Stock badge adjustment in list view */
body.view-list .stock-badge {
  display: none;
  /* Optional: hide stock or move it */
}

.hero-section,
.hero-banner,
.hero-container {
  position: relative;
  z-index: 1;
}

/* ===== SKAWIJA HARD LOCK: Icon-only Add to Cart always centered ===== */
/* Only apply dimension locking to List View to preserve Grid View buttons */
body.view-list .menu-card .add-to-cart-btn,
body.view-list .add-to-cart-btn,
body.view-list .add-to-cart-btn.added,
body.view-list .add-to-cart-btn.active,
body.view-list .add-to-cart-btn:active,
body.view-list .add-to-cart-btn:focus,
body.view-list .add-to-cart-btn:focus-visible,
body.view-list .add-to-cart-btn:hover,
body.view-list .add-to-cart-btn[disabled],
body.view-list .add-to-cart-btn.loading {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 0 !important;
  text-align: center !important;

  transform: none !important;
  /* stop shift */
  outline: none !important;
  border-radius: 14px !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Specific lock for List View Icon */
body.view-list .menu-card .add-to-cart-btn i,
body.view-list .add-to-cart-btn i {
  width: 18px !important;
  text-align: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ============================
   OUT OF STOCK UI (HABIS)
============================ */

.menu-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* grayscale + dark */
.menu-image-wrapper.is-out img {
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
  transform: scale(1.02);
}

/* overlay */
.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* strong badge */
.stock-badge.stock-out {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(220, 38, 38, 0.98);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.stock-badge.stock-out i {
  font-size: 12px;
}

/* disabled cart icon button */
.add-to-cart-btn.out-of-stock {
  background: #e5e7eb !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  border: none !important;

  width: 44px;
  /* Default for Grid */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  /* Reset padding */
}

.add-to-cart-btn.out-of-stock:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Global hard-lock for button icon alignment */
.add-to-cart-btn {
  width: 44px;
  /* default for grid */
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn i {
  line-height: 1;
}

/* HARD LOCK OUT-OF-STOCK ICON VISIBILITY (GRID + LIST) */
.add-to-cart-btn.out-of-stock {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.add-to-cart-btn.out-of-stock i {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  line-height: 1 !important;
  font-size: 18px !important;
}

/* If list mode overrides button layout, force it back */
body.view-list .add-to-cart-btn.out-of-stock {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
}

.add-to-cart-btn.out-of-stock:hover,
/* SUPER PRIORITY FIX FOR LIST VIEW ICON */
body.view-list .add-to-cart-btn.out-of-stock,
body.view-list .add-to-cart-btn.out-of-stock:disabled {
  opacity: 1 !important;
  /* Override list view disabled opacity */
  background: #e5e7eb !important;
  color: #6b7280 !important;

  /* Force size to 44px as requested */
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;

  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
}

body.view-list .add-to-cart-btn.out-of-stock i,
body.view-list .add-to-cart-btn.out-of-stock:disabled i {
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;

  font-size: 18px !important;
  /* Ensure good size */
  width: auto !important;
  /* Don't clip */
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #6b7280 !important;
}

/* =====================================
   MODERN GRID CARD UPGRADE (SKAWIJA PREMIUM)
===================================== */

/* GRID card base */
body:not(.view-list) .menu-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  /* Premium rounded */
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04) !important;
  transition: transform .25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow .25s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

body:not(.view-list) .menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .08) !important;
}

/* Image Scale Wrapper */
body:not(.view-list) .menu-image-wrapper {
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 1;
}

body:not(.view-list) .menu-image {
  transform: scale(1.03);
  transition: transform 0.4s ease-out !important;
}

body:not(.view-list) .menu-card:hover .menu-image {
  transform: scale(1.08);
  /* Premium slow zoom */
}

/* Glass Category Badge */
body:not(.view-list) .menu-badge {
  top: 12px !important;
  left: 12px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  /* Glass effect */
  -webkit-backdrop-filter: blur(8px) !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 6px 12px !important;
  border-radius: 100px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Area */
body:not(.view-list) .menu-info {
  padding: 16px 16px 68px 16px !important;
  /* Bottom padding for footer row */
  display: flex;
  flex-direction: column;
  flex: 1 !important;
  position: relative !important;
}

body:not(.view-list) .menu-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: #111827 !important;
}

/* Description Clamp (2 Lines) */
body:not(.view-list) .menu-desc {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;

  /* CSS Line Clamp */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Footer Row Logic (Price Left, Button Right) */
body:not(.view-list) .menu-footer {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  right: 68px !important;
  /* Leave space for button */
  height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  z-index: 5;
}

body:not(.view-list) .menu-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  letter-spacing: -0.03em !important;
}

/* âœ… Icon-only Floating Button (Right) */
body:not(.view-list) .menu-card .add-to-cart-btn {
  position: absolute !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 10 !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  /* Circular for premium feel */
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;

  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3) !important;
  transition: all 0.2s cubic-bezier(0.3, 0.7, 0.4, 1) !important;
}

body:not(.view-list) .menu-card .add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.4) !important;
}

body:not(.view-list) .menu-card .add-to-cart-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

body:not(.view-list) .menu-card .add-to-cart-btn .btn-text {
  display: none !important;
}

body:not(.view-list) .menu-card .add-to-cart-btn i {
  font-size: 17px !important;
}

/* Out of stock button in grid */
body:not(.view-list) .menu-card .add-to-cart-btn.out-of-stock {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* =====================================
   PREMIUM CART UI (GoFood/GrabFood Style)
===================================== */
.cart-item-premium {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  align-items: center;
}

.cart-left {
  flex: 0 0 auto;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  background: #f3f3f3;
}

.cart-middle {
  flex: 1;
  min-width: 0;
}

.cart-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
}

.cart-price {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

.cart-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Qty Stepper Compact */
.qty-stepper-premium {
  display: flex;
  align-items: center;
  background: #f6f6f6;
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  color: #111827;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 0 8px;
  color: #111827;
}

/* Subtotal + Trash */
.cart-subtotal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-subtotal {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.btn-trash-premium {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: none;
  background: rgba(229, 57, 53, 0.1);
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-trash-premium:hover {
  background: rgba(229, 57, 53, 0.2);
  transform: translateY(-1px);
}

/* Premium Summary Card */
.cart-summary-premium {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.cart-summary-premium .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: center;
  padding: 15px;
}

.cart-summary-premium .total-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.cart-summary-premium .total-value {
  font-size: 18px;
  font-weight: 900;
  color: #e11d48;
}

.cart-summary-premium .subtotal-value {
  font-weight: 700;
  color: #111827;
}

/* FORCE PREMIUM CART LAYOUT */
.cart-item-premium {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 14px !important;
}

.cart-left {
  flex: 0 0 auto;
}

.cart-middle {
  flex: 1;
  min-width: 0;
}

.cart-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

.cart-thumb {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  background: #f3f3f3 !important;
}

.cart-title {
  font-weight: 800 !important;
  font-size: 15px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cart-price {
  font-size: 13px !important;
  opacity: .6 !important;
}

.qty-stepper-premium {
  display: flex !important;
  align-items: center !important;
  background: #f6f6f6 !important;
  border-radius: 14px !important;
  padding: 4px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.qty-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06) !important;
}

.qty-value {
  min-width: 32px !important;
  text-align: center !important;
  font-weight: 800 !important;
  padding: 0 8px !important;
}

.cart-subtotal-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cart-subtotal {
  font-size: 15px !important;
  font-weight: 900 !important;
}

.btn-trash-premium {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  border: none !important;
  background: rgba(255, 0, 0, 0.10) !important;
  color: #e11d48 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* FIX: Prevent narrow centered layout */
.page-wrapper,
.main-content,
.home-wrapper,
.menu-section,
.menu-container,
.container,
.container-fluid {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* On large screens, allow wide container */
@media (min-width: 1200px) {

  .page-wrapper,
  .main-content,
  .home-wrapper,
  .menu-section,
  .menu-container,
  .container,
  .container-fluid {
    max-width: 1400px !important;
  }
}

/* FIX: Proper responsive menu grid */
.menu-grid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.menu-image-wrapper {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

.menu-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ================================
   CART SLIDE OVERLAY (UX UPGRADE)
==================================*/
/* ================================
   CART SLIDE OVERLAY (UX UPGRADE)
==================================*/
.cart-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  /* Lowered to 99980 to sit below slide (99990) and SweetAlert (999999) */
  z-index: 99980 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease !important;
}

.cart-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ensure slide panel is above overlay but below SweetAlert */
.slide-panel {
  z-index: 99990 !important;
  transform: none !important;
  /* Prevent stacking context issues */
}

/* SweetAlert MUST be above checkout slide */
.swal2-container {
  z-index: 999999 !important;
}

/* Prevent Body Transforms */
body {
  transform: none !important;
  filter: none !important;
}


/* ================================
   LIST VIEW TOGGLE
==================================*/
body.view-list .menu-grid {
  grid-template-columns: 1fr !important;
}

body.view-list .menu-card {
  flex-direction: row !important;
  align-items: center;
  max-height: 140px;
}

body.view-list .menu-image-wrapper {
  width: 120px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

body.view-list .menu-info {
  padding: 10px 16px !important;
  justify-content: center;
}

body.view-list .menu-desc {
  display: none !important;
  /* Hide desc in list view for compactness */
}

body.view-list .add-to-cart-btn {
  width: auto !important;
  margin-top: 0 !important;
  padding: 8px 16px !important;
  height: 36px !important;
}

body.view-list .menu-footer {
  margin-top: 8px !important;
  gap: 12px;
  justify-content: flex-start !important;
}

/* =====================================
   PRODUCT DETAIL MODAL
===================================== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.product-modal-overlay.active .product-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  line-height: 1;
  padding-bottom: 4px;
  /* Alignment fix */
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

.modal-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-info {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-category-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.modal-category-badge.food {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.modal-category-badge.drink {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.modal-category-badge.dessert {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

#modalProductName {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.2;
}

#modalProductDesc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.modal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  gap: 16px;
  margin-top: auto;
}

.modal-price-wrapper {
  display: flex;
  flex-direction: column;
}

.modal-price-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-price {
  font-size: 20px;
  font-weight: 800;
  color: #e11d48;
  /* Primary Red */
}

.modal-add-btn {
  flex: 1;
  background: var(--primary);
  /* Defaults to variable */
  color: white;
  border: none;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.modal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(227, 6, 19, 0.35);
  filter: brightness(1.1);
}

.modal-add-btn:active {
  transform: translateY(0);
}

.modal-add-btn.btn-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stepper Styles for Modal */
.qty-stepper {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 99px;
  padding: 4px;
  gap: 8px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-display {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  min-width: 24px;
  text-align: center;
}

/* Modal Actions Layout */
.modal-footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}

.modal-add-btn {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  height: 52px;
  /* Taller for mobile touch */
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
  overflow: hidden;
  /* For shine effects if added */
}

.modal-add-btn .btn-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-add-btn:active {
  transform: scale(0.98);
}

/* Fix Line Clamps (Lint) */
.menu-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}