/* Modern Category Page Styling */

/* Global styles */
:root {
    --primary-color: #D73F15;
    --secondary-color: #ef541e;
    --accent-color: #f7941d;
    --text-color: #333;
    --light-grey: #f5f5f5;
    --medium-grey: #e0e0e0;
    --dark-grey: #757575;
    --white: #ffffff;
    --success-color: #28a745;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-grey);
    margin-bottom: 25px;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb li {
    position: relative;
    display: inline-block;
}

.breadcrumb li a {
    color: var(--dark-grey);
    font-size: 14px;
}

.breadcrumb li+li:before {
    content: "›";
    padding: 0 10px;
    color: var(--dark-grey);
}

.view-all-link a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.view-all-link a i {
    margin-left: 5px;
}

/* Category Header Section */
.category-header {
    margin-bottom: 30px;
}

.heading-title {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

.category-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.category-image {
    position: relative;
    flex: 0 0 45%;
    max-width: 45%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.label-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}



.description-content {
    position: relative;
    max-height: 80px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: max-height 0.5s ease;
    line-height: 1.6;
    color: #666;
}

.description-content.expanded {
    max-height: 1000px;
}

.read-more-toggle {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
}

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

.category-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--light-grey);
    border-radius: 50%;
    margin-right: 12px;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Category Tiles Section - Improved for Budget Radiators style */
.category-tiles {
    margin-bottom: 40px;
}

.category-tile {
    display: block;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    background: #fff;
    height: 44px;
    line-height: 44px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #e5e5e5;
}

.category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-tile-image {
    height: 180px;
    overflow: hidden;
}

.category-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-tile-title {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

/* Main Content Area */
.product-listing-container {
    margin-top: 20px;
}

/* Filter Sidebar - Removed as requested */
.filter-sidebar {
    display: block;
}

/* Filter section styling */
.filter-section {
    margin-bottom: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d5d5d5;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin: 0 0 15px 0;
    background-color: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    color: #444;
    letter-spacing: 0.3px;
}

/* Style the icons */
.filter-title .fa {
    color: #c42032;
    margin-right: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.filter-title:hover .fa:not(.filter-toggle) {
    transform: scale(1.1);
}

.filter-toggle {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #3d3d3d;
}

.filter-title:hover .filter-toggle {
    color: #c42032;
}

/* Rotate the toggle icon when expanded */
.filter-toggle.fa-angle-up {
    transform: rotate(180deg);
}

/* Ensure smooth sliding animation */
.filter-options {
    padding: 0;
    border-top: none;
    display: block;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Range slider container */
.range-slider-container {
    padding: 0px;
}

/* Enhanced Range Values */
.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.range-min,
.range-max {
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;

    color: #444;
    position: relative;
}



/* Units styling */
.unit {
    font-size: 12px;
    margin-left: 3px;
    font-weight: 500;
    display: inline-block;
    background: rgba(196, 32, 50, 0.1);
    padding: 2px 2px;
    border-radius: 3px;
    color: #c42032;
    letter-spacing: 0.2px;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

/* Delta symbol styling for BTU and Watts */
.unit .delta-t,
.filter-title .delta-t {
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
    letter-spacing: 0;
    font-weight: 400;
}

.noUi-container {
    padding: 10px 0;
    position: relative;
}

.noUi-slider {
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    box-shadow: none;
}

/* Colorful slider connections based on filter type */
#price-slider .noUi-connect {
    background: #2ecc71;
    /* Green for price */
}

#btu-slider .noUi-connect {
    background: #e67e22;
    /* Orange for BTU */
}

#watts-slider .noUi-connect {
    background: #3498db;
    /* Blue for watts */
}

#height-slider .noUi-connect {
    background: #9b59b6;
    /* Purple for height */
}

#width-slider .noUi-connect {
    background: #e74c3c;
    /* Red for width */
}

.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    right: -9px !important;
    top: -6px !important;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #c42032;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Filter Pills - Redesigned */
.option {
    margin-bottom: 8px;
    display: inline-block;
}

.option input[type="checkbox"] {
    display: none;
}

