/* ==========================================================================
   JUSHH PK — KFC-Style Commercial QSR Theme
   Official Brand Palette: Jushh!! Dual-Tone Logo (White base + Ju Orange + shh!! Chili Maroon)
   Typography: 'Plus Jakarta Sans' (500, 600, 700, 800)
   Zero dark-mode / zero AI templates / zero serif display fonts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* 1. LOCKED COLOR & TYPOGRAPHY SYSTEM */
  --bg-canvas: #F8F9FA;          /* Main page body background (Light Warm Grey) */
  --bg-surface: #FFFFFF;         /* Pure White for Header, Category Bar, Cards, Modals, Cart Drawer */
  --bg-subtle: #F3F4F6;          /* Inactive pills, search input background */
  --jushh-orange: #EA580C;       /* From "Ju" — Primary CTA buttons, Active Category Pill, Active Order Mode Toggle */
  --jushh-orange-hover: #C2410C; /* Button hover state */
  --jushh-orange-tint: #FFF7ED;  /* Product image container background & subtle highlights */
  --jushh-maroon: #8B1D1D;       /* From "shh!!" — Top announcement bar, Header Cart Bucket, Card Prices, Deal Badges, Active Stepper */
  --jushh-maroon-hover: #6E1515; /* Maroon hover state */
  --text-primary: #111827;       /* Deep Charcoal Black for all Dish Titles, Category Headings, Modal Titles */
  --text-secondary: #4B5563;     /* Readable Slate Grey for Dish Descriptions */
  --text-muted: #6B7280;         /* Helper text */
  --border-color: #E5E7EB;       /* Crisp 1px card and section dividers */

  /* Cart Drawer Overrides */
  --cd-primary: #EA580C;
  --cd-primary-hover: #C2410C;
  --cd-accent: #8B1D1D;
  --cd-bg: #FFFFFF;
  --cd-surface: #FFFFFF;
  --cd-card-bg: #F8F9FA;
  --cd-card-border: #E5E7EB;
  --cd-text: #111827;
  --cd-muted: #6B7280;
  --cd-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Category Section Smooth Scroll Margin */
.category-section {
  scroll-margin-top: 145px;
}

/* Hide scrollbar for category pills navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Category Pill Inactive / Active */
.category-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.category-pill.active {
  background-color: var(--jushh-orange) !important;
  color: #FFFFFF !important;
  border-color: var(--jushh-orange) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.25);
}

/* Dish Card Hover & Transitions */
.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--jushh-orange);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Stepper inside Product Card */
.inline-qty-stepper {
  background-color: var(--jushh-maroon);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 0.75rem;
  padding: 0.375rem 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(139, 29, 29, 0.2);
}
.inline-qty-stepper button {
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0 0.25rem;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  transition: color 0.15s ease;
}
.inline-qty-stepper button:hover {
  color: #FED7AA;
}

/* Modal Animations */
#jushh-order-modal {
  backdrop-filter: blur(4px);
}
#jushh-order-modal.modal-open {
  display: flex !important;
  animation: jushhModalFadeIn 0.2s ease-out forwards;
}
@keyframes jushhModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utility Fallback Classes if Tailwind is loading or cached */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
