/* ============================================================
   LPUQuick — Glassmorphism, Claymorphism & Liquid Glass Design System
   Modern, Ultra-Smooth, Responsive & Tactile (Zepto / Blinkit / Apple Luxury)
   ============================================================ */

:root {
    /* Base Colors & Surfaces */
    --bg-primary: #f0f4f9;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-surface-elevated: rgba(255, 255, 255, 0.9);
    --bg-surface-secondary: rgba(241, 245, 249, 0.8);
    --border-color: rgba(226, 232, 240, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.65);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Emerald Brand Accent */
    --brand-emerald: #059669;
    --brand-emerald-dark: #047857;
    --brand-emerald-light: rgba(16, 185, 129, 0.12);
    --brand-emerald-border: rgba(16, 185, 129, 0.35);
    --brand-emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Glassmorphism Specs (Light Mode Apple / macOS Luxury) */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-hover: rgba(255, 255, 255, 0.88);
    --glass-border: 1px solid rgba(255, 255, 255, 0.85);
    --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.65);
    --glass-blur: blur(24px) saturate(190%);
    --glass-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
    --glass-shadow-hover: 0 18px 40px -4px rgba(15, 23, 42, 0.10), 0 6px 14px -2px rgba(0, 0, 0, 0.04), inset 0 1.5px 2px 0 rgba(255, 255, 255, 1);
    --glass-shadow-sm: 0 4px 14px -2px rgba(15, 23, 42, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    
    /* Claymorphism Specs (Light Mode Soft 3D Tactile) */
    --clay-bg: #f3f6fc;
    --clay-shadow: 7px 7px 16px rgba(166, 175, 195, 0.35), -7px -7px 16px rgba(255, 255, 255, 0.95), inset 2px 2px 4px rgba(255, 255, 255, 0.8), inset -2px -2px 4px rgba(0, 0, 0, 0.04);
    --clay-shadow-sm: 4px 4px 10px rgba(166, 175, 195, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.95), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.85), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.04);
    --clay-shadow-pressed: inset 3px 3px 6px rgba(166, 175, 195, 0.45), inset -3px -3px 6px rgba(255, 255, 255, 0.85);
    --clay-emerald-shadow: 5px 5px 14px rgba(5, 150, 105, 0.35), -3px -3px 10px rgba(255, 255, 255, 0.85), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.45), inset -2px -2px 4px rgba(4, 120, 87, 0.3);
    --clay-emerald-pressed: inset 3px 3px 6px rgba(4, 120, 87, 0.6), inset -2px -2px 4px rgba(255, 255, 255, 0.3);

    /* Liquid Glass Specs */
    --liquid-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 100%);
    --liquid-glow-emerald: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
    --liquid-glow-cyan: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 70%);

    --card-shadow: var(--glass-shadow);
    --card-shadow-hover: var(--glass-shadow-hover);
    
    --header-bg: rgba(255, 255, 255, 0.75);
    --nav-bg: rgba(255, 255, 255, 0.82);
    
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    
    --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   BASE & RESET
   ============================================================ */

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
}

.horizontal-slider,
.overflow-x-auto {
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.16) 0px, transparent 55%),
        radial-gradient(at 100% 10%, rgba(59, 130, 246, 0.14) 0px, transparent 55%),
        radial-gradient(at 50% 50%, rgba(168, 85, 247, 0.09) 0px, transparent 60%),
        radial-gradient(at 15% 90%, rgba(16, 185, 129, 0.12) 0px, transparent 55%),
        radial-gradient(at 90% 95%, rgba(245, 158, 11, 0.12) 0px, transparent 55%);
    background-attachment: fixed;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Material Symbols Outlined Icon Font Definition */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Prevent iOS Safari / Android Chrome Auto-Zoom */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
        touch-action: manipulation;
    }
}

button, a, [role="button"], .interactive-pill, .btn-action {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ambient Liquid Gradient Backdrop (Ultra lightweight CSS, 60fps) */
.ambient-liquid-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.5s ease;
}

.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
    animation: liquidDrift 18s ease-in-out infinite alternate;
}

.liquid-orb-1 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.03) 70%);
    top: -60px;
    left: -60px;
    animation-duration: 22s;
}

.liquid-orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.20) 0%, rgba(234, 88, 12, 0.02) 70%);
    top: 35%;
    right: -80px;
    animation-duration: 26s;
    animation-delay: -5s;
}

.liquid-orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0.02) 70%);
    bottom: 5%;
    left: 25%;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes liquidDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
    100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* ============================================================
   GLASSMORPHISM & CLAYMORPHISM SURFACES
   ============================================================ */

.brand-title {
    color: #047857 !important;
    font-weight: 800;
}

.text-primary {
    color: #059669 !important;
}

.bg-background {
    background-color: transparent !important;
}

/* Frosted Glass Panels */
.glass-panel,
.glass-card,
.bg-surface {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-smooth);
}

.glass-panel:hover,
.glass-card:hover {
    box-shadow: var(--glass-shadow-hover) !important;
}

/* Header & Bottom Nav Glassmorphism in Light Mode */
header {
    background: var(--header-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), inset 0 -1px 0 0 rgba(226, 232, 240, 0.5) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

nav.liquid-dock-pill {
    background: var(--nav-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}

/* Light Screen Product Card Glassmorphism */
.product-card-item {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 1.25rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-item:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: var(--glass-shadow-hover) !important;
}

/* Bento Highlights in Light Mode */
.bento-tile {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 1.25rem;
    transition: var(--transition-smooth);
}

.bento-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover) !important;
}

/* Floating Cart Capsule in Light Mode */
#floating-cart-bar {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(4, 120, 87, 0.92) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 14px 36px -4px rgba(6, 78, 59, 0.45), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.bg-surface-container-high {
    background: rgba(241, 245, 249, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.bg-surface-container-low,
.bg-surface-container-lowest {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.border-glass-border,
.border-surface-variant {
    border-color: var(--border-color) !important;
}

/* Claymorphic Tactile Elements */
.clay-card {
    background: var(--clay-bg) !important;
    border-radius: 1.25rem;
    box-shadow: var(--clay-shadow) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-smooth);
}

.clay-card:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 20px rgba(166, 175, 195, 0.4), -8px -8px 20px rgba(255, 255, 255, 1), inset 2px 2px 4px rgba(255, 255, 255, 0.9), inset -2px -2px 4px rgba(0, 0, 0, 0.04) !important;
}

