   :root {
            --primary-color: #8B1E1E;
            --primary-hover-color: #6E1616;
            --dark-color: #101010;
            --text-color: #444444;
            --light-text-color: #777777;
            --border-color: #ECECEC;
            --bg-color: #FFFFFF;
            --section-bg-color: #FAF8F5;
            --success-color: #28A745;
            --footer-bg-color: #071A2F;
            --font-stack-primary: 'Inter', sans-serif;
            --global-border-radius: 16px;
            --premium-card-radius: 18px;
            --premium-shadow-box: 0 15px 40px rgba(0, 0, 0, 0.08);
        }

        /* --- REBOOT STANDARD SEMANTICS ELEMENT SPECIFICS --- */
        body {
            font-family: var(--font-stack-primary);
            background-color: var(--bg-color);
            color: var(--text-color);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        .container-custom {
            width: 100%;
            max-width: 1400px;
            margin-right: auto;
            margin-left: auto;
            padding-right: 24px;
            padding-left: 24px;
        }

        /* --- STICKY HEADER DESIGN COMPONENT --- */
        .main-header {
            height: 80px;
            z-index: 1040;
            transition: background-color 0.3s ease;
        }

        .brand-logo-box {
            width: 42px;
            height: 42px;
            background-color: var(--primary-color);
            color: white;
            font-weight: 800;
            font-size: 1.5rem;
            border-radius: 10px;
        }

        .brand-text-wrapper {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }

        .brand-title {
            font-weight: 800;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
            color: var(--dark-color);
        }

        .brand-subtitle {
            font-size: 0.6rem;
            font-weight: 500;
            letter-spacing: 1px;
            color: var(--light-text-color);
        }

        .header-search-box {
            width: 100%;
            max-width: 480px;
        }

        .header-search-box .form-control {
            height: 46px;
            border-radius: 24px;
            border: 1.5px solid var(--border-color);
            padding-left: 20px;
            padding-right: 50px;
            font-size: 0.9rem;
        }

        .header-search-box .form-control:focus {
            box-shadow: none;
            border-color: var(--primary-color);
        }

        .search-submit-btn {
            position: absolute;
            right: 4px;
            top: 4px;
            width: 38px;
            height: 38px;
            border: none;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .search-submit-btn:hover {
            background: var(--primary-hover-color);
        }

        .nav-link-item {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .nav-link-item:hover, .nav-link-item.active {
            color: var(--primary-color);
        }

        .btn-icon-utility {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            border: 1.5px solid var(--border-color);
            background: white;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.2s ease;
        }

        .btn-icon-utility:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .cart-badge-indicator {
            position: absolute;
            top: -2px;
            right: -2px;
            background-color: var(--primary-color);
            color: white;
            font-size: 0.65rem;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-account-profile {
            height: 46px;
            padding: 0 20px;
            border-radius: 24px;
            background-color: var(--dark-color);
            color: white;
            border: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background-color 0.2s ease;
        }

        .btn-account-profile:hover {
            background-color: var(--primary-color);
        }

        /* --- BREADCRUMB PRESENTATION --- */
        .breadcrumb-container {
            padding: 18px 0;
            background-color: transparent;
        }

        .breadcrumb-item, .breadcrumb-item a {
            color: var(--light-text-color);
            font-size: 0.85rem;
            text-decoration: none;
            font-weight: 400;
        }

        .breadcrumb-item a:hover {
            color: var(--primary-color);
        }

        .breadcrumb-item.active {
            color: var(--dark-color);
            font-weight: 500;
        }

        /* --- HERO DISPLAY BAR AREA WITH FADED REAR GRAPHIC --- */
        .hero-display-bar-section {
            padding: 40px 0;
            background-color: var(--section-bg-color);
            margin-bottom: 12px;
        }

        .hero-display-bar-section::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 450px;
            height: 100%;
            background-image: url('upload/images/cart-bg.png');
            background-repeat: no-repeat;
            background-position: top right;
            background-size: contain;
            opacity: 0.14;
            z-index: 1;
            pointer-events: none;
        }

        .hero-primary-heading {
            font-size: 58px;
            font-weight: 800;
            letter-spacing: -1.5px;
            color: var(--dark-color);
            line-height: 1.1;
            margin-bottom: 8px;
        }

        .hero-stats-subtext {
            font-size: 0.95rem;
            color: var(--light-text-color);
            font-weight: 500;
        }

        .sort-by-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .sort-select-menu {
            border-radius: 10px;
            border: 1.5px solid var(--border-color);
            font-size: 0.9rem;
            font-weight: 500;
            padding: 8px 36px 8px 16px;
        }

        .sort-select-menu:focus {
            box-shadow: none;
            border-color: var(--primary-color);
        }

        .btn-layout-toggle {
            border: none;
            background: transparent;
            color: var(--light-text-color);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all 0.2s ease;
        }

        .btn-layout-toggle.active, .btn-layout-toggle:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* --- FILTER SIDEBAR WIDGET IMPLEMENTATIONS --- */
        .sticky-sidebar-wrapper {
            position: sticky;
            top: 105px;
            max-height: calc(100vh - 130px);
            overflow-y: auto;
            padding-right: 4px;
        }

        .sticky-sidebar-wrapper::-webkit-scrollbar {
            width: 4px;
        }
        .sticky-sidebar-wrapper::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 4px;
        }

        .shadow-card {
            box-shadow: var(--premium-shadow-box);
        }

        .rounded-card {
            border-radius: var(--global-border-radius);
        }

        .sidebar-widget {
            background: white;
            border-color: var(--border-color) !important;
        }

        .widget-title {
            font-size: 0.95rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--dark-color);
        }

        .widget-search-input {
            height: 40px;
            padding-left: 18px;
            padding-right: 40px;
            font-size: 0.85rem;
            border: 1.5px solid var(--border-color);
        }

        .widget-search-input:focus {
            box-shadow: none;
            border-color: var(--primary-color);
        }

        .widget-search-icon-fixed {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-text-color);
            font-size: 0.85rem;
            pointer-events: none;
        }

        .custom-checkbox-item {
            padding-left: 1.8em;
        }

        .custom-checkbox-item .form-check-input {
            width: 1.2em;
            height: 1.2em;
            margin-left: -1.8em;
            border: 1.5px solid var(--light-text-color);
            border-radius: 4px;
            cursor: pointer;
        }

        .custom-checkbox-item .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .custom-checkbox-item .form-check-label {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-color);
            cursor: pointer;
            user-select: none;
        }

        /* Dual Range Slider Architecture */
        .price-range-slider-component {
            height: 6px;
        }

        .slider-track-rail {
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: var(--border-color);
            border-radius: 3px;
            z-index: 1;
        }

        .range-slider-input {
            position: absolute;
            width: 100%;
            height: 100%;
            background: none;
            pointer-events: none;
            -webkit-appearance: none;
            appearance: none;
            z-index: 2;
            top: 0;
            left: 0;
        }

        .range-slider-input::-webkit-slider-thumb {
            height: 16px;
            width: 16px;
            border-radius: 50%;
            background: var(--primary-color);
            pointer-events: auto;
            -webkit-appearance: none;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: transform 0.1s ease;
        }

        .range-slider-input::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .value-display-badge {
            background-color: var(--section-bg-color);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dark-color);
            border: 1px solid var(--border-color);
        }

        .range-separator-dash {
            color: var(--light-text-color);
            font-weight: 700;
        }

        .btn-primary-maroon-action {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.85rem;
            transition: background-color 0.2s ease;
        }

        .btn-primary-maroon-action:hover {
            background-color: var(--primary-hover-color);
            color: white;
        }

        .custom-sidebar-accordion .accordion-button {
            padding: 10px 0;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-color);
            background-color: transparent !important;
            box-shadow: none !important;
            border-bottom: 1px solid var(--border-color);
        }

        .custom-sidebar-accordion .accordion-button::after {
            background-size: 0.8rem;
        }

        .custom-sidebar-accordion .accordion-item {
            background-color: transparent;
        }

        .accordion-body-text {
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .max-height-scroll-pane {
            max-height: 160px;
            overflow-y: auto;
        }

        .view-more-link-action {
            color: var(--primary-color);
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
        }

        .view-more-link-action:hover {
            text-decoration: underline;
            color: var(--primary-hover-color);
        }

        .btn-star-matrix-link {
            padding: 4px 0;
            background: transparent;
            border: none;
        }

        .star-gold-group-wrapper {
            color: #FFC107;
            font-size: 0.9rem;
        }

        /* --- PREMIUM BOOK LISTINGS CARD PRESENTATION --- */
        .premium-horizontal-book-card {
            border: 1.5px solid var(--border-color) !important;
            border-radius: var(--premium-card-radius);
            transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
        }

        .premium-horizontal-book-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
        }

        .book-cover-asset-wrapper {
            width: 160px;
            height: 240px;
            border-radius: 12px;
            overflow: hidden;
            background-color: var(--section-bg-color);
        }

        .book-cover-display-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .premium-horizontal-book-card:hover .book-cover-display-thumbnail {
            transform: scale(1.05);
        }

        .book-title-heading {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark-color);
            letter-spacing: -0.5px;
        }

        .book-author-meta-name {
            font-size: 0.95rem;
            color: var(--primary-color);
        }

        .book-synopsis-description {
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-color);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-star-rating-indicator {
            color: #FFC107;
            font-size: 0.95rem;
        }

        .text-dark-bold {
            color: var(--dark-color);
        }

        .text-secondary-blended {
            color: #555555;
        }

        .label-xs {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            margin-bottom: 2px;
            text-transform: uppercase;
        }

        .text-success-custom {
            color: var(--success-color);
        }

        .btn-marketplace-badge {
            background-color: var(--section-bg-color);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 5px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-color);
            transition: all 0.2s ease;
        }

        .btn-marketplace-badge:hover {
            border-color: var(--primary-color);
            background-color: white;
            color: var(--primary-color);
        }

        .btn-outline-utility-action {
            background: transparent;
            border: 1.5px solid var(--border-color);
            color: var(--text-color);
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .btn-outline-utility-action:hover {
            border-color: var(--dark-color);
            background-color: var(--dark-color);
            color: white;
        }

        /* --- ALTERNATE GRID VIEW ACTIVATION --- */
        #bookListingContainer.grid-layout-active {
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px !important;
        }

        #bookListingContainer.grid-layout-active .premium-horizontal-book-card .d-flex {
            flex-direction: column !important;
            align-items: center !important;
        }

        #bookListingContainer.grid-layout-active .book-cover-asset-wrapper {
            width: 100%;
            height: 280px;
        }

        #bookListingContainer.grid-layout-active .book-synopsis-description {
            -webkit-line-clamp: 2;
        }

        #bookListingContainer.grid-layout-active .technical-metadata-matrix {
            padding: 12px 0 !important;
        }

        #bookListingContainer.grid-layout-active .technical-metadata-matrix .row-cols-md-4 > * {
            flex: 0 0 50%;
            max-width: 50%;
        }

        /* --- PAGINATION CONFIGURATION --- */
        .custom-rounded-pagination .page-link {
            width: 44px;
            height: 44px;
            border-radius: 50% !important;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            color: var(--text-color);
            font-weight: 600;
            font-size: 0.9rem;
            padding: 0;
            transition: all 0.25s ease;
        }

        .custom-rounded-pagination .page-item.active .page-link {
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            color: white !important;
        }

        .custom-rounded-pagination .page-link:hover {
            background-color: var(--primary-hover-color);
            color: white;
            border-color: var(--primary-hover-color);
        }

        .page-link-spacer {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--light-text-color);
            font-weight: 600;
        }

        /* --- NEWSLETTER SECTION --- */
        .newsletter-large-banner {
            background-color: #FAF5EF;
        }

        .newsletter-large-banner::before {
            content: "";
            position: absolute;
            width: 300px;
            height: 300px;
            background-color: rgba(139, 30, 30, 0.03);
            border-radius: 50%;
            top: -100px;
            left: -100px;
        }

        .newsletter-graphic-illustration-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background-color: white;
            color: var(--primary-color);
            font-size: 1.8rem;
            box-shadow: 0 8px 20px rgba(0,0,0,0.04);
        }

        .newsletter-headline-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--dark-color);
            letter-spacing: -0.5px;
        }

        .newsletter-subtext-paragraph {
            font-size: 0.95rem;
            color: var(--text-color);
            max-width: 580px;
        }

        .newsletter-inline-input-form-wrapper {
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }

        .form-control-inner-input:focus {
            box-shadow: none !important;
        }

        .btn-newsletter-submit {
            background-color: var(--primary-color);
            color: white;
            border: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background-color 0.2s ease;
        }

        .btn-newsletter-submit:hover {
            background-color: var(--primary-hover-color);
        }

        /* --- CORPORATE FOOTER --- */
        .corporate-dark-navy-footer {
            background-color: var(--footer-bg-color);
        }

        .footer-blurb-text {
            line-height: 1.6;
        }

        .footer-social-link-icon-row a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255,255,255,0.06);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .footer-social-link-icon-row a:hover {
            background-color: var(--primary-color);
            transform: scale(1.08);
        }

        .footer-column-heading {
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: white;
        }

        .footer-nav-links-list li a {
            color: #A0AED0;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-nav-links-list li a:hover {
            color: white;
        }

        /* --- RESPONSIVE ADAPTATIONS --- */
        @media (max-width: 991.98px) {
            .hero-primary-heading {
                font-size: 40px;
            }
            
            .mobile-offcanvas-filter-drawer {
                width: 320px !important;
            }

            #bookListingContainer.grid-layout-active {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 575.98px) {
            .hero-primary-heading {
                font-size: 32px;
                letter-spacing: -0.5px;
            }
            .premium-horizontal-book-card {
                padding: 16px !important;
            }
            .book-title-heading {
                font-size: 20px;
            }
            #bookListingContainer.row-layout-active .premium-horizontal-book-card .d-flex {
                flex-direction: column !important;
                align-items: center !important;
            }
            #bookListingContainer.row-layout-active .book-cover-asset-wrapper {
                width: 100%;
                height: 260px;
            }
            .btn-marketplace-badge, .btn-outline-utility-action {
                width: 100%;
                text-align: center;
                justify-content: center;
            }
        }
    .active {
    background-color: #a31d44 !important; /* Matches your placeholder cover color */
    color: #ffffff !important;
    border-color: #a31d44 !important;
}