/* ==========================================================================
   DIGITAL STORE - MODERN PREMIUM MARATHI & ENGLISH TYPOGRAPHY SYSTEM
   ========================================================================== */

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

:root {
    /* Color Palette Tokens */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.09);
    --secondary: #7c3aed;
    --secondary-hover: #6d28d9;
    --accent: #f59e0b;
    --success: #10b981;
    --success-hover: #059669;
    --dark: #0b0f19;
    --dark-surface: #111827;
    --light-bg: #f8fafc;
    --white: #ffffff;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    --border: #e5e7eb;
    --border-light: rgba(229, 231, 235, 0.8);
    
    --font-heading: 'Mukta', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Mukta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(11, 15, 25, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(11, 15, 25, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(11, 15, 25, 0.14);
    --shadow-glow: 0 10px 30px -5px rgba(79, 70, 229, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
body, html, input, button, select, textarea {
    font-family: var(--font-body);
    background-color: #f1f5f9;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
}

/* Glassmorphism Header Bar - Premium Royal Indigo Theme */
.navbar-custom {
    background: linear-gradient(135deg, #090d16 0%, #151336 50%, #1e1b4b 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.35);
    padding: 10px 0;
    transition: var(--transition);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-sub-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e0e7ff;
    letter-spacing: 0.2px;
}

/* Desktop Nav Links */
.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: #e2e8f0 !important;
    padding: 6px 9px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

/* Highlighted Karyakarta CTA in Header */
.header-karyakarta-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #1e1b4b !important;
    font-weight: 800 !important;
    font-size: 0.86rem !important;
    padding: 7px 15px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.2s ease !important;
}

.header-karyakarta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
    color: #0f172a !important;
}

/* Header Compact Search Bar */
.search-input-group {
    position: relative;
    width: 165px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-group:focus-within {
    width: 220px;
}

.header-search-control {
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 0.84rem !important;
    padding: 7px 12px 7px 34px !important;
    height: 38px;
    transition: all 0.2s ease;
}

.header-search-control:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    color: #ffffff !important;
}

.header-search-control::placeholder {
    color: #94a3b8;
}

.search-input-group .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    font-size: 0.82rem;
    pointer-events: none;
}

/* Header Action Buttons (Cart & User) */
.header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.header-user-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 14px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.header-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Header High-Contrast Login & Register Buttons */
.btn-header-login {
    background: #ffffff !important;
    color: #1e1b4b !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-header-login:hover,
.btn-header-login:focus,
.btn-header-login:active {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4) !important;
}

.btn-header-register {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.2s ease !important;
}

.btn-header-register:hover,
.btn-header-register:focus,
.btn-header-register:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.6) !important;
}

@media (max-width: 991.98px) {
    .navbar-custom {
        background: linear-gradient(135deg, #1e1b4b 0%, #311068 50%, #4338ca 100%) !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 4px 25px rgba(30, 27, 75, 0.4);
    }
    
    .navbar-brand-logo {
        height: 36px;
        width: 36px;
        border-radius: 8px;
    }
    
    .brand-main-title {
        font-size: 1.05rem;
        font-weight: 800;
    }
    
    .brand-sub-title {
        font-size: 0.68rem;
        color: #c7d2fe;
    }

    /* Mobile Navbar Dropdown / Collapse Container */
    .navbar-collapse {
        background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%) !important;
        border-radius: 18px;
        margin-top: 12px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
    }

    .navbar-custom .nav-link {
        color: #f1f5f9 !important;
        padding: 10px 14px !important;
        margin-bottom: 4px;
        border-radius: 10px;
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
        color: #ffffff !important;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    }

    .navbar-toggler {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 6px 10px !important;
    }
}

/* Floating Sub-Navigation Bar Below Hero */
.hero-subnav-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -24px;
    margin-bottom: 24px;
}

.hero-subnav-bar {
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.hero-subnav-bar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    scroll-snap-align: start;
    user-select: none;
}

.subnav-link:hover {
    background: #f1f5f9;
    color: #2563eb;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.subnav-link:active {
    transform: translateY(0);
}

.subnav-link.highlight-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-color: #fde68a;
    font-weight: 700;
}

.subnav-link.highlight-gold:hover {
    background: #fef3c7;
    color: #78350f;
    box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.35);
    border-color: #f59e0b;
}

.subnav-link.highlight-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: #bfdbfe;
    font-weight: 700;
}

.subnav-link.highlight-blue:hover {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.3);
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .hero-subnav-wrapper {
        margin-top: -16px;
        margin-bottom: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-subnav-bar {
        border-radius: 20px;
        padding: 12px;
        gap: 8px;
        background: #ffffff;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        white-space: normal;
    }
    
    .subnav-link {
        font-size: 0.84rem;
        padding: 10px 12px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-shrink: initial;
        width: 100%;
        line-height: 1.25;
        gap: 6px;
    }

    .subnav-link:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

.search-input-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    color: var(--white);
    padding: 8px 18px 8px 40px;
    font-size: 0.88rem;
    transition: var(--transition);
}

