/* Core Design Tokens & Variables */
:root {
    --primary-color: var(--theme-primary, #16a34a);      /* Jhola Bazar Emerald Green */
    --primary-dark: color-mix(in srgb, var(--theme-primary) 85%, black);
    --primary-light: color-mix(in srgb, var(--theme-primary) 10%, white);
    --accent-color: #ea580c;       /* Orange accent */
    --accent-red: #dc2626;         /* Sale Red */
    --dark-color: #111827;
    --gray-light: #f9fafb;
    --font-base: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    font-family: var(--font-base);
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
    background-color: #fcfcfc;
}

.font-outfit {
    font-family: var(--font-heading);
}

/* Utilities */
.hover-success {
    transition: var(--transition-smooth);
}
.hover-success:hover {
    color: var(--primary-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Primary Button Enhancements */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
    font-weight: 500;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.2);
}

/* Outline Button styling */
.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.15);
}

/* Announcement Bar overlay text */
.announcement-bar {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Sticky Header Styling with glassmorphism blur */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Search bar styling */
.search-input-group .form-control {
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.search-input-group .btn {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Timings Badge Glow */
.badge-timing-open {
    background-color: rgba(12, 131, 31, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(12, 131, 31, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-timing-closed {
    background-color: rgba(234, 44, 54, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(234, 44, 54, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Horizontal Categories Scroll (Blinkit-style) */
.category-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-scroll-item {
    transition: var(--transition-smooth);
}
.category-scroll-item:hover {
    transform: translateY(-3px);
}

/* Premium Card hover-lift effect */
.hover-lift {
    transition: var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Product Card design */
.product-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(12, 131, 31, 0.15) !important;
}
.product-card .img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0;
}
.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .img-container img {
    transform: scale(1.06);
}

/* Discount Badge styling */
.badge-discount {
    background-color: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 12px;
}

/* Timing stock indicator badges */
.badge-stock-low {
    font-size: 0.7rem;
    background-color: rgba(247, 188, 6, 0.15);
    color: #b25e00;
}
.badge-stock-out {
    font-size: 0.7rem;
    background-color: rgba(234, 44, 54, 0.1);
    color: var(--accent-red);
}

/* WhatsApp Floating widget button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(12, 131, 31, 0.3);
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(12, 131, 31, 0.45);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f9f9; 
}
::-webkit-scrollbar-thumb {
    background: #dcdcdc; 
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c1c1c1; 
}

/* Testimonial slider cards */
.review-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    background-color: #fff;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Responsiveness & Scroll Overflows Prevention */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Desktop Search Bar UI Adjustments */
.search-input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    background: #f8f9fa;
}

/* Hover Dropdown */
@media (min-width: 992px) {
    .dropdown-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
.search-input-group .form-control {
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.search-input-group .form-control:focus {
    box-shadow: none;
}
.search-input-group .btn-success {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    height: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.65rem;
    color: #6c757d;
    transition: color 0.2s ease-in-out;
    padding: 6px 0;
}
.nav-tab-item i {
    font-size: 1.3rem;
    margin-bottom: 1px;
    transition: transform 0.2s ease;
}
.nav-tab-item.active-tab {
    color: var(--primary-color) !important;
    font-weight: 600;
}
.nav-tab-item.active-tab i {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

/* Left Sidebar Menu Drawer (Offcanvas) */
.offcanvas-start {
    width: 295px !important;
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.drawer-profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 1.5rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.drawer-menu-list .list-group-item {
    border: none;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition-smooth);
    border-radius: 8px;
    margin-bottom: 2px;
}
.drawer-menu-list .list-group-item:hover,
.drawer-menu-list .list-group-item.active {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
}
.drawer-menu-list .list-group-item i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    width: 24px;
    display: inline-block;
    text-align: center;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px; /* Space for fixed bottom tabs */
    }
}

/* Global Theme Transition */
body, .bg-white, .card, .dropdown-menu, .offcanvas, .modal-content, h1, h2, h3, h4, h5, h6, .text-dark, .text-secondary, .text-muted, .border, .list-group-item {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Palette Overrides (Tailored Slate Theme) */
body.dark-theme {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}
body.dark-theme .bg-white,
body.dark-theme .card,
body.dark-theme .dropdown-menu,
body.dark-theme .offcanvas,
body.dark-theme .modal-content,
body.dark-theme .modal-header,
body.dark-theme .modal-footer {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}
body.dark-theme .navbar {
    background-color: #1e293b !important;
}
body.dark-theme .text-dark,
body.dark-theme .navbar-brand,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #f8fafc !important;
}
body.dark-theme .text-secondary,
body.dark-theme .text-muted {
    color: #94a3b8 !important;
}
body.dark-theme .border,
body.dark-theme .border-top,
body.dark-theme .border-bottom,
body.dark-theme .border-start,
body.dark-theme .border-end,
body.dark-theme .dropdown-divider {
    border-color: #334155 !important;
}
body.dark-theme .list-group-item {
    background-color: transparent !important;
    color: #94a3b8 !important;
}
body.dark-theme .list-group-item:hover {
    background-color: rgba(12, 131, 31, 0.12) !important;
    color: #4ade80 !important;
}
body.dark-theme .search-input-group {
    background: #1e293b !important;
    border-color: #475569 !important;
}
body.dark-theme .search-input-group input {
    color: #f8fafc !important;
}
body.dark-theme .bg-light {
    background-color: #334155 !important;
}
body.dark-theme .btn-light {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}
body.dark-theme .btn-light:hover {
    background-color: #475569 !important;
    color: #f8fafc !important;
}
body.dark-theme .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95) !important;
    border-top-color: #334155 !important;
}
body.dark-theme .nav-tab-item {
    color: #94a3b8;
}
body.dark-theme .nav-tab-item.active-tab {
    color: #4ade80 !important;
}
body.dark-theme .nav-tab-item.active-tab i {
    color: #4ade80 !important;
}

/* Premium Social Sign-in Buttons */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
}
.btn-google:hover {
    background-color: #f8fafe;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}
body.dark-theme .btn-google {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}
body.dark-theme .btn-google:hover {
    background-color: #334155;
}

/* Safe Area Spacers & Padding */
@media (max-width: 991px) {
    .mobile-header-sticky-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1020;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.dark-theme .mobile-header-sticky-wrapper {
        background: #1e293b !important;
        border-bottom: 1px solid #334155;
        box-shadow: none;
    }
    body {
        padding-top: calc(env(safe-area-inset-top, 0px) + 112px) !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 68px) !important;
        transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.header-is-scrolled {
        padding-top: calc(env(safe-area-inset-top, 0px) + 60px) !important;
    }

    /* Transition layout to single line when scrolled */
    .scrolled-header {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }
    .scrolled-header .mobile-header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    .scrolled-header .header-top-row {
        display: contents !important;
        border-bottom: none !important;
        padding: 0 !important;
    }
    .scrolled-header .header-menu-logo-wrapper {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-brand-name {
        display: none !important;
    }
    
    /* Shrink search input container to ~22% width on scroll */
    .scrolled-header .header-search-row {
        order: 2 !important;
        width: 22% !important;
        max-width: 96px !important;
        padding: 0 !important;
        border-bottom: none !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-search-row button[type="submit"],
    .scrolled-header .header-search-row button[onclick="startVoiceSearch()"] {
        display: none !important;
    }
    .scrolled-header .search-input-group {
        border-radius: 30px !important;
        border-color: #cbd5e1 !important;
    }
    .scrolled-header .search-input-group input {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.4rem !important;
        text-align: center !important;
    }
    .scrolled-header .search-input-group .input-group-text {
        padding: 0.3rem 0.2rem 0.3rem 0.4rem !important;
        font-size: 0.72rem !important;
    }
    
    /* Keep location selector on header single line */
    .scrolled-header .header-location-box {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        justify-content: center !important;
    }
    .scrolled-header .header-location-box .btn {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .scrolled-header .header-location-box .bi-geo-alt-fill {
        font-size: 1.1rem !important;
        margin-top: -2px !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-location-box #headerMobileLocationLabel {
        font-size: 0.72rem !important;
        max-width: 70px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
    }

    /* Cart at the far right */
    .scrolled-header .header-cart-box {
        order: 4 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
}

/* Skeleton Loader & Shimmer Animation */
.shimmer-bg {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmerEffect 1.4s infinite linear;
}
@keyframes shimmerEffect {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Touch Feedback Active Press animations */
.btn-success:active, 
.btn-outline-success:active, 
.nav-tab-item:active,
.category-scroll-item:active,
.pdp-variant-chip:active {
    transform: scale(0.95) !important;
    opacity: 0.85;
}

/* Premium smooth transitions */
.carousel-item {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fallback Splash Screen Fade Out (Prevents infinite loading loops if JS fails) */
#pwa-splash-screen {
    animation: fadeOutSplash 0.4s forwards !important;
    animation-delay: 1.5s !important;
    animation-iteration-count: 1 !important;
}
@keyframes fadeOutSplash {
    to {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}


/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active {
    color: var(--primary-color);
}

/* Mobile Sticky Bottom Action Bar for PDP */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 1010;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Category Grid Layout styling */
.jbola-category-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(80px, 1fr);
    gap: 16px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jbola-category-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .jbola-category-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 32px;
    }
}

.jbola-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
}

.jbola-category-img-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .jbola-category-img-box {
        width: 100px;
        height: 100px;
    }
}

.jbola-category-item:hover .jbola-category-img-box {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.jbola-category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jbola-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #4b5563;
}
@media (min-width: 768px) {
    .jbola-category-title {
        font-size: 0.95rem;
        font-weight: 700;
    }
}

/* Horizontal Product Sliders (Native App Feel) */
.horizontal-product-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
}
.horizontal-product-slider::-webkit-scrollbar {
    display: none;
}
.horizontal-product-slider > div {
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
@media (max-width: 767px) {
    .horizontal-product-slider > div {
        min-width: 160px;
        max-width: 160px;
    }
}

/* Flash Deals Timer */
.flash-timer-box {
    background-color: #fff9c4;
    color: #f57f17;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.flash-timer-box span {
    background: #fff;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: #f57f17;
}

/* Jbola specific layouts */
.jbola-header-search-container {
    background: #f3f4f6;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 4px 16px;
    width: 100%;
/* Mobile Native App Layout Overrides */
@media (max-width: 991.98px) {
    /* Categories Grid to Horizontal Scroll */
    .jbola-category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.8rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .jbola-category-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .jbola-category-item {
        flex: 0 0 auto;
        width: 80px;
        scroll-snap-align: start;
    }

    /* Product Cards Horizontal Slider */
    .horizontal-product-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -1rem; /* Edge to edge */
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .horizontal-product-slider::-webkit-scrollbar {
        display: none;
    }
    .horizontal-product-slider .slider-item {
        flex: 0 0 auto;
        width: 160px; /* Mobile product card width */
        scroll-snap-align: start;
    }
}

/* Desktop Fallbacks for horizontal slider */
@media (min-width: 992px) {
    .horizontal-product-slider {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .horizontal-product-slider .slider-item {
        flex: 0 0 calc(25% - 1.125rem);
    }
}

/* Perfecting Bottom Nav for Mobile App feel */
.mobile-bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
}
.mobile-bottom-nav-item {
    color: #6b7280;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mobile-bottom-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.2s;
}
.mobile-bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
}
.mobile-bottom-nav-item.active {
    color: var(--primary-color) !important;
    background: rgba(12, 131, 31, 0.08);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.12);
    padding: 6px 16px;
    border-radius: 18px;
    margin: -6px 0;
    backdrop-filter: blur(5px);
}
.mobile-bottom-nav-item.active i {
    transform: scale(1.15);
}
.mobile-bottom-nav-item:active {
    transform: scale(0.9);
}

/* Hide breadcrumbs on mobile */
@media (max-width: 991.98px) {
    .breadcrumb, nav[aria-label="breadcrumb"] {
        display: none !important;
    }
}

/* Global override to hide number input spinners everywhere */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ========================================================
   FLY-TO-CART & CART BOUNCE ANIMATION EFFECTS
   ======================================================== */
@keyframes cartBouncePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
    30% { transform: scale(1.35) rotate(-6deg); color: var(--theme-primary) !important; }
    50% { transform: scale(1.4) rotate(6deg); box-shadow: 0 0 20px rgba(22, 163, 74, 0.6); }
    75% { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes badgePopEffect {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); background-color: #22c55e !important; }
    100% { transform: scale(1); }
}

.cart-bounce-effect {
    animation: cartBouncePulse 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
}

.badge-pop-effect {
    animation: badgePopEffect 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Premium Floating Glassmorphic Toast */
#cart-toast-container {
    pointer-events: none;
}
#cart-toast-container .toast-notification {
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(17, 24, 39, 0.94) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(22, 163, 74, 0.25);
}

