/* ==========================================================================
   Balaji Construction Materials - Modern Animation & Visual Design System
   High-end agency aesthetics, fluid micro-interactions & mobile ergonomics
   ========================================================================== */

:root {
    /* Brand Theme - Emerald, Sea Green & Forest Green */
    --bj-primary: #2E8B57;
    --bj-primary-dark: #1E6B3F;
    --bj-primary-deep: #144D2C;
    --bj-primary-light: #3CB371;
    --bj-accent: #10B981;
    --bj-accent-bright: #34D399;
    --bj-accent-gold: #F59E0B;
    
    /* Soft tints & surfaces */
    --bj-surface: #FFFFFF;
    --bj-surface-muted: #F8FAF9;
    --bj-surface-mint: #F0FDF4;
    --bj-surface-glass: rgba(255, 255, 255, 0.88);
    --bj-surface-glass-dark: rgba(20, 77, 44, 0.92);
    
    /* Borders & Hairlines */
    --bj-border: rgba(46, 139, 87, 0.15);
    --bj-border-light: rgba(0, 0, 0, 0.06);
    --bj-border-focus: #10B981;
    
    /* Text Hierarchy */
    --bj-text-title: #0F2417;
    --bj-text-body: #2C3E35;
    --bj-text-muted: #64748B;
    --bj-text-light: #94A3B8;
    
    /* Shadows with colored ambient bounce */
    --bj-shadow-sm: 0 2px 8px rgba(46, 139, 87, 0.08);
    --bj-shadow-md: 0 8px 24px -4px rgba(46, 139, 87, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    --bj-shadow-lg: 0 16px 36px -6px rgba(46, 139, 87, 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    --bj-shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
    
    /* Physics Easing Curves */
    --bj-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --bj-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --bj-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --bj-transition-fast: 0.2s var(--bj-ease-out);
    --bj-transition-normal: 0.35s var(--bj-ease-spring);
    --bj-transition-smooth: 0.55s var(--bj-ease-spring);
}

/* --------------------------------------------------------------------------
   Typography Enhancement
   -------------------------------------------------------------------------- */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F8FAF9;
    color: var(--bj-text-body);
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes bjFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bjFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bjScaleUp {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bjSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bjFloatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes bjRadarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes bjBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

@keyframes bjShimmerSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* --------------------------------------------------------------------------
   Scroll Reveal System (IntersectionObserver powered)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--bj-ease-spring), transform 0.65s var(--bj-ease-spring);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered lists */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--bj-ease-spring), transform 0.5s var(--bj-ease-spring);
}

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(8) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Header & Navigation Glass Elevation
   -------------------------------------------------------------------------- */
.main-header {
    background: var(--bj-surface-glass) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--bj-border) !important;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.06) !important;
    transition: all 0.3s ease !important;
}

.main-header.scrolled {
    box-shadow: 0 8px 28px rgba(46, 139, 87, 0.12) !important;
    border-bottom-color: rgba(46, 139, 87, 0.25) !important;
}

.top-bar {
    background: linear-gradient(90deg, #184e2e 0%, #228B22 50%, #1E6B3F 100%) !important;
    letter-spacing: 0.2px;
}

.top-bar a {
    transition: all 0.25s var(--bj-ease-spring) !important;
}

.top-bar a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18) !important;
}

.main-nav {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(46, 139, 87, 0.1) !important;
}

.nav-menu > li > a {
    position: relative;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.1px;
    transition: all 0.25s var(--bj-ease-spring) !important;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bj-primary), var(--bj-accent));
    border-radius: 3px 3px 0 0;
    transition: all 0.28s var(--bj-ease-spring);
    transform: translateX(-50%);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
    width: 80%;
}

.nav-menu > li:hover > a {
    color: var(--bj-primary) !important;
    background: rgba(46, 139, 87, 0.04) !important;
}

/* Search bar styling */
.search-bar form {
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 2px solid rgba(46, 139, 87, 0.2);
    border-radius: 30px;
    padding: 3px;
    transition: all 0.3s var(--bj-ease-spring);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.search-bar form:focus-within {
    border-color: var(--bj-primary);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.15), var(--bj-shadow-md);
    transform: translateY(-1px);
}