.search-input-group input::placeholder {
    color: #9ca3af;
}

.search-input-group input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    color: var(--white);
    width: 310px;
}

.search-input-group .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Cart Badge Indicator */
.badge-cart {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

/* Hero Section Theme (Compact & Modern) */
.hero-wrapper {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 45%, #311b92 100%);
    position: relative;
    padding: 45px 0 52px;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.hero-lead {
    font-size: 0.98rem;
    color: #e0e7ff;
    max-width: 660px;
    margin: 0 auto 22px;
    line-height: 1.5;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 5px 5px 5px 18px;
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    margin: 0 auto;
}

.hero-search-box input {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.94rem;
    outline: none;
    box-shadow: none !important;
}

.hero-search-box input::placeholder {
    color: #a5b4fc;
}

.hero-search-box .btn-search {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    padding: 10px 22px;
    font-size: 0.92rem;
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition);
}

.hero-search-box .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Category Pill Badges (Compact & Modern) */
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill.active {
    border-color: var(--primary);
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow-glow);
}

/* Badges & Tags */
.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.badge-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.badge-featured {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
}

.badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

/* Price & MRP */
.card-mrp-price {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 6px;
}

/* Star Rating System */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    color: #f59e0b;
}

.star-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 4px;
}

/* Hero Carousel Controls & Indicators */
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #a5b4fc;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
    width: 28px;
    border-radius: 10px;
    background-color: #ffffff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: var(--transition);
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Cart Pulse Animation */
.cart-pulse {
    animation: cartPulse 0.4s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}


/* Modern Card Layout */
.modern-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.35);
}

.book-cover-container {
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-card:hover .book-cover-img {
    transform: scale(1.05);
}

.card-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.card-product-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    margin: 10px 0 6px;
    line-height: 1.35;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--success);
}

/* Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    font-weight: 650;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modern-primary:hover {
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-modern-cart {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 650;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modern-cart:hover {
    background: #f59e0b;
    color: var(--white);
    border-color: #f59e0b;
}

.btn-modern-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    font-weight: 650;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-modern-success:hover {
    color: var(--white);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Footer Section - High Contrast */
