/* 
        =========================================
        VARIABLES - Easily change colors & fonts 
        ========================================= 
*/

    :root {
        --font-family: 'Inter', sans-serif;
        
        /* Light Theme Colors */
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #0F172A;
        --text-secondary: #475569;
        --text-footer: #ebf0f5;
        --brand-blue: #2563EB;
        --brand-orange: #F59E0B;
        --brand-yellow: #ffcc00;
        --border-color: #e9ecef;
        --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
        --menu-bg: #ffffff;
        --footer-bg: #1D4EDB;
        --deal-price: #1b7a88;
        --khan-green: #3e9c64;
        --khan-green-hover: #2e7a4d;
    }

    [data-theme="dark"] {
        /* Dark Theme Colors */
        --bg-primary: #121212;
        --bg-secondary: #1e1e1e;
        --text-primary: #e4e6eb;
        --text-secondary: #b0b3b8;
        --brand-blue: #1c68b3;
        --brand-orange: #f58220;
        --border-color: #333333;
        --card-shadow: 0 10px 30px rgba(0,0,0,0.5);
        --menu-bg: #242526;
        --footer-bg: #1a1a1a;
        --text-footer: #e4e6eb;
    }

    /* =========================================
        GLOBAL STYLES 
        ========================================= */
    body {
        font-family: var(--font-family);
        background-color: var(--bg-primary);
        color: var(--text-primary);
        transition: background-color 0.3s, color 0.3s;
    }

    a {
        color: var(--text-primary);
        text-decoration: none;
    }
    a:hover {
        color: var(--brand-blue);
    }

    /* =========================================
        NAVBAR & HEADER 
        ========================================= */
    .custom-navbar {
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: transparent !important;
        padding: 1.5rem 0;
    }

    .header-hero {
        height: 70vh; 
        background-image: linear-gradient(rgba(11, 74, 133, 0.8), rgba(11, 74, 133, 0.8)), url('../images/headernewphoto.jpg');
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end; 
        padding-bottom: 13rem; /* Increased padding to push text up */
        text-align: center;
        color: white;
        position: relative;
    }

    /* Overlapping White Box for Form */
    .overlap-box {
        background-color: var(--bg-primary);
        border-radius: 20px;
        padding: 2.5rem 2rem;
        box-shadow: var(--card-shadow);
        margin-top: -180px; /* Increased negative margin to pull the form further up into the header */
        position: relative;
        z-index: 10;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        border: 1px solid var(--border-color);
    }

    .search-container {
        background: var(--bg-primary);
        border: 1px solid var(--border-color); 
        border-radius: 50px;
        padding: 5px;
        display: flex;
        max-width: 600px;
        margin: 0 auto;
        position: relative; /* Needed for absolute positioning of dropdown */
    }

    .search-container input {
        border: none;
        background: transparent;
        padding-left: 20px;
        color: var(--text-primary);
        width: 100%;
    }
    
    .search-container input:focus {
        outline: none;
        box-shadow: none;
    }

    .search-btn {
        background-color: var(--brand-orange);
        color: white;
        border-radius: 50px;
        padding: 10px 20px;
        border: none;
    }

    /* Search Suggestion Dropdown */
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        box-shadow: var(--card-shadow);
        margin-top: 10px;
        padding: 10px 0;
        z-index: 1000;
        display: none; /* Hidden by default */
    }

    .search-suggestions li a {
        display: block;
        padding: 10px 20px;
        color: var(--text-primary);
        text-decoration: none;
        transition: background-color 0.2s;
    }

    .search-suggestions li a:hover {
        background-color: var(--bg-secondary);
        color: var(--brand-blue);
    }

    .show-categories-btn {
        background-color: var(--brand-blue);
        color: white;
        border-radius: 50px;
        padding: 12px 30px;
        border: none;
        width: 100%;
        max-width: 600px;
    }

    /* =========================================
        SLIDERS (For Categories & Products)
        ========================================= */
    .slider-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
    }
    
    .slider-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .slider-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Fixed Mobile Slider Widths */
    .slider-item.cat-item { width: 40%; }
    .slider-item.prod-item { width: 45%; } 

    /* Responsive slider widths */
    @media (min-width: 576px) { 
        .slider-item.cat-item { width: 30%; } 
        .slider-item.prod-item { width: 30%; } 
    }
    @media (min-width: 768px) { 
        .slider-item.cat-item { width: 25%; } 
        .slider-item.prod-item { width: 25%; } 
    }
    @media (min-width: 992px) { 
        .slider-item.cat-item { width: calc(20% - 1.2rem); } 
        .slider-item.prod-item { width: calc(20% - 1.2rem); } 
    }

    /* =========================================
        SECTIONS & CARDS 
        ========================================= */
    .section-bg {
        background-color: var(--bg-secondary);
        padding: 3rem 0;
    }

    .category-card, .product-card {
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        text-align: center;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: var(--card-shadow);
        height: 100%;
        overflow: hidden;
    }

    .product-card {
        padding: 1.5rem;
    }

    .category-card:hover, .product-card:hover {
        transform: translateY(-5px);
    }

    .product-card img {
        max-height: 120px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

    .price-tag {
        color: var(--brand-blue);
        font-weight: bold;
        font-size: 1.25rem;
    }

    /* =========================================
        ALL CATEGORIES GRID
        ========================================= */
    .all-cats-icon {
        font-size: 1.5rem;
        color: var(--brand-blue);
        margin-right: 10px;
    }
    .all-cats-list {
        list-style: none;
        padding: 0;
        font-size: 0.9rem;
    }
    .all-cats-list li {
        margin-bottom: 0.5rem;
    }
    .all-cats-list a {
        color: var(--text-secondary);
    }
    .percetage-sign-home{
        width: 40px;
        height: 40px;
        background-color: red;
        color: white;
        line-height: 40px;
        font-size: 28px;
        margin-top: -15px;
        margin-left: -15px;
    }
    .index-card-text{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* =========================================
        FOOTER
        ========================================= */
    footer {
        background-color: var(--footer-bg);
        color: white;
        padding: 3rem 0;
        transition: background-color 0.3s;
    }
    footer a {
        color: rgba(255,255,255,0.8);
    }
    footer a:hover {
        color: white;
    }

    /* Mobile Footer Accordion */
    @media (max-width: 767px) {
        .footer-title {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }
        .footer-title::after {
            content: '\F282'; /* Bootstrap icons chevron-down */
            font-family: "bootstrap-icons";
        }
        .footer-title[aria-expanded="true"]::after {
            content: '\F286'; /* chevron-up */
        }
    }

    /* =========================================
        OFFCANVAS MENU (Desktop & Mobile)
        ========================================= */
    .offcanvas {
        background-color: var(--menu-bg);
        color: var(--text-primary);
    }
    .offcanvas-header {
        background-color: var(--brand-blue);
        color: white;
    }
    .menu-list-item {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        color: var(--text-primary);
    }
    .menu-list-item:hover, .menu-list-item.active {
        color: var(--brand-blue);
        font-weight: bold;
    }
    
    /* Mobile Menu Dark Mode Fixes */
    .accordion-button {
        color: var(--text-primary) !important;
    }
    .accordion-button:not(.collapsed) {
        color: var(--brand-blue) !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    .accordion-body a {
        color: var(--text-primary) !important;
    }

    /* Desktop split menu */
    .desktop-submenu-pane {
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 20px;
    }

    /* Extra features and Prepage loader */
    #pageloader {
        background-color: var(--bg-primary);
        width: 100%;
        height: 100vh;
        position: fixed;
        left: 0px;
        top: 0px;
        z-index: 999;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    .loaderspinner{
        height: 100px;
        width: 100px;
        z-index: 101;
        display: block;
    }
    #index_searchInput{
        background: none !important;
        outline: none !important;
        border-style: none !important;
        color: var(--text-primary) !important;
    }
    #searchInput{
        color: var(--text-primary) !important;
    }
    #searchInput:focus{
        background: none;
        outline: none;
        color: var(--text-primary);
    }
    /* Scroll up button */