.clay-pill {
    background: var(--clay-bg);
    border-radius: 9999px;
    box-shadow: var(--clay-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.clay-pill:hover {
    transform: translateY(-1px);
}

.clay-pill:active {
    box-shadow: var(--clay-shadow-pressed);
    transform: scale(0.97);
}

/* Claymorphic Buttons */
.clay-btn {
    background: var(--clay-bg);
    border-radius: 9999px;
    box-shadow: var(--clay-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.clay-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 5px 5px 12px rgba(166, 175, 195, 0.38), -5px -5px 12px rgba(255, 255, 255, 1);
}

.clay-btn:active {
    box-shadow: var(--clay-shadow-pressed);
    transform: translateY(1px) scale(0.98);
}

.clay-btn-primary {
    background: var(--brand-emerald-gradient) !important;
    color: #ffffff !important;
    border-radius: 9999px;
    box-shadow: var(--clay-emerald-shadow) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 800;
    transition: var(--transition-spring);
    cursor: pointer;
}

.clay-btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 6px 6px 18px rgba(5, 150, 105, 0.45), -4px -4px 12px rgba(255, 255, 255, 0.9) !important;
}

.clay-btn-primary:active {
    box-shadow: var(--clay-emerald-pressed) !important;
    transform: translateY(1px) scale(0.97);
}

/* Top Navigation Header (Frosted Liquid Glass) */
header {
    background: var(--header-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Floating Bottom Navigation Bar */
nav.liquid-dock-pill {
    background: var(--nav-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    border-radius: 9999px;
}

/* Floating Dynamic Island Top Navigation Capsule */
.dynamic-island-nav {
    position: sticky;
    top: 0.65rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: calc(100% - 1.25rem);
    z-index: 45;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    padding: 0.45rem 0.85rem;
    transition: var(--transition-smooth);
}

.dark .dynamic-island-nav {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Interactive Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.bento-tile {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.75rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.dark .bento-tile {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

/* Floating 3D Pedestal for Product Showcase */
.card-pedestal {
    background: radial-gradient(circle at 50% 110%, rgba(16, 185, 129, 0.12), transparent 70%), var(--clay-bg);
    border-radius: 1.25rem;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.04), inset -2px -2px 5px rgba(255,255,255,0.85);
    transition: var(--transition-smooth);
}

.dark .card-pedestal {
    background: radial-gradient(circle at 50% 110%, rgba(16, 185, 129, 0.18), transparent 70%), rgba(15, 23, 42, 0.8);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3), inset -1px -1px 3px rgba(255,255,255,0.05);
}

.product-card-item:hover .card-pedestal {
    transform: scale(1.03);
}

/* Category 3D Deck Cards */
.category-deck-card {
    background: var(--clay-bg);
    border-radius: 1.5rem;
    box-shadow: var(--clay-shadow-sm);
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transition-spring);
    cursor: pointer;
}

.dark .category-deck-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.category-deck-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 8px 8px 20px rgba(166, 175, 195, 0.4), -8px -8px 20px rgba(255, 255, 255, 1);
}

.category-deck-card.active {
    background: var(--brand-emerald-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--clay-emerald-shadow) !important;
}

/* Digital Student Campus Pass Card */
.student-pass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.90) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 2rem;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.dark .student-pass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

/* Tactile Clay Pills & Badges for Light & Dark Mode */
.clay-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), inset 0 1px 1px rgba(255, 255, 255, 1);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.dark .clay-pill {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.clay-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.dark .clay-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.liquid-badge {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.dark .liquid-badge {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.holographic-strip {
    height: 5px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6, #ec4899, #f59e0b, #10b981);
    background-size: 200% 100%;
    animation: holoShift 4s linear infinite;
}

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

/* ============================================================
   PRODUCT CARDS (HYBRID GLASS & CLAYMORPHISM)
   ============================================================ */

.product-card-item {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.product-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.product-card-item:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 16px 36px -4px rgba(31, 38, 135, 0.12), 0 6px 16px -2px rgba(0, 0, 0, 0.04), inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-4px) scale(1.01);
}

.product-detail-trigger {
    cursor: pointer;
}

/* Search inputs */
input {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    color: #0f172a !important;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

input:focus {
    background: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), inset 1px 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* ============================================================
   DARK MODE — FROSTED DEEP SLATE & LUMINOUS ACCENTS
   ============================================================ */

html.dark, body.dark {
    --bg-primary: #0b0f19;
    --bg-surface: rgba(17, 24, 39, 0.75);
    --bg-surface-elevated: rgba(30, 41, 59, 0.85);
    --bg-surface-secondary: rgba(30, 41, 59, 0.65);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --brand-emerald: #10b981;
    --brand-emerald-dark: #059669;
    --brand-emerald-light: rgba(16, 185, 129, 0.15);
    --brand-emerald-border: rgba(16, 185, 129, 0.35);
    
    --glass-bg: rgba(17, 24, 39, 0.72);
    --glass-bg-hover: rgba(30, 41, 59, 0.82);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --glass-blur: blur(20px) saturate(190%);
    --glass-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
    --glass-shadow-hover: 0 18px 44px -4px rgba(0, 0, 0, 0.65), 0 8px 18px -2px rgba(0, 0, 0, 0.4), inset 0 1px 2px 0 rgba(255, 255, 255, 0.25);
    
    --clay-bg: #161e2e;
    --clay-shadow: 6px 6px 16px rgba(0, 0, 0, 0.55), -4px -4px 12px rgba(255, 255, 255, 0.03), inset 1px 1px 2px rgba(255, 255, 255, 0.12), inset -2px -2px 4px rgba(0, 0, 0, 0.5);
    --clay-shadow-sm: 4px 4px 10px rgba(0, 0, 0, 0.45), -3px -3px 8px rgba(255, 255, 255, 0.03), inset 1px 1px 2px rgba(255, 255, 255, 0.1), inset -1px -1px 2px rgba(0, 0, 0, 0.4);
    --clay-shadow-pressed: inset 4px 4px 8px rgba(0, 0, 0, 0.7), inset -3px -3px 6px rgba(255, 255, 255, 0.05);

    --header-bg: rgba(11, 15, 25, 0.82);
    --nav-bg: rgba(17, 24, 39, 0.84);
}

body.dark {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    background-image: 
        radial-gradient(at 10% 15%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 20%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 85%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
}

body.dark header,
html.dark header {
    background: var(--header-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

body.dark nav.liquid-dock-pill,
html.dark nav.liquid-dock-pill {
    background: var(--nav-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

body.dark .glass-card,
body.dark .glass-panel,
body.dark .bg-surface,
html.dark .glass-card,
html.dark .glass-panel,
html.dark .bg-surface {
    background: var(--glass-bg) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    color: var(--text-primary) !important;
}

body.dark .bg-surface-container-high,
html.dark .bg-surface-container-high {
    background: rgba(30, 41, 59, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark .bg-surface-container-low,
body.dark .bg-surface-container-lowest,
html.dark .bg-surface-container-low,
html.dark .bg-surface-container-lowest {
    background: rgba(17, 24, 39, 0.6) !important;
    color: var(--text-primary) !important;
}

body.dark .product-card-item,
html.dark .product-card-item {
    background: var(--glass-bg) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}

body.dark .product-card-item:hover,
html.dark .product-card-item:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: var(--glass-shadow-hover) !important;
}

body.dark .text-on-surface,
html.dark .text-on-surface {
    color: var(--text-primary) !important;
}

body.dark .text-on-surface-variant,
html.dark .text-on-surface-variant {
    color: var(--text-secondary) !important;
}

body.dark .border-glass-border,
body.dark .border-surface-variant,
html.dark .border-glass-border,
html.dark .border-surface-variant {
    border-color: var(--border-color) !important;
}

body.dark .brand-title,
html.dark .brand-title {
    color: #34d399 !important;
}

body.dark .text-primary,
html.dark .text-primary {
    color: #34d399 !important;
}

input {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}

input:focus {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

body.dark input,
html.dark input {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark input:focus,
html.dark input:focus {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

/* ============================================================
   TACTILE CLAY & LIQUID GLASS INTERACTIVE BUTTONS
   ============================================================ */

/* Action Slot with Zero Layout Shift Guaranteed (32px height, 82px min-width) */
.product-action-slot {
    min-width: 82px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Primary ADD button inside product card */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clay-bg);
    border: 1.5px solid var(--brand-emerald);
    color: var(--brand-emerald);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 0 14px;
    min-width: 82px;
    height: 30px;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: var(--clay-shadow-sm);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-sheen);
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn:hover {
    background: var(--brand-emerald-gradient);
    color: #ffffff;
    box-shadow: var(--clay-emerald-shadow);
    transform: translateY(-1.5px) scale(1.02);
}

.add-to-cart-btn:active {
    box-shadow: var(--clay-emerald-pressed);
    transform: translateY(1px) scale(0.95);
}

body.dark .add-to-cart-btn,
html.dark .add-to-cart-btn {
    background: var(--clay-bg);
    border-color: #10b981;
    color: #34d399;
}

body.dark .add-to-cart-btn:hover,
html.dark .add-to-cart-btn:hover {
    background: var(--brand-emerald-gradient);
    color: #0f172a;
}

/* Card Quantity Stepper [- qty +] (Claymorphic Pill with Liquid Sheen) */
.card-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-emerald-gradient) !important;
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 2px 8px;
    min-width: 82px;
    height: 30px;
    box-shadow: var(--clay-emerald-shadow) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-spring);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.card-qty-stepper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-sheen);
    pointer-events: none;
    opacity: 0.5;
}

.card-qty-stepper:active {
    transform: scale(0.97);
}

.card-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
    z-index: 1;
}

.card-qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-qty-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.15);
}

.card-qty-val {
    font-size: 13px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
    padding: 0 2px;
    color: #ffffff !important;
    user-select: none;
    z-index: 1;
}

@media (max-width: 639px) {
    .product-action-slot {
        min-width: 58px;
        height: 26px;
    }
    .add-to-cart-btn {
        min-width: 58px;
        height: 26px;
        font-size: 10px;
        padding: 0 6px;
        letter-spacing: 0.04em;
    }
    .card-qty-stepper {
        min-width: 58px;
        height: 26px;
        padding: 2px 2px;
    }
    .card-qty-btn {
        width: 17px;
        height: 17px;
    }
    .card-qty-val {
        font-size: 11px;
        min-width: 13px;
    }
}

/* ============================================================
   CHECKOUT SLIDE-TO-CONFIRM (TACTILE LIQUID GLASS & CLAY THUMB)
   ============================================================ */
.slider-track {
    position: relative;
    width: 100%;
    height: 58px;
    background: var(--clay-bg, rgba(255, 255, 255, 0.7));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2), inset -2px -2px 6px rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    overflow: hidden;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: pointer;
}

body.dark .slider-track,
html.dark .slider-track {
    background: rgba(22, 11, 42, 0.85) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.7), inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}

.slider-thumb {
    position: absolute;
    left: 4px;
    width: 50px;
    height: 50px;
    background: var(--brand-emerald-gradient, linear-gradient(135deg, #10b981 0%, #059669 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: transform 0.15s ease;
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.96);
}

.slider-thumb .material-symbols-outlined {
    color: white;
    font-size: 24px;
    pointer-events: none;
}

.slider-text {
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s;
    letter-spacing: 0.02em;
}

body.dark .slider-text,
html.dark .slider-text {
    color: #f8fafc !important;
}

.slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.65));
    width: 0;
    border-radius: 9999px;
    z-index: 0;
}

/* ============================================================
   MODAL OVERLAY & POPUP SYSTEM (0ms Instant Display)
   ============================================================ */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(8, 4, 18, 0.78) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(1rem, env(safe-area-inset-top, 1rem)) max(1rem, env(safe-area-inset-right, 1rem)) max(1rem, env(safe-area-inset-bottom, 1rem)) max(1rem, env(safe-area-inset-left, 1rem)) !important;
    overflow-y: auto !important;
    animation: fadeInOverlay 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    touch-action: manipulation;
}

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

.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, calc(100dvh - 3rem));
    overflow-y: auto;
    border-radius: 1.75rem 1.75rem 0 0;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    box-shadow: 0 -12px 40px rgba(31, 38, 135, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem)) !important;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
    .modal-content {
        border-radius: 1.5rem;
        padding-bottom: 1.25rem !important;
        animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

body.dark .modal-content,
html.dark .modal-content {
    background: var(--glass-bg) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

/* ============================================================
   MAP & LIVE STATUS INDICATOR
   ============================================================ */

.map-pattern {
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: -10px -10px;
}

body.dark .map-pattern,
html.dark .map-pattern {
    background-image: radial-gradient(#334155 1.5px, transparent 1.5px) !important;
}

/* GPS Rider Pin Smooth Glide */
#rider-pin {
    transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1), top 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: left, top;
}

/* ============================================================
   UTILITIES & LIQUID DETAILS
   ============================================================ */

.liquid-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
}