.search-bar input {
    border: none !important;
    outline: none !important;
    padding: 10px 18px !important;
    font-size: 14px;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

.search-bar button {
    background: linear-gradient(135deg, var(--bj-primary), var(--bj-primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--bj-ease-spring) !important;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(46, 139, 87, 0.3);
}

.search-bar button:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(46, 139, 87, 0.45);
}

/* --------------------------------------------------------------------------
   Hero & Slider Animated Elevation
   -------------------------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    padding: 16px 0 0;
}

.hero-slider-container {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: var(--bj-shadow-lg) !important;
    border: 1px solid rgba(46, 139, 87, 0.15) !important;
    position: relative;
}

.hero-slide {
    transition: opacity 0.6s ease-in-out, transform 0.6s var(--bj-ease-spring) !important;
}

.slider-nav {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(46, 139, 87, 0.2) !important;
    color: var(--bj-primary-dark) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s var(--bj-ease-spring) !important;
}

.slider-nav:hover {
    background: var(--bj-primary) !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: var(--bj-shadow-glow) !important;
}

.slider-dots .dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s var(--bj-ease-spring) !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.slider-dots .dot.active {
    width: 28px !important;
    background: var(--bj-accent) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8) !important;
}

/* SEO H1 Heading Strip */
.seo-h1-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%) !important;
    border-bottom: 2px solid rgba(46, 139, 87, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.seo-h1-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: bjShimmerSweep 5s infinite ease-in-out;
}

.seo-homepage-h1 {
    color: var(--bj-primary-deep) !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}

/* --------------------------------------------------------------------------
   Hero Featured / Brands Strip
   -------------------------------------------------------------------------- */
.hero-featured-section {
    padding: 24px 0 !important;
}

.hero-featured-item {
    border: 1px solid rgba(46, 139, 87, 0.12) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: var(--bj-shadow-sm) !important;
    transition: all 0.3s var(--bj-ease-spring) !important;
    position: relative;
    overflow: hidden;
}

.hero-featured-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--bj-shadow-md) !important;
    border-color: var(--bj-primary) !important;
}

.hero-featured-icon {
    transition: transform 0.3s var(--bj-ease-spring);
}

.hero-featured-item:hover .hero-featured-icon {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Product Cards - Modern Double-Bezel & Micro-Interactions
   -------------------------------------------------------------------------- */
.product-card-compact {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(46, 139, 87, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.32s var(--bj-ease-spring) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card-compact:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--bj-shadow-lg) !important;
    border-color: rgba(46, 139, 87, 0.35) !important;
}

.product-img-compact {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
    background: #F8FAF9;
}

.product-img-compact img {
    transition: transform 0.5s var(--bj-ease-spring) !important;
}

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

.sale-tag {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Order Now CTA Button */
.btn-order-now {
    background: linear-gradient(135deg, #228B22 0%, #2E8B57 50%, #10B981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.3) !important;
    transition: all 0.25s var(--bj-ease-spring) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-order-now::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-order-now:hover::after {
    left: 140%;
}

.btn-order-now:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.45) !important;
}

.btn-order-now:active {
    transform: scale(0.97) !important;
}

.btn-order-now i {
    transition: transform 0.2s var(--bj-ease-spring);
}

.btn-order-now:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Filter Tabs */
.product-filter-tabs {
    background: #F1F5F3;
    padding: 4px;
    border-radius: 30px;
    display: inline-flex;
    gap: 4px;
}

.filter-tab {
    border: none !important;
    background: transparent !important;
    padding: 8px 20px !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: var(--bj-text-muted) !important;
    cursor: pointer;
    transition: all 0.25s var(--bj-ease-spring) !important;
}

.filter-tab.active {
    background: var(--bj-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(46, 139, 87, 0.3) !important;
}

.filter-tab:hover:not(.active) {
    color: var(--bj-primary) !important;
    background: rgba(46, 139, 87, 0.08) !important;
}

/* Tab content animation */
.product-tab-content {
    display: none;
    animation: bjFadeUp 0.4s var(--bj-ease-spring);
}

.product-tab-content.active {
    display: block;
}

/* --------------------------------------------------------------------------
   Supply & Category Section
   -------------------------------------------------------------------------- */
.seo-supply-item {
    border-radius: 16px !important;
    transition: all 0.3s var(--bj-ease-spring) !important;
    position: relative;
    box-shadow: var(--bj-shadow-sm) !important;
}

.seo-supply-item:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: var(--bj-shadow-md) !important;
}

/* Trust Badges */
.feature-item {
    border-radius: 16px !important;
    border: 1px solid rgba(46, 139, 87, 0.1) !important;
    transition: all 0.3s var(--bj-ease-spring) !important;
    box-shadow: var(--bj-shadow-sm) !important;
}

.feature-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--bj-shadow-md) !important;
    border-color: var(--bj-primary) !important;
}