.scrollupwrapper{
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--brand-blue) !important;
    color: white !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 997;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}
.scrollupwrapper:hover{
    opacity: 0.8;
    bottom: 25px;
    transition: 0.5s;
}

/* serch page design */
.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; }

/* =========================================
    HEADER 
    ========================================= */
.listing-brand-header {
    background-color: var(--brand-blue);
    color: white;
    padding: 1rem 0;
    position: relative; 
}

.listing-logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-header-search {
    position: relative;
}

.listing-search-container {
    background: white;
    border-radius: 50px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
}

.listing-search-container input {
    border: none;
    background: transparent;
    padding-left: 15px;
    color: #333; 
    width: 100%;
}

.listing-search-container input:focus {
    outline: none;
    box-shadow: none;
}

.listing-search-btn {
    background-color: var(--brand-orange);
    color: white;
    border-radius: 50px;
    padding: 5px 15px;
    border: none;
}

/* Mobile Search Button */
.mobile-search-trigger {
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.mobile-search-trigger:active {
    transform: scale(0.95);
}
.collapse:has(.active-category) {
    display: block;
}
.ps-6{
    padding-left: 2rem;
}

/* Full Screen Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 2000;
    padding: 1.5rem;
    display: none; 
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-search-overlay .listing-search-container {
    border: 1px solid var(--brand-blue);
}

.mobile-search-overlay input {
    color: var(--text-primary);
}

/* Search Suggestion Dropdown (Desktop) */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--menu-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: 10px;
    padding: 10px 0;
    z-index: 1000;
    display: none; 
}