.liquid-shimmer {
    position: relative;
    overflow: hidden;
}

.liquid-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: shimmerPass 6s infinite;
    pointer-events: none;
}

@keyframes shimmerPass {
    0% { transform: translateX(-100%) rotate(25deg); }
    20%, 100% { transform: translateX(100%) rotate(25deg); }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   MODERN VERTICAL CATEGORY RAIL (INSTAMART / BLINKIT UX)
   Sticky left column extending smoothly alongside products
   ============================================================ */
#shop-catalog-split-row {
    gap: 0.75rem !important; /* ~12px tight spacing */
}

@media (min-width: 1024px) {
    #shop-catalog-split-row {
        gap: 0.875rem !important; /* ~14px on desktop */
    }
}

@media (max-width: 639px) {
    #shop-catalog-split-row {
        gap: 0.5rem !important; /* 8px on mobile */
    }
}

#category-rail-container {
    position: relative !important;
    top: auto !important;
    align-self: flex-start !important;
    height: fit-content !important;
    max-height: none !important;
    overflow: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    z-index: 15 !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.5rem;
    padding: 0.4rem 0.2rem 0.6rem 0.2rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

#category-rail-container::-webkit-scrollbar {
    display: none !important;
}

body.dark #category-rail-container,
html.dark #category-rail-container {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}



