/* ==========================================================================
   Swadwala's Kitchen — Ultra-Premium Bespoke UI Layout v2.0
   Design System: Outfit + Inter + Plus Jakarta Sans
   ========================================================================== */

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

:root {
  /* Brand Colors - Fiery Red Palette */
  --primary: #E11D48;
  --primary-dark: #BE123C;
  --primary-glow: rgba(225, 29, 72, 0.35);
  --primary-light: #FFE4E6;
  --primary-subtle: #FFF1F2;

  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;
  --accent-glow: rgba(245, 158, 11, 0.3);

  --success: #10B981;
  --success-light: #D1FAE5;
  --success-glow: rgba(16, 185, 129, 0.3);

  --dark-surface: #18181B;
  --dark-surface-card: #27272A;
  --dark-overlay: rgba(24, 24, 27, 0.85);

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-muted: #F1F5F9;
  --bg-deep: #E2E8F0;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: var(--primary);

  --text-main: #0F172A;
  --text-sub: #475569;
  --text-muted: #94A3B8;
  --text-white: #FFFFFF;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.20);
  --shadow-primary: 0 8px 24px rgba(225, 29, 72, 0.30);
  --shadow-accent: 0 8px 24px rgba(245, 158, 11, 0.30);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Font Families */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS Reset + Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Floating Food Animations (Global)
   ========================================================================== */
.food-float-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.food-float-emoji {
  position: absolute;
  font-size: 22px;
  opacity: 0;
  animation: floatUpFade linear infinite;
  user-select: none;
  filter: blur(0px);
}

@keyframes floatUpFade {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% { opacity: 0.18; }
  80% { opacity: 0.12; }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Bouncing food dots on loading states */
.food-bounce-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.food-bounce-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounceDot 0.9s infinite alternate;
}

.food-bounce-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--accent); }
.food-bounce-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--success); }

@keyframes bounceDot {
  from { transform: translateY(0); opacity: 0.5; }
  to { transform: translateY(-8px); opacity: 1; }
}