.search-suggestions-dropdown li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.search-suggestions-dropdown li a:hover {
    background-color: var(--bg-secondary);
    color: var(--brand-blue);
}

/* Owl Mascot */
.owl-eyes {
    width: 30px;
    height: 30px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.owl-pupil {
    width: 8px;
    height: 8px;
    background-color: black;
    border-radius: 50%;
}

/* Breadcrumbs */
.listing-breadcrumbs {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb-item a {
    color: var(--text-secondary);
}
.breadcrumb-item.active {
    color: var(--text-primary);
}

/* =========================================
    CONTENT & FILTER 
    ========================================= */
.filter-section {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--brand-blue);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

/* Filter Toggle Arrow Animation */
.filter-toggle {
    cursor: pointer;
    user-select: none;
}
.filter-toggle .toggle-icon {
    transition: transform 0.3s ease;
}
.filter-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Filter Styles */
.mobile-filter-btn {
    background-color: var(--brand-blue);
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border: none;
    width: 100%;
}

.mobile-filter-offcanvas-footer {
    background-color: var(--bg-primary);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Filter Badges / Pills */
.filter-badge-check {
    background-color: var(--brand-blue);
    color: white;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.85rem;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 8px;
    cursor: pointer;
}
.filter-badge-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.85rem;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Range Slider Styling */
.listing-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.listing-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--brand-blue);
    cursor: pointer;
    border-radius: 50%;
}

/* Mock Histogram */
.histogram-bar {
    background-color: var(--brand-blue);
    flex: 1;
    margin: 0 1px;
}

/* =========================================
    PRODUCT CARDS (Reduced Size)
    ========================================= */
.listing-product-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px; 
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.listing-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.listing-product-image {
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    background-color: white;
    margin: 10px;
}

.listing-product-image img {
    max-height: 170px; 
    object-fit: contain;
}

.listing-product-details {
    padding: 1rem; /* Reduced from 1.25rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.listing-product-title {
    font-weight: bold;
    font-size: 0.95rem; /* Reduced from 1rem */
    line-height: 1.4;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-product-price {
    color: var(--brand-blue);
    font-weight: 800; 
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 0.15rem;
}

/* Zum Shop Button */
.btn-shop {
    background-color: var(--brand-blue);
    color: white;
    border-radius: 4px;
    padding: 6px 10px; /* Reduced from 8px 12px */
    font-size: 0.9rem; /* Reduced from 1rem */
    transition: background-color 0.2s;
}

.btn-shop:hover {
    background-color: var(--footer-bg);
    color: white;
}

.shop-icon {
    background-color: white;
    color: var(--brand-orange);
    border-radius: 50%;
    width: 18px; /* Reduced from 22px */
    height: 18px; /* Reduced from 22px */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem; /* Reduced from 0.8rem */
    font-weight: bold;
}

.compare-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.8rem; /* Reduced from 0.85rem */
    transition: color 0.2s;
}

.compare-link:hover {
    color: var(--brand-orange);
}

.listing-page-mascot {
    text-align: center;
    margin-bottom: 1.5rem;
}
#listingHeaderSearchInput{
    outline: none;
    background: none;
}

/* PAGINATION COMPONENT */
.pagination-div{
    display: block;
    margin-top: 30px;
    width: 100%;
    margin-bottom: 100px;
}
.pagination-container .page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pagination-list {
    gap: 10px; /* Spacing between items */
}

.page-item .page-link {
    display: inline-flex;
    width: 44px; /* Box size*/
    height: 44px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    font-weight: 600; 
    font-size: 1.1rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    /* Separation lines - using theme's border color, above and below inactive and ellipsis items */
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    box-sizing: border-box; 
    transition: all 0.2s;
}

/* Active item styling from image (solid block fill) */
.page-item.active .page-link {
    background-color: var(--brand-blue);
    color: white;
    border: none; /* No visible borders around active block */
}

/* Hover effect for inactive links (change shade and border color) */
.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #e2e6ea; /* Faint light gray hover shade */
    color: var(--brand-blue);
    border-top-color: #d1d8df; /* Slightly darker lines on hover to define shape */
    border-bottom-color: #d1d8df;
}

/* Ellipsis (Disabled state) span styling to match inactive links and lines */
.page-item.disabled span.page-link {
     border-top-color: var(--border-color); 
     border-bottom-color: var(--border-color);
     cursor: default;
     pointer-events: none;
     color: var(--text-secondary);
}
/* Filter Dropdown Styling */
.filter-dropdown-select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Matched the rounded pill style from the template */
    font-size: 0.9rem;
    padding: 8px 15px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-dropdown-select:focus {
    border-color: var(--brand-blue);
    /* Subtle focus ring using brand blue */
    box-shadow: 0 0 0 0.2rem rgba(11, 74, 133, 0.15); 
}

