


    :root {


        --bg-color: #d5e6de !important;


        --card-bg: #ffffff !important;


        --text-primary: #112d20 !important;


        --text-secondary: #4a6b5d !important;


        --accent-blue: #059669 !important;


        --accent-teal: #0d9488 !important;


        --accent-orange: #d97706 !important;


        --glass-border: rgba(17, 45, 32, 0.08) !important;


    }





    body, #wrapwrap {


        --bg-color: #d5e6de;


        --card-bg: #ffffff;


        --text-primary: #112d20;


        --text-secondary: #4a6b5d;


        --accent-blue: #059669;


        --accent-teal: #0d9488;


        --accent-orange: #d97706;


        --glass-border: rgba(17, 45, 32, 0.08);


        --footer-bg: #112d20;


        --navbar-bg: #ffffff;


        --toggler-filter: none;


        


        background-color: var(--bg-color) !important;


        color: var(--text-primary) !important;


        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;


    }


    


    /* Transitions for UI Elements */


    .navbar, .dropdown-menu, .glass-card, .glass-feature-card, .glass-brand-item, footer, .glass-distributor-card, .card, .product-card, .btn-light {


        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;


    }


    


    .navbar {


        background: var(--navbar-bg) !important;


        border: 1px solid var(--glass-border) !important;


    }


    .navbar-brand, .nav-link {


        color: var(--text-primary) !important;


    }


    


    /* Disable Hover and Force Click-to-Toggle Dropdowns */


    @media (min-width: 992px) {


        .nav-item.dropdown:hover .dropdown-menu:not(.show) {


            display: none !important;


            opacity: 0 !important;


            visibility: hidden !important;


            pointer-events: none !important;


        }


        


        .nav-item.dropdown .dropdown-menu {


            display: block !important;


            opacity: 0;


            visibility: hidden;


            transform: translateY(10px);


            transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease !important;


            transition-delay: 0s !important;


            pointer-events: none; /* Avoid clicking hidden items */


        }


        


        .nav-item.dropdown .dropdown-menu.show {


            opacity: 1 !important;


            visibility: visible !important;


            transform: translateY(0) !important;


            transition-delay: 0s !important;


            pointer-events: auto !important;


        }


    }


    


    .dropdown-menu {


        background: var(--navbar-bg) !important;


        border: 1px solid var(--glass-border) !important;


    }


    .dropdown-item {


        color: var(--text-primary) !important;


    }


    .dropdown-item:hover {


        background-color: var(--accent-blue) !important;


        color: white !important;


    }


    


    /* Support existing elements */


    .text-dark {


        color: var(--text-primary) !important;


    }


    .text-muted {


        color: var(--text-secondary) !important;


    }


    .bg-light {


        background-color: rgba(0, 0, 0, 0.02) !important;


    }


    


    /* Category and brand pages card style */


    .card, .product-card {


        background: var(--card-bg) !important;


        border: 1px solid var(--glass-border) !important;


    }


    .card h3, .card h4, .product-card h3, .product-card h4 {


        color: var(--text-primary) !important;


    }


    .card p, .product-card p {


        color: var(--text-secondary) !important;


    }


    


    /* Button theme support */


    .btn-light {


        background: var(--card-bg) !important;


        color: var(--text-primary) !important;


        border: 1px solid var(--glass-border) !important;


    }


    .btn-light:hover {


        background: var(--accent-blue) !important;


        color: white !important;


    }


    


    /* Products Mega Menu Grid Styles */


    .ais-products-grid {


        display: grid;


        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));


        gap: 16px;


    }


    .ais-product-card {


        display: flex;


        flex-direction: column;


        align-items: center;


        text-align: center;


        background: var(--card-bg) !important;


        border: 1px solid var(--glass-border) !important;


        border-radius: 12px !important;


        padding: 16px !important;


        text-decoration: none !important;


        transition: transform 0.2s, border-color 0.2s, background-color 0.2s;


    }


    .ais-product-card:hover {


        transform: translateY(-4px);


        border-color: var(--accent-blue) !important;


        background: rgba(5, 150, 105, 0.05) !important;


    }


    .ais-product-card img {


        height: 90px;


        width: 100%;


        object-fit: contain;


        margin-bottom: 10px;


    }


    .ais-product-card span {


        font-size: 0.85rem;


        font-weight: 600;


        color: var(--text-primary);


    }


    


    /* Manufacturers Grid Styles */


    .ais-grid {


        display: grid;


        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));


        gap: 16px;


    }


    .ais-card {


        display: flex;


        flex-direction: column;


        align-items: center;


        text-align: center;


        background: var(--card-bg) !important;


        border: 1px solid var(--glass-border) !important;


        border-radius: 12px !important;


        padding: 16px !important;


        text-decoration: none !important;


        transition: transform 0.2s, border-color 0.2s, background-color 0.2s;


    }


    .ais-card:hover {


        transform: translateY(-4px);


        border-color: var(--accent-blue) !important;


        background: rgba(5, 150, 105, 0.05) !important;


    }


    .ais-card img {


        height: 65px;


        width: 100%;


        object-fit: contain;


        margin-bottom: 8px;


    }


    .ais-card span {


        font-size: 0.8rem;


        font-weight: 600;


        color: var(--text-primary);


    }


    


    /* Global contrast overrides for white font prevention */


    .text-white, [class*="text-white"], .text-light, [class*="text-light"] {


        color: var(--text-primary) !important;


    }


    .text-white-50, .link-light {


        color: var(--text-secondary) !important;


    }


    footer h5.text-white {


        color: var(--text-primary) !important;


    }


    


    /* Premium Semi-Transparent Badges to replace solid white on blue */


    .badge {


        font-weight: 600 !important;


    }


    .bg-primary {


        background-color: rgba(5, 150, 105, 0.1) !important;


        color: var(--accent-blue) !important;


    }


    .badge.bg-primary {


        color: var(--accent-blue) !important;


    }


    


    /* Light Mode Overrides for Homepage Sections */


    .modern-hero {


        background: radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),


                    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),


                    #d5e6de !important;


        border-bottom: 1px solid rgba(17, 45, 32, 0.08) !important;


    }


    .glass-brands-section {


        background: #c6d9d0 !important;


    }


    .glass-distributor-card {


        background: linear-gradient(135deg, #ffffff 0%, #d5e6de 100%) !important;


        border-color: rgba(5, 150, 105, 0.15) !important;


    }


    .hero-badge {


        background: rgba(5, 150, 105, 0.08) !important;


        border-color: rgba(5, 150, 105, 0.15) !important;


        color: #059669 !important;


    }


    .spec-badge {


        background: rgba(17, 45, 32, 0.02) !important;


        border-color: rgba(17, 45, 32, 0.08) !important;


        color: #4a6b5d !important;


    }


    .btn-outline-modern:hover {


        background: rgba(17, 45, 32, 0.05) !important;


        border-color: #059669 !important;


    }


    .modern-hero h1 {


        background: linear-gradient(135deg, #112d20 0%, #345c4a 100%) !important;


        -webkit-background-clip: text !important;


        -webkit-text-fill-color: transparent !important;


    }


    .modern-title {


        color: var(--text-primary) !important;


    }


    .glass-card-body h3 {


        color: var(--text-primary) !important;


    }


    .glass-feature-card h4 {


        color: var(--text-primary) !important;


    }


    .distributor-info h3 {


        color: var(--text-primary) !important;


    }


    .distributor-info p {


        color: var(--text-secondary) !important;


    }


    .distributor-info .contact-link-modern {


        color: var(--accent-blue) !important;


    }


    .distributor-info .contact-link-modern:hover {


        color: var(--text-primary) !important;


    }


    .btn-outline-modern {


        color: var(--text-primary) !important;


        border-color: var(--text-primary) !important;


    }


    .btn-outline-modern:hover {


        background: rgba(17, 45, 32, 0.05) !important;


        color: var(--text-primary) !important;


        border-color: var(--text-primary) !important;


    }


    .glass-brand-item {


        background: #ffffff !important;


        border: 1px solid rgba(17, 45, 32, 0.08) !important;


        box-shadow: 0 4px 12px rgba(17, 45, 32, 0.03) !important;


        padding: 10px 15px !important;


    }


    .glass-brand-item:hover {


        background: #ffffff !important;


        border-color: var(--accent-blue) !important;


        box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.15) !important;


    }


    .glass-brand-item img {


        filter: none !important;


        opacity: 0.95 !important;


        max-height: 75px !important;


        max-width: 140px !important;


    }


    .glass-brand-item:hover img {


        opacity: 1 !important;


    }


    


    /* Product Cards Hover visibility fix */


    .glass-card:hover {


        background: #ffffff !important;


        border-color: var(--accent-blue) !important;


        box-shadow: 0 20px 40px -15px rgba(5, 150, 105, 0.12) !important;


    }


    .glass-card:hover .glass-card-body h3 {


        color: var(--accent-blue) !important;


    }


    .glass-card:hover .glass-card-body p {


        color: var(--text-secondary) !important;


    }


    


    /* Premium Sticky/Floating Header & Utility Contact Bar */


    header#top {


        position: sticky !important;


        position: -webkit-sticky !important;


        top: 0 !important;


        z-index: 1030 !important;


        background: var(--bg-color, #d5e6de) !important;


        box-shadow: 0 4px 15px rgba(17, 45, 32, 0.05) !important;


        width: 100% !important;


        transition: box-shadow 0.3s ease !important;


    }


    


    /* Premium Modern Search Row Styles */


    .search-result-card {


        border-bottom: 1px solid var(--glass-border) !important;


        background: transparent !important;


    }


    .search-result-card:hover {


        background: rgba(5, 150, 105, 0.04) !important;


        padding-left: 24px !important;


    }


    .search-result-card:hover .search-chevron {


        transform: translateX(4px);


        opacity: 0.8 !important;


        color: var(--accent-blue) !important;


    }


    #global-search-results a:last-child {


        border-bottom: none !important;


    }


    


    /* Premium Soft Outline Badges */


    .badge-product {


        background: rgba(5, 150, 105, 0.08) !important;


        color: var(--accent-blue) !important;


        border: 1px solid rgba(5, 150, 105, 0.2) !important;


    }


    .badge-article {


        background: rgba(13, 148, 136, 0.08) !important;


        color: var(--accent-teal) !important;


        border: 1px solid rgba(13, 148, 136, 0.2) !important;


    }


    


    /* Premium Subcategory Filter Cards */


    .filter-card {


        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;


        border: 2px solid var(--glass-border) !important;


    }


    .filter-card:hover {


        transform: translateY(-4px);


        box-shadow: 0 10px 20px rgba(17, 45, 32, 0.05) !important;


        border-color: var(--accent-blue) !important;


    }


    .filter-card.active {


        box-shadow: 0 10px 20px rgba(5, 150, 105, 0.1) !important;


    }