.vertical-category-rail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0;
    user-select: none;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 100%;
    min-height: auto;
    height: fit-content;
    position: relative;
    overflow: visible !important;
    max-height: none !important;
    z-index: 1;
}

.category-rail-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.45rem 0.2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
    text-decoration: none;
}

.category-rail-item:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.02);
}

.category-rail-icon-box {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-sm);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 640px) {
    .category-rail-icon-box {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 16px;
    }
}

.category-rail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    border-radius: 12px;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-rail-item:hover .category-rail-img {
    transform: scale(1.08);
}

.category-rail-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

@media (min-width: 640px) {
    .category-rail-emoji {
        font-size: 1.55rem;
    }
}

.category-rail-label {
    font-size: 0.54rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s ease;
    padding: 0 1px;
}

@media (min-width: 640px) {
    .category-rail-label {
        font-size: 0.6875rem;
    }
}

/* Active Category State with Instamart/Blinkit Green Rail Indicator */
.category-rail-item.active {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.category-rail-item .category-rail-indicator {
    display: none;
}

.category-rail-item.active .category-rail-indicator {
    display: block;
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 4px;
    background: #10b981;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.category-rail-item.active .category-rail-icon-box {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 1.5px #10b981, 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    transform: scale(1.06);
}

.category-rail-item.active .category-rail-label {
    color: #0f172a;
    font-weight: 800;
}

/* Dark Mode Adjustments for Category Rail */
body.dark .category-rail-icon-box,
html.dark .category-rail-icon-box {
    background: #1e2026;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .category-rail-item.active,
html.dark .category-rail-item.active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

body.dark .category-rail-item.active .category-rail-label,
html.dark .category-rail-item.active .category-rail-label {
    color: #ffffff !important;
    font-weight: 800;
}

body.dark .category-rail-item .category-rail-label,
html.dark .category-rail-item .category-rail-label {
    color: #94a3b8;
}

body.dark .category-rail-item.active .category-rail-indicator,
html.dark .category-rail-item.active .category-rail-indicator {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

/* ─── Coming Soon Category Rail Items ─── */
.category-rail-item.coming-soon {
    cursor: not-allowed;
    pointer-events: auto; /* Keep for tooltip */
    position: relative;
    opacity: 1;
}

.category-rail-item.coming-soon .category-rail-icon-box {
    position: relative;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.category-rail-item.coming-soon .category-rail-icon-box::after {
    content: '\1F512';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 2;
}

.category-rail-item.coming-soon .category-rail-img {
    filter: grayscale(0.7) brightness(0.7);
    opacity: 0.5;
}

.category-rail-item.coming-soon .category-rail-label {
    color: var(--text-muted, #94a3b8);
    font-size: 0.56rem;
    opacity: 0.7;
}

.category-rail-item.coming-soon:hover {
    background: transparent;
    transform: none;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 1px 5px;
    margin-top: 2px;
    line-height: 1.4;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Dark Mode Coming Soon */
body.dark .category-rail-item.coming-soon .category-rail-icon-box,
html.dark .category-rail-item.coming-soon .category-rail-icon-box {
    background: rgba(30, 32, 38, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark .category-rail-item.coming-soon .category-rail-icon-box::after,
html.dark .category-rail-item.coming-soon .category-rail-icon-box::after {
    background: rgba(0, 0, 0, 0.5);
}

body.dark .coming-soon-badge,
html.dark .coming-soon-badge {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

/* Divider between coming-soon and active categories */
.category-rail-item.coming-soon + .category-rail-item:not(.coming-soon) {
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

body.dark .category-rail-item.coming-soon + .category-rail-item:not(.coming-soon),
html.dark .category-rail-item.coming-soon + .category-rail-item:not(.coming-soon) {
    border-top-color: rgba(255, 255, 255, 0.07);
}

/* Filter & Sort Chips Bar */
.filter-chip-btn {
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}
.filter-chip-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}
.filter-chip-btn:active {
    transform: scale(0.96);
}

/* Category Promo Banner (Cadbury Brownie Style) */
.category-promo-banner {
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Page Split Rail & Content Container */
#category-sidebar-rail {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 16px -4px rgba(15, 23, 42, 0.04);
}

body.dark #category-sidebar-rail,
html.dark #category-sidebar-rail {
    background: rgba(11, 15, 25, 0.85);
    border-right-color: rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
}

#category-main-pane {
    background: transparent;
}

/* Legacy Alias Classes for Complete Backward Compatibility with Existing Automated Tests */
.category-sidebar-item {
    cursor: pointer;
}
.category-mobile-pill {
    cursor: pointer;
}

/* ============================================================
   PROMOTIONAL HERO BANNER CAROUSEL (BLINKIT / ZEPTO UX)
   ============================================================ */
.hero-carousel-container {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    padding: 1.15rem 1.15rem 2rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    height: 190px;
    color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .hero-carousel-slide {
        padding: 2rem 2.25rem;
        min-height: 240px;
        height: 240px;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-slide {
        min-height: 280px;
        height: 280px;
    }
}

.hero-carousel-slide.hero-carousel-slide-announce {
    padding: 0 !important;
    display: block !important;
    overflow: hidden;
    border-radius: inherit;
    background: transparent;
    position: relative;
}

.hero-carousel-slide.hero-carousel-slide-announce img.announce-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    display: block;
}

.hero-carousel-slide a.clay-btn {
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.hero-carousel-slide a.clay-btn span {
    color: inherit !important;
}

/* Arrow controls: strictly hidden on mobile (< 640px) to prevent covering banner titles, visible on tablet & desktop */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
    .hero-carousel-arrow {
        display: flex !important;
    }
}

.hero-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.hero-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
    left: 0.85rem;
}

.hero-carousel-next {
    right: 0.85rem;
}

/* Pagination Dots: Sleek centered frosted capsule with safe vertical clearance from buttons */
.hero-carousel-dots {
    position: absolute;
    bottom: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 25;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.hero-carousel-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.hero-carousel-dot.active {
    width: 1.35rem;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

/* Shelf Scroll Controls (Laptop & Desktop Navigation) */
.shelf-scroll-btn {
    cursor: pointer;
    user-select: none;
}

/* ============================================================
   REAL-WORLD MOBILE FULLSCREEN & SAFE-AREA ENHANCEMENTS
   Edge-to-edge support for iPhone Dynamic Island, Home Bars, Android gesture navigation
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .fixed.bottom-3.inset-x-0 {
        bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px))) !important;
        padding-left: max(16px, env(safe-area-inset-left, 16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
    }

    #page-container,
    .page-content,
    main {
        padding-bottom: max(96px, calc(84px + env(safe-area-inset-bottom, 0px))) !important;
    }
}



/* ============================================================
   IN-APP MODE (INSTALLED APP RESTRICTION)
   When running inside the installed native Android app or PWA,
   completely strip and hide all install options, buttons, and banners.
   ============================================================ */
@media all and (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .btn-install-app,
    #pwa-floating-install-banner,
    #home-mobile-smart-banner,
    #settings-install-row,
    #btn-header-install-app,
    [data-install-trigger] {
        display: none !important;
    }
}

.is-installed-app .btn-install-app,
.is-installed-app #pwa-floating-install-banner,
.is-installed-app #home-mobile-smart-banner,
.is-installed-app #settings-install-row,
.is-installed-app #btn-header-install-app,
.is-installed-app [data-install-trigger],
body.is-installed-app .btn-install-app,
body.is-installed-app #pwa-floating-install-banner,
body.is-installed-app #home-mobile-smart-banner,
body.is-installed-app #settings-install-row,
body.is-installed-app #btn-header-install-app,
body.is-installed-app [data-install-trigger] {
    display: none !important;
}





/* ============================================================
   LPUQuick Product Grid System & Strict Alignment
   Consistent 12-14px horizontal, 12-16px vertical gaps, balanced cards
   ============================================================ */
.product-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.product-card-item.hidden,
.product-card-item[hidden],
.product-card-item[style*="display: none"],
[hidden] {
    display: none !important;
}

.product-card-item .card-pedestal {
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-card-item .card-pedestal img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 88% !important;
    max-height: 88% !important;
    margin: auto !important;
    display: block !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}


/* === LPUQuick Diwali Festive Theme Engine === */
:root {
    --diwali-gold: #f59e0b;
    --diwali-gold-light: #fbbf24;
    --diwali-diya: #ea580c;
    --diwali-border: rgba(245, 158, 11, 0.35);
    --diwali-glow: 0 0 16px rgba(245, 158, 11, 0.45);
}

body.dark {
    background-color: #080a12 !important;
    background-image: 
        radial-gradient(at 10% 10%, rgba(245, 158, 11, 0.14) 0px, transparent 50%),
        radial-gradient(at 90% 15%, rgba(234, 88, 12, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 85%, rgba(168, 85, 247, 0.09) 0px, transparent 50%),
        radial-gradient(at 20% 90%, rgba(16, 185, 129, 0.09) 0px, transparent 50%) !important;
}

body.dark .product-card-item {
    border-color: rgba(245, 158, 11, 0.18) !important;
    background: rgba(15, 20, 32, 0.78) !important;
}

body.dark .product-card-item:hover {
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.22), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark .category-rail-item.active .category-rail-indicator {
    background: linear-gradient(180deg, #f59e0b, #ea580c) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.95) !important;
}

body.dark .category-rail-item.active .category-rail-icon-box {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
}

.diwali-badge-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.diwali-gold-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.liquid-dock-pill {
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.15) !important;
}

/* ============================================================
   LPUQuick Mobile Full-Width Catalog & Zero-Void Layout
   On mobile (<640px): Category rail is a sleek horizontal scrollable bar
   Products take 100% width with perfect 2-column spacing
   ============================================================ */
@media (max-width: 639px) {
    #shop-catalog-split-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    #category-rail-container {
        width: 100% !important;
        min-width: 100% !important;
        position: sticky !important;
        top: 3.75rem !important;
        z-index: 30 !important;
        background: rgba(12, 17, 29, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(245, 158, 11, 0.35) !important;
        border-radius: 1.25rem !important;
        padding: 0.4rem 0.5rem !important;
        box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.12) !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .vertical-category-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 0.5rem !important;
        padding: 0.15rem 0.2rem !important;
        width: 100% !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
    }

    .vertical-category-rail::-webkit-scrollbar {
        display: none !important;
    }

    .category-rail-item {
        flex-direction: column !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        width: 58px !important;
        min-width: 58px !important;
        padding: 0.25rem 0.15rem !important;
        border-radius: 0.85rem !important;
    }

    .category-rail-icon-box {
        width: 2.5rem !important;
        height: 2.5rem !important;
        border-radius: 12px !important;
    }

    .category-rail-label {
        font-size: 0.55rem !important;
        line-height: 1.1 !important;
        max-width: 56px !important;
        margin-top: 2px !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .category-rail-indicator {
        bottom: 0 !important;
        top: auto !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        width: 16px !important;
        height: 3px !important;
        border-radius: 9999px !important;
    }

    /* Hide the vertical terminal and top button on mobile since rail is horizontal */
    #rail-bottom-terminal,
    .vertical-category-rail > div.border-t {
        display: none !important;
    }

    /* Product grid takes 100% full width */
    #home-main-products-grid,
    #home-remaining-products-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .product-card-item {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 0.55rem !important;
        border-radius: 1rem !important;
    }

    .product-card-item .card-pedestal {
        height: 104px !important;
        border-radius: 0.85rem !important;
        margin-bottom: 0.4rem !important;
        padding: 0.35rem !important;
    }
}

/* ============================================================
   LPUQuick Full Diwali Festive Theme Engine (Pure CSS, 60fps)
   Luxurious, Premium Festive Overlay: Diyas, Fairy Lights,
   Celestial Fireworks, Golden Rangoli, Amber/Purple/Pink Glow
   ============================================================ */
:root {
    --diwali-gold: #f59e0b;
    --diwali-gold-light: #fbbf24;
    --diwali-gold-bright: #fde047;
    --diwali-marigold: #ea580c;
    --diwali-saffron: #f97316;
    --diwali-purple: #9333ea;
    --diwali-violet: #a855f7;
    --diwali-pink: #ec4899;
    --diwali-rose: #f43f5e;
    --diwali-emerald: #10b981;
    --diwali-cyan: #06b6d4;
    --diwali-glow: 0 0 18px rgba(245, 158, 11, 0.45);
}

body.dark {
    background-color: #060813 !important;
    background-image: 
        radial-gradient(at 10% 8%, rgba(245, 158, 11, 0.18) 0px, transparent 50%),
        radial-gradient(at 90% 12%, rgba(234, 88, 12, 0.16) 0px, transparent 50%),
        radial-gradient(at 85% 65%, rgba(147, 51, 234, 0.14) 0px, transparent 55%),
        radial-gradient(at 15% 85%, rgba(236, 72, 153, 0.12) 0px, transparent 50%) !important;
}

body:not(.dark) {
    background-color: #fdfbf7 !important;
    background-image: 
        radial-gradient(at 10% 8%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 12%, rgba(234, 88, 12, 0.07) 0px, transparent 50%),
        radial-gradient(at 85% 65%, rgba(147, 51, 234, 0.05) 0px, transparent 55%),
        radial-gradient(at 15% 85%, rgba(236, 72, 153, 0.05) 0px, transparent 50%) !important;
}

/* Ambient Liquid 4-Orb Symphony (Warm Festive Glow) */
.liquid-orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.02) 70%) !important;
    top: -60px;
    left: -60px;
}

.liquid-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.24) 0%, rgba(234, 88, 12, 0.02) 70%) !important;
    top: 30%;
    right: -80px;
}

.liquid-orb-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.20) 0%, rgba(147, 51, 234, 0.02) 70%) !important;
    bottom: 10%;
    left: 20%;
}

