@font-face {
            font-family: 'Payami Nastaleeq';
            src: url('assets/fonts/Payami Nastaleeq.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Sarem Hasnain';
            src: url('assets/fonts/Sarem-Hasnain-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        /* ===== GLOBAL STYLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #0A2647;
            color: #FDF6E9;
            font-family: 'Inter', sans-serif;
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
        }

        body.light-theme {
            background-color: #FDF6E9;
            color: #2C2B28;
        }

        a, a:visited, a:hover, a:active, button, .btn, .nav-icons a, .footer-links a, .social-link {
            color: inherit;
            text-decoration: none;
            outline: none;
        }

        /* ===== NOTIFICATION BASE STYLES ===== */
        #khazeena-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 0.8rem 1.2rem;
            border-radius: 40px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 10000;
            display: none;
            border-left: 3px solid #D4AF37;
            max-width: 320px;
            color: white;
            animation: khazeenaSlideIn 0.2s ease;
        }

        #khazeena-notification.english-notification {
            font-family: 'Inter', sans-serif !important;
            direction: ltr;
            text-align: left;
            font-size: 0.9rem;
        }

        #khazeena-notification.urdu-notification {
            font-family: 'Payami Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
            direction: rtl;
            text-align: right;
            font-size: 1rem;
            line-height: 1.8;
        }

        #khazeena-notification.success { background-color: #2E7D32; }
        #khazeena-notification.error { background-color: #C62828; }
        #khazeena-notification.warning { background-color: #f39c12; }
        #khazeena-notification.info { background-color: #2A4A7A; }

        @keyframes khazeenaSlideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes khazeenaFadeOut {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(100%); }
        }

        /* ===== URDU TEXT ===== */
        .urdu,
        [lang="ur"],
        .urdu-text,
        .urdu-label,
        .urdu-title,
        .urdu-sarem,
        .logo-text .urdu-sarem,
        .category-tab .urdu,
        .section-title-urdu,
        .book-title.urdu,
        .book-author.urdu,
        .package-title-urdu,
        .package-title-urdu-header,
        .recently-added-card .urdu,
        .whatsapp-section .urdu,
        .quote-block .urdu,
        .footer .urdu,
        .footer-urdu-sarem {
            font-family: 'Payami Nastaleeq', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', serif !important;
            line-height: 1.9 !important;
            direction: rtl !important;
            text-align: center !important;
            font-size: 1.1rem !important;
            font-weight: normal !important;
            letter-spacing: normal !important;
        }

        .urdu-left {
            font-family: 'Payami Nastaleeq', serif !important;
            line-height: 1.9 !important;
            direction: rtl !important;
            text-align: left !important;
            font-size: 1.1rem !important;
        }

        /* ===== ENGLISH TEXT ===== */
        .english,
        .english-text,
        .english-tab,
        .btn,
        .section-link,
        .recently-label,
        .footer .english,
        .footer-english,
        .newsletter .english,
        .newsletter-note .english,
        .cart-preview h4 span,
        .btn-outline,
        .btn-solid {
            font-family: 'Inter', sans-serif !important;
            direction: ltr !important;
            text-align: center !important;
        }

        /* ===== COLOR PALETTE ===== */
        :root {
            --primary-deep-blue: #0A2647;
            --primary-rich-blue: #1E3A5F;
            --accent-gold: #D4AF37;
            --accent-bronze: #B76E2E;
            --accent-terracotta: #A75D3B;
            --neutral-cream: #FDF6E9;
            --neutral-soft-sand: #F5E6D3;
            --neutral-warm-gray: #E8D9CD;
            --text-charcoal: #2C2B28;
            --text-warm-brown: #5D4A3A;
            --text-soft-brown: #7D6B5D;
            --white-pure: #FFFFFF;
            --white-soft: #FFF9F0;
            --shadow-warm: rgba(167, 93, 59, 0.12);
            --success-green: #27ae60;
            --whatsapp-green: #25D366;
            --facebook-blue: #1877f2;
            --instagram-pink: #e4405f;
        }

        /* ===== HEADER (NO BOTTOM BORDER) ===== */
        .header-full-width {
            width: 100%;
            background-color: #0A2647;
            padding: 0.5rem 1.5rem;
            transition: background-color 0.3s;
            border-bottom: none !important;
        }

        body.light-theme .header-full-width {
            background-color: #FDF6E9;
            border-bottom: none !important;
            box-shadow: 0 2px 8px rgba(93, 74, 58, 0.08) !important;
        }

        .header-with-logo {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 0.8rem;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            cursor: pointer;
            text-decoration: none;
            flex-shrink: 0;
        }

        .logo-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #D4AF37;
            overflow: hidden;
            background: linear-gradient(135deg, #1E3A5F, #2A4A7A);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.light-theme .logo-circle {
            background: #FFFFFF !important;
            border-color: #D4AF37 !important;
        }

        .logo-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .logo-circle span {
            font-size: 1.3rem;
            color: #D4AF37;
        }

        .urdu-sarem, .logo-text .urdu-sarem {
            font-family: 'Sarem Hasnain', 'Payami Nastaleeq', serif !important;
            font-size: 1.8rem !important;
            color: #D4AF37 !important;
            line-height: 1.3 !important;
        }

        body.light-theme .urdu-sarem,
        body.light-theme .logo-text .urdu-sarem {
            color: #3E2C1F !important;
        }

        .header-center {
            font-size: 0.8rem;
            color: #E8D9CD;
            background: rgba(212, 175, 55, 0.1);
            padding: 0.2rem 0.8rem;
            border-radius: 30px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        body.light-theme .header-center {
            background: #F5E6D3 !important;
            color: #5D4A3A !important;
        }

        .nav-icons {
            display: flex;
            gap: 1rem;
            align-items: center;
            position: relative;
            flex-shrink: 0;
        }

        .nav-icons a {
            font-size: 1rem;
            transition: color 0.3s;
            cursor: pointer;
        }

        .nav-icons a:hover {
            color: #D4AF37;
        }

        body.light-theme .nav-icons a {
            color: #5D4A3A !important;
        }

        /* ===== WISHLIST & CART ICONS ===== */
        .wishlist-icon, .cart {
            position: relative;
            display: inline-block;
        }

        .wishlist-icon {
            color: #FDF6E9;
        }

        body.light-theme .wishlist-icon {
            color: #5D4A3A !important;
        }

        .wishlist-count, .cart-count {
            position: absolute;
            top: -6px;
            right: -8px;
            background: #D4AF37;
            color: #0A2647;
            font-size: 0.55rem;
            min-width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
        }

        /* ===== USER NAME BADGE ===== */
        .user-toggle {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .user-name-badge {
            display: inline-flex;
            align-items: center;
            font-size: 0.7rem;
            font-weight: 500;
            background: #D4AF37;
            color: #0A2647;
            padding: 0.2rem 0.7rem;
            border-radius: 30px;
            margin-left: 0.3rem;
            font-family: 'Inter', sans-serif !important;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
            transition: all 0.2s ease;
            white-space: nowrap;
            border: 1px solid rgba(255, 255, 255, 0.2);
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-name-badge:hover {
            background: #B76E2E;
            color: #FFFFFF;
            transform: translateY(-1px);
        }

        body.light-theme .user-name-badge {
            background: #D4AF37 !important;
            color: #0A2647 !important;
            box-shadow: none;
        }

        /* User Dropdown */
        .user-dropdown-container {
            position: relative;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            width: 200px;
            background: #1E3A5F;
            border: 1px solid #D4AF37;
            border-radius: 8px;
            padding: 0.4rem 0;
            display: none;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            margin-top: 0.4rem;
        }

        body.light-theme .user-dropdown {
            background: #FFFFFF !important;
            border-color: #D4AF37 !important;
        }

        body.light-theme .user-dropdown a {
            color: #5D4A3A !important;
        }

        body.light-theme .user-dropdown a:hover {
            background: #F5E6D3 !important;
            color: #D4AF37 !important;
        }

        .user-dropdown.show {
            display: block;
        }

        .user-dropdown a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            color: #FDF6E9;
            text-decoration: none;
            font-size: 0.8rem;
            transition: background 0.2s;
        }

        .user-dropdown a:hover {
            background: #2A4A7A;
            color: #D4AF37;
        }

        .dropdown-divider {
            height: 1px;
            background: #3A5A7A;
            margin: 0.3rem 0;
        }

        body.light-theme .dropdown-divider {
            background: #E8D9CD !important;
        }

        /* Search Bar */
        .header-search {
            flex: 1;
            max-width: 360px;
            min-width: 180px;
            margin: 0 0.5rem;
        }

        .search-form {
            display: flex;
            align-items: center;
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            border-radius: 40px;
            overflow: hidden;
            transition: all 0.3s;
        }

        body.light-theme .search-form {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        .search-form:focus-within {
            border-color: #D4AF37;
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
        }

        .search-input {
            font-family: 'Inter', 'Payami Nastaleeq', sans-serif !important;
            text-align: center !important;
            font-size: 0.85rem;
            height: 36px;
            padding: 0 0.8rem;
            background: transparent;
            border: none;
            color: #FDF6E9;
            width: 100%;
            outline: none;
        }

        body.light-theme .search-input {
            color: #2C2B28 !important;
        }

        .search-input::placeholder {
            color: #8A9BB5;
            opacity: 0.7;
            font-family: 'Inter', 'Payami Nastaleeq', sans-serif !important;
        }

        body.light-theme .search-input::placeholder {
            color: #B0A28E !important;
        }

        .search-btn {
            width: 36px;
            height: 36px;
            background: transparent;
            border: none;
            color: #D4AF37;
            cursor: pointer;
            border-left: 1px solid #3A5A7A;
        }

        body.light-theme .search-btn {
            border-left-color: #E8D9CD !important;
        }

        .search-btn:hover {
            background: #D4AF37;
            color: #0A2647;
        }

        /* Theme Toggle */
        .theme-toggle {
            cursor: pointer;
        }

        /* Mobile search */
        .search-mobile {
            display: none;
        }

        /* CSRF Token */
        #csrf-token {
            display: none;
        }

        /* Language Switcher */
        .language-switcher {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            margin-left: 0.5rem;
            background: rgba(212, 175, 55, 0.1);
            padding: 0.2rem 0.5rem;
            border-radius: 30px;
        }

        body.light-theme .language-switcher {
            background: #F5E6D3 !important;
        }

        .language-switcher a {
            padding: 0.2rem 0.6rem;
            border-radius: 30px;
            transition: all 0.2s;
            color: #F5E6D3;
            text-decoration: none;
            font-weight: 500;
        }

        .language-switcher a:first-child {
            font-family: 'Payami Nastaleeq', serif !important;
            font-size: 0.9rem !important;
        }
        .language-switcher a:last-child {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.75rem;
        }

        body.light-theme .language-switcher a {
            color: #5D4A3A !important;
        }

        .language-switcher a.active {
            background: #D4AF37;
            color: #0A2647;
        }

        body.light-theme .language-switcher a.active {
            background: #D4AF37 !important;
            color: #0A2647 !important;
        }

        .language-switcher .separator {
            color: #D4AF37;
            opacity: 0.3;
            font-size: 0.8rem;
        }

        /* ===== HERO SLIDER ===== */
        .hero-slider {
            position: relative;
            margin: 0.5rem 0 1rem;
            border-radius: 24px;
            overflow: hidden;
            min-height: 200px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .hero-slides-container {
            position: relative;
            width: 100%;
            height: 200px;
        }

        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-slide.active {
            opacity: 1;
            z-index: 2;
        }

        .hero-slide-background {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: brightness(0.6);
        }

        .hero-slide-overlay {
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(10, 38, 71, 0.8) 0%, rgba(30, 58, 95, 0.6) 100%);
        }

        .hero-slide-content {
            position: relative;
            z-index: 3;
            text-align: center;
            padding: 1rem;
            width: 100%;
            max-width: 80%;
            margin: 0 auto;
        }

        .hero-slide .urdu {
            font-size: 1.6rem !important;
            color: #fff;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
            margin-bottom: 0.3rem;
            line-height: 1.4 !important;
            text-align: center !important;
            width: 100%;
            display: block;
        }

        .hero-slide .english {
            font-size: 0.8rem;
            color: #D4AF37;
            font-style: italic;
            text-align: center !important;
            letter-spacing: 1px;
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            background: rgba(212, 175, 55, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            border: 1px solid #D4AF37;
            transition: all 0.3s;
            z-index: 10;
        }

        .slider-arrow:hover {
            background: #D4AF37;
            color: #0A2647;
        }

        .slider-arrow.prev { left: 15px; }
        .slider-arrow.next { right: 15px; }

        .slider-dots {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }

        .slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            border: 1px solid #D4AF37;
        }

        .slider-dot.active {
            background: #D4AF37;
        }

        /* LIGHT THEME HERO OVERRIDES */
        body.light-theme .hero-slide-overlay {
            background: linear-gradient(135deg, rgba(253, 246, 233, 0.85) 0%, rgba(245, 230, 211, 0.8) 100%) !important;
        }

        body.light-theme .hero-slide .urdu {
            color: #3E2C1F !important;
            text-shadow: none !important;
        }

        body.light-theme .hero-slide .english {
            color: #A75D3B !important;
        }

        body.light-theme .slider-arrow {
            background: rgba(255,255,255,0.95) !important;
            color: #D4AF37 !important;
            border: 1px solid #D4AF37 !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
        }

        body.light-theme .slider-arrow:hover {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        body.light-theme .slider-dot {
            background: rgba(167, 93, 59, 0.3) !important;
        }

        body.light-theme .slider-dot.active {
            background: #D4AF37 !important;
        }

        /* ===== CATEGORY TABS ===== */
        .category-tabs {
            display: flex;
            gap: 1rem;
            justify-content: center;
            padding: 0.5rem 0;
            flex-wrap: wrap;
        }

        .category-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.1rem;
            text-decoration: none;
        }

        .category-tab .urdu {
            font-size: 0.85rem;
            color: #b5c4d4;
            transition: color 0.3s;
            text-align: center;
        }

        body.light-theme .category-tab .urdu {
            color: #5D4A3A !important;
        }

        .category-tab .english-tab {
            font-size: 0.7rem;
            color: #7d8b9f;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        body.light-theme .category-tab .english-tab {
            color: #A75D3B !important;
        }

        .category-tab:hover .urdu {
            color: #D4AF37;
        }

        /* ===== SECTION HEADERS ===== */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 1rem 0 0.5rem;
            padding-bottom: 0.2rem;
            border-bottom: 0px solid rgba(212, 175, 55, 0.2);
            width: 100%;
        }

        .section-header-left {
            display: flex;
            align-items: baseline;
            gap: 0.6rem;
        }

        .section-title-urdu {
            font-size: 1.1rem;
            color: #D4AF37;
        }

        body.light-theme .section-title-urdu {
            color: #3E2C1F !important;
        }

        .section-title-english {
            font-size: 0.7rem;
            color: #9aa9b9;
            text-transform: uppercase;
        }

        body.light-theme .section-title-english {
            color: #A75D3B !important;
        }

        .view-all-link {
            color: #D4AF37;
            font-size: 0.65rem;
            padding: 0.2rem 0.8rem;
            border: 1px solid rgba(212, 175, 55, 0.4);
            border-radius: 30px;
            transition: all 0.3s;
            white-space: nowrap;
            text-decoration: none;
        }

        body.light-theme .view-all-link {
            border-color: #D4AF37 !important;
            color: #D4AF37 !important;
        }

        .view-all-link:hover {
            background: #D4AF37;
            color: #0A2647;
        }

        body.light-theme .view-all-link:hover {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        /* ===== PACKAGE HEADER ===== */
        .package-header {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            margin: 1rem 0 0.8rem !important;
            padding-bottom: 0.5rem !important;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
            width: 100% !important;
        }

        body.light-theme .package-header {
            border-bottom-color: #E8D9CD !important;
        }

        /* ===== CAROUSEL ===== */
        .carousel-section {
            position: relative;
            margin-bottom: 1rem;
            width: 100%;
        }

        .carousel-container {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            width: 100%;
            position: relative;
        }

        .carousel-nav-btn {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #D4AF37;
            color: #0A2647;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            z-index: 5;
        }

        body.light-theme .carousel-nav-btn {
            background: #FFFFFF !important;
            color: #D4AF37 !important;
            border: 1px solid #D4AF37 !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        }

        .carousel-nav-btn:hover {
            background: #B76E2E;
            color: white;
            transform: scale(1.05);
        }

        body.light-theme .carousel-nav-btn:hover {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        .carousel-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .carousel-wrapper {
            flex: 1;
            overflow: hidden;
            border-radius: 12px;
        }

        .carousel-track {
            display: flex;
            gap: 0.8rem;
            transition: transform 0.4s ease;
            padding: 0.3rem 0;
            scroll-behavior: smooth;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .carousel-track::-webkit-scrollbar {
            display: none;
        }

        /* ===== BOOK CARD ===== */
        .book-card {
            background: transparent;
            width: 150px;
            flex-shrink: 0;
            cursor: pointer;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 10px;
            margin-bottom: 5px;
            transition: all 0.2s;
        }

        .book-card:hover {
            transform: translateY(-3px);
        }

        .book-cover {
            width: 140px;
            height: 200px;
            background: #2A4A7A;
            border: 2px solid #3A5A7A;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.light-theme .book-cover {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
        }

        .book-card:hover .book-cover {
            border-color: #D4AF37;
        }

        body.light-theme .book-card:hover .book-cover {
            border-color: #D4AF37 !important;
            box-shadow: 0 6px 12px rgba(212, 175, 55, 0.1) !important;
        }

        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .book-title {
            font-size: 1rem;
            color: #FDF6E9;
            text-align: center !important;
            width: 100%;
            padding: 0 0.2rem;
            line-height: 1.3;
        }

        body.light-theme .book-title {
            color: #2C2B28 !important;
        }

        .book-title.urdu {
            font-size: 0.8rem;
        }

        body.light-theme .book-title.english {
            color: #5D4A3A !important;
        }

        /* ===== PRICE CIRCLE ===== */
        .price-circle {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 48px;
            height: 48px;
            background: #D4AF37;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #0A2647;
            font-weight: bold;
            font-size: 0.7rem;
            border: 1px solid #0A2647;
            z-index: 20;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }

        body.light-theme .price-circle {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            border-color: #FFFFFF !important;
            color: #0A2647 !important;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2) !important;
        }

        .price-circle .price-amount {
            font-size: 0.8rem !important;
            font-weight: 800;
        }

        .price-circle .price-currency {
            font-size: 0.55rem;
        }

        .price-circle.sale-circle {
            background: #e74c3c;
            color: white;
        }

        body.light-theme .price-circle.sale-circle {
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
            color: #FFFFFF !important;
        }

        .sale-badge {
            position: absolute;
            top: 6px;
            left: 0px;
            background: #e74c3c;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.55rem;
            font-weight: bold;
            z-index: 15;
        }

        body.light-theme .sale-badge {
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
        }

        .free-shipping-badge {
            position: absolute;
            top: 6px;
            left: 0px;
            background: #27ae60;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.55rem;
            font-weight: bold;
            z-index: 15;
        }

        body.light-theme .free-shipping-badge {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
        }

        .new-badge {
            position: absolute;
            top: 6px;
            left: 0px;
            background: #3498db;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.55rem;
            font-weight: bold;
            z-index: 15;
        }

        body.light-theme .new-badge {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
        }

        .bestseller-badge {
            position: absolute;
            top: 6px;
            left: 0px;
            background: #f39c12;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.55rem;
            font-weight: bold;
            z-index: 15;
        }

        body.light-theme .bestseller-badge {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
        }

        /* ===== ADD TO CART & WISHLIST BUTTONS ===== */
        .book-action-buttons-container {
            display: flex;
            gap: 0.3rem;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 0.3rem;
        }

        .add-to-cart-btn {
            flex: 3;
            padding: 0.3rem 0;
            background: transparent;
            border: 1px solid #3A5A7A;
            color: #FDF6E9;
            font-size: 0.6rem;
            cursor: pointer;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
            transition: all 0.2s;
            height: 30px;
        }

        body.light-theme .add-to-cart-btn {
            background: #F5E6D3 !important;
            border-color: #D4AF37 !important;
            color: #5D4A3A !important;
        }

        .add-to-cart-btn:hover {
            background: #D4AF37;
            border-color: #D4AF37;
            color: #0A2647;
        }

        body.light-theme .add-to-cart-btn:hover {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        .wishlist-btn {
            flex: 0 0 30px !important;
            width: 30px !important;
            height: 30px !important;
            min-width: 30px !important;
            border-radius: 50% !important;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid #D4AF37;
            color: #D4AF37;
            display: flex !important;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.8rem;
            backdrop-filter: blur(4px);
            padding: 0;
            margin: 0;
        }

        body.light-theme .wishlist-btn {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            color: #C0A080 !important;
        }

        .wishlist-btn:hover {
            background: #D4AF37;
            color: #0A2647;
            transform: scale(1.05);
        }

        body.light-theme .wishlist-btn:hover,
        body.light-theme .wishlist-btn.active {
            background: #FEE2E2 !important;
            border-color: #EF4444 !important;
            color: #EF4444 !important;
        }

        .wishlist-btn.active {
            background: #D4AF37;
            color: #0A2647;
        }

        /* ===== RECENTLY ADDED ===== */
        .recently-added-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .recently-added-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.7rem;
            background: #2A4A7A;
            border: 1px solid #3A5A7A;
            border-radius: 8px;
            transition: all 0.2s;
            text-decoration: none;
            color: inherit;
        }

        body.light-theme .recently-added-card {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        .recently-added-card:hover {
            border-color: #D4AF37;
            transform: translateY(-2px);
            background: #1E3A5F;
        }

        body.light-theme .recently-added-card:hover {
            border-color: #D4AF37 !important;
            background: #FFFFFF !important;
        }

        .recently-added-card span:first-child {
            font-size: 1.8rem;
            margin-bottom: 0.3rem;
        }

        .recently-added-card .urdu {
            font-size: 0.8rem;
            color: #FDF6E9;
        }

        body.light-theme .recently-added-card .urdu {
            color: #2C2B28 !important;
        }

        body.light-theme .recently-added-icon {
            color: #D4AF37 !important;
        }

        /* ===== PACKAGE CARDS ===== */
        .special-column-content {
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            border-radius: 16px;
            padding: 1rem;
            position: sticky;
            top: 20px;
        }

        body.light-theme .special-column-content {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        .package-grid {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin-top: 0.3rem;
        }

        .package-card {
            background: linear-gradient(135deg, #2A4A7A, #1E3A5F);
            border: 1px solid #3A5A7A;
            border-radius: 16px;
            padding: 0.8rem;
            transition: all 0.2s;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        body.light-theme .package-card {
            background: #FDF6E9 !important;
            border-color: #E8D9CD !important;
            box-shadow: none;
        }

        .package-card::before {
            content: '🎁';
            position: absolute;
            right: 0.3rem;
            bottom: 0.1rem;
            font-size: 3rem;
            opacity: 0.1;
            transform: rotate(15deg);
            pointer-events: none;
        }

        .package-card:hover {
            border-color: #D4AF37;
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(212, 175, 55, 0.2);
        }

        body.light-theme .package-card:hover {
            border-color: #D4AF37 !important;
            background: #FFFCF5 !important;
        }

        .package-badge {
            display: inline-block;
            background: #D4AF37;
            color: #0A2647;
            padding: 0.15rem 0.6rem;
            border-radius: 30px;
            font-size: 0.6rem;
            font-weight: bold;
            margin-bottom: 0.4rem;
            letter-spacing: 0.5px;
        }

        body.light-theme .package-badge {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        .package-header-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.2rem;
            width: 100%;
        }

        .package-title-urdu {
            font-size: 0.9rem;
            color: #D4AF37;
            text-align: center;
        }

        body.light-theme .package-title-urdu {
            color: #3E2C1F !important;
        }

        .package-book-count {
            background: rgba(212, 175, 55, 0.2);
            color: #D4AF37;
            padding: 0.15rem 0.4rem;
            border-radius: 20px;
            font-size: 0.55rem;
            font-weight: bold;
            white-space: nowrap;
        }

        .package-title-english {
            font-size: 0.65rem;
            color: #F5E6D3;
            margin-bottom: 0.4rem;
            letter-spacing: 0.3px;
            text-align: center;
        }

        body.light-theme .package-title-english {
            color: #7D6B5D !important;
        }

        .package-books-preview {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 0.4rem;
            margin: 0.3rem 0;
            font-size: 0.65rem;
            color: #F5E6D3;
            border-left: 2px solid #D4AF37;
            width: 100%;
            text-align: center;
        }

        body.light-theme .package-books-preview {
            background: #F5E6D3 !important;
            border-left-color: #D4AF37 !important;
        }

        .package-books-preview i {
            color: #D4AF37;
            margin-right: 0.2rem;
        }

        .book-titles-list {
            margin-top: 0.2rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.2rem;
            justify-content: center;
        }

        .book-title-tag {
            background: #1E3A5F;
            padding: 0.15rem 0.4rem;
            border-radius: 15px;
            font-size: 0.55rem;
            color: #FDF6E9;
            border: 1px solid #3A5A7A;
        }

        body.light-theme .book-title-tag {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            color: #5D4A3A !important;
        }

        .package-price-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            margin: 0.4rem 0;
            flex-wrap: wrap;
        }

        .original-price {
            font-size: 0.7rem;
            color: #F5E6D3;
            text-decoration: line-through;
        }

        body.light-theme .original-price {
            color: #A75D3B !important;
        }

        .package-price {
            font-size: 1.1rem;
            color: #D4AF37;
            font-weight: bold;
        }

        body.light-theme .package-price {
            color: #D4AF37 !important;
        }

        .discount-badge {
            background: #27ae60;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 30px;
            font-size: 0.6rem;
            font-weight: bold;
        }

        body.light-theme .discount-badge {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
        }

        .free-shipping-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            background: #3498db;
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 20px;
            font-size: 0.5rem;
            font-weight: bold;
        }

        .package-footer {
            display: flex;
            justify-content: center;
            gap: 0.6rem;
            margin-top: 0.5rem;
            width: 100%;
        }

        .package-add-btn {
            background: #D4AF37;
            color: #0A2647;
            border: none;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.65rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }

        body.light-theme .package-add-btn {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        .package-add-btn:hover {
            background: #B76E2E;
            color: white;
            transform: scale(1.03);
        }

        .package-view-btn {
            background: transparent;
            color: #D4AF37;
            border: 1px solid #D4AF37;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.65rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }

        body.light-theme .package-view-btn {
            border-color: #D4AF37 !important;
            color: #D4AF37 !important;
        }

        .package-view-btn:hover {
            background: #D4AF37;
            color: #0A2647;
        }

        body.light-theme .package-view-btn:hover {
            background: #D4AF37 !important;
            color: #0A2647 !important;
        }

        /* ===== ANNOUNCEMENTS & ADS ===== */
        .announcement-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            background: #2A4A7A;
            border: 1px solid #3A5A7A;
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }

        body.light-theme .announcement-item {
            background: #F5E6D3 !important;
            border-color: #E8D9CD !important;
        }

        .announcement-icon {
            font-size: 1rem;
            min-width: 25px;
        }

        .announcement-title {
            font-size: 0.75rem;
            color: #D4AF37;
        }

        body.light-theme .announcement-title {
            color: #3E2C1F !important;
        }

        .ad-banner {
            background: linear-gradient(135deg, #2A4A7A, #1E3A5F);
            border: 2px dashed #D4AF37;
            border-radius: 10px;
            padding: 0.6rem;
            text-align: center;
            margin: 0.6rem 0;
        }

        body.light-theme .ad-banner {
            background: linear-gradient(135deg, #FFFFFF 0%, #FDF6E9 100%) !important;
            border-color: #D4AF37 !important;
        }

        .ad-banner .ad-button {
            display: inline-block;
            padding: 0.2rem 0.6rem;
            background: #D4AF37;
            color: #0A2647;
            border-radius: 30px;
            font-size: 0.6rem;
            font-weight: bold;
            margin-top: 0.3rem;
            text-decoration: none;
        }

        body.light-theme .ad-title {
            color: #3E2C1F !important;
        }

        /* ===== QUOTE BLOCK ===== */
        .quote-block {
            background: linear-gradient(135deg, #1E3A5F, #15304F);
            padding: 1rem;
            text-align: center;
            margin: 0.8rem 0;
            border-radius: 28px;
            width: 100%;
        }

        body.light-theme .quote-block {
            background: linear-gradient(135deg, #FDF6E9 0%, #F5E6D3 100%) !important;
            border: 1px solid #D4AF37 !important;
        }

        .quote-block .urdu {
            font-size: 1.3rem;
            color: #D4AF37;
            margin-bottom: 0.3rem;
        }

        body.light-theme .quote-block .urdu {
            color: #3E2C1F !important;
        }

        .quote-block .english {
            font-size: 0.85rem;
            color: #E8D9CD;
            font-style: italic;
        }

        body.light-theme .quote-block .english {
            color: #A75D3B !important;
        }

        /* ===== WHATSAPP SECTION ===== */
        .whatsapp-section {
            text-align: center !important;
            padding: 0rem 0;
            max-width: 400px;
            margin: 0 auto;
        }

        .whatsapp-section .urdu {
            font-size: 1.3rem;
            color: #D4AF37;
            margin-bottom: 0.3rem;
            line-height: 1.7 !important;
            text-align: center !important;
            width: 100%;
            display: block;
        }

        body.light-theme .whatsapp-section .urdu {
            color: #3E2C1F !important;
        }

        .whatsapp-section .english {
            font-size: 0.85rem;
            color: #E8D9CD;
            text-align: center !important;
            margin-bottom: 0.6rem;
        }

        body.light-theme .whatsapp-section .english {
            color: #5D4A3A !important;
        }

        .whatsapp-form {
            display: flex;
            max-width: 300px;
            margin: 0.6rem auto;
            border: 1px solid #D4AF37;
            border-radius: 50px;
            overflow: hidden;
        }

        body.light-theme .whatsapp-form {
            border-color: #D4AF37 !important;
        }

        .whatsapp-form input {
            flex: 1;
            padding: 0.5rem 0.8rem;
            background: #1E3A5F;
            border: none;
            color: #FDF6E9;
            font-size: 0.75rem;
            outline: none;
        }

        body.light-theme .whatsapp-form input {
            background: #FFFFFF !important;
            color: #2C2B28 !important;
        }

        .whatsapp-form button {
            padding: 0.5rem 1rem;
            background: #25D366;
            color: white;
            border: none;
            font-size: 0.75rem;
            cursor: pointer;
            transition: background 0.3s;
        }

        .whatsapp-form button:hover {
            background: #128C7E;
        }

        /* ===== FOOTER (NO TOP BORDER) ===== */
        .footer-full-width {
            width: 100%;
            background-color: #0A2647;
            padding: 1.2rem 1.5rem 0.8rem;
            transition: background-color 0.3s;
            border-top: none !important;
        }

        body.light-theme .footer-full-width {
            background: linear-gradient(135deg, #FDF6E9 0%, #F5E6D3 100%) !important;
            border-top: none !important;
            box-shadow: 0 -2px 8px rgba(93, 74, 58, 0.08) !important;
        }

        .footer {
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-brand-link {
            text-decoration: none;
            display: inline-block;
            transition: transform 0.2s ease;
            margin-bottom: 0.6rem;
        }

        .footer-brand-link:hover {
            transform: translateY(-2px);
        }

        .footer-logo-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid #D4AF37;
            margin: 0 auto 0.5rem;
            overflow: hidden;
            background: linear-gradient(135deg, #1E3A5F, #2A4A7A);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
        }

        body.light-theme .footer-logo-circle {
            background: #FFFFFF !important;
            border-color: #D4AF37 !important;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1) !important;
        }

        .footer-logo-circle span {
            font-size: 1.6rem;
            color: #D4AF37;
        }

        .footer-urdu-sarem {
            font-family: 'Sarem Hasnain', 'Payami Nastaleeq', serif !important;
            font-size: 1.6rem !important;
            color: #D4AF37 !important;
            line-height: 1.3 !important;
            margin-bottom: 0.2rem;
            display: block;
            width: 100%;
            text-align: center;
        }

        body.light-theme .footer-urdu-sarem {
            color: #3E2C1F !important;
            background: none;
            -webkit-text-fill-color: #3E2C1F;
        }

        .footer-english {
            color: #E8D9CD;
            font-size: 0.7rem;
            text-align: center;
            width: 100%;
        }

        body.light-theme .footer-english {
            color: #5D4A3A !important;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin: 0.5rem 0;
        }

        .footer-links a {
            color: #b5c4d4;
            font-size: 0.7rem;
            text-decoration: none;
        }

        body.light-theme .footer-links a {
            color: #5D4A3A !important;
        }

        .footer-links a:hover {
            color: #D4AF37;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 0.7rem;
            margin: 0.6rem 0;
        }

        .social-link {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #D4AF37;
            font-size: 0.9rem;
            transition: all 0.2s;
            text-decoration: none;
        }

        body.light-theme .social-link {
            background: #FFFFFF !important;
            border: 1px solid #D4AF37 !important;
            color: #D4AF37 !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
        }

        .social-link:hover {
            background: #D4AF37;
            color: #0A2647;
            transform: translateY(-2px);
        }

        body.light-theme .social-link:hover {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2) !important;
        }

        .developer-credit {
            margin: 0.8rem 0 0.3rem;
            padding: 0.3rem 0;
            font-size: 0.7rem;
            color: #b5c4d4;
            border-top: 1px solid rgba(212, 175, 55, 0.1);
            border-bottom: 1px solid rgba(212, 175, 55, 0.1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.2rem;
            padding: 0.3rem 1rem;
            border-radius: 40px;
            background: rgba(30, 58, 95, 0.4);
        }

        body.light-theme .developer-credit {
            background: rgba(212, 175, 55, 0.08) !important;
            border-color: rgba(212, 175, 55, 0.2) !important;
            color: #5D4A3A !important;
        }

        .developer-name {
            font-weight: bold;
            color: #D4AF37;
            letter-spacing: 1px;
        }

        body.light-theme .developer-name {
            color: #D4AF37 !important;
        }

        .whatsapp-credit-link {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            color: #25D366 !important;
            text-decoration: none;
            font-weight: 500;
            padding: 0.15rem 0.5rem;
            border-radius: 30px;
            background: rgba(37, 211, 102, 0.1);
            transition: all 0.2s;
        }

        body.light-theme .whatsapp-credit-link {
            color: #25D366 !important;
        }

        .footer-copyright {
            font-size: 0.6rem;
            color: #6a7a8a;
            margin-top: 0.6rem;
            text-align: center;
        }

        body.light-theme .footer-copyright {
            color: #7D6B5D !important;
        }

        /* ===== MAIN CONTAINER ===== */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0.8rem 1.5rem;
        }

        /* ===== DYNAMIC LAYOUT ===== */
        .dynamic-layout {
            display: flex;
            gap: 1.2rem;
            margin: 1rem 0;
        }

        .layout-column {
            min-width: 180px;
        }

        /* ===== TOP & BOTTOM SECTIONS ===== */
        .top-section-full-width {
            width: 100%;
            padding: 0 1.5rem;
        }

        .bottom-section-full-width {
            width: 100%;
            padding: 0 1.5rem 1rem;
        }

        /* ===== AUTO-INPUT STYLES ===== */
        .auto-input {
            width: 100%;
            padding: 0.6rem 0.8rem;
            background: #2A4A7A;
            border: 1px solid #3A5A7A;
            border-radius: 8px;
            color: #FDF6E9;
            font-size: 0.9rem;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

        body.light-theme .auto-input {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            color: #2C2B28 !important;
        }

        .auto-input:focus {
            outline: none;
            border-color: #D4AF37;
            background: #1E3A5F;
        }

        body.light-theme .auto-input:focus {
            border-color: #D4AF37 !important;
            background: #FFFFFF !important;
        }

        .auto-input.urdu-mode {
            font-family: 'Payami Nastaleeq', serif !important;
            direction: rtl;
            text-align: right;
            font-size: 1rem;
        }

        .auto-input.urdu-mode::placeholder {
            font-family: 'Payami Nastaleeq', serif !important;
            color: #8A9BB5;
            opacity: 0.8;
        }

        .auto-input.english-mode::placeholder {
            font-family: 'Inter', sans-serif !important;
            color: #8A9BB5;
            opacity: 0.8;
        }

        /* ===== BREADCRUMB ===== */
        .breadcrumb-container {
            max-width: 1400px;
            margin: 0.3rem auto 0;
            padding: 0 1.5rem;
            text-align: left;
        }

        .breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.3rem 0.8rem;
            background: #1E3A5F;
            border: 1px solid #D4AF37;
            border-radius: 40px;
            color: #F5E6D3;
            font-size: 0.75rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            min-height: 36px;
            height: 36px;
        }

        body.light-theme .breadcrumb {
            background: #FFFFFF !important;
            border-color: #D4AF37 !important;
        }

        .breadcrumb a {
            color: #D4AF37;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            padding: 0.1rem 0.3rem;
            border-radius: 20px;
            line-height: 1;
        }

        body.light-theme .breadcrumb a {
            color: #7D6B5D !important;
        }

        .breadcrumb a:hover {
            color: #FDF6E9;
            background: rgba(212, 175, 55, 0.1);
        }

        body.light-theme .breadcrumb a:hover {
            background: rgba(212, 175, 55, 0.1) !important;
            color: #D4AF37 !important;
        }

        .breadcrumb a i {
            font-size: 0.7rem;
        }

        .breadcrumb .separator {
            color: #D4AF37;
            font-size: 0.6rem;
            opacity: 0.7;
        }

        .breadcrumb .current {
            color: #FDF6E9;
            padding: 0.1rem 0.3rem;
            line-height: 1;
        }

        body.light-theme .breadcrumb .current {
            color: #2C2B28 !important;
        }

        /* ===== PAGINATION ===== */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.4rem;
            margin-top: 1rem;
            margin-bottom: 1rem;
        }

        .pagination-btn {
            min-width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            border-radius: 8px;
            color: #FDF6E9;
            text-decoration: none;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif !important;
            font-size: 0.8rem;
        }

        body.light-theme .pagination-btn {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            color: #5D4A3A !important;
        }

        .pagination-btn:hover,
        .pagination-btn.active {
            background: #D4AF37;
            color: #0A2647;
            border-color: #D4AF37;
        }

        body.light-theme .pagination-btn:hover,
        body.light-theme .pagination-btn.active {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
            border-color: #D4AF37 !important;
        }

        /* ===== CATEGORY CARDS ===== */
        .category-card {
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            border-radius: 16px;
            padding: 1.2rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 200px;
            height: 240px;
            position: relative;
            overflow: hidden;
        }

        body.light-theme .category-card {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        .category-card:hover {
            transform: translateY(-3px);
            border-color: #D4AF37;
            box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
        }

        body.light-theme .category-card:hover {
            border-color: #D4AF37 !important;
        }

        .category-icon-wrapper {
            margin-bottom: 0.8rem;
        }

        .category-icon-circle {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #2A4A7A, #1E3A5F);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #D4AF37;
            transition: all 0.2s ease;
        }

        body.light-theme .category-icon-circle {
            background: linear-gradient(135deg, #FDF6E9 0%, #F5E6D3 100%) !important;
        }

        .category-card:hover .category-icon-circle {
            transform: scale(1.03);
            border-color: #B76E2E;
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
        }

        .category-icon {
            font-size: 1.8rem;
            color: #D4AF37;
        }

        .category-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 0.2rem;
        }

        .category-name.urdu-name {
            font-family: 'Payami Nastaleeq', serif !important;
            font-size: 1rem !important;
            color: #D4AF37;
            direction: rtl;
            white-space: normal;
            line-height: 1.6;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.light-theme .category-name.urdu-name {
            color: #3E2C1F !important;
        }

        .category-name.english-name {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.85rem !important;
            font-weight: 600;
            color: #D4AF37;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: normal;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.light-theme .category-name.english-name {
            color: #D4AF37 !important;
        }

        .category-book-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            background: rgba(212, 175, 55, 0.1);
            padding: 0.2rem 0.6rem;
            border-radius: 30px;
            margin-bottom: 0.6rem;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .category-book-count i {
            font-size: 0.6rem;
            color: #D4AF37;
        }

        .category-book-count span {
            font-family: 'Inter','Payami Nastaleeq', serif !important;
            font-size: 0.65rem;
            color: #F5E6D3;
        }

        body.light-theme .category-book-count span {
            color: #5D4A3A !important;
        }

        .explore-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            padding: 0.3rem 0.8rem;
            background: transparent;
            border: 1px solid #D4AF37;
            border-radius: 30px;
            transition: all 0.2s ease;
        }

        body.light-theme .explore-btn span {
            color: #D4AF37 !important;
        }

        .explore-btn span {
            font-family: 'Inter','Payami Nastaleeq', serif !important;
            font-size: 0.65rem;
            font-weight: 500;
            color: #D4AF37;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .explore-btn i {
            font-size: 0.6rem;
            color: #D4AF37;
            transition: transform 0.2s ease;
        }

        .category-card:hover .explore-btn {
            background: #D4AF37;
        }

        body.light-theme .category-card:hover .explore-btn {
            background: #D4AF37 !important;
        }

        .category-card:hover .explore-btn span,
        .category-card:hover .explore-btn i {
            color: #0A2647;
        }

        body.light-theme .category-card:hover .explore-btn span,
        body.light-theme .category-card:hover .explore-btn i {
            color: #0A2647 !important;
        }

        /* ===== STATS CARDS ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 0 1.5rem;
        }

        .stat-card {
            background: #1E3A5F;
            border: 1px solid #3A5A7A;
            border-radius: 16px;
            padding: 1rem;
            text-align: center;
            transition: all 0.2s;
        }

        body.light-theme .stat-card {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        .stat-icon {
            font-size: 1.6rem;
            margin-bottom: 0.3rem;
        }

        .stat-number {
            font-size: 1.6rem;
            font-weight: bold;
            color: #D4AF37;
        }

        body.light-theme .stat-number {
            color: #D4AF37 !important;
        }

        .stat-label {
            font-family: 'Inter','Payami Nastaleeq', serif !important;
            color: #F5E6D3;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        body.light-theme .stat-label {
            color: #7D6B5D !important;
        }

        /* ===== CART & CHECKOUT EXTRAS ===== */
        body.light-theme .cart-items-container,
        body.light-theme .cart-summary,
        body.light-theme .checkout-form-card,
        body.light-theme .order-summary-card {
            background: #FFFFFF !important;
            border: 1px solid #E8D9CD !important;
            border-radius: 16px !important;
        }

        body.light-theme .cart-item-title-urdu {
            color: #3E2C1F !important;
        }

        body.light-theme .form-control {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
            color: #2C2B28 !important;
        }

        body.light-theme .form-control:focus {
            border-color: #D4AF37 !important;
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1) !important;
        }

        body.light-theme .payment-method {
            background: #F5E6D3 !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .payment-method:has(input:checked) {
            border-color: #D4AF37 !important;
            background: rgba(212, 175, 55, 0.05) !important;
        }

        body.light-theme .continue-shopping-btn {
            background: linear-gradient(135deg, #D4AF37 0%, #B76E2E 100%) !important;
            color: #0A2647 !important;
        }

        /* ===== EMPTY STATE ===== */
        body.light-theme .empty-state {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .empty-state h3 {
            color: #3E2C1F !important;
        }

        body.light-theme .empty-state p {
            color: #7D6B5D !important;
        }

        /* ===== ADDITIONAL PAGE SPECIFIC (BOOK DETAIL, ORDERS, ETC.) ===== */
        body.light-theme .book-detail-section {
            background: transparent !important;
        }

        body.light-theme .book-detail-container {
            background: #FFFFFF !important;
            border: 1px solid #E8D9CD !important;
            border-radius: 20px !important;
        }

        body.light-theme .book-title-urdu {
            color: #3E2C1F !important;
        }

        body.light-theme .book-title-english {
            color: #5D4A3A !important;
        }

        body.light-theme .author-urdu {
            color: #A75D3B !important;
        }

        body.light-theme .author-english {
            color: #7D6B5D !important;
        }

        body.light-theme .detail-value {
            color: #3E2C1F !important;
        }

        body.light-theme .detail-label {
            color: #A75D3B !important;
        }

        body.light-theme .order-card,
        body.light-theme .detail-card,
        body.light-theme .tracking-container {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .card-title {
            color: #3E2C1F !important;
            border-bottom-color: #E8D9CD !important;
        }

        body.light-theme .info-label {
            color: #7D6B5D !important;
        }

        body.light-theme .info-value {
            color: #2C2B28 !important;
        }

        body.light-theme .order-items-section {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .section-title {
            color: #3E2C1F !important;
            border-bottom-color: #E8D9CD !important;
        }

        body.light-theme .order-item {
            background: #F5E6D3 !important;
        }

        body.light-theme .order-item:hover {
            background: #FFFFFF !important;
            border-color: #D4AF37 !important;
        }

        body.light-theme .item-title-urdu {
            color: #3E2C1F !important;
        }

        body.light-theme .timeline-content {
            background: #F5E6D3 !important;
        }

        body.light-theme .invoice-container {
            background: #FFFFFF !important;
            color: #2C2B28 !important;
        }

        body.light-theme .invoice-details {
            background: #F5E6D3 !important;
        }

        body.light-theme th {
            background: #3E2C1F !important;
            color: #FFFFFF !important;
        }

        body.light-theme .shipping-content,
        body.light-theme .auth-card {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .package-hero {
            background: linear-gradient(135deg, #FFFFFF 0%, #FDF6E9 100%) !important;
        }

        body.light-theme .package-hero .overlay {
            background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(253,246,233,0.95) 100%) !important;
        }

        /* ===== RESPONSIVE (REDUCED GAPS) ===== */
        @media (max-width: 1000px) {
            .header-with-logo { flex-wrap: nowrap; }
            .header-search { width: 100%; max-width: 260px; margin: 0 0.3rem; }
            .search-mobile { display: inline-block; }
            .dynamic-layout { flex-direction: column; }
            .layout-column { width: 100% !important; }
            .section-header { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
            .hero-slider, .hero-slides-container { min-height: 220px; height: 220px; }
            .hero-slide .urdu { font-size: 1.6rem !important; }
        }

        @media (max-width: 768px) {
            .hero-slider, .hero-slides-container { min-height: 180px; height: 180px; }
            .hero-slide .urdu { font-size: 1.3rem !important; }
            .hero-slide .english { font-size: 0.7rem; }
            .whatsapp-section .urdu { font-size: 1.1rem; }
            .add-to-cart-btn { height: 28px; font-size: 0.55rem; padding: 0.2rem 0; }
            .book-action-buttons-container { gap: 0.2rem; }
            .breadcrumb-container { padding: 0 0.8rem; text-align: center; }
            .breadcrumb { gap: 0.2rem; padding: 0.2rem 0.6rem; min-height: 32px; height: 32px; font-size: 0.65rem; }
            .section-header { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 0.3rem !important; }
            .section-header-left { flex-direction: column !important; align-items: center !important; gap: 0.1rem !important; text-align: center !important; }
            .section-title-urdu, .section-title-english { text-align: center !important; display: block !important; width: 100% !important; }
            .view-all-link { display: inline-block !important; margin-top: 0.1rem !important; }
        }

        @media (max-width: 700px) {
            .header-center { display: none; }
            .nav-icons { gap: 0.8rem; }
            .book-card { width: 130px; }
            .book-cover { width: 120px; height: 175px; }
            .carousel-nav-btn { width: 30px; height: 30px; }
            .package-footer { flex-direction: column; align-items: center; }
            .top-section-full-width, .bottom-section-full-width { padding: 0 0.8rem; }
            .main-container { padding: 0.8rem 0.8rem; }
            .language-switcher { margin-left: 0; margin-top: 0; }
        }

        @media (max-width: 600px) {
            .user-name-badge { max-width: 65px; font-size: 0.6rem; padding: 0.15rem 0.5rem; }
        }

        @media (max-width: 550px) {
            .language-switcher { display: flex !important; margin-left: 0; padding: 0.15rem 0.3rem; gap: 0.2rem; }
            .language-switcher a { padding: 0.15rem 0.4rem; font-size: 0.65rem; }
            .language-switcher a:first-child { font-size: 0.8rem !important; }
            .language-switcher a:last-child { font-size: 0.65rem; }
            .language-switcher .separator { font-size: 0.6rem; }
        }

        @media (max-width: 480px) {
            .hero-slider, .hero-slides-container { min-height: 150px; height: 150px; }
            .hero-slide .urdu { font-size: 1rem !important; }
            .hero-slide .english { font-size: 0.6rem; }
            .whatsapp-section .urdu { font-size: 1rem; }
            .add-to-cart-btn { height: 26px; font-size: 0.5rem; }
            .book-action-buttons-container { gap: 0.2rem; }
            .breadcrumb-container { text-align: center; }
            .breadcrumb { gap: 0.2rem; padding: 0.2rem 0.5rem; min-height: 30px; height: 30px; font-size: 0.6rem; }
        }

        @media (orientation: landscape) and (max-height: 500px) {
            .add-to-cart-btn { height: 24px; font-size: 0.5rem; padding: 0.15rem 0; }
            .book-action-buttons-container { gap: 0.2rem; margin-top: 0.1rem; }
        }

        /* Additional mobile fixes */
        @media (max-width: 650px) {
            .header-search { display: block !important; }
            .logo-container { justify-content: center !important; width: 100% !important; }
            .carousel-track .book-cover { width: 100% !important; height: auto !important; aspect-ratio: 2/3 !important; }
        }

        /* ===== LIGHT THEME - UNIFIED BACKGROUND (NO BLUE) ===== */
        body.light-theme {
            background: #FDF6E9 !important;
            color: #2C2B28 !important;
        }

        body.light-theme .header-full-width {
            background: #FDF6E9 !important;
            border-bottom: none !important;
            box-shadow: none !important;
        }

        body.light-theme .footer-full-width {
            background: #FDF6E9 !important;
            border-top: none !important;
            box-shadow: none !important;
        }

        body.light-theme .special-column-content,
        body.light-theme .filters-bar,
        body.light-theme .cart-items-container,
        body.light-theme .cart-summary,
        body.light-theme .checkout-form-card,
        body.light-theme .order-summary-card,
        body.light-theme .book-detail-container,
        body.light-theme .category-card,
        body.light-theme .stat-card,
        body.light-theme .empty-state,
        body.light-theme .order-card,
        body.light-theme .detail-card,
        body.light-theme .tracking-container,
        body.light-theme .invoice-container,
        body.light-theme .auth-card,
        body.light-theme .shipping-content,
        body.light-theme .package-card {
            background: #FFFFFF !important;
            border-color: #E8D9CD !important;
        }

        body.light-theme .hero-slide-overlay {
            background: linear-gradient(135deg, rgba(253, 246, 233, 0.88) 0%, rgba(245, 230, 211, 0.82) 100%) !important;
        }

        body.light-theme .main-container,
        body.light-theme .top-section-full-width,
        body.light-theme .bottom-section-full-width {
            background: transparent !important;
        }

        /* ===== EXTRA LIGHT THEME FIXES ===== */
        /* Empty wishlist / empty cart boxes */
        body.light-theme .empty-wishlist,
        body.light-theme .wishlist-empty,
        body.light-theme .empty-state:has(.wishlist-message),
        body.light-theme .cart-empty,
        body.light-theme .empty-cart,
        body.light-theme .empty-cart-message {
            background: #FFFFFF !important;
            border: 1px solid #E8D9CD !important;
            color: #5D4A3A !important;
        }

        /* Coupon input field – background, text, placeholder */
        body.light-theme .coupon-input,
        body.light-theme input[name="coupon_code"],
        body.light-theme #coupon-code,
        body.light-theme .cart-coupon input,
        body.light-theme .coupon-code-input,
        body.light-theme input.coupon-field {
            background: #FFFFFF !important;
            border: 1px solid #E8D9CD !important;
            color: #2C2B28 !important;
        }
        body.light-theme .coupon-input::placeholder,
        body.light-theme input[name="coupon_code"]::placeholder,
        body.light-theme #coupon-code::placeholder,
        body.light-theme .cart-coupon input::placeholder,
        body.light-theme .coupon-code-input::placeholder,
        body.light-theme input.coupon-field::placeholder {
            color: #B0A28E !important;
            opacity: 1 !important;
        }

        /* Quantity buttons (- / +) */
        body.light-theme .quantity-btn,
        body.light-theme .qty-btn,
        body.light-theme .cart-quantity-btn,
        body.light-theme button.qty-minus,
        body.light-theme button.qty-plus,
        body.light-theme .quantity-selector button,
        body.light-theme .cart-item-quantity button {
            background: #F5E6D3 !important;
            border: 1px solid #D4AF37 !important;
            color: #5D4A3A !important;
        }
        body.light-theme .quantity-btn:hover,
        body.light-theme .qty-btn:hover,
        body.light-theme .cart-quantity-btn:hover,
        body.light-theme button.qty-minus:hover,
        body.light-theme button.qty-plus:hover,
        body.light-theme .quantity-selector button:hover,
        body.light-theme .cart-item-quantity button:hover {
            background: #D4AF37 !important;
            color: #0A2647 !important;
        }

        /* ===== DARK TEXT ON LIGHT BACKGROUNDS (CART SUMMARY, SUBTOTAL, COUPON LABEL) ===== */
        body.light-theme .cart-summary,
        body.light-theme .cart-totals,
        body.light-theme .cart-total-row,
        body.light-theme .cart-subtotal,
        body.light-theme .cart-summary span,
        body.light-theme .cart-summary p,
        body.light-theme .cart-summary .coupon-label,
        body.light-theme .cart-summary label,
        body.light-theme .cart-summary div:not(.coupon-input-wrapper),
        body.light-theme .cart-totals td,
        body.light-theme .cart-totals th,
        body.light-theme .order-summary-card span,
        body.light-theme .order-summary-card p,
        body.light-theme .order-summary-card div,
        body.light-theme .cart-totals .amount,
        body.light-theme .cart-subtotal .amount,
        body.light-theme .cart-summary strong,
        body.light-theme .cart-summary b {
            color: #2C2B28 !important;
        }

        body.light-theme .cart-summary .coupon-link,
        body.light-theme .cart-summary a.coupon-toggle,
        body.light-theme .cart-summary .apply-coupon-btn {
            color: #D4AF37 !important;
        }
        body.light-theme .cart-summary .coupon-link:hover,
        body.light-theme .cart-summary a.coupon-toggle:hover,
        body.light-theme .cart-summary .apply-coupon-btn:hover {
            color: #B76E2E !important;
        }
