/* ==========================================================================
   SCOOPERS KIOSK - ZOMATO-INSPIRED LAYOUT & ARRANGEMENT
   Layout & Hierarchy faithfully inspired by Zomato UI
   ========================================================================== */

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

:root {
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --zomato-red: #E23744;
  --brand-red: #E51D24;
  --brand-red-dark: #C41219;
  --brand-red-light: #FFECEC;
  --brand-gold: #F59E0B;
  --brand-gold-light: #FEF3C7;
  --brand-gold-dark: #B45309;
  --brand-green: #24963F;
  --brand-dark: #1C1C24;
  --brand-gray-50: #F8FAFC;
  --brand-gray-100: #F1F5F9;
  --brand-gray-200: #E2E8F0;
  --brand-gray-300: #CBD5E1;
  --brand-gray-500: #64748B;
  --brand-gray-700: #334155;
  --brand-gray-900: #0F172A;

  --shadow-card: 0 4px 18px -2px rgba(15, 23, 42, 0.07);
  --shadow-card-hover: 0 10px 24px -4px rgba(226, 55, 68, 0.15);
  --shadow-dock: 0 12px 36px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #F8FAFC;
  color: var(--brand-gray-900);
  font-size: 14.5px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Mobile Frame Viewport */
.zomato-viewport-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-width: 0;
  background: #FFFFFF;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 95px; /* space for floating dock */
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   TOP HEADER & SEARCH SECTION
   ========================================================================== */

.zomato-top-header {
  background: linear-gradient(180deg, #FDE68A 0%, #FEF3C7 50%, #FFFFFF 100%);
  padding: 0.9rem 1rem 0.5rem;
}

.location-dropdown-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Veg Mode Toggle Switch */
.veg-mode-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.veg-toggle-track {
  width: 38px;
  height: 20px;
  background-color: #CBD5E1;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.25s ease;
}

.veg-toggle-thumb {
  width: 16px;
  height: 16px;
  background-color: #FFFFFF;
  border-radius: 9999px;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.veg-mode-switch.active .veg-toggle-track {
  background-color: #16A34A;
}

.veg-mode-switch.active .veg-toggle-thumb {
  transform: translateX(18px);
}

/* ==========================================================================
   HERO PROMO BANNER ("GOLD FLASH SALE" STYLE)
   ========================================================================== */

.gold-promo-card {
  background: radial-gradient(circle at 50% 20%, #FFFBEB 0%, #FEF3C7 45%, #FDE68A 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 26px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.18);
}

.gold-promo-card .confetti {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

.btn-gold-action {
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
}

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

/* Thin Perk Ribbon */
.gold-perk-ribbon {
  background: #FFFDF7;
  border: 1.5px solid #FEF08A;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   CIRCULAR FOOD CATEGORY STRIP (ZOMATO STYLE DISH PLATES)
   ========================================================================== */

.circular-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 0.4rem;
  user-select: none;
}

.circular-category-item .plate-circle {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circular-category-item .plate-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  transition: transform 0.25s ease;
}

.circular-category-item:hover .plate-circle {
  border-color: var(--zomato-red);
  transform: translateY(-2px);
}

.circular-category-item:hover .plate-circle img {
  transform: scale(1.08);
}

.circular-category-item.active .plate-circle {
  border-color: var(--zomato-red);
  box-shadow: 0 4px 16px rgba(226, 55, 68, 0.28);
}

.circular-category-item .category-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-gray-700);
  transition: color 0.18s ease;
}

.circular-category-item.active .category-label {
  color: var(--zomato-red);
  font-weight: 800;
}

.circular-category-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--zomato-red);
  border-radius: 9999px;
}

/* ==========================================================================
   QUICK FILTER CHIPS
   ========================================================================== */

.filter-chip {
  padding: 0.48rem 0.95rem;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.filter-chip.active {
  background: #FEE2E2;
  border-color: var(--zomato-red);
  color: var(--zomato-red);
  box-shadow: 0 2px 8px rgba(226, 55, 68, 0.15);
}

/* ==========================================================================
   ZOMATO-STYLE PRODUCT CARDS (TWO-COLUMN GRID & LIST CARDS)
   ========================================================================== */

.zomato-dish-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid #F1F5F9;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.zomato-dish-card:hover {
  border-color: #FECACA;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.zomato-dish-card .card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #F8FAFC;
  overflow: hidden;
}

.zomato-dish-card .card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.zomato-dish-card:hover .card-media-wrap img {
  transform: scale(1.05);
}

/* Discount Ribbon on Media */
.card-offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Rating Pill on Media */
.card-rating-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: #16A34A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Add Button on Zomato Card */
.btn-zomato-add {
  background: linear-gradient(135deg, #E23744 0%, #C41219 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.45rem 1.15rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.35);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-zomato-add:hover {
  background: linear-gradient(135deg, #FF2E36 0%, #D8131B 100%);
  box-shadow: 0 6px 16px rgba(226, 55, 68, 0.5);
  transform: translateY(-1px) scale(1.02);
}

.btn-zomato-add:active {
  transform: scale(0.92);
}

/* Typographic dish card without photo */
.zomato-text-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #F1F5F9;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.zomato-text-card:hover {
  border-color: #FECACA;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1.5px);
}

.zomato-text-card:active {
  transform: scale(0.98);
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION DOCK (ZOMATO PILL DOCK)
   ========================================================================== */

.zomato-floating-dock-wrap {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.zomato-floating-dock {
  background: #1C1C24;
  border-radius: 9999px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-dock);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: auto;
}

.dock-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  color: #94A3B8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  user-select: none;
}

.dock-tab:hover {
  color: #FFFFFF;
}

.dock-tab.active {
  background: #2D2D38;
  color: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.dock-tab.tray-tab-active {
  background: linear-gradient(135deg, #E23744 0%, #C41219 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(226, 55, 68, 0.4);
}

/* ==========================================================================
   CHEER AUDIO & VISUAL ANIMATION
   ========================================================================== */

@keyframes cheerBounce {
  0% { transform: scale(1); }
  35% { transform: scale(0.86); }
  70% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.animate-cheer-bounce {
  animation: cheerBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.floating-cheer-bubble {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #E23744 0%, #B90F16 100%);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(226, 55, 68, 0.45);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: floatCheer 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatCheer {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); }
  25% { opacity: 1; transform: translate(-50%, -75%) scale(1.16) rotate(4deg); }
  65% { opacity: 1; transform: translate(-50%, -105%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(0.85) rotate(-3deg); }
}

/* (Dock animation removed - clean audio confirmation only) */

/* ==========================================================================
   MODALS & DRAWERS
   ========================================================================== */

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#final-ticket-screen {
  position: fixed;
  inset: 0;
  z-index: 9999 !important;
}

.bottom-sheet-panel {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  background: white;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.2);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 9999px;
  margin: 10px auto 4px;
}

/* Veg Badge */
.badge-veg-icon {
  width: 15px;
  height: 15px;
  border: 1.6px solid #16A34A;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
}

.badge-veg-icon::after {
  content: '';
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #16A34A;
}

/* Addon Row */
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid #E2E8F0;
  background: white;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 52px;
}

.addon-row.active {
  border-color: var(--zomato-red);
  background: #FFF1F2;
}