.liquid-orb-4 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
    animation: liquidDrift 28s ease-in-out infinite alternate;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.02) 70%);
    top: 60%;
    right: 15%;
    animation-delay: -15s;
}

/* ============================================================
   1. DIWALI FAIRY LIGHTS STRAND (Top Edge of Screen & Borders)
   ============================================================ */
.diwali-top-fairy-string {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
}

.fairy-light-wire {
    position: absolute;
    top: 1px;
    left: -20px;
    right: -20px;
    height: 6px;
    border-bottom: 1.5px solid rgba(217, 119, 6, 0.55);
    border-radius: 50%;
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

.fairy-bulbs-track {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 4px;
    position: relative;
    z-index: 2;
}

.fairy-bulb {
    width: 6px;
    height: 9px;
    border-radius: 50% 50% 45% 45%;
    display: inline-block;
    position: relative;
    will-change: opacity, transform, filter;
}

.fairy-bulb::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 1.5px;
    width: 3px;
    height: 2px;
    background: #78350f;
    border-radius: 1px;
}

.bulb-gold {
    background: #fde047;
    box-shadow: 0 0 6px #f59e0b, 0 0 14px #fbbf24;
    animation: fairyTwinkleA 2.2s ease-in-out infinite alternate;
}

.bulb-ruby {
    background: #fb7185;
    box-shadow: 0 0 6px #f43f5e, 0 0 14px #e11d48;
    animation: fairyTwinkleB 2.8s ease-in-out infinite alternate;
    animation-delay: 0.3s;
}