.feature-icon {
    transition: transform 0.3s var(--bj-ease-spring) !important;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   WhatsApp Floating Widget - Animated Pulse
   -------------------------------------------------------------------------- */
#wa-widget #wa-btn {
    animation: bjRadarPulse 2.5s infinite;
    transition: transform 0.25s var(--bj-ease-spring), box-shadow 0.25s ease !important;
}

#wa-widget #wa-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6) !important;
}

#wa-box {
    animation: bjScaleUp 0.3s var(--bj-ease-spring);
}

/* --------------------------------------------------------------------------
   Mobile App-Like Floating Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.mobile-app-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(46, 139, 87, 0.18);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9990;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
}

.mobile-app-bottom-bar .bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-app-bottom-bar .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s var(--bj-ease-spring);
    position: relative;
    min-width: 54px;
}

.mobile-app-bottom-bar .bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
    transition: transform 0.2s var(--bj-ease-spring);
}

.mobile-app-bottom-bar .bottom-nav-item:hover,
.mobile-app-bottom-bar .bottom-nav-item.active {
    color: var(--bj-primary);
}

.mobile-app-bottom-bar .bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--bj-primary);
}

.mobile-app-bottom-bar .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 16px;
    height: 3px;
    background: var(--bj-primary);
    border-radius: 2px;
}

.mobile-app-bottom-bar .bottom-nav-item.highlight-order {
    background: linear-gradient(135deg, #228B22, #10B981);
    color: #ffffff !important;
    border-radius: 20px;
    padding: 6px 14px;
    box-shadow: 0 3px 10px rgba(46, 139, 87, 0.35);
}

.mobile-app-bottom-bar .bottom-nav-item.highlight-order i {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Mobile Slide Menu Elevation
   -------------------------------------------------------------------------- */
.slide-menu-drawer {
    background: #ffffff !important;
    border-right: 1px solid rgba(46, 139, 87, 0.15) !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18) !important;
}

.slide-menu-header {
    background: linear-gradient(135deg, #184e2e 0%, #2E8B57 100%) !important;
    padding: 16px 20px !important;
}

.slide-menu-nav li a {
    font-weight: 600 !important;
    color: var(--bj-text-title) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 14px 20px !important;
    transition: all 0.2s ease !important;
}

.slide-menu-nav li a:hover {
    background: var(--bj-surface-mint) !important;
    color: var(--bj-primary) !important;
    padding-left: 24px !important;
}

/* --------------------------------------------------------------------------
   User & Dashboard Ease & Friendly Experience (Styles)
   -------------------------------------------------------------------------- */
.user-dashboard-wrapper {
    padding: 32px 0 60px;
    min-height: 80vh;
}

.user-dashboard-hero {
    background: linear-gradient(135deg, #1A4D2E 0%, #2E8B57 50%, #10B981 100%);
    border-radius: 24px;
    padding: 36px 32px;
    color: #ffffff;
    box-shadow: var(--bj-shadow-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.user-dashboard-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.user-hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.user-hero-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.user-hero-info h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff !important;
}

.user-hero-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.user-hero-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
}

.user-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--bj-ease-spring);
}

