/* ==========================================================================
   NOGOD BAZAR (নগদ বাজার) - FRESH GREENERY 3D DESIGN SYSTEM
   Fresh Organic Aesthetics, Glassmorphism, 3D Elevation & Micro-Interactions
   ========================================================================== */

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

:root {
    --primary: #16a34a !important;
    --hov-primary: #15803d !important;
    --soft-primary: rgba(22, 163, 74, 0.12) !important;
    --secondary-base: #22c55e !important;
    
    --uss-font-main: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --uss-font-heading: 'Outfit', 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    
    /* Fresh Greenery Color Matrix */
    --uss-primary: #16a34a;
    --uss-primary-dark: #15803d;
    --uss-primary-light: #22c55e;
    --uss-primary-gradient: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
    --uss-accent-lime: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    --uss-accent-fire: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --uss-accent-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --uss-accent-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    
    /* 3D Realistic Elevation Shadows */
    --uss-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --uss-shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --uss-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --uss-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --uss-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.16);
    --uss-shadow-3d-lift: 0 20px 35px -10px rgba(22, 163, 74, 0.25), 0 8px 15px -5px rgba(15, 23, 42, 0.08);
    --uss-shadow-glow: 0 0 20px rgba(34, 197, 94, 0.4);
    --uss-shadow-fire-glow: 0 8px 20px rgba(249, 115, 22, 0.35);
    
    /* Glassmorphism Specs */
    --uss-glass-bg: rgba(255, 255, 255, 0.85);
    --uss-glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --uss-glass-blur: blur(16px);
    
    /* Surface & Borders */
    --uss-surface-bg: #f8fafc;
    --uss-border-subtle: #e2e8f0;
    --uss-border-highlight: rgba(255, 255, 255, 0.9);
    --uss-radius-sm: 8px;
    --uss-radius-md: 14px;
    --uss-radius-lg: 20px;
    --uss-radius-xl: 28px;
    --uss-radius-pill: 9999px;
}

