/* ==========================================================================
   VERDANTBASKET - LUXURY ORGANIC SUPERMARKET STYLESHEET
   Aesthetic Emerald, Meadow Green & Amber Gold Color Palette
   ========================================================================== */

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

:root {
    --primary-900: #062c22;
    --primary-800: #0a4436;
    --primary-700: #0e5c4a;
    --primary-600: #10725c;
    --primary-500: #10b981;
    --primary-400: #34d399;
    --primary-300: #6ee7b7;
    --primary-100: #d1fae5;
    --primary-50: #ecfdf5;

    --accent-amber: #f59e0b;
    --accent-amber-light: #fef3c7;
    --accent-rose: #f43f5e;
    --accent-indigo: #6366f1;

    --bg-main: #f8faf9;
    --bg-card: #ffffff;
    --bg-card-glass: rgba(255, 255, 255, 0.85);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-light: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.3);

    --shadow-soft: 0 4px 20px -2px rgba(10, 68, 54, 0.06);
    --shadow-hover: 0 14px 30px -4px rgba(10, 68, 54, 0.14);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

/* Glassmorphic Navbar */
.glass-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-header.scrolled {
    box-shadow: 0 10px 30px rgba(10, 68, 54, 0.08);
}

/* Top Announcement Strip */
.top-bar {
    background: linear-gradient(90deg, #062c22 0%, #0a4436 50%, #062c22 100%);
    color: #ffffff;
    font-size: 0.815rem;
}

/* Gradient text */
.text-gradient-emerald {
    background: linear-gradient(135deg, #0a4436 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-amber {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges & Tags */
.badge-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-emerald {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-amber {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-rose {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}
.badge-indigo {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}
.badge-green {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Product Card Styling */
.product-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.3);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 80%;
    background: #f8fafc;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
    z-index: 5;
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: #ef4444;
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Category Story Circle */
.category-story-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.category-story-card:hover {
    transform: translateY(-4px);
}
.category-story-card.active {
    border-color: var(--primary-500);
    background: #ecfdf5;
}

/* Quantity Control Buttons */
.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-50);
    border: 1.5px solid var(--primary-500);
    border-radius: 999px;
    overflow: hidden;
    height: 38px;
    padding: 2px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-700);
    font-weight: 700;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--primary-600);
    color: #ffffff;
}

.add-cart-primary-btn {
    background: #ffffff;
    border: 1.5px solid var(--primary-600);
    color: var(--primary-700);
    font-weight: 700;
    border-radius: 999px;
    height: 38px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.875rem;
}

.add-cart-primary-btn:hover {
    background: var(--primary-600);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Pulse Animation for Live Delivery */
.pulse-live {
    position: relative;
}
.pulse-live::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    top: 50%;
    left: -14px;
    transform: translateY(-50%);
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Cart Drawer Animation */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

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

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
}
.modal-overlay.open .modal-container {
    transform: scale(1) translateY(0);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-message {
    pointer-events: auto;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--primary-500);
}
@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Floating Quick Assistance Bar */
.floating-support-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 900;
    background: linear-gradient(135deg, #0a4436 0%, #10b981 100%);
    color: white;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(10, 68, 54, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.floating-support-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(10, 68, 54, 0.45);
    color: white;
}

/* Hero Banner Gradients & Highlights */
.hero-gradient-1 {
    background: linear-gradient(135deg, #062c22 0%, #0e5c4a 60%, #10b981 100%);
}
.hero-gradient-2 {
    background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #f59e0b 100%);
}
.hero-gradient-3 {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #6366f1 100%);
}

/* Coupon Card Styling */
.coupon-ticket {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
}
.coupon-ticket:hover {
    border-color: var(--primary-500);
    background: #f0fdf4;
}

/* Confetti wrapper */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
}

/* Autocomplete live suggestions dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
}

/* Step Progress Indicator for Checkout */
.checkout-step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.checkout-step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}
.checkout-step-item {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.checkout-step-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}
.checkout-step-item.active .checkout-step-bubble {
    background: var(--primary-600);
    color: #ffffff;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.checkout-step-item.completed .checkout-step-bubble {
    background: var(--primary-500);
    color: #ffffff;
    border-color: var(--primary-500);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    body {
        padding-bottom: 70px;
    }
    .floating-support-btn {
        bottom: 74px;
        left: 16px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Reviews Swiper Custom Styling */
.reviewsSwiper {
    padding-top: 6px;
    padding-bottom: 36px;
}
.reviewsSwiper .swiper-slide {
    height: auto;
    display: flex;
}
.reviews-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 999px;
}
.reviews-swiper-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: var(--primary-600) !important;
    opacity: 1;
    border-radius: 999px;
}