.bulb-emerald {
    background: #6ee7b7;
    box-shadow: 0 0 6px #10b981, 0 0 14px #059669;
    animation: fairyTwinkleC 2.5s ease-in-out infinite alternate;
    animation-delay: 0.6s;
}

.bulb-violet {
    background: #d8b4fe;
    box-shadow: 0 0 6px #a855f7, 0 0 14px #7c3aed;
    animation: fairyTwinkleA 3s ease-in-out infinite alternate;
    animation-delay: 0.9s;
}

.bulb-saffron {
    background: #fdba74;
    box-shadow: 0 0 6px #f97316, 0 0 14px #ea580c;
    animation: fairyTwinkleB 2.4s ease-in-out infinite alternate;
    animation-delay: 1.2s;
}

.bulb-cyan {
    background: #67e8f9;
    box-shadow: 0 0 6px #06b6d4, 0 0 14px #0891b2;
    animation: fairyTwinkleC 2.7s ease-in-out infinite alternate;
    animation-delay: 1.5s;
}

.bulb-pink {
    background: #f472b6;
    box-shadow: 0 0 6px #ec4899, 0 0 14px #db2777;
    animation: fairyTwinkleA 2.9s ease-in-out infinite alternate;
    animation-delay: 1.8s;
}

@keyframes fairyTwinkleA {
    0% { opacity: 0.65; transform: scale(0.92); filter: brightness(0.9); }
    100% { opacity: 1; transform: scale(1.08); filter: brightness(1.3); }
}

@keyframes fairyTwinkleB {
    0% { opacity: 0.6; transform: scale(0.9); filter: brightness(0.85); }
    100% { opacity: 1; transform: scale(1.1); filter: brightness(1.35); }
}

@keyframes fairyTwinkleC {
    0% { opacity: 0.7; transform: scale(0.95); filter: brightness(0.95); }
    100% { opacity: 1; transform: scale(1.05); filter: brightness(1.25); }
}

/* ============================================================
   2. SUBTLE CELESTIAL FIREWORKS (Pure CSS, GPU Composited)
   ============================================================ */
