/* Budget Radiators - Category Page Styles */
/* Optimized and consolidated CSS without duplicates */

/* ===== SEO AND ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CATEGORY HEADER ===== */
.category-header {
    text-align: center;
    margin-bottom: 0;
    padding: 10px 0;
    background-color: transparent;
}

.heading-title {

    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* ===== SUBCATEGORIES SECTION ===== */
.subcategories-container {
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.subcategories-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #d73f15;
    padding-bottom: 10px;
}

.subcategories-navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.subcategory-nav-btn {
    background: #d73f15;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(215, 63, 21, 0.3);
}

.subcategory-nav-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(215, 63, 21, 0.4);
}

.subcategory-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subcategory-nav-btn .fa {
    font-size: 14px;
}

.subcategories-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcategories-wrapper::-webkit-scrollbar {
    display: none;
}

.subcategory-card {
    flex: 0 0 auto;
    width: 200px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.subcategory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.subcategory-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.subcategory-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcategory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));

}

.subcategory-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-category-info {
    background: #36445a;
    color: white;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.category-description {
    font-size: 14px;
    line-height: 1.5;
}

.description-content {
    max-height: 70px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
    position: relative;
}

.description-content.expanded {
    max-height: 500px;
    /* Large enough value for most content */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.description-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #36445a);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.description-content.expanded::after {
    opacity: 0;
}

.read-more-toggle {
    background: #d73f15;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.read-more-toggle:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(215, 63, 21, 0.3);
}

.read-more-toggle:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* ===== FILTER SECTIONS ===== */
.filter-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    border: none;
}

.filter-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.filter-title {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
}

.filter-title:hover {
    background: #e9ecef;
}

.filter-title:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.filter-title .fa:first-child {
    margin-right: 8px;
    color: #d73f15;
    pointer-events: none;
}

.filter-toggle {
    transition: transform 0.3s ease !important;
}

.filter-section.active .filter-toggle {
    transform: rotate(180deg);
}

.filter-options {
    padding: 12px;
    background: white;
    transition: height 0.3s ease, opacity 0.3s ease !important;
    overflow: hidden !important;
}

/* Prevent text selection and pointer events on child elements during animation */
.filter-title * {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Ensure the filter title itself can still receive clicks */
.filter-title {
    pointer-events: auto !important;
}

/* Smooth animation for filter sections */
.filter-section {
    transition: all 0.3s ease !important;
    will-change: transform;
}

/* Prevent double-click issues during animation */
.filter-section[data-animating="true"] .filter-title {
    pointer-events: none !important;
    opacity: 0.7;
}

/* ===== RANGE SLIDER STYLES ===== */
.range-slider-container {
    margin-top: 8px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.range-min,
.range-max {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    min-width: 65px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* NoUI Slider Styling */
.noUi-container {
    margin: 8px 0;
}

.noUi-target {
    background: #dee2e6;
    border-radius: 4px;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 9px;
}

.noUi-connect {
    background: #d73f15;
}

.noUi-handle {
    background: white;
    border: 2px solid #d73f15;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: 18px;
    height: 18px;
    right: -9px;
    top: -6px;
    transition: all 0.2s ease;
}

.noUi-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

/* ===== FILTER ACTIONS ===== */
.filter-actions {
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
}

.checkbox-filter-container label {
    display: block;
}

#reset-filters {
    width: 100%;
    background: #3d3d3d;
    color: white;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#reset-filters:hover {
    background: #5a6268;
    color: white;
    border-color: #545b62;
}

.filter-help-text {
    margin-top: 8px;
    font-size: 10px;
    color: #3d3d3d;
    text-align: center;
    font-style: italic;
}

.filter-help-text .fa {
    color: #d73f15;
    margin-right: 3px;
}

/* ===== PRODUCT LIST HEADER ===== */
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.sort-options select {
    min-width: 180px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
}

/* Table View Link */
.table-view-link {
    margin-left: auto;
}

.table-view-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #d73f15;
    background: transparent;
    color: #d73f15;
}

.table-view-link .btn:hover {
    background: #d73f15;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(215, 63, 21, 0.2);
}

.table-view-link .btn .fa {
    font-size: 16px;
}

/* Category Search */
.category-search-container {
    flex: 1;
    margin-left: 20px;
    max-width: 300px;
}

.category-search-container .input-group {
    width: 100%;
}

.category-search-container input {
    border-radius: 4px 0 0 4px;
    border-right: none;
    border: 1px solid #ced4da;
    height: 40px;
}

.category-search-container .btn {
    border-radius: 0 4px 4px 0;
    border-left: none;
    background: #d73f15;
    color: white;
    border: 1px solid #d73f15;
}

.category-search-container .btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* ===== APPLIED FILTERS ===== */
.applied-filters-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: none;
}