.option label {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 45px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option input[type="checkbox"]:checked+label {
    background-color: #c42032;
    color: var(--white);
    border-color: #c42032;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(196, 32, 50, 0.3);
    transform: translateY(-1px);
}

.option label:hover {
    border-color: #c42032;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Color Swatches - Improved grid layout */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 5px;
}

.color-option {
    margin: 0 !important;
    position: relative;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-option input[type="checkbox"]:checked+.color-swatch {
    border: 2px solid #c42032;
    box-shadow: 0 2px 8px rgba(196, 32, 50, 0.4);
}

.color-option input[type="checkbox"]:checked+.color-swatch:after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

/* Filter Actions */
.filter-actions {
    margin-top: 25px;
}

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

#reset-filters {
    background: #d7d5d5;
    color: #555;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#reset-filters:hover {
    background: #e0e0e0;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#reset-filters:before {
    content: '\f021';
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.filter-help-text {
    margin-top: 15px !important;
    color: #3d3d3d !important;
    font-size: 13px !important;
}

.filter-help-text i {
    color: #c42032;
    margin-right: 5px;
}

/* Loading indicators */
.loading-colors,
.loading-styles {
    padding: 10px;
    color: #777;
    font-size: 13px;
}

.loading-colors i,
.loading-styles i {
    color: #c42032;
    margin-right: 8px;
}

/* Empty state for color/style options */
#dynamic-color-options:empty:after,
#dynamic-style-options:empty:after {
    content: 'No options available';
    display: block;
    padding: 10px;
    color: #3d3d3d;
    font-style: italic;
    font-size: 13px;
}

/* Overrides for existing OpenCart filters */
#column-left .list-group,
#column-right .list-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

#column-left .list-group-item,
#column-right .list-group-item {
    border: none;
    padding: 5px 0;
    background: transparent;
}

#column-left .list-group-item:first-child,
#column-right .list-group-item:first-child {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: none;
    background: transparent;
}

#column-left .list-group-item:first-child:after,
#column-right .list-group-item:first-child:after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 16px;
    transition: var(--transition);
}

/* Fix for existing links in filter sidebar */
#column-left a.list-group-item {
    font-weight: normal;
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 45px;
}

#column-left a.list-group-item:hover,
#column-left a.list-group-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Override checkbox labels to match pill style */
.list-group-item label.checkbox {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 45px;
    font-weight: normal;
}

.list-group-item input[type="checkbox"]:checked+label.checkbox {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 500;
}

/* Fix bootstrap panel defaults */
.panel {
    border: none;
    box-shadow: none;
    margin-bottom: 25px;
    background: transparent;
}

.panel-default {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.panel-default>.panel-heading {
    background-color: transparent;
    border: none;
    padding: 8px 0;
    color: var(--text-color);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title:after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 16px;
    transition: var(--transition);
}

.panel-body {
    padding: 8px 0 0;
    border: none;
    background: transparent;
}

/* Override any remaining filters and category specific styles */
#filter-groups .panel-default {
    border-bottom: 1px solid var(--medium-grey);
}

#filter-groups .list-group-item {
    display: inline-block;
    margin-bottom: 5px;
}

/* Active filter styles */
.list-group-item.active,
.list-group-item.active:hover {
    background-color: transparent;
    border-color: var(--medium-grey);
    color: var(--text-color);
}

.list-group-item.active label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Main content adjustments to work with sidebar */
.product-content {
    padding-left: 15px;
}

/* Product List Header */
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--light-grey);
    border-radius: 6px;
}

.product-count {
    flex: 0 0 20%;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--dark-grey);
    border-radius: 4px;
}

.view-options a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.sort-options select {
    max-width: 150px;
}

.sort-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
}

.per-page-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.per-page-options select {
    max-width: 70px;
}

/* Products Grid */
.products-grid {
    margin-bottom: 30px;
}

.product-grid-item {
    margin-bottom: 30px;
}

.product-card {
    position: relative;
    border: 1px solid var(--medium-grey);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    position: relative;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--medium-grey);
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

.product-image img.zoom {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
}

.product-name a {
    color: var(--text-color);
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.star {
    color: #ddd;
    font-size: 14px;
    margin-right: 2px;
}

.star:before {
    content: "★";
}

.star.filled {
    color: #FFD700;
}

.review-count {
    font-size: 13px;
    color: var(--dark-grey);
    margin-left: 5px;
}

.price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--dark-grey);
    text-decoration: line-through;
    margin-left: 8px;
}

.specifications {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.specifications li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
}

.specifications li i {
    margin-right: 8px;
    color: var(--dark-grey);
    min-width: 15px;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--medium-grey);
}

