/* 
========================================================================
   TROPICAL GLASSMORPHISM DESIGN SYSTEM - client_pwa/app.css
   Designed for: Fresh Fruits Dakar (PWA Mobile-First Client Application)
   
   Theme: Vibrant Tropical Oasis meets Premium Glassmorphism
   Aesthetics: Rich glowing gradients, 16px backdrop blur, soft shadows,
               energetic animations, and high-fidelity mobile responsiveness.
========================================================================
*/

/* ---------------------------------------------------------------------
   1. IMPORTS & DESIGN TOKENS
   --------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Tropical HSL Color Palette */
  --color-mango: hsl(28, 100%, 55%);           /* Mango Orange (#FF771A) */
  --color-mango-glow: hsla(28, 100%, 55%, 0.4);
  --color-lime: hsl(142, 70%, 45%);            /* Lime Green (#22CC5B) */
  --color-lime-glow: hsla(142, 70%, 45%, 0.4);
  --color-pineapple: hsl(48, 100%, 50%);       /* Pineapple Yellow (#FFD700) */
  --color-pineapple-glow: hsla(48, 100%, 50%, 0.4);
  --color-charcoal: hsl(220, 20%, 10%);        /* Deep Charcoal Dark Base */
  --color-charcoal-light: hsl(220, 20%, 15%);  /* Lighter charcoal for subtle elevation */

  /* Glassmorphism Specs */
  --glass-bg-subtle: rgba(255, 255, 255, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-rich: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-light: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-shadow-glow: 0 8px 32px 0 rgba(28, 200, 80, 0.15);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Layout Constants */
  --header-height: 72px;
  --nav-bar-height: 76px;
  --max-mobile-width: 480px;

  /* Typography */
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------------------------------------------------------------------
   2. RESET & FOUNDATIONS
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--color-charcoal);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* Dynamic Tropical Mesh Gradient Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  background-color: var(--color-charcoal);
  background-image: 
    radial-gradient(at 0% 0%, hsla(28, 100%, 55%, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(142, 70%, 45%, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 100%, hsla(48, 100%, 50%, 0.1) 0px, transparent 60%),
    radial-gradient(at 100% 100%, hsla(220, 20%, 15%, 0.8) 0px, transparent 80%);
  background-attachment: fixed;
}

/* Beautiful modern scrollbar for desktop viewers or scrollable containers */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-lime);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

a {
  color: var(--color-lime);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-pineapple);
}

/* ---------------------------------------------------------------------
   3. MOBILE-FIRST RESPONSIVE PWA LAYOUT
   --------------------------------------------------------------------- */

/* Shell container to constrain to mobile device widths on larger monitors for premium look */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max-mobile-width);
  margin: 0 auto;
  position: relative;
  background: rgba(10, 15, 25, 0.4);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: calc(var(--nav-bar-height) + 24px); /* Make room for floating navigation */
}

/* Header (Top App Bar) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 25, 35, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--color-pineapple) 0%, var(--color-mango) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 119, 26, 0.15);
}

.logo-emoji {
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

/* Main scrollable content view */
.app-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Bottom Navigation Bar (Glassmorphism design) */
.app-nav-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--max-mobile-width) - 32px);
  height: var(--nav-bar-height);
  z-index: 100;
  
  background: rgba(20, 25, 35, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: 24px;
  box-shadow: var(--glass-shadow), 0 -4px 24px rgba(0, 0, 0, 0.15);
  
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  width: 60px;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.nav-item.active {
  color: var(--color-lime);
}

.nav-item.active svg {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 0 8px var(--color-lime-glow));
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
}

/* ---------------------------------------------------------------------
   4. GLASSMORPHISM DESIGN SYSTEM
   --------------------------------------------------------------------- */

/* Elevated Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-light);
  box-shadow: var(--glass-shadow), 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Specific highlight cards for our tropical themes */
.glass-card.mango-theme {
  border: 1px solid rgba(255, 119, 26, 0.25);
  box-shadow: 0 8px 32px 0 rgba(255, 119, 26, 0.08);
}
.glass-card.mango-theme:hover {
  border-color: rgba(255, 119, 26, 0.5);
  box-shadow: 0 12px 40px 0 rgba(255, 119, 26, 0.18);
}