/* Global Theme Color Overrides for Fresh Greenery */
.text-primary { color: #16a34a !important; }
.hov-text-primary:hover { color: #15803d !important; }
.bg-primary { background-color: #16a34a !important; }
.btn-primary { 
    background-color: #16a34a !important; 
    border-color: #16a34a !important; 
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3) !important;
}
.btn-primary:hover, .btn-primary:focus { 
    background-color: #15803d !important; 
    border-color: #15803d !important; 
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45) !important;
}

/* Global Typography & Smooth Rendering */
body {
    font-family: var(--uss-font-main) !important;
    background-color: var(--uss-surface-bg) !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .fw-700, .fw-600 {
    font-family: var(--uss-font-heading);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   1. NAVIGATION & FLOATING GLASS HEADER
   ========================================================================== */
.sticky-top, header.sticky-top {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Pill Search Bar */
.position-relative .input-group, 
.front-header-search {
    border-radius: var(--uss-radius-pill) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    transition: all 0.25s ease;
}

.position-relative .input-group:focus-within,
.front-header-search:focus-within {
    border-color: var(--uss-primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--uss-shadow-md) !important;
    transform: translateY(-1px);
}

.position-relative .input-group input.form-control {
    border: none !important;
    border-radius: var(--uss-radius-pill) 0 0 var(--uss-radius-pill) !important;
    padding-left: 20px !important;
    font-size: 14px !important;
    background: transparent !important;
}

.position-relative .input-group input.form-control:focus {
    box-shadow: none !important;
}

.position-relative .input-group .btn-primary {
    border-radius: var(--uss-radius-pill) !important;
    margin: 3px !important;
    padding: 8px 22px !important;
    background: var(--uss-primary-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease;
}

.position-relative .input-group .btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

/* Header Animated Glowing Badges */
.nav-cart-box .badge,
.nav-wishlist-box .badge,
.badge-circle {
    background: var(--uss-accent-fire) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    animation: badgePulse 2.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   2. 3D PRODUCT CARDS & GRID
   ========================================================================== */
.aiz-card-box, 
.product-box-1, 
.bg-white.hov-scale-img {
    border-radius: var(--uss-radius-md) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: var(--uss-shadow-sm) !important;
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform: translateZ(0);
}

.aiz-card-box:hover,
.product-box-1:hover {
    transform: translateY(-7px) scale(1.015) !important;
    box-shadow: var(--uss-shadow-3d-lift) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    z-index: 5;
}

.aiz-card-box .img-fit img,
.product-box-1 img {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    border-radius: var(--uss-radius-sm);
}

.aiz-card-box:hover .img-fit img,
.product-box-1:hover img {
    transform: scale(1.07);
}

/* 3D Discount Badge */
.aiz-card-box .absolute-top-left,
.product-box-1 .absolute-top-left {
    border-radius: 0 var(--uss-radius-sm) var(--uss-radius-sm) 0 !important;
    background: var(--uss-accent-fire) !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 3px 10px !important;
}

/* Tactile Wishlist & Compare Floating Buttons */
.aiz-p-hov-icon a {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;
    margin-bottom: 6px !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.aiz-p-hov-icon a:hover {
    background: var(--uss-primary) !important;
    transform: scale(1.15) !important;
}

.aiz-p-hov-icon a:hover svg path,
.aiz-p-hov-icon a:hover i {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Slide-Up 3D Add to Cart Button */
.cart-btn.absolute-bottom-left {
    background: var(--uss-primary-gradient) !important;
    border-radius: 0 0 var(--uss-radius-md) var(--uss-radius-md) !important;
    box-shadow: 0 -4px 12px rgba(37, 99, 235, 0.25) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    transition: all 0.25s ease !important;
}

.cart-btn.absolute-bottom-left:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    box-shadow: 0 -6px 18px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   3. VALUE PROPOSITIONS & TRUST STRIP
   ========================================================================== */
.uss-trust-badge {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--uss-radius-md);
    padding: 18px 20px;
    box-shadow: var(--uss-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uss-trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--uss-shadow-md);
    border-color: var(--uss-primary);
}

.uss-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--uss-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   4. AUTH & LOGIN PAGES - 3D SWIMMING & LIQUID GLASS OVERHAUL
   ========================================================================== */
.auth-3d-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #e0f2fe, #f0f9ff, #f8fafc, #eff6ff, #dbeafe);
    background-size: 400% 400%;
    animation: liquidBackground 14s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

@keyframes liquidBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   4. AUTH & LOGIN PAGES - BESPOKE EMERALD GLASS NEOMORPHISM OVERHAUL
   ========================================================================== */
.auth-3d-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #064e3b 0%, #022c22 45%, #011c16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
}

/* Futuristic Background Cyber Mesh Grid */
.auth-3d-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Luminous Floating Neon Orbs */
.auth-3d-container::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 75%);
    top: -10%;
    right: -5%;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: swimOrb1 16s ease-in-out infinite alternate;
    z-index: 1;
}

/* Bespoke Floating Glass Card */
.auth-3d-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(34, 197, 94, 0.25),
        0 0 50px rgba(34, 197, 94, 0.2);
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: swimmingCard 8s ease-in-out infinite;
    transform-origin: center center;
    transition: all 0.4s ease;
}

.auth-3d-card:hover {
    animation-play-state: paused;
    box-shadow: 
        0 40px 90px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1.5px rgba(74, 222, 128, 0.4),
        0 0 70px rgba(34, 197, 94, 0.35);
}

/* Organic Swimming Float Keyframes */
@keyframes swimmingCard {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(0.35deg);
    }
    50% {
        transform: translateY(-4px) rotate(-0.3deg);
    }
    75% {
        transform: translateY(-12px) rotate(0.25deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Left Hero Showcase in Dark Emerald Forest */
.auth-showcase-panel {
    background: linear-gradient(160deg, #064e3b 0%, #042f2e 50%, #022c22 100%);
    padding: 48px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 60%);
    pointer-events: none;
    animation: swimOrb1 14s ease-in-out infinite alternate;
}

/* Live Market Pulse Chip */
.live-pulse-chip {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #86efac;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: livePulseAnim 1.6s ease-in-out infinite;
}

@keyframes livePulseAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
}

/* Bento Grid Tiles on Showcase */
.bento-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.bento-tile {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bento-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
}

.bento-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.bento-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.auth-form-panel {
    padding: 48px;
    background: #ffffff;
}

/* Quick 1-Click Demo Credential Pills */
.demo-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.demo-btn-pill {
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.demo-btn-pill.admin { 
    border-color: #3b82f6; 
    background: rgba(59, 130, 246, 0.08); 
    color: #1d4ed8; 
}
.demo-btn-pill.customer { 
    border-color: #16a34a; 
    background: rgba(22, 163, 74, 0.08); 
    color: #15803d; 
}
.demo-btn-pill.seller { 
    border-color: #f97316; 
    background: rgba(249, 115, 22, 0.08); 
    color: #c2410c; 
}

/* Tactile 3D Buttons */
.btn-3d-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-3d-primary:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45) !important;
}

.btn-3d-primary:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
}

/* Modern Input Controls with Floating Feel */
.form-control {
    border-radius: var(--uss-radius-md) !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: var(--uss-primary) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS & TOUCH TARGETS
   ========================================================================== */
@media (max-width: 991.98px) {
    .auth-showcase-panel {
        padding: 32px 24px;
        min-height: 220px;
    }
    .auth-form-panel {
        padding: 32px 24px;
    }
    .aiz-card-box:hover {
        transform: translateY(-3px) !important;
    }
}

@media (max-width: 575.98px) {
    .auth-3d-card {
        border-radius: var(--uss-radius-lg);
    }
    .auth-form-panel {
        padding: 24px 16px;
    }
    .btn-3d-primary {
        width: 100%;
        padding: 12px 20px !important;
    }
}

/* Featured Category Cards */
.featured-cat-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
}
.featured-cat-card:hover {
    transform: translateY(-5px) !important;
    border-color: #86efac !important;
    box-shadow: 0 16px 30px -6px rgba(22, 163, 74, 0.16) !important;
}
.featured-cat-card:hover img {
    transform: scale(1.05) !important;
}