.guarantee,
.stock-info {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.guarantee i,
.stock-info i {
    margin-right: 8px;
    color: var(--success-color);
}

/* Room Preview Button */
.room-preview {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .room-preview {
    opacity: 1;
    transform: translateY(0);
}

.room-preview i {
    margin-right: 5px;
}

/* List Layout */
.products-grid.list-layout .product-grid-item {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.products-grid.list-layout .product-card {
    display: flex;
}

.products-grid.list-layout .product-image {
    width: 30%;
    border-bottom: none;
    border-right: 1px solid var(--medium-grey);
}

.products-grid.list-layout .product-info {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
}

.products-grid.list-layout .product-name,
.products-grid.list-layout .rating,
.products-grid.list-layout .price {
    width: 100%;
}

.products-grid.list-layout .specifications {
    width: 50%;
}

.products-grid.list-layout .product-footer {
    width: 50%;
    border-top: none;
    border-left: 1px solid var(--medium-grey);
    padding-left: 15px;
}

/* Pagination */
.pagination-container {
    margin-top: 30px;
}

.pagination {
    margin: 0;
}

.pagination li a {
    border-radius: 4px;
    margin: 0 3px;
    color: var(--text-color);
}

.pagination li.active a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.showing-results {
    margin-top: 30px;
    color: var(--dark-grey);
    font-size: 14px;
}

/* Empty state */
.no-products {
    padding: 60px 0;
    text-align: center;
    font-size: 18px;
    color: var(--dark-grey);
}

.continue-shopping {
    text-align: center;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .category-image,
    .category-description {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-list-header {
        flex-wrap: wrap;
    }

    .product-count {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .view-options,
    .sort-options,
    .per-page-options {
        flex: 1;
    }
}

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

    .product-list-header {
        padding: 10px;
    }

    .sort-options,
    .per-page-options {
        display: none;
    }

    .products-grid.list-layout .product-card {
        flex-direction: column;
    }

    .products-grid.list-layout .product-image,
    .products-grid.list-layout .product-info {
        width: 100%;
    }

    .products-grid.list-layout .product-image {
        border-right: none;
        border-bottom: 1px solid var(--medium-grey);
    }

    .products-grid.list-layout .specifications,
    .products-grid.list-layout .product-footer {
        width: 100%;
    }

    .products-grid.list-layout .product-footer {
        border-left: none;
        padding-left: 0;
        margin-top: 15px;
    }
}

/* Stock Status Styling */
.stock-status,
.stock-status-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 5px 0;
}

.stock-status i,
.stock-status-indicator i {
    margin-right: 5px;
}

.stock-status.in-stock,
.stock-status-indicator.in-stock {
    color: #28a745;
}

.stock-status.in-stock i,
.stock-status-indicator.in-stock i {
    color: #28a745;
}

.stock-status.limited-stock,
.stock-status-indicator.limited-stock {
    color: #ffc107;
}

.stock-status.limited-stock i,
.stock-status-indicator.limited-stock i {
    color: #ffc107;
}

.stock-status.out-of-stock,
.stock-status-indicator.out-of-stock {
    color: #dc3545;
}

.stock-status.out-of-stock i,
.stock-status-indicator.out-of-stock i {
    color: #dc3545;
}

.stock-status.pre-order,
.stock-status-indicator.pre-order {
    color: #17a2b8;
}

.stock-status.pre-order i,
.stock-status-indicator.pre-order i {
    color: #17a2b8;
}

.stock-status-indicator .yes {
    color: #28a745;
    font-weight: bold;
}

.stock-status-indicator .no {
    color: #dc3545;
    font-weight: bold;
}

/* Filter tooltip information */
.filter-info {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    position: relative;
}

.filter-info i {
    color: #777;
    font-size: 14px;
    cursor: help;
    transition: all 0.2s ease;
    position: relative;
}

.filter-info i:hover {
    color: #c42032;
}

/* Custom tooltip styling */
.filter-info i:hover:after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    width: 220px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    text-transform: none;
    font-weight: normal;
    letter-spacing: normal;
    text-align: left;
    line-height: 1.4;
    pointer-events: none;
}

/* Add arrow to tooltip */
.filter-info i:hover:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    z-index: 101;
}

/* Improved range value displays */
.range-values small {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

/* Add scale markings to the sliders */
.noUi-container:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 9%,
            #ddd 9%,
            #ddd 10%);
    opacity: 0.5;
    z-index: -1;
}

/* ===== MOBILE RESPONSIVE STYLES FOR SUBCATEGORY CARDS ===== */
@media (max-width: 768px) {

    /* Subcategory Cards - Smaller on mobile */
    .category-tile {
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        border-radius: 40px;
    }

    .category-tile-image {
        height: 150px;
    }

    /* If using the Budget Radiators subcategory structure */
    .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;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile - even smaller subcategory cards */
    .category-tile {
        height: 32px;
        line-height: 32px;
        font-size: 13px;
        border-radius: 35px;
    }

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