.glass-card.lime-theme {
  border: 1px solid rgba(34, 204, 91, 0.25);
  box-shadow: 0 8px 32px 0 rgba(34, 204, 91, 0.08);
}
.glass-card.lime-theme:hover {
  border-color: rgba(34, 204, 91, 0.5);
  box-shadow: 0 12px 40px 0 rgba(34, 204, 91, 0.18);
}

/* Glass inputs & form controls */
.glass-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.glass-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glass-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.glass-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-lime);
  box-shadow: 0 0 15px rgba(34, 204, 91, 0.25);
}

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

/* Glass Badges */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
}

.glass-badge.mango {
  background: rgba(255, 119, 26, 0.25);
  color: #fff;
  border-color: rgba(255, 119, 26, 0.35);
  text-shadow: 0 0 6px var(--color-mango-glow);
}

.glass-badge.lime {
  background: rgba(34, 204, 91, 0.25);
  color: #fff;
  border-color: rgba(34, 204, 91, 0.35);
  text-shadow: 0 0 6px var(--color-lime-glow);
}

.glass-badge.pineapple {
  background: rgba(255, 215, 0, 0.25);
  color: #fff;
  border-color: rgba(255, 215, 0, 0.35);
  text-shadow: 0 0 6px var(--color-pineapple-glow);
}

/* ---------------------------------------------------------------------
   5. ALERTS & ENERGETIC FLASHING 'VENTE FLASH' BANNER
   --------------------------------------------------------------------- */

.vente-flash-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 119, 26, 0.85) 0%, rgba(255, 215, 0, 0.85) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 20px;
  padding: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 119, 26, 0.4),
              inset 0 0 15px rgba(255, 255, 255, 0.3);
  z-index: 5;
  animation: alertPulse 2s infinite alternate;
}

/* Flowing lighting border overlay (glass effect) */
.vente-flash-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite linear;
}

.vente-flash-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.vente-flash-tag {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
               0 0 15px rgba(255, 255, 255, 0.8);
  animation: intenseFlash 1s infinite alternate;
}

.vente-flash-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.vente-flash-timer-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
  animation: flash 1s infinite alternate;
}

.timer-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-pineapple);
}

/* ---------------------------------------------------------------------
   6. MICRO-ANIMATIONS & INTERACTIVE MOTION
   --------------------------------------------------------------------- */

/* Smooth scaling and glowing transitions for buttons */
.btn-interactive {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Mango Orange CTA */
.btn-mango {
  background: linear-gradient(135deg, var(--color-mango) 0%, hsl(18, 100%, 50%) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--color-mango-glow);
}
.btn-mango:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(255, 119, 26, 0.6);
}
.btn-mango:active {
  transform: scale(0.97);
}

/* Lime Green CTA */
.btn-lime {
  background: linear-gradient(135deg, var(--color-lime) 0%, hsl(142, 70%, 38%) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--color-lime-glow);
}
.btn-lime:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(34, 204, 91, 0.6);
}
.btn-lime:active {
  transform: scale(0.97);
}

/* Secondary Translucent Glass Button */
.btn-glass {
  background: var(--glass-bg-rich);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  color: #ffffff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}
.btn-glass:active {
  transform: scale(0.97);
}

/* Shimmer/Loading Points Animating placeholders */
.shimmer-placeholder {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.1) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 12px;
}

/* Micro interaction pulse for static assets */
.pulse-indicator {
  position: relative;
  display: inline-block;
}

.pulse-indicator::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: var(--color-lime);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-out 2s infinite ease-out;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Subtle background glowing dots animation */
.bg-shimmer-dots {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

/* ---------------------------------------------------------------------
   7. SLIDE-IN CART PANEL (GLASSMORPHISM)
   --------------------------------------------------------------------- */

.slide-in-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: var(--max-mobile-width);
  height: 100%;
  background: rgba(15, 20, 30, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--glass-border-light);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
}

@media (min-width: 480px) {
  .slide-in-cart {
    right: calc(50% - 240px);
  }
}

.slide-in-cart.open {
  transform: translateX(0);
}

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

.cart-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.cart-items-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-footer {
  padding: 24px 20px;
  background: rgba(10, 15, 20, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
}

.cart-total-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-pineapple);
}