.diwali-firework-burst {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

.diwali-fw-1 {
    top: 16%;
    left: 20%;
    animation: fireworkBurstGold 11s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
    animation-delay: 0.5s;
}

.diwali-fw-2 {
    top: 26%;
    right: 18%;
    animation: fireworkBurstPurple 13s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
    animation-delay: 3.5s;
}

.diwali-fw-3 {
    top: 48%;
    left: 12%;
    animation: fireworkBurstRose 12s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
    animation-delay: 6.5s;
}

.diwali-fw-4 {
    top: 68%;
    right: 15%;
    animation: fireworkBurstAmber 14s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
    animation-delay: 9.5s;
}

@keyframes fireworkBurstGold {
    0% { opacity: 0; transform: scale(0.1); box-shadow: 0 0 0 0 #fbbf24; }
    12% {
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 -45px 8px 1px #fbbf24,
            32px -32px 8px 1px #fde047,
            45px 0 8px 1px #f59e0b,
            32px 32px 8px 1px #fbbf24,
            0 45px 8px 1px #fde047,
            -32px 32px 8px 1px #f59e0b,
            -45px 0 8px 1px #fbbf24,
            -32px -32px 8px 1px #fde047,
            0 -22px 4px 0 #ffffff,
            22px 0 4px 0 #ffffff,
            0 22px 4px 0 #ffffff,
            -22px 0 4px 0 #ffffff;
    }
    30% {
        opacity: 0.35;
        transform: scale(1.35);
        box-shadow: 
            0 -60px 12px 0 transparent,
            42px -42px 12px 0 transparent,
            60px 0 12px 0 transparent,
            42px 42px 12px 0 transparent,
            0 60px 12px 0 transparent,
            -42px 42px 12px 0 transparent,
            -60px 0 12px 0 transparent,
            -42px -42px 12px 0 transparent;
    }
    45%, 100% { opacity: 0; transform: scale(1.5); box-shadow: none; }
}

@keyframes fireworkBurstPurple {
    0% { opacity: 0; transform: scale(0.1); box-shadow: 0 0 0 0 #c084fc; }
    12% {
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 -45px 8px 1px #c084fc,
            32px -32px 8px 1px #e879f9,
            45px 0 8px 1px #a855f7,
            32px 32px 8px 1px #c084fc,
            0 45px 8px 1px #e879f9,
            -32px 32px 8px 1px #a855f7,
            -45px 0 8px 1px #c084fc,
            -32px -32px 8px 1px #e879f9,
            0 -22px 4px 0 #ffffff,
            22px 0 4px 0 #ffffff,
            0 22px 4px 0 #ffffff,
            -22px 0 4px 0 #ffffff;
    }
    30% {
        opacity: 0.35;
        transform: scale(1.35);
        box-shadow: 
            0 -60px 12px 0 transparent,
            42px -42px 12px 0 transparent,
            60px 0 12px 0 transparent,
            42px 42px 12px 0 transparent,
            0 60px 12px 0 transparent,
            -42px 42px 12px 0 transparent,
            -60px 0 12px 0 transparent,
            -42px -42px 12px 0 transparent;
    }
    45%, 100% { opacity: 0; transform: scale(1.5); box-shadow: none; }
}

@keyframes fireworkBurstRose {
    0% { opacity: 0; transform: scale(0.1); box-shadow: 0 0 0 0 #fb7185; }
    12% {
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 -45px 8px 1px #fb7185,
            32px -32px 8px 1px #f43f5e,
            45px 0 8px 1px #fda4af,
            32px 32px 8px 1px #fb7185,
            0 45px 8px 1px #f43f5e,
            -32px 32px 8px 1px #fda4af,
            -45px 0 8px 1px #fb7185,
            -32px -32px 8px 1px #f43f5e,
            0 -22px 4px 0 #ffffff,
            22px 0 4px 0 #ffffff,
            0 22px 4px 0 #ffffff,
            -22px 0 4px 0 #ffffff;
    }
    30% {
        opacity: 0.35;
        transform: scale(1.35);
        box-shadow: 
            0 -60px 12px 0 transparent,
            42px -42px 12px 0 transparent,
            60px 0 12px 0 transparent,
            42px 42px 12px 0 transparent,
            0 60px 12px 0 transparent,
            -42px 42px 12px 0 transparent,
            -60px 0 12px 0 transparent,
            -42px -42px 12px 0 transparent;
    }
    45%, 100% { opacity: 0; transform: scale(1.5); box-shadow: none; }
}

@keyframes fireworkBurstAmber {
    0% { opacity: 0; transform: scale(0.1); box-shadow: 0 0 0 0 #f97316; }
    12% {
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 -45px 8px 1px #f97316,
            32px -32px 8px 1px #fb923c,
            45px 0 8px 1px #ea580c,
            32px 32px 8px 1px #f97316,
            0 45px 8px 1px #fb923c,
            -32px 32px 8px 1px #ea580c,
            -45px 0 8px 1px #f97316,
            -32px -32px 8px 1px #fb923c,
            0 -22px 4px 0 #ffffff,
            22px 0 4px 0 #ffffff,
            0 22px 4px 0 #ffffff,
            -22px 0 4px 0 #ffffff;
    }
    30% {
        opacity: 0.35;
        transform: scale(1.35);
        box-shadow: 
            0 -60px 12px 0 transparent,
            42px -42px 12px 0 transparent,
            60px 0 12px 0 transparent,
            42px 42px 12px 0 transparent,
            0 60px 12px 0 transparent,
            -42px 42px 12px 0 transparent,
            -60px 0 12px 0 transparent,
            -42px -42px 12px 0 transparent;
    }
    45%, 100% { opacity: 0; transform: scale(1.5); box-shadow: none; }
}

/* ============================================================
   3. STAR SPARKLES FIELD & FLOATING GOLDEN EMBERS
   ============================================================ */
.diwali-sparkle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.diwali-star {
    position: absolute;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    will-change: opacity, transform;
    animation: starTwinkle 3.2s ease-in-out infinite alternate;
}

.star-1  { top: 8%;  left: 14%; color: #fbbf24; animation-delay: 0.2s; }
.star-2  { top: 12%; right: 24%; color: #fde047; animation-delay: 1.1s; }
.star-3  { top: 22%; left: 32%; color: #f472b6; animation-delay: 0.7s; }
.star-4  { top: 28%; right: 10%; color: #c084fc; animation-delay: 1.9s; }
.star-5  { top: 38%; left: 8%;  color: #fb923c; animation-delay: 0.4s; }
.star-6  { top: 44%; right: 35%; color: #fbbf24; animation-delay: 2.3s; }
.star-7  { top: 54%; left: 22%; color: #fde047; animation-delay: 1.4s; }
.star-8  { top: 62%; right: 18%; color: #e879f9; animation-delay: 0.8s; }
.star-9  { top: 72%; left: 12%; color: #f43f5e; animation-delay: 2.1s; }
.star-10 { top: 78%; right: 28%; color: #fbbf24; animation-delay: 1.6s; }
.star-11 { top: 88%; left: 40%; color: #fdba74; animation-delay: 0.3s; }
.star-12 { top: 92%; right: 12%; color: #c084fc; animation-delay: 2.5s; }
.star-13 { top: 18%; left: 80%; color: #fde047; animation-delay: 1.7s; }
.star-14 { top: 50%; left: 60%; color: #f472b6; animation-delay: 0.9s; }
.star-15 { top: 68%; left: 45%; color: #fbbf24; animation-delay: 2.2s; }
.star-16 { top: 84%; left: 85%; color: #f97316; animation-delay: 1.3s; }

@keyframes starTwinkle {
    0% { opacity: 0.15; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 0.95; transform: scale(1.25) rotate(45deg); filter: drop-shadow(0 0 6px currentColor); }
    100% { opacity: 0.25; transform: scale(0.9) rotate(90deg); }
}

.diwali-embers-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.diwali-ember {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fde047;
    box-shadow: 0 0 6px #f59e0b, 0 0 12px #ea580c;
    pointer-events: none;
    will-change: transform, opacity;
    animation: emberRise 14s linear infinite;
}

.ember-1 { left: 12%; animation-duration: 13s; animation-delay: 0s; }
.ember-2 { left: 25%; animation-duration: 16s; animation-delay: 2.5s; width: 4px; height: 4px; }
.ember-3 { left: 38%; animation-duration: 14s; animation-delay: 5s; }
.ember-4 { left: 52%; animation-duration: 18s; animation-delay: 1.5s; width: 2.5px; height: 2.5px; }
.ember-5 { left: 67%; animation-duration: 15s; animation-delay: 7s; }
.ember-6 { left: 78%; animation-duration: 17s; animation-delay: 3.5s; width: 3.5px; height: 3.5px; }
.ember-7 { left: 88%; animation-duration: 14s; animation-delay: 6s; }
.ember-8 { left: 95%; animation-duration: 19s; animation-delay: 8s; }

@keyframes emberRise {
    0% { opacity: 0; transform: translateY(0) translateX(0) scale(0.8); }
    15% { opacity: 0.85; }
    50% { opacity: 0.7; transform: translateY(-50vh) translateX(18px) scale(1.1); }
    85% { opacity: 0.35; transform: translateY(-85vh) translateX(-14px) scale(0.9); }
    100% { opacity: 0; transform: translateY(-105vh) translateX(22px) scale(0.6); }
}

/* ============================================================
   4. SACRED GOLDEN RANGOLI MANDALA BACKGROUND WATERMARK
   ============================================================ */
.diwali-rangoli-mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.12;
    animation: rangoliSpin 120s linear infinite;
    mask-image: radial-gradient(circle, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
}

@keyframes rangoliSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   5. DIWALI TORAN BANNER & ANIMATED GLOWING DIYAS
   ============================================================ */
.diwali-top-toran {
    background: linear-gradient(90deg, #7c2d12 0%, #b45309 25%, #ea580c 50%, #b45309 75%, #7c2d12 100%) !important;
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(253, 224, 71, 0.4) !important;
}

.diwali-ribbon-text {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(251, 191, 36, 0.5);
}

.diwali-live-diya {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.85));
    animation: diyaBreath 3.5s ease-in-out infinite alternate;
}

@keyframes diyaBreath {
    0% { transform: scale(0.96) translateY(0); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7)); }
    100% { transform: scale(1.05) translateY(-1px); filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.95)); }
}

.diya-flame-flicker {
    transform-origin: 14px 10px;
    animation: flameDance 1.6s ease-in-out infinite alternate;
}

@keyframes flameDance {
    0% { transform: scale(1) rotate(-1deg); }
    25% { transform: scale(1.08, 0.94) rotate(1.5deg); }
    50% { transform: scale(0.95, 1.06) rotate(-1deg); }
    75% { transform: scale(1.05, 1.02) rotate(2deg); }
    100% { transform: scale(1) rotate(-1.5deg); }
}

/* ============================================================
   6. SUBTLE GLOWING EFFECTS ON BUTTONS, BORDERS & CAPSULES
   ============================================================ */
/* Header Capsule Perimeter Glow */
.dynamic-island-nav {
    border: 1.5px solid rgba(245, 158, 11, 0.32) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 158, 11, 0.15) !important;
}

body.dark .dynamic-island-nav {
    border-color: rgba(245, 158, 11, 0.38) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.22) !important;
}

/* Product Card Festive Golden Border & Aura */
body.dark .product-card-item {
    background: rgba(14, 18, 30, 0.82) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(251, 191, 36, 0.15) !important;
}

body.dark .product-card-item:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 12px 32px -4px rgba(245, 158, 11, 0.28), 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Festive Buttons Glow */
.add-to-cart-btn {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

.add-to-cart-btn:hover {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), 0 0 14px rgba(16, 185, 129, 0.5) !important;
}

.clay-btn-primary {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35), 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.clay-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), 0 0 18px rgba(16, 185, 129, 0.5) !important;
}

/* Floating Bottom Navigation Festive Diwali Rim */
nav.liquid-dock-pill {
    border: 1.5px solid rgba(245, 158, 11, 0.38) !important;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.8), 0 0 26px rgba(245, 158, 11, 0.22) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
}

/* Active Category Pill Glowing Diya Flame */
body.dark .category-rail-item.active .category-rail-indicator {
    background: linear-gradient(180deg, #f59e0b, #ea580c) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.95) !important;
}

body.dark .category-rail-item.active .category-rail-icon-box {
    border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
    background: rgba(245, 158, 11, 0.18) !important;
}

/* Festive Liquid Badges */
.diwali-badge-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}


/* ============================================================
   EXACT REFERENCE MATCH: SCREEN 1 & SCREEN 2 DIWALI STYLING
   ============================================================ */

/* Grand Happy Diwali Hero Banner */
.diwali-grand-banner {
    background: radial-gradient(circle at 50% 30%, rgba(88, 28, 135, 0.55) 0%, rgba(20, 9, 40, 0.95) 75%), #0c061a !important;
    border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.3), inset 0 1px 1px rgba(251, 191, 36, 0.4) !important;
}

.diwali-calligraphy-title {
    font-family: 'Brush Script MT', 'Playfair Display', 'Outfit', cursive, serif !important;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 35%, #fbbf24 65%, #ea580c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.9)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    letter-spacing: 0.03em;
    font-style: italic;
}

.banner-fairy-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 5;
}

.diwali-bulb-glow {
    filter: drop-shadow(0 0 6px #fde047) drop-shadow(0 0 10px #f59e0b);
    animation: fairyTwinkleA 2.2s ease-in-out infinite alternate;
}

.banner-firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.banner-fw-1 {
    top: 25%;
    left: 20%;
    animation: fireworkBurstGold 9s infinite;
}

.banner-fw-2 {
    top: 30%;
    right: 22%;
    animation: fireworkBurstPurple 10s infinite;
    animation-delay: 3s;
}

/* Store Closed Restock Card (Screen 1 Reference Match) */
.diwali-store-closed-card {
    background: linear-gradient(145deg, #1a0b32 0%, #0d0519 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.85) !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.45), inset 0 0 30px rgba(245, 158, 11, 0.18), 0 20px 40px rgba(0, 0, 0, 0.9) !important;
}

/* Ornate Traditional Indian Corner Filigree Brackets */
.diwali-filigree {
    position: absolute;
    width: 44px;
    height: 44px;
    pointer-events: none;
    border: 2px solid #f59e0b;
    opacity: 0.85;
}

.diwali-filigree-tl {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 18px;
    box-shadow: inset 4px 4px 8px rgba(245, 158, 11, 0.4);
}

.diwali-filigree-tr {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 18px;
    box-shadow: inset -4px 4px 8px rgba(245, 158, 11, 0.4);
}

.diwali-filigree-bl {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 18px;
    box-shadow: inset 4px -4px 8px rgba(245, 158, 11, 0.4);
}

.diwali-filigree-br {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 18px;
    box-shadow: inset -4px -4px 8px rgba(245, 158, 11, 0.4);
}

.closed-firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

.closed-fw-left {
    top: 45%;
    left: 8%;
    animation: fireworkBurstGold 8s infinite;
}

.closed-fw-right {
    top: 45%;
    right: 8%;
    animation: fireworkBurstAmber 9s infinite;
    animation-delay: 2s;
}

/* Search Bar Glowing Border */
#mobile-search,
#desktop-search {
    background: rgba(22, 11, 42, 0.75) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(251, 191, 36, 0.15) !important;
}

#mobile-search:focus,
#desktop-search:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.5) !important;
}

/* Category Promo Banner Glowing Border */
#category-promo-banner {
    border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 158, 11, 0.35) !important;
}

/* Floating Bottom Dock Glowing Golden Rim (Exact Match to Reference) */
nav.liquid-dock-pill {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.55), inset 0 1px 2px rgba(253, 224, 71, 0.5) !important;
    background: rgba(13, 7, 24, 0.94) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
}

/* Outer Screen Frame Golden Aura (For Mobile Preview & Container) */
.mobile-phone-frame {
    box-shadow: 0 0 0 2px #f59e0b, 0 0 35px rgba(245, 158, 11, 0.6), 0 25px 60px rgba(0, 0, 0, 0.9) !important;
}