/* Food pulse ring on add to cart */
@keyframes foodPulseRing {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-glow); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* Shimmer loading */
@keyframes shimmerSlide {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.shimmer {
  background: linear-gradient(90deg, #f0f4f8 25%, #e8eef4 50%, #f0f4f8 75%);
  background-size: 600px 100%;
  animation: shimmerSlide 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header Navigation Bar (Sticky Glassmorphic Navbar)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 20px;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.10);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  background: linear-gradient(135deg, var(--dark-surface) 0%, #3F3F46 100%);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: brandShine 3s infinite;
}

@keyframes brandShine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-location {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-track {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 7px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-track:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn-nav-cart {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-nav-cart::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}

.btn-nav-cart:hover::before {
  left: 200%;
}

.btn-nav-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.45);
}

.cart-count-badge {
  background: var(--text-white);
  color: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0.5); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Mobile nav */
@media (max-width: 480px) {
  .brand-text { display: none; }
  .btn-nav-track span { display: none; }
  .btn-nav-track { padding: 8px 10px; }
  .navbar { padding: 10px 14px; }
}

/* ==========================================================================
   Hero Section — Premium Gradient Banner
   ========================================================================== */
.hero-banner {
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF5F6 50%, #FFF1F2 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 20px 26px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-header-row {
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-tag {
  background: var(--bg-muted);
  color: var(--text-sub);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.badge-tag.rating {
  background: var(--accent-light);
  color: #92400E;
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-tag.open {
  background: var(--success-light);
  color: #065F46;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-tag.open::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.badge-tag.closed {
  background: var(--primary-light);
  color: #991B1B;
  border-color: rgba(225, 29, 72, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-strip {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}

.meta-item strong {
  color: var(--text-main);
}

/* Search Bar */
.search-container {
  max-width: 680px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 13px 50px 13px 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10), var(--shadow-sm);
  background: var(--bg-card);
}

.search-input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 17px;
  pointer-events: none;
  transition: var(--transition-fast);
}

.search-input:focus + .search-icon,
.search-container:focus-within .search-icon {
  color: var(--primary);
}

/* ==========================================================================
   Sticky Category Navigation Bar
   ========================================================================== */
.category-nav-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  position: sticky;
  top: 61px;
  z-index: 990;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.category-scroll {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  background: var(--bg-muted);
  border: 1.5px solid transparent;
  color: var(--text-sub);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.cat-pill:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-light);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-container {
  max-width: 1120px;
  margin: 28px auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .main-container { margin: 20px auto; padding: 0 14px; }
}

.closed-banner {
  background: linear-gradient(135deg, #FEE2E2 0%, #FFE4E6 100%);
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.category-section {
  margin-bottom: 44px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.section-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Premium Food Item Cards
   ========================================================================== */
.food-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .food-grid {
    gap: 18px;
  }
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.food-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-base);
}

.food-card:hover {
  border-color: rgba(225, 29, 72, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.food-card:hover::before {
  opacity: 1;
}

.food-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.food-title-row {
  margin-bottom: 4px;
}

.food-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-price {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.food-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pure Veg Badge */
.veg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 2px;
}

/* Action Control Side */
.food-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
}

/* Photo feature for dishes with photos - 1:1 Square Ratio Support */
.food-action-side.with-photo {
  position: relative;
  width: 116px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.food-photo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 116px;
  height: 116px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  border: 1.5px solid var(--border-light);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-photo-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.food-card:hover .food-photo-img {
  transform: scale(1.06);
}

.food-action-box.overlap-box {
  position: relative;
  z-index: 4;
  margin-top: 98px;
  margin-bottom: -4px;
}

@media (max-width: 480px) {
  .food-action-side.with-photo {
    width: 100px;
    min-height: 110px;
  }
  .food-photo-wrapper {
    width: 100px;
    height: 100px;
  }
  .food-action-box.overlap-box {
    margin-top: 84px;
  }
}

.food-action-box.overlap-box .btn-add-food {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(225, 29, 72, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 900;
}

.food-action-box.overlap-box .btn-add-food:hover {
  background: var(--primary);
  color: #ffffff;
}

.food-action-box.overlap-box .qty-stepper {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-pill);
  height: 32px;
}

.food-action-box.overlap-box .qty-btn {
  width: 28px;
  height: 32px;
}

/* Fallback: when dish does NOT have photo (shows as currently showing) */
.food-action-side.without-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.btn-add-food {
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.10);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-add-food:hover {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
  transform: scale(1.04);
  animation: foodPulseRing 0.4s ease;
}

.btn-add-food:active {
  transform: scale(0.97);
}

/* Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--primary-subtle); }
.qty-btn:active { transform: scale(0.9); }

.qty-count {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-heading);
  min-width: 28px;
  text-align: center;
}

.stock-badge-out {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #FCA5A5;
}

/* ==========================================================================
   Floating Cart Bar
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 520px;
  background: linear-gradient(135deg, var(--dark-surface) 0%, #27272A 100%);
  color: var(--text-white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 1050;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { transform: translate(-50%, 80px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-bar-left {
  display: flex;
  flex-direction: column;
}

.cart-bar-items {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-bar-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-white);
}

.cart-bar-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}

.cart-bar-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
}

/* ==========================================================================
   Cart & Checkout Pages
   ========================================================================== */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.cart-card, .checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.cart-card:hover, .checkout-card:hover {
  box-shadow: var(--shadow-md);
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.cart-item-row:last-child { border-bottom: none; }

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.bill-summary {
  margin-top: 20px;
  border-top: 2px dashed var(--border-medium);
  padding-top: 16px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--text-sub);
}

.bill-row.total {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  border-top: 1.5px solid var(--border-light);
  padding-top: 14px;
  margin-top: 14px;
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.form-control::placeholder { color: var(--text-muted); font-size: 13.5px; }

textarea.form-control { resize: vertical; min-height: 90px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before { left: 200%; }

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.45);
}

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

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Order Tracker Timeline
   ========================================================================== */
.tracker-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tracker-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--bg-muted);
  z-index: 1;
  border-radius: var(--radius-pill);
}

.tracker-timeline-progress {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--success) 0%, #34D399 100%);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.step-item {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
  min-width: 52px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition-base);
  position: relative;
  z-index: 2;
}

.step-item.active .step-icon {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-color: var(--success);
  color: var(--text-white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), var(--shadow-sm);
  transform: scale(1.08);
}

.step-item.active.current .step-icon {
  animation: stepPulse 1.5s infinite;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 0 0 8px rgba(16, 185, 129, 0.08); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.25), 0 0 0 12px rgba(16, 185, 129, 0.08); }
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.step-item.active .step-label {
  color: var(--success);
}

/* ==========================================================================
   Order Success & Track Page Specific
   ========================================================================== */
.success-confetti {
  position: relative;
  overflow: hidden;
}

.success-icon-ring {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success-light), #A7F3D0);
  border: 3px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
  animation: successRing 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successRing {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Track Page — Mobile-First
   ========================================================================== */
.track-hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #18181B 100%);
  color: white;
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.track-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.track-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.track-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* Phone Track Card */
.phone-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.phone-track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.phone-input-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.phone-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.phone-prefix::after {
  content: '';
  width: 1px;
  height: 18px;
  background: var(--border-medium);
  margin-left: 4px;
}

.phone-input-large {
  width: 100%;
  padding: 15px 16px 15px 80px;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 2px;
  outline: none;
  transition: var(--transition-base);
  background: var(--bg-page);
  text-align: left;
  -moz-appearance: textfield;
}

.phone-input-large::-webkit-outer-spin-button,
.phone-input-large::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.phone-input-large:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.btn-track-orders {
  width: 100%;
  max-width: 380px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.2px;
}

.btn-track-orders:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.45);
}

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

/* Order History Cards */
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.order-history-card:hover {
  border-color: rgba(225, 29, 72, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.order-history-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.order-num-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
}

.order-date-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.status-chip.placed { background: #FEF3C7; color: #92400E; }
.status-chip.accepted { background: #DBEAFE; color: #1D4ED8; }
.status-chip.preparing { background: #FED7AA; color: #9A3412; }
.status-chip.ready { background: #D1FAE5; color: #065F46; }
.status-chip.out_for_delivery { background: #EDE9FE; color: #5B21B6; }
.status-chip.delivered { background: #D1FAE5; color: #065F46; }
.status-chip.cancelled { background: #FEE2E2; color: #991B1B; }

.order-items-preview {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total-amount {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--primary);
}

.btn-view-order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--primary-light);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-view-order:hover {
  background: var(--primary);
  color: white;
}

/* Order Detail Expanded Panel */
.order-detail-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  animation: panelSlideIn 0.3s ease;
}

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark-surface);
  color: rgba(255,255,255,0.55);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.footer a:hover { color: var(--primary); }

/* ==========================================================================
   Toast Notifications — Enhanced
   ========================================================================== */
.toast-item {
  background: var(--dark-surface);
  color: var(--text-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-xl);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--success);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-item.error { border-left-color: var(--primary); }

@keyframes toastIn {
  from { transform: translateX(120%) scale(0.8); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Responsive Grid Utilities
   ========================================================================== */
@media (max-width: 640px) {
  .food-card {
    padding: 14px;
  }

  .cart-card, .checkout-card {
    padding: 16px;
  }

  .tracker-timeline {
    overflow-x: auto;
    padding: 0 4px 8px;
  }

  .step-label {
    font-size: 9px;
  }

  .step-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Responsive Admin Nav (for Mobile on admin)
   ========================================================================== */
@media (max-width: 768px) {
  .admin-nav-links {
    display: flex !important;
    overflow-x: auto;
    gap: 8px !important;
    padding: 4px 0;
    scrollbar-width: none;
  }
  .admin-nav-links::-webkit-scrollbar { display: none; }
  .admin-nav-link {
    white-space: nowrap;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

/* ==========================================================================
   Utility classes
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-display { font-family: var(--font-display); }
.fw-900 { font-weight: 900; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Floating Bottom Cart Bar (Swiggy / Zomato Style High-Converting Bar)
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 600px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  animation: floatBarIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s ease;
}

@keyframes floatBarIn {
  from { opacity: 0; transform: translate(-50%, 40px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.cart-bar-left {
  display: flex;
  flex-direction: column;
}

.cart-bar-items {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.95;
}

.cart-bar-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cart-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #065F46;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
}

.cart-bar-btn:hover {
  background: #ECFDF5;
  transform: translateX(3px) scale(1.04);
}

.cart-bar-btn:active {
  transform: scale(0.97);
}

/* Foodly Pulse & High Converting Effects */
.food-card.card-with-photo:hover {
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.12);
}

@media (max-width: 480px) {
  .food-action-side.with-photo {
    width: 104px;
    height: 98px;
  }
  .food-photo-wrapper {
    height: 82px;
  }
}

/* ==========================================================================
   VIEW CART TRANSITION SCREEN & ARRIVAL ANIMATIONS
   ========================================================================== */
.cart-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-transition-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  padding: 28px 36px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(225, 29, 72, 0.2);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
  width: 90%;
}

.cart-transition-overlay.active .cart-transition-card {
  transform: scale(1);
}

.cart-transition-anim-icon {
  font-size: 52px;
  display: inline-block;
  animation: cartRocket 0.8s infinite alternate ease-in-out;
  margin-bottom: 12px;
}

@keyframes cartRocket {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-10px) scale(1.12) rotate(-8deg); }
}

.cart-transition-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.cart-transition-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.cart-transition-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cart-transition-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #E11D48, #FB7185, #10B981);
  border-radius: 10px;
  animation: cartLoadSlide 0.7s infinite ease-in-out;
}

@keyframes cartLoadSlide {
  0% { transform: translateX(-100%); width: 25%; }
  50% { width: 75%; }
  100% { transform: translateX(350%); width: 25%; }
}

/* Cart Page Arrival Indicator */
.cart-arrival-indicator {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
  animation: cartArriveIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartArriveIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-arrival-indicator.celebrate-pulse {
  animation: pulseCelebrate 0.8s ease;
}

@keyframes pulseCelebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3); }
}

.arrival-emoji {
  font-size: 38px;
  animation: bowlBounce 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bowlBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

.arrival-content {
  flex: 1;
}

.arrival-badge {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.arrival-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 2px;
}

.arrival-desc {
  font-size: 12.5px;
  color: #15803d;
  line-height: 1.45;
}

.cart-content-card {
  animation: cartFadeUp 0.4s ease-out;
}

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

/* ==========================================================================
   PROMOCODE / COUPON SECTION STYLES
   ========================================================================== */
.promo-section-card {
  background: var(--surface-muted, #f8fafc);
  border: 1.5px dashed var(--border-medium, #cbd5e1);
  border-radius: 14px;
  padding: 16px;
  margin: 20px 0;
  transition: border-color 0.2s ease;
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.promo-input-row {
  display: flex;
  gap: 8px;
}

.promo-input-row input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid var(--border-medium, #cbd5e1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main, #0f172a);
  outline: none;
  transition: all 0.2s ease;
}

.promo-input-row input:focus {
  border-color: var(--brand-primary, #E11D48);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.promo-input-row button {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: all 0.2s ease;
}

.promo-input-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.promo-chips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-chip {
  background: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.promo-chip:hover {
  border-color: #E11D48;
  background: #FFF1F2;
  transform: translateX(3px);
}

.chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.chip-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: #E11D48;
  letter-spacing: 0.5px;
}

.chip-tag {
  background: #10B981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.chip-sub {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

.promo-applied-badge {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-remove-coupon {
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-remove-coupon:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