/* Ensure dropdown options read well in dark mode */
[data-theme="dark"] .filter-dropdown-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
/* Filter Apply Button Styling */
.btn-filter-apply {
    background-color: var(--brand-blue);
    color: white;
    font-weight: 500;
    border-radius: 16px; /* Keeping it consistent with inputs/cards */
    padding: 5px 25px;
    font-size: 0.85rem;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-filter-apply:hover {
    background-color: #083a69; /* Slightly darker shade of brand blue */
    color: white;
}

.btn-filter-apply:active {
    transform: scale(0.98); /* Satisfying click effect */
}

/* Ensure text remains visible in dark mode */
[data-theme="dark"] .btn-filter-apply {
    color: #ffffff;
}

/* =========================================
   INFO PAGE CONTENT STYLES
   ========================================= */

/* Main Wrapper Background */
.info-page-wrapper {
    background-color: var(--bg-secondary); 
    min-height: 60vh; /* Gives the page some body if content is short */
}

/* White Content Card */
.info-content-card {
    background-color: var(--bg-primary);
    border-radius: 16px; /* Smooth rounded corners matching the design */
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

/* Card Heading */
.info-card-title {
    color: var(--brand-blue);
    font-weight: 700;
}

/* Card Paragraphs */
.info-content-card p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.info-content-card p:last-child {
    margin-bottom: 0;
}

/* Inline Links inside the text */
.info-content-card a {
    color: var(--text-primary); /* Keeps links the same color as text initially */
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-content-card a:hover {
    color: var(--brand-orange);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .info-content-card {
        padding: 1.5rem;
    }
}

 /* =========Product offers page========= */
    .fs-7 { font-size: 0.85rem; }
    .fs-8 { font-size: 0.75rem; }
    .text-teal { color: var(--deal-price) !important; }
    .text-muted-custom { color: #88929b !important; }
    
    .card-white {
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }
    .card-white img {
        max-height: 120px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

    /* Top Product Section */
    .best-price-card {
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    .btn-green {
        background-color: var(--khan-green);
        color: #ffffff;
        border-radius: 20px;
        font-weight: 600;
        padding: 6px 18px;
        border: none;
        transition: background-color 0.2s;
    }
    .btn-green:hover {
        background-color: var(--khan-green-hover);
        color: #ffffff;
    }

    /* Sort By Dropdown */
    .sort-dropdown {
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 5px 30px 5px 15px;
        font-size: 0.9rem;
        background-color: var(--bg-primary);
        color: var(--text-primary);
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }

    /* Offers List */
    .offer-card {
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-left: 4px solid var(--khan-green);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 12px;
        position: relative;
        box-shadow: 0 2px 6px rgba(0,0,0,0.015);
        margin-left: 14px; /* Space for the absolute truck icon */
    }
    .offer-truck-icon {
        position: absolute;
        left: -14px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--brand-blue);
        color: #ffffff;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.75rem;
        border: 3px solid var(--bg-primary); /* Matches page bg to look cutout */
        z-index: 2;
    }
    .shop-logo-img {
        max-height: 35px;
        max-width: 100px;
        object-fit: contain;
    }
    .review-stars {
        color: #e0e4e8;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .no-reviews-link {
        color: var(--text-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
        font-size: 0.8rem;
    }
    .info-icon {
        color: #a0a8b1;
        font-size: 0.85rem;
        cursor: pointer;
    }
    .old-price {
        text-decoration: line-through;
        color: #a0a8b1;
        font-size: 0.85rem;
        margin-right: 6px;
    }

    /* Price Graph Section */
    .graph-container {
        width: 100%;
        overflow-x: auto; /* Scrollable on small screens */
    }

    /* Related Products */
    .show-all-related{
        text-align: right;
        display: block;
        margin-bottom: 20px;
    }
    .related-card {
        padding: 20px;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .related-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    }
    .related-card img {
        max-height: 120px;
        object-fit: contain;
        margin-bottom: 20px;
    }
    .related-title {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--text-primary);
        /* Truncate text */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-content{
        background-color: var(--bg-secondary);
    }
    .showmoreLink{
        color: var(--khan-green);
        font-weight: 600;
    }
    .index-footer-sub-category{
        font-weight: 700;
    }
    /* Mobile adjustments */
    @media (max-width: 768px) {
        .offer-card { margin-left: 0; padding-left: 30px; }
        .offer-truck-icon { left: -5px; }
        .offer-price-col { text-align: left !important; align-items: flex-start !important; margin-top: 15px; }
    }