/* ==========================================================
   HYPERLOCAL COMMERCE PLATFORM - LIGHT DESIGN SYSTEM (2026)
   Clean, Fresh, Premium Grocery & Food Delivery UI
   Strictly Light Theme Only - No Dark Mode
   ========================================================== */

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --secondary: #0284c7;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-highlight: #a7f3d0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 6px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 24px -6px rgba(5, 150, 105, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Body Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card Styling */
.light-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.light-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Modern Add-to-Cart Morphing Micro-Interaction */
.add-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 16px;
    background-color: #ffffff;
    border: 1.5px solid #059669;
    color: #059669;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.12);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.btn-add:hover {
    background-color: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

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

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background-color: #059669;
    color: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    overflow: hidden;
    animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qty-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.15s;
}

.qty-btn:hover {
    background-color: #047857;
}

.qty-btn:active {
    background-color: #065f46;
}

.qty-count {
    padding: 0 8px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 24px;
    text-align: center;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Delivery Status Timeline (Clean Light Theme) */
.timeline-track {
    position: relative;
    padding-left: 28px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 8px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 20px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-node {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.timeline-step.active .timeline-node {
    background-color: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-step.active .timeline-node::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #059669;
    animation: pulseNode 1.5s infinite;
}

@keyframes pulseNode {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Shimmer Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notifications */
.light-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 500;
    animation: slideUpToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

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

/* Moving Rider Scooter Pulse */
.rider-scooter-pulse {
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Mapbox Custom HTML Markers & Location Puck */
.mapbox-rider-marker {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mapbox-rider-pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: radarPulse 2s infinite ease-out;
}

.mapbox-rider-puck {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease;
    z-index: 2;
}

.mapbox-shop-marker, .mapbox-dest-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 18px;
    cursor: pointer;
}
.mapbox-shop-marker { border-color: #6366f1; background: #eef2ff; }
.mapbox-dest-marker { border-color: #10b981; background: #ecfdf5; }

.mapboxgl-popup-content {
    border-radius: 12px !important;
    padding: 10px 14px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    font-family: inherit !important;
}