/* Cart Item Glass Card */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--glass-border);
}

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

.cart-item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--color-mango);
  font-weight: 700;
  margin-top: 2px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 4px;
}

.cart-qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   8. TROPICAL FRUIT CARD COMPONENT (PWA SHELF VIEW)
   --------------------------------------------------------------------- */

.fruit-card {
  position: relative;
  border-radius: 24px;
  background: rgba(25, 30, 45, 0.75); /* Highly performant translucent dark charcoal to guarantee 60 FPS mobile scrolling */
  border: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fruit-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-light);
}

.fruit-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fruit-card-img {
  font-size: 4.5rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fruit-card:hover .fruit-card-img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}

.fruit-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

.fruit-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.fruit-card-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-pineapple);
}

.fruit-card-add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-lime);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--color-lime-glow);
  transition: all 0.2s ease;
}

.fruit-card-add-btn:hover {
  transform: scale(1.1);
  background: var(--color-pineapple);
  box-shadow: 0 4px 10px var(--color-pineapple-glow);
}

.fruit-card-add-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------------------------------------------------------------------
   9. CSS KEYFRAME ANIMATIONS
   --------------------------------------------------------------------- */

/* Flashing Alert Text Animation */
@keyframes intenseFlash {
  0% {
    opacity: 0.85;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 12px var(--color-mango-glow);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 15px #ffffff, 0 0 30px var(--color-pineapple), 0 0 45px var(--color-mango);
  }
}

/* Banner pulse glowing element */
@keyframes alertPulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 119, 26, 0.3),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 119, 26, 0.6),
                inset 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 215, 0, 0.9);
  }
}

/* Shine overlay effect animation */
@keyframes shine {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* Generic Flash blinker */
@keyframes flash {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Shimmer placeholder sweep */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Radial pulse-out indicator effect */
@keyframes pulse-out {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Grid Layout Utility */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

/* Blur overlay utility for premium modal masking */
.backdrop-blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 400;
  display: none;
}

@media (min-width: 480px) {
  .backdrop-blur-overlay {
    left: calc(50% - 240px);
    width: 480px;
    height: 100vh;
  }
}

.backdrop-blur-overlay.active {
  display: block;
}

/* Floating Cart Count Badge */
.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-mango);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 119, 26, 0.4);
  border: 1.5px solid rgba(20, 25, 35, 0.9);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.cart-count-badge.badge-bounce {
  animation: badge-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================================================
   10. PREMIUM CONFIRMATION MODAL & OVERLAYS
   ======================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

@media (min-width: 480px) {
  .modal-overlay {
    left: calc(50% - 240px);
    width: 480px;
    height: 100vh;
  }
}

.modal-content {
  background: rgba(20, 25, 35, 0.95);
  border: 1.5px solid var(--glass-border-light);
  border-radius: 28px;
  padding: 32px 24px;
  width: calc(100% - 40px);
  max-width: 380px;
  text-align: center;
  box-shadow: var(--glass-shadow), 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.confirmation-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
  animation: float 2.5s ease-in-out infinite;
}

.order-id-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-block;
  margin: 8px 0 16px 0;
  border: 1px solid var(--glass-border);
}

.confirmation-details {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.confirmation-details p {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.confirmation-details p strong {
  color: #fff;
}
.confirmation-details p:last-child {
  margin-bottom: 0;
}

.points-gain-alert {
  color: var(--color-pineapple) !important;
  font-weight: 700;
}

.delivery-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---------------------------------------------------------------------
   9. ESPACE FOURNISSEUR & CAMERA UPLOAD COMPONENT
   --------------------------------------------------------------------- */
.camera-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 4px;
}

.camera-upload-zone:hover {
  background: rgba(255, 119, 26, 0.06);
  border-color: var(--color-mango);
  box-shadow: 0 0 15px rgba(255, 119, 26, 0.15);
}

.camera-upload-zone span {
  transition: transform 0.2s ease;
}

.camera-upload-zone:hover span:first-child {
  transform: scale(1.15) rotate(-5deg);
}

#admin-photo-feedback {
  animation: pulse-green 2s infinite alternate;
}

@keyframes pulse-green {
  0% { opacity: 0.8; }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(34, 204, 91, 0.6); }
}