.footer-modern {
    background: #0b0f19;
    color: #e2e8f0;
    padding: 65px 0 32px;
    margin-top: 85px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-modern h5 {
    color: #ffffff !important;
    font-size: 1.2rem;
    margin-bottom: 22px;
}

.footer-text-light,
.footer-modern p,
.footer-modern span {
    color: #cbd5e1 !important;
    font-size: 0.94rem;
}

.footer-links a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Toast Notifications */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE 2-COLUMN BOOK CARDS RESPONSIVENESS
   ========================================================================== */
@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 30px 0 35px;
    }

    .hero-title {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }

    .hero-lead {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .hero-search-box {
        padding: 4px 4px 4px 14px;
    }

    .hero-search-box input {
        font-size: 0.86rem;
    }

    .hero-search-box .btn-search {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .category-pill {
        padding: 5px 12px;
        font-size: 0.76rem;
    }

    .book-cover-img {
        height: 160px;
    }
    
    .book-cover-container {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .badge-tag {
        font-size: 0.60rem;
        padding: 3px 7px;
        top: 6px;
        left: 6px;
        letter-spacing: 0.2px;
    }

    .badge-discount {
        font-size: 0.62rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    .modern-card .card-body {
        padding: 10px 10px 6px !important;
    }

    .card-category-tag {
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    .star-rating {
        font-size: 0.72rem;
        gap: 2px;
    }

    .star-rating .rating-count {
        font-size: 0.68rem;
    }

    .card-product-title {
        font-size: 0.85rem;
        min-height: 38px;
        line-height: 1.25;
        margin: 6px 0 4px;
    }

    .card-price {
        font-size: 1.08rem;
    }

    .card-mrp-price {
        font-size: 0.78rem;
    }

    .modern-card .card-footer {
        padding: 0 10px 10px !important;
    }

    .btn-modern-cart {
        padding: 6px 8px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .btn-modern-primary,
    .btn-modern-success {
        padding: 6px 8px;
        font-size: 0.74rem;
        border-radius: 6px;
    }
}

/* ==========================================================================
   HERO BANNER IMAGE SLIDER STYLES
   ========================================================================== */
.hero-image-slider-wrapper {
    background: transparent;
}

.hero-banner-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
    margin: 0 auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-banner-card:hover .hero-banner-img {
    transform: scale(1.01);
}

.hero-banner-card .carousel-indicators {
    margin-bottom: 12px;
    gap: 6px;
    z-index: 10;
}

.hero-banner-card .carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    opacity: 0.75;
    margin: 0 2px !important;
}

.hero-banner-card .carousel-indicators button.active {
    width: 26px !important;
    border-radius: 10px !important;
    background-color: #2563eb !important;
    opacity: 1;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.hero-caption-overlay {
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 60%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 14px 20px;
    z-index: 5;
}

.hero-banner-card .carousel-control-prev,
.hero-banner-card .carousel-control-next {
    width: 52px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.hero-banner-card:hover .carousel-control-prev,
.hero-banner-card:hover .carousel-control-next {
    opacity: 1;
}

.hero-nav-arrow {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-banner-card .carousel-control-prev:hover .hero-nav-arrow,
.hero-banner-card .carousel-control-next:hover .hero-nav-arrow {
    background: #2563eb !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

@media (max-width: 992px) {
    .hero-banner-img {
        max-height: 380px;
        border-radius: 14px;
    }
    .hero-banner-card {
        border-radius: 14px;
    }
    .hero-caption-overlay {
        max-width: 80%;
        bottom: 16px;
        left: 16px;
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .hero-banner-img {
        max-height: 260px;
        border-radius: 12px;
    }
    .hero-banner-card {
        border-radius: 12px;
    }
    .hero-nav-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .hero-banner-card .carousel-control-prev,
    .hero-banner-card .carousel-control-next {
        width: 40px;
    }
}

/* Sticky Mobile Purchase Bar & Mobile CRO */
@media (max-width: 768px) {
    body.has-sticky-bar,
    body.has-course-sticky-bar {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .product-sticky-bar,
    .course-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #e2e8f0;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        background: rgba(255, 255, 255, 0.98) !important;
        padding: 10px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
        z-index: 1045 !important;
    }
    .mobile-quick-buy-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1.5px solid #e2e8f0;
    }
    .mobile-quick-buy-card .btn:active,
    .product-sticky-bar .btn:active,
    .course-sticky-bar .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ==========================================================================
   MOBILE-FIRST LMS & COURSE VIEWING ENHANCEMENTS
   ========================================================================== */

/* Touch-optimized Module Accordions */
.lms-module-item {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0 !important;
}

.lms-module-item.active-learning {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12) !important;
}

.lms-module-btn {
    padding: 14px 16px !important;
    background: #ffffff !important;
    transition: background-color 0.2s ease;
}

.lms-module-btn:not(.collapsed) {
    background: #f8fafc !important;
    box-shadow: inset 0 -1px 0 #e2e8f0 !important;
}

.lms-module-btn:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Module Button Header Layout */
.lms-mod-header-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.lms-mod-num-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
}

.lms-mod-title-area {
    flex-grow: 1;
    min-width: 0;
}

.lms-mod-title-text {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lms-mod-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lms-mod-status-area {
    flex-shrink: 0;
    margin-left: 8px;
}

/* Mobile Adjustments for Module Headers (< 576px) */
@media (max-width: 576px) {
    .lms-module-btn {
        padding: 12px !important;
    }
    
    .lms-mod-header-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lms-mod-title-text {
        font-size: 0.92rem;
    }

    .lms-mod-status-area {
        width: 100%;
        margin-left: 42px;
        margin-top: 4px;
        display: flex;
        justify-content: flex-start;
    }

    .lms-mod-status-area .badge {
        font-size: 0.76rem !important;
        padding: 4px 10px !important;
    }

    .accordion-button::after {
        margin-left: auto;
        width: 1rem;
        height: 1rem;
        background-size: 1rem;
    }
}

/* Video Card & Controls Mobile Responsive */
.lms-video-card-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0f19;
    box-shadow: 0 12px 30px rgba(11, 15, 25, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lms-top-controls-bar {
    background: #0f172a;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 576px) {
    .lms-top-controls-bar {
        padding: 8px 10px;
    }
    .lms-top-controls-bar .btn {
        font-size: 0.78rem !important;
        padding: 5px 10px !important;
    }
    .lms-shield-header-overlay {
        top: 42px;
        height: 38px;
    }
    .lms-shield-header-overlay span {
        font-size: 0.8rem !important;
    }
}

/* Article / Rich Content Reader Mobile Styling */
.lms-blog-article-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 576px) {
    .lms-blog-article-box {
        padding: 16px;
        border-radius: 14px;
    }
    .lms-blog-article-content {
        font-size: 0.96rem !important;
        line-height: 1.7 !important;
    }
}

.lms-blog-article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    margin: 12px 0;
}

.lms-blog-article-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.lms-blog-article-content pre,
.lms-blog-article-content code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Quiz Option Cards Touch Styling */
.lms-quiz-option {
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.lms-quiz-option:active {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: scale(0.99);
}

.lms-quiz-option .form-check-input {
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    margin-top: 0;
    flex-shrink: 0;
}

.lms-quiz-option label {
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
    margin-left: 10px;
    flex-grow: 1;
}

/* Action Button Box Mobile View */
@media (max-width: 576px) {
    .lms-action-box {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .lms-action-box .btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
    .lms-action-box > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .lms-action-box > div .btn {
        width: 100%;
    }
}

/* Course Viewing Page (course.php) Mobile Adjustments */
@media (max-width: 768px) {
    .course-detail-cover-img {
        max-height: 280px !important;
        border-radius: 14px !important;
    }
    .course-gallery-thumbs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .course-gallery-thumbs img {
        width: 68px !important;
        height: 50px !important;
        flex-shrink: 0;
        border-radius: 8px !important;
    }
}