.applied-filters-container.has-filters {
    display: block;
}

.applied-filters-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

.applied-filter {
    display: inline-block;
    background: white;
    border: 1px solid #d73f15;
    color: #d73f15;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px 5px 3px 0;
    position: relative;
}

.applied-filter .fa-times {
    margin-left: 6px;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.applied-filter .fa-times:hover {
    background: #d73f15;
    color: white;
}



/* ===== PRODUCT GRID ===== */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.product-grid-item {
    margin-bottom: 20px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

.product-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #d73f15;
}

/* ===== PRODUCT IMAGE SECTION ===== */
.product-image {
    position: relative;
    height: 360px !important;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sale-badge {
    position: absolute;
    top: 8px;
    right: 40px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wishlist-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}

.btn-wishlist {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #787676;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-wishlist:hover {
    background: #d73f15;
    color: white;
    border-color: #d73f15;
    transform: scale(1.1);
}

.quick-view-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card:hover .quick-view-badge {
    opacity: 1;
}

/* ===== PRODUCT DETAILS SECTION ===== */
.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

/* Product Title */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    display: block;
    overflow: visible;
}

/* Model ID */
.model-id {
    font-size: 12px;
    color: #3d3d3d;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Price Section */
.price-section {
    margin: 8px 0;
}

/* Price and Rating Container */
.price-rating-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    gap: 15px;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
    display: block;
}

.price-old {
    color: #787676;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.ex-tax {
    font-size: 12px;
    color: #3d3d3d;
    font-weight: 400;
    margin-top: 4px;
}

/* Rating Section */
.rating-section {
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.rating-section .stars {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    margin-bottom: 4px;
}

.rating-section .stars .fa {
    color: #ffc107;
    /* Dark yellow color */
    font-size: 18px;
}

.rating-section .stars .fa-star,
.rating-section .stars .fa-star-half-o {
    color: #ffc107;
    /* Dark yellow for filled and half stars */
}

.rating-section .stars .fa-star-o {
    color: #ddd;
    /* Light gray for empty stars */
}

.review-count {
    font-size: 12px;
    color: #3d3d3d;
    font-weight: 500;
    text-align: right;
    margin-top: 2px;
}

/* Stock Info */
.stock-info {
    font-size: 13px;
    color: #28a745;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    text-align: center;
}

.stock-info .fa {
    color: #28a745;
    font-size: 12px;
}



/* Product Specifications - Clean Design */
.product-specs {
    margin: 12px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0 none;
    background: transparent;
    box-shadow: none;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 auto;
    margin-right: 10px;
    min-width: 80px;
    font-size: 13px;
}

.spec-value {
    color: #3d3d3d;
    text-align: right;
    flex: 1;
    font-weight: 400;
    font-size: 13px;
}

/* Highlight BTU and Watts output values */
/* .spec-item:has(.spec-label:contains("BTU Output")) .spec-value,
.spec-item:has(.spec-label:contains("Watts Output")) .spec-value {
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    font-weight: 600;
    color: #856404;
    box-shadow: 0 1px 3px rgba(255, 234, 167, 0.3);
} */

/* Highlight only the unit text for BTU and Watts output */
.spec-unit[data-output="BTU"],
.spec-unit[data-output="Watts"] {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    font-weight: 600;
    color: #787878;
    box-shadow: 0 1px 3px rgb(170 170 170 / 20%);
    display: inline-block;
    margin-left: 2px;
    font-size: 12px;
}

/* Remove old spec-value highlighting */
.spec-value[data-output="BTU"],
.spec-value[data-output="Watts"] {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    font-weight: 400;
    color: #3d3d3d;
    box-shadow: none;
    display: inline;
}

/* Warranty Info */
.warranty-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.warranty-info .fa {
    color: #dc3545;
    font-size: 13px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    /* Keep product details styling same as desktop */
    .product-details {
        padding: 15px;
        /* Keep same as desktop */
        gap: 5px;
        /* Keep same as desktop */
    }

    /* Keep product title same as desktop */
    .product-title {
        font-size: 16px;
        /* Keep same as desktop */
    }

    /* Keep price styling same as desktop */
    .price-current {
        font-size: 22px;
        /* Keep same as desktop */
    }

    .price-old {
        font-size: 16px;
        /* Keep same as desktop */
    }

    /* Keep product image height same as desktop */
    .product-image {
        height: 360px !important;
        /* Keep same as desktop */
    }

    /* Keep product specs styling same as desktop */
    .product-specs {
        margin: 12px 0;
        /* Keep same as desktop */
    }

    .spec-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        font-size: 13px;
        line-height: 1.4;
        margin: 10px 0 0 0;
        padding: 0;
        border: 0 none;
        background: transparent;
        box-shadow: none;
    }

    .spec-label {
        font-weight: 600;
        color: #495057;
        flex: 0 0 auto;
        margin-right: 10px;
        min-width: 80px;
        font-size: 13px;
    }

    .spec-value {
        color: #3d3d3d;
        text-align: right;
        flex: 1;
        font-weight: 400;
        font-size: 13px;
    }

    /* Keep highlighted unit text styling same as desktop */
    .spec-unit[data-output="BTU"],
    .spec-unit[data-output="Watts"] {
        padding: 2px 6px;
        /* Keep same as desktop */
        font-size: 12px;
        /* Keep same as desktop */
        font-weight: 600;
        /* Keep same as desktop */
        margin-left: 2px;
        /* Keep same as desktop */
    }

    /* Keep warranty info styling same as desktop */
    .warranty-info {
        font-size: 13px;
        /* Keep same as desktop */
        padding-top: 12px;
        /* Keep same as desktop */
    }

    /* Keep stock info styling same as desktop */
    .stock-info {
        font-size: 13px;
        /* Keep same as desktop */
        margin: 8px 0;
        /* Keep same as desktop */
    }

    /* Keep price-rating-container layout same as desktop */
    .price-rating-container {
        display: flex;
        /* Keep flex layout */
        justify-content: space-between;
        /* Keep space between */
        align-items: flex-start;
        /* Keep alignment */
        gap: 15px;
        /* Keep same gap */
        flex-direction: row;
        /* Force row direction on mobile too */
    }

    /* Keep rating section styling same as desktop */
    .rating-section {
        text-align: right;
        /* Keep right alignment */
        min-width: 80px;
        /* Keep minimum width */
        flex-shrink: 0;
        /* Keep flex shrink */
    }

    .rating-section .stars .fa {
        font-size: 18px;
        /* Keep same star size */
    }

    .review-count {
        text-align: right;
        /* Keep right alignment */
        font-size: 12px;
        /* Keep same as desktop */
    }
}

/* ===== PAGINATION & LOADING ===== */
.load-more-container {
    border-top: 1px solid #dee2e6;
    padding-top: 30px;
    text-align: center;
}

#load-more-btn {
    background: #d73f15;
    color: white;
    border: 1px solid #d73f15;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.loading-state {
    color: #3d3d3d;
}

