/* 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: 220px;
    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;
}

.sidebar-category-info h1,
.sidebar-category-info h2,
.sidebar-category-info h3,
.sidebar-category-info h4 {
    color: white;
}

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

.description-content {

    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 {

    /* 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: 220px;
    }


    .subcategory-nav-btn {
        width: 36px;
        height: 36px;
        position: absolute;

    }

    #subcategory-next {
        right: 0;
    }

    #subcategory-prev {
        left: 0;
    }

    .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: 300;
        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: 0;
    }

    /* 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: 200px;
    }

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

    .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;
}

/* ============================================
   Product Comparison Table Section
   ============================================ */
.product-comparison-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.comparison-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-title::before {
    content: "\f0db";
    font-family: FontAwesome;
    color: #D73F15;
    font-size: 22px;
}

.comparison-intro {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-table thead {
    background: linear-gradient(135deg, #36445a 0%, #2c3e50 100%);
}

.comparison-table thead th {
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 14px 12px;
    font-size: 14px;
    color: #495057;
    vertical-align: middle;
}

.product-name-cell a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name-cell a:hover {
    color: #D73F15;
}

.dimension-cell {
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.btu-cell {
    font-weight: 600;
    color: #D73F15;
    white-space: nowrap;
}

.price-cell {
    white-space: nowrap;
}

.price-cell .old-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 12px;
    display: block;
}

.price-cell .sale-price {
    color: #dc3545;
    font-weight: 700;
    font-size: 16px;
}

.price-cell span:not(.old-price):not(.sale-price) {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.rating-cell .star-rating {
    color: #ffc107;
    font-size: 12px;
}

.rating-cell .star-rating .fa-star-o {
    color: #dee2e6;
}

.rating-cell .no-rating {
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.action-cell {
    text-align: right;
}

.btn-view-product {
    display: inline-block;
    padding: 8px 16px;
    background: #D73F15;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: #b91c1c;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 63, 21, 0.3);
}

.comparison-more {
    margin-top: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.comparison-more a {
    color: #D73F15;
    font-weight: 600;
    text-decoration: none;
}

.comparison-more a:hover {
    text-decoration: underline;
}

/* Responsive Comparison Table */
@media (max-width: 992px) {
    .comparison-table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .comparison-table td {
        font-size: 13px;
        padding: 10px 8px;
    }

    .btn-view-product {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .product-comparison-section {
        padding: 20px 15px;
        margin: 30px -15px;
        border-radius: 0;
    }

    .comparison-title {
        font-size: 20px;
    }

    .comparison-intro {
        font-size: 14px;
    }

    .comparison-table thead th:nth-child(5),
    .comparison-table tbody td:nth-child(5) {
        display: none;
    }

    .comparison-table td {
        font-size: 12px;
        padding: 8px 6px;
    }

    .price-cell .sale-price,
    .price-cell span:not(.old-price):not(.sale-price) {
        font-size: 14px;
    }
}

@media (max-width: 576px) {

    .comparison-table thead th:nth-child(3),
    .comparison-table tbody td:nth-child(3) {
        display: none;
    }

    .comparison-table thead th:nth-child(2),
    .comparison-table tbody td:nth-child(2) {
        display: none;
    }
}/* Modern Checkbox-Based Filter System */
/* SEO-Optimized & Mobile-Responsive */
/* Matches design from provided image */

/* ============================================
   CATEGORY DESCRIPTION - MOBILE VISIBLE
   ============================================ */

.category-description-section {
    margin-bottom: 20px;
    background: #36445a;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(54, 68, 90, 0.3);
}

.category-about-box {
    padding: 20px;
}

.about-heading {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-heading .fa {
    color: #fff;
    margin-right: 8px;
}

.description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #fff;
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 200px;
    /* Default: show ~8-10 lines */
    position: relative;
}

.description-text.expanded {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    /* Expand to full content height */
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .description-text {
        max-height: 200px;
    }

    .description-text.expanded {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
}

.read-more-btn {
    display: block !important;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    margin-top: 12px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.read-more-btn .fa {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-text,
.read-less-text {
    color: #fff;
    font-weight: 600;
}

/* ============================================
   MODERN FILTER SIDEBAR
   ============================================ */

.filter-column {
    padding-right: 15px;
}

@media (max-width: 991px) {
    .filter-column {
        margin-bottom: 30px;
    }
}

.modern-filters {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.filters-main-heading {
    background: #f8f8f8;
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
}

.filters-main-heading .fa {
    color: #e74c3c;
    margin-right: 10px;
}

/* ============================================
   FILTER SECTIONS
   ============================================ */

.filter-section {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-title {
    margin: 0;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s ease;
}

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

.filter-title-text {
    flex: 1;
}

.filter-title-text .fa {
    margin-right: 8px;
    color: #d73f15;
    font-size: 14px;
}

.toggle-icon {
    color: #666;
    font-size: 16px;
    transition: transform 0.3s ease;
    display: none;
}

.filter-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
    display: none;
}

/* ============================================
   FILTER OPTIONS - CHECKBOX STYLE
   ============================================ */

.filter-options {
    padding: 10px 15px 15px 15px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: block !important;
}

.filter-section.collapsed .filter-options {
    max-height: 300px !important;
    padding: 10px 15px 15px 15px;
    overflow-y: auto;
    display: block !important;
}

/* Custom Scrollbar */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* ============================================
   CHECKBOX LABELS
   ============================================ */

/* Override global label styles for filter checkboxes - SUPER SPECIFIC */
.modern-filters .filter-options label.filter-checkbox-label,
.filter-sidebar .filter-options label.filter-checkbox-label,
.filter-options label.filter-checkbox-label,
.modern-filters label.filter-checkbox-label,
.filter-sidebar label.filter-checkbox-label,
label.filter-checkbox-label,
.filter-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 0 !important;
    cursor: pointer !important;
    user-select: none;
    transition: background 0.2s ease;
    border-radius: 4px;
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-weight: normal !important;
    width: 100% !important;
    max-width: 100% !important;
}

.filter-checkbox-label:hover {
    background: #f3f2f2;

}

.filter-checkbox {
    margin-right: 8px !important;
    margin-left: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1 1 auto;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 80px);
    display: inline-block;
}

.product-count {
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
    display: inline-block;
}

.filter-checkbox:checked+.checkbox-custom+.checkbox-text {
    font-weight: 600;
    color: #e74c3c;
}

/* ============================================
   FILTER ACTIONS
   ============================================ */

.filter-actions {
    padding: 15px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

.btn-reset-filters {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-reset-filters .fa {
    margin-right: 8px;
}

/* ============================================
   ACTIVE FILTERS DISPLAY
   ============================================ */

.active-filters-container {
    padding: 15px;
    background: #fff5f5;
    border-top: 1px solid #e0e0e0;
}

.active-filters-heading {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.active-filter-tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px 5px 0;
    font-weight: 500;
}

.active-filter-tag .fa-times {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.8;
}

.active-filter-tag .fa-times:hover {
    opacity: 1;
}

/* ============================================
   FILTER HELP TEXT
   ============================================ */

.filter-help-text {
    padding: 12px 15px;
    text-align: center;
    font-size: 12px;
    color: #999;
    background: #f8f8f8;
}

.filter-help-text .fa {
    color: #e74c3c;
    margin-right: 5px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.products-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
    .filter-column {
        padding: 0;
    }

    .modern-filters {
        margin-bottom: 20px;
    }

    .filter-section {
        border-bottom: 1px solid #e0e0e0;
    }

    .filter-title {
        padding: 12px 15px;
        font-size: 12px;
    }

    .filter-title-text .fa {
        margin-right: 6px;
        font-size: 13px;
    }

    .filter-options {
        max-height: 250px;
        /* Shorter on mobile */
        padding: 10px 0 !important;
        display: block !important;
    }

    /* Override global label styles on mobile - SUPER SPECIFIC */
    .modern-filters .filter-options label.filter-checkbox-label,
    .filter-sidebar .filter-options label.filter-checkbox-label,
    .filter-options label.filter-checkbox-label,
    .modern-filters label.filter-checkbox-label,
    .filter-sidebar label.filter-checkbox-label,
    label.filter-checkbox-label,
    .filter-checkbox-label {
        padding: 12px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        display: block !important;
        font-weight: normal !important;
    }

    /* Make children display inline */
    .filter-checkbox-label input.filter-checkbox,
    .filter-checkbox-label .checkbox-text,
    .filter-checkbox-label .product-count {
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .filter-checkbox-label input.filter-checkbox {
        margin-right: 10px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .filter-checkbox-label .checkbox-text {
        font-size: 14px !important;
        color: #333 !important;
        max-width: calc(100% - 100px) !important;
        margin: 0 !important;
    }

    .filter-checkbox-label .product-count {
        font-size: 13px !important;
        color: #e74c3c !important;
        font-weight: 600 !important;
        float: right !important;
        margin-left: 10px !important;
    }

    .filter-checkbox-label:hover {
        background: #f9f9f9;
        padding-left: 15px;
    }

    .checkbox-text {
        font-size: 14px !important;
        flex: 1 1 auto;
        margin: 0 10px;
        min-width: 0;
        overflow: visible !important;
        text-overflow: clip;
        white-space: normal;
        max-width: calc(100% - 100px);
        display: inline-block !important;
        color: #333 !important;
    }

    .product-count {
        font-size: 13px !important;
        font-weight: 600;
        flex-shrink: 0;
        min-width: 40px;
        text-align: right;
        display: inline-block !important;
        color: #e74c3c !important;
    }

    .filter-checkbox {
        margin-right: 10px !important;
        margin-left: 0;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        display: inline-block !important;
    }

    /* Make description fully visible and styled on mobile */
    .category-description-section {
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        display: block !important;
        visibility: visible !important;
    }

    .about-heading {
        font-size: 16px;
    }

    .description-text {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* ============================================
   TABLET OPTIMIZATIONS
   ============================================ */

@media (min-width: 768px) and (max-width: 991px) {
    .filter-column {
        margin-bottom: 25px;
    }

    .modern-filters {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .category-description-section {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ============================================
   DESKTOP OPTIMIZATIONS
   ============================================ */

@media (min-width: 992px) {
    .filter-column {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .modern-filters {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    .category-description-section {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 25px;
    }

    /* Desktop description can be toggled */
    .description-text:not(.expanded) {
        max-height: 200px;
        overflow: hidden;
    }

    .description-text.expanded {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Read more button is now visible on all devices including desktop */
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.filter-checkbox:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.filter-title:focus {
    outline: 2px solid #e74c3c;
    outline-offset: -2px;
}

.btn-reset-filters:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

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

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .filter-column {
        display: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    .filter-section {
        border-color: #000;
    }

    .filter-title {
        border-color: #000;
    }

    .filter-checkbox-label:hover {
        background: #e0e0e0;
    }
}

/* ============================================
   DARK MODE SUPPORT (Future-proofing)
   ============================================ */

@media (prefers-color-scheme: dark) {

    .modern-filters,
    .category-description-section {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #444;
    }

    .filters-main-heading,
    .filter-title {
        background: #333;
        color: #fff;
        border-color: #444;
    }

    .about-heading {
        color: #fff;
    }

    .filter-options {
        background: #2a2a2a;
    }

    .checkbox-text {
        color: #ddd;
    }

    .description-text {
        color: #e2e8f0;
    }

    .filter-help-text {
        background: #333;
        color: #aaa;
    }

    .btn-reset-filters {
        background: #333;
        color: #e74c3c;
        border-color: #e74c3c;
    }

    .btn-reset-filters:hover {
        background: #e74c3c;
        color: #fff;
    }
}

.description-text h1,
.description-text h2,
.description-text h3,
.description-text h4,
.description-text h5 {
    color: #fff;
}/* ===================================
   Category FAQ Section Styles
   =================================== */

.category-faqs-section {
    margin: 60px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-faqs-section .faqs-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.category-faqs-section .faqs-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d73f15, #a83210);
    border-radius: 2px;
}

/* FAQ Items */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 6px 16px rgba(215, 63, 21, 0.15);
    border-color: #d73f15;
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: #d73f15;
    box-shadow: 0 8px 24px rgba(215, 63, 21, 0.2);
}

/* FAQ Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(to right, #fef5f3, #fce8e3);
}

.faq-item.active .faq-question {
    background: linear-gradient(to right, #fce8e3, #fef5f3);
    border-bottom: 1px solid #e0e0e0;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-right: 20px;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: #d73f15;
}

.faq-item.active .faq-question h3 {
    color: #a83210;
}

/* FAQ Toggle Icon */
.faq-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d73f15;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(215, 63, 21, 0.3);
}

.faq-toggle i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-toggle {
    background: #a83210;
    box-shadow: 0 4px 12px rgba(168, 50, 16, 0.4);
    transform: scale(1.1);
}

.faq-item.active .faq-toggle {
    background: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.answer-content {
    padding: 24px 28px;
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    background: #ffffff;
}

.answer-content p {
    margin: 0 0 16px 0;
}

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

/* Rich Content Formatting */
.answer-content strong,
.answer-content .fw-bold {
    color: #2c3e50;
    font-weight: 600;
}

.answer-content ul,
.answer-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-content .alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.answer-content .alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.answer-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.answer-content .alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.answer-content .list-group {
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.answer-content .list-group-item {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.answer-content .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px;
}

.answer-content .badge.bg-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.answer-content .badge.bg-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.answer-content .badge.bg-success {
    background-color: #28a745;
    color: #ffffff;
}

.answer-content .badge.bg-primary {
    background-color: #d73f15;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-faqs-section {
        padding: 30px 20px;
        margin: 40px 0;
    }

    .category-faqs-section .faqs-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .answer-content {
        padding: 18px 20px;
        font-size: 15px;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
    }

    .faq-toggle i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-faqs-section {
        padding: 24px 16px;
        margin: 30px 0;
        border-radius: 12px;
    }

    .category-faqs-section .faqs-title {
        font-size: 22px;
    }

    .faq-question {
        padding: 16px 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .answer-content {
        padding: 16px 16px;
        font-size: 14px;
    }
}

/* Animation for content reveal */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .answer-content {
    animation: fadeInDown 0.4s ease;
}

/* Print styles */
@media print {
    .faq-item {
        page-break-inside: avoid;
    }

    .faq-toggle {
        display: none;
    }

    .faq-answer {
        max-height: none !important;
    }
}