.btn-hero-action.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-hero-action.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.btn-hero-action.btn-outline-white {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-action.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* User Quick Stats Cards */
.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.user-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: var(--bj-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s var(--bj-ease-spring);
}

.user-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bj-shadow-md);
    border-color: var(--bj-primary);
}

.user-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.user-stat-icon.icon-orders {
    background: #EBF5FF;
    color: #2563EB;
}

.user-stat-icon.icon-pending {
    background: #FEF3C7;
    color: #D97706;
}

.user-stat-icon.icon-delivered {
    background: #D1FAE5;
    color: #059669;
}

.user-stat-icon.icon-help {
    background: #F3E8FF;
    color: #7C3AED;
}

.user-stat-details h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--bj-text-title);
}

.user-stat-details p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--bj-text-muted);
}

/* User Dashboard Main Layout */
.user-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.user-dashboard-nav-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: var(--bj-shadow-sm);
    position: sticky;
    top: 90px;
}

.user-dashboard-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--bj-text-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s var(--bj-ease-spring);
    font-family: inherit;
}

.user-tab-btn i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    color: var(--bj-text-muted);
    transition: color 0.2s;
}

.user-tab-btn:hover {
    background: var(--bj-surface-mint);
    color: var(--bj-primary);
}

.user-tab-btn:hover i {
    color: var(--bj-primary);
}

.user-tab-btn.active {
    background: linear-gradient(135deg, var(--bj-primary) 0%, var(--bj-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.3);
}

.user-tab-btn.active i {
    color: #ffffff;
}

.user-dashboard-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: var(--bj-shadow-sm);
    display: none;
    animation: bjFadeUp 0.35s var(--bj-ease-spring);
}

.user-dashboard-panel.active {
    display: block;
}

/* Orders Card in Dashboard */
.order-card-item {
    background: #FBFDFB;
    border-radius: 16px;
    border: 1px solid rgba(46, 139, 87, 0.15);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s var(--bj-ease-spring);
}

.order-card-item:hover {
    border-color: var(--bj-primary);
    box-shadow: var(--bj-shadow-md);
    background: #ffffff;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.order-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--bj-text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-processing { background: #DBEAFE; color: #1E40AF; }
.status-shipped { background: #E0E7FF; color: #3730A3; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* --------------------------------------------------------------------------
   Admin Dashboard Usability & Mobile Sidebar Drawer
   -------------------------------------------------------------------------- */
.admin-mobile-toggle-btn {
    display: none;
    background: var(--bj-primary);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    transition: all 0.2s ease;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .user-dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .user-dashboard-nav-card {
        position: static;
    }
    
    .user-dashboard-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .user-tab-btn {
        white-space: nowrap;
        width: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 74px; /* Space for mobile app bottom bar */
    }
    
    .mobile-app-bottom-bar {
        display: block;
    }
    
    #wa-widget {
        bottom: 84px !important; /* Move above bottom app bar */
        right: 16px !important;
    }
    
    #wa-widget #wa-btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    #wa-widget #wa-btn i {
        font-size: 26px !important;
    }
    
    .products-sidebar-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .sidebar-featured {
        order: 2;
    }
    
    .main-products-area {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-details-compact h3 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        min-height: 34px;
    }
    
    .btn-order-now {
        font-size: 12px !important;
        padding: 9px 8px !important;
        min-height: 40px !important;
    }
    
    .user-dashboard-hero {
        padding: 24px 18px;
        border-radius: 18px;
    }
    
    .user-hero-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .user-hero-info h1 {
        font-size: 20px;
    }
    
    .user-dashboard-panel {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    /* Admin mobile ergonomics */
    .admin-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050 !important;
        transform: translateX(-100%);
        transition: transform 0.3s var(--bj-ease-spring);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .admin-mobile-toggle-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card-compact {
        border-radius: 12px !important;
    }
    
    .user-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .user-stat-card {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   Accessibility - Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-on-scroll,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