.loading-state .fa-spinner {
    color: #d73f15;
}

.loading-spinner {
    color: #3d3d3d;
    font-size: 14px;
}

.loading-spinner .fa-spinner {
    color: #d73f15;
    margin-right: 8px;
}

.pagination-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.pagination-container {
    text-align: center;
}

.showing-results {
    color: #3d3d3d;
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {

    /* Keep product list header layout flexible but maintain desktop button sizes */
    .product-list-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        /* Keep same as desktop equivalent */
        gap: 15px;
        /* Keep same as desktop */
    }

    .sort-options {
        justify-content: center;
        width: 100%;
    }

    .table-view-link {
        margin-left: 0;
        width: 100%;
    }

    .table-view-link .btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        /* Keep same as desktop */
        font-size: 14px;
        /* Keep same as desktop */
    }

    .category-search-container {
        margin-left: 0;
        margin-top: 0;
        max-width: none;
        width: 100%;
    }

    /* Keep applied filter styling same as desktop */
    .applied-filter {
        font-size: 12px;
        /* Keep same as desktop */
        padding: 4px 10px;
        /* Keep same as desktop */
    }

    .clear-all-filters {
        font-size: 12px;
        /* Keep same as desktop */
        padding: 6px 12px;
        /* Keep same as desktop */
    }

    /* Make subcategory cards smaller on mobile */
    .subcategory-card {
        width: 140px;
        height: 120px;
    }

    .subcategory-nav-btn {
        width: 32px;
        height: 32px;
    }

    .subcategory-nav-btn .fa {
        font-size: 12px;
    }

    .subcategories-navigation {
        gap: 10px;
    }

    .subcategories-wrapper {
        gap: 10px;
        padding: 8px 0;
    }

    .subcategory-title {
        font-size: 12px;
        font-weight: 600;
        color: white;
        text-align: center;
        margin: 0;
        padding: 8px 6px;
    }

    .subcategory-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        padding: 6px;
    }

    /* Keep product grid item margins same as desktop */
    .product-grid-item {
        margin-bottom: 20px;
        /* Keep same as desktop */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .subcategory-card {
        width: 120px;
        height: 100px;
    }

    .subcategory-nav-btn {
        width: 28px;
        height: 28px;
    }

    .subcategory-nav-btn .fa {
        font-size: 10px;
    }

    .subcategories-navigation {
        gap: 8px;
    }

    .subcategories-wrapper {
        gap: 8px;
        padding: 6px 0;
    }

    .subcategory-title {
        font-size: 11px;
        padding: 6px 4px;
    }
}

