:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hide native number input spinners when custom +/- buttons are present */
.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
}

/* Layout specific styles */
.layout-full-page .main-content {
    min-height: calc(100vh - 140px);
}

.layout-left-nav .sidebar {
    background-color: var(--light-color);
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
}

.layout-left-nav-right-callout .sidebar-left,
.layout-left-nav-right-callout .sidebar-right {
    background-color: var(--light-color);
    min-height: calc(100vh - 56px);
}

.layout-right-nav .sidebar-right {
    background-color: var(--light-color);
    border-left: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
}

/* Feature cards */
.features .card {
    transition: transform 0.2s;
}

.features .card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
}

/* ===================================== */
/* HEADER STYLES */
/* ===================================== */

/* Logo styling for desktop */
@media (min-width: 992px) {
    .logo-container {
        display: flex;
        align-items: center;
        height: 100%;
        position: relative;
    }

    .logo-image {
        max-height: 90px !important; /* Keep the larger size */
        transition: all 0.3s ease;
        position: relative;
        top: -10px; /* Shift logo 10px towards the top */
    }

    /* Logo hover effect */
    .logo-container:hover .logo-image {
        transform: scale(1.02);
    }

    /* Give the main header enough height for the larger logo */
    .main-header .py-3 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Mobile and tablet - keep normal size */
@media (max-width: 991px) {
    .logo-image {
        max-height: 50px;
    }
}

/* Mega menu styling with blue gradient */
.mega-menu {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    border-bottom: none !important;
}

.mega-menu .nav-pills {
    justify-content: space-around !important; /* Full width distribution */
}

.mega-menu-item .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 12px 20px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.mega-menu-item:hover .nav-link {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mega-dropdown {
    margin-top: 0;
    border: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

/* Mobile menu adjustments for gradient */
.mobile-menu-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    border-bottom: none !important;
}

.mobile-menu-toggle .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.mobile-menu-toggle .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Account and Quote icons styling */
.main-header a:hover {
    text-decoration: none;
}

.main-header .text-primary {
    transition: color 0.2s ease;
}

.main-header a:hover .text-primary {
    color: #0056b3 !important;
}

/* Search bar enhancements */
.input-group-lg .form-control {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.input-group-lg .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.input-group-lg .btn-primary {
    border-radius: 0 8px 8px 0;
    border: 2px solid var(--primary-color);
    border-left: none;
}

/* ===================================== */
/* STICKY HEADER STYLES */
/* ===================================== */

/* Sticky header positioning */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* Below main header initially */
    transform: translateY(-100%);
    transition: all 0.4s ease;
}

.sticky-header.show {
    z-index: 1050; /* Above main header when shown */
    transform: translateY(0);
}

/* Sticky mini logo */
.sticky-home-link {
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.sticky-home-link:hover {
    background-color: rgba(0, 102, 204, 0.1);
    transform: scale(1.05);
}

.sticky-mini-logo {
    max-height: 32px;
    transition: all 0.2s ease;
}

/* Department navigation styling */
.department-nav {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.department-nav.search-expanded {
    opacity: 0;
    visibility: hidden;
}

.department-link {
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.department-link:hover {
    background-color: rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.department-name {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.department-link:hover .department-name {
    color: var(--primary-color);
}

/* Sticky search expansion */
.sticky-search-expanded {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.sticky-search-expanded.show {
    opacity: 1;
    visibility: visible;
}

.sticky-search-expanded .input-group {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticky-search-expanded .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease;
    height: 40px;
    font-size: 14px;
}

.sticky-search-expanded .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(0, 102, 204, 0.25);
}

.sticky-search-expanded .btn {
    border-radius: 0;
    height: 40px;
    border: 1px solid #dee2e6;
    border-left: none;
}

.sticky-search-expanded .btn:last-child {
    border-radius: 0 6px 6px 0;
}

.sticky-search-expanded .btn-outline-secondary {
    background: white;
    color: #6c757d;
}

.sticky-search-expanded .btn-primary {
    border-color: var(--primary-color);
}

/* Search toggle button */
#stickySearchToggle {
    border: none;
    background: none;
    transition: all 0.2s ease;
}

#stickySearchToggle:hover {
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 6px;
}

#stickySearchToggle:focus {
    box-shadow: none;
    outline: none;
}

/* Department navigation container positioning */
.department-nav-container {
    position: relative;
    overflow: hidden;
}

/* Sticky logo adjustments */
.sticky-logo {
    transition: all 0.3s ease;
}

/* ===================================== */
/* SHARED MEGA MENU STYLES */
/* ===================================== */

/* Shared mega menu positioning */
.shared-mega-menu {
    /* Position will be set by JavaScript */
    z-index: 1045;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.shared-mega-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Position below main navigation */
.shared-mega-menu.below-main-nav {
    /* Positioning handled by JavaScript */
}

/* Position below sticky header */
.shared-mega-menu.below-sticky-nav {
    /* Positioning handled by JavaScript */
    position: fixed !important;
}

.shared-mega-menu.below-sticky-nav.show {
    transform: translateY(0) !important;
}

/* Mega menu content styling */
.mega-content {
    max-height: 70vh;
    overflow-y: auto;
}

/* Mega menu two-column layout */
.mega-menu-layout {
    display: flex;
    gap: 2rem;
    min-height: 300px;
}

.main-categories-column {
    flex: 0 0 250px;
    border-right: 1px solid #e9ecef;
    padding-right: 1.5rem;
}

.subcategories-column {
    flex: 1;
    padding-left: 1.5rem;
}

.category-section h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.category-list a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateX(4px);
}

/* Browse All link styling */
.browse-all-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    background-color: rgba(0, 102, 204, 0.08);
    margin-bottom: 0.75rem !important;
}

.browse-all-link:hover {
    background-color: rgba(0, 102, 204, 0.15);
    transform: translateX(6px);
}

/* Main category link styling */
.main-category-link {
    position: relative;
}

.main-category-link.has-subcategories::after {
    content: '›';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.main-category-link.has-subcategories:hover::after {
    color: var(--primary-color);
    transform: translateY(-50%) translateX(2px);
}

.main-category-link.active {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

.main-category-link.active::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Categories without subcategories - regular link styling */
.main-category-link.no-subcategories {
    /* Regular link styling, no special indicators */
}

/* Subcategory sections */
.subcategory-section {
    animation: fadeInLeft 0.2s ease-out;
}

.subcategory-section h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.subcategory-section .category-list a {
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================== */
/* SEARCH SUGGESTIONS STYLES */
/* ===================================== */

/* Search suggestions container */
#headerSearchSuggestions,
#stickySearchSuggestions {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Suggestion groups */
.suggestion-group {
    border-bottom: 1px solid #f1f3f4;
}

.suggestion-group:last-child {
    border-bottom: none;
}

.suggestion-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: 1px solid #e9ecef;
}

/* Individual suggestion items */
.suggestion-item {
    color: var(--dark-color);
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: rgba(0, 102, 204, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

.suggestion-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.suggestion-title strong {
    background-color: yellow;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mega-menu-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .main-categories-column {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .subcategories-column {
        padding-left: 0;
    }
}

/* Mobile sticky header adjustments */
@media (max-width: 991px) {
    .sticky-header {
        display: none !important;
    }

    .shared-mega-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
}

/* Quote Cart Dropdown Styles */
.quote-cart-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 450px;
    min-height: 200px;
}

.quote-cart-dropdown.d-none {
    display: none !important;
}

.quote-cart-dropdown .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    padding: 1rem;
}

.quote-cart-dropdown #quoteDropdownContent {
    flex-grow: 1;
    padding: 1rem !important;
    overflow-y: auto;
    max-height: calc(450px - 140px); /* Total height minus header and footer space */
}

.quote-items-container {
    /* Remove container styling - content area handles scrolling */
}

.quote-dropdown-item {
    transition: background-color 0.2s ease;
}

.quote-dropdown-item:hover {
    background-color: #f8f9fa;
}

.quote-dropdown-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.quote-dropdown-item h6 {
    font-size: 0.875rem;
    line-height: 1.2;
}

.quote-dropdown-item .btn-outline-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-color: #dc3545;
}

.quote-dropdown-item .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.dropdown-footer {
    flex-shrink: 0;
    margin: 0 !important;
    border-top: 1px solid #dee2e6 !important;
    min-height: 80px;
}

.dropdown-footer .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Mobile responsive cart dropdown */
@media (max-width: 576px) {
    .quote-cart-dropdown {
        width: 95vw !important;
        max-width: 350px !important;
        max-height: 80vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .quote-items-container {
        max-height: 200px !important;
    }

    .quote-dropdown-item h6 {
        font-size: 0.8rem;
    }
}

/* Product Grid Layout - Shared across category and manufacturer pages */
.custom-products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.custom-product-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.custom-product-card {
    background: white;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.custom-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.custom-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
}

.custom-product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 0.375rem;
}

.custom-product-placeholder-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 0.375rem;
}

.custom-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.custom-product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-product-card:hover .custom-product-image {
    transform: scale(1.05);
}

.custom-product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-product-title a {
    text-decoration: none;
    color: #212529;
}

.custom-product-title a:hover {
    color: var(--bs-primary);
}

.custom-manufacturer-info {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.custom-manufacturer-info .manufacturer-name {
    color: var(--bs-primary);
    font-weight: bold;
}

.custom-product-brand {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.custom-product-model {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.custom-product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.custom-quote-container {
    margin-top: auto;
}

.custom-qty-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.custom-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.custom-qty-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.custom-qty-input {
    width: 70px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: center;
}

.custom-qty-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.custom-quote-btn {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.custom-quote-btn:hover {
    background-color: #0b5ed7;
}

.custom-primary-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--bs-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.custom-manufacturer-info .manufacturer-name a {
    text-decoration: none;
}

.custom-manufacturer-info .manufacturer-name a:hover {
    text-decoration: underline;
}

.custom-product-flags {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 2;
}

.custom-product-flags .custom-flag-icon {
    width: 68px !important;
    height: 25px !important;
    object-fit: contain !important;
    max-width: 68px !important;
    max-height: 25px !important;
}

/* ================================================= */
/* PRODUCT CARD STYLES                              */
/* NOTE: Product card styles have been moved to:    */
/* /templates/includes/product-card-styles.php      */
/* This allows for centralized styling across all   */
/* product listing pages (categories, search, etc.) */
/* ================================================= */

/* ================================================= */
/* STANDARDIZED FILTER STYLES                       */
/* Used across manufacturers, categories, search    */
/* ================================================= */

.filters-sidebar {
    border-right: 1px solid #e9ecef;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: transparent;
}

.filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.filter-section:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-header {
    cursor: pointer;
}

.filter-toggle {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.filter-toggle:hover {
    color: var(--bs-primary);
    background: none !important;
}

.filter-toggle:focus {
    box-shadow: none !important;
    background: none !important;
}

.filter-toggle i {
    transition: transform 0.2s ease;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #fafafa;
}

.filter-options::-webkit-scrollbar {
    width: 8px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-checkbox {
    cursor: pointer;
}

.filter-checkbox:checked + label {
    font-weight: 600;
    color: var(--bs-primary);
}

.filter-count {
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

.active-filter-section {
    border-left: 3px solid var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.05);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

.active-filter-section .filter-header {
    font-weight: 600;
    color: var(--bs-primary);
}

.form-check-input:disabled {
    opacity: 0.5;
}

/* ================================================= */
/* CATEGORY NAVIGATION STYLES                       */
/* ================================================= */

.category-browse-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.category-browse-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-nav-bar {
    margin-top: 1rem;
}

.category-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background: white;
    border: 2px solid var(--bs-primary);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    color: var(--bs-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-nav-link:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
}

.category-nav-link .category-name {
    font-weight: 700;
}

.category-nav-link .category-count {
    background: #e9ecef;
    color: var(--bs-primary);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.category-nav-link:hover .category-count {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bs-primary);
}

/* Responsive Product Grid */
@media (max-width: 1199.98px) {
    .custom-products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .custom-products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .custom-products-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