/* Remove duplicate and conflicting subcategory styles - keep desktop versions */
.subcategories-container {
    margin: 10px 0;
    /* Keep same as desktop */
    overflow: hidden;
    position: relative;
}

.subcategories-title {
    font-size: 24px;
    /* Keep same as desktop */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    /* Keep same as desktop */
    text-align: center;
    border-bottom: 2px solid #d73f15;
    padding-bottom: 10px;
}

.subcategories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.subcategory-card {
    border-radius: 8px;
}

.subcategory-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.subcategory-info {
    padding: 15px;
}

.subcategory-title {
    font-size: 14px;
    /* Keep same as desktop */
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
}

/* Duplicate rule removed - keeping desktop version only */

/* Enhanced Filter Toggle Styles - Fix for jerky behavior */
.filter-title {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.filter-title:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.filter-title .fa:first-child,
.filter-toggle {
    pointer-events: none !important;
}

.filter-toggle {
    transition: transform 0.3s ease !important;
}

.filter-options {
    transition: height 0.3s ease, opacity 0.3s ease !important;
    overflow: hidden !important;
}

/* Prevent text selection and pointer events on child elements during animation */
.filter-title * {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Ensure the filter title itself can still receive clicks */
.filter-title {
    pointer-events: auto !important;
}

/* Smooth animation for filter sections */
.filter-section {
    transition: all 0.3s ease !important;
    will-change: transform;
}

/* Prevent double-click issues during animation */
.filter-section[data-animating="true"] .filter-title {
    pointer-events: none !important;
    opacity: 0.7;
}