/* iPhone Product Listing Styles - Updated */

:root {
    --primary-color: #00d1b2;
    --secondary-color: #333;
    --light-bg: #f8f9fa;
    --card-bg: #fff;
    --border-color: #eaeaea;
    --text-color: #333;
    --gray-text: #777;
    --light-text: #fff;
}

/* iPhone Header Styling */
.iphone-header {
    background-color: #4dd9c6; /* Lighter shade of primary green */
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.iphone-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light-text); /* White text for contrast */
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--light-text); /* White text for contrast */
}

.breadcrumbs a {
    color: var(--light-text); /* White text for contrast */
    text-decoration: underline; /* Ensure link is visible */
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #f0f0f0; /* Slightly dimmer white on hover */
}

/* Main Listing Container */

/* --- Filters Sidebar --- */
.filters-sidebar {
    /* Basic styling for the sidebar, adjust as needed */
    padding: 15px;
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 4px;
    /* Consider adding a width or flex-basis if it's part of a flex layout */
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}

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

.filter-group h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--secondary-color, #333);
}

/* Price Slider Specific Styles */
.filter-group.filter-price .price-slider-container {
    padding: 10px 5px; /* Add some padding around the slider track */
}

#price-slider-range {
    height: 8px; /* Essential: Give the slider track some height */
    margin: 20px 5px; /* Margin for handles to not be clipped, adjust top/bottom as needed */
    background: #e9e9e9; /* Light grey background for the track */
    border-radius: 4px;
    border: 1px solid #d3d3d3;
}

/* Styling for the slider handles (using default noUiSlider classes) */
/* This ensures handles are visible if the noUiSlider CSS is loaded */
.noUi-target .noUi-handle {
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background: #FFF;
    box-shadow: inset 0 0 1px #FFF,
                inset 0 1px 7px #EBEBEB,
                0 3px 6px -3px #BBB;
    width: 18px !important; /* Adjust width as needed */
    height: 18px !important; /* Adjust height as needed */
    top: -6px !important; /* Position relative to the track */
    right: -9px !important; /* Position relative to the track */
    cursor: grab;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none; /* Remove default pseudo-elements if they cause the hyphen */
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--gray-text, #777);
}

.iphone-listing {
    padding: 0 0 4rem 0;
    background-color: var(--light-bg);
}

.listing-container {
    display: flex;
    gap: 1.5rem;
}

/* Filter Sidebar Styling */
.filters-sidebar {
    flex: 0 0 220px;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    align-self: flex-start;
    position: sticky;
    top: 120px;
}

.filter-group {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

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

.filter-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    text-transform: capitalize;
}

.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Price Filter */
.price-slider {
    margin-top: 0.75rem;
}

.range-slider {
    width: 100%;
    height: 2px;
    border-radius: 1px;
    appearance: none;
    background: #e5e5e7;
    outline: none;
    margin-bottom: 1rem;
    accent-color: var(--primary-color);
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.price-min, .price-max {
    width: 60px;
    padding: 0.2rem 0.4rem;
    border: 1px solid #e5e5e7;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center;
}

/* Color Filters */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.color-option {
    cursor: pointer;
    position: relative;
}

.color-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.color-circle {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.15s ease, border 0.15s ease;
    position: relative;
}

.color-circle.black {
    background-color: #1a1a1a;
}

.color-circle.white {
    background-color: #f5f5f7;
}

.color-circle.purple {
    background-color: #7d6e83;
}

.color-circle.red {
    background-color: #FF3B30;
}

.color-circle.blue {
    background-color: #0071e3;
}

.color-circle.titanium {
    background-color: #74777b;
}

.color-circle.gold {
    background-color: #f9e5c9;
}

.color-circle.pink {
    background-color: #ffc0cb;
}

.color-option input:checked + .color-dot.selected:after {
    border-color: var(--primary-color);
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.selected {
    transform: scale(1.1);
}

.color-option:hover .color-circle {
    transform: scale(1.1);
}

/* Filter Button */
.filter-button {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-button:hover {
    background-color: #00b49c;
}

.filters-reset {
    background: none;
    border: 1px solid #e5e5e7;
    color: var(--gray-text);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.5rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.filters-reset:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Products Container */
.products-container {
    flex: 1;
}

/* Products Topbar */
.products-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.results-count {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.sorting-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sorting-options label {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.sort-select {
    padding: 0.3rem 1.2rem 0.3rem 0.5rem;
    border: 1px solid #e5e5e7;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-color);
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem top 50%;
    background-size: 0.6rem auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-top: 1.25rem;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Optimalisaties voor productkaarten op mobiel */
    .product-card-v2 {
        padding: 0.5rem;
    }
    
    .product-image-container-new {
        height: auto;
        min-height: 100px;
        padding: 0.25rem;
    }
    
    .product-image-new {
        max-height: 100px;
    }
    
    .product-title-new {
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }
    
    .product-brand-new {
        font-size: 0.65rem;
    }
    
    .product-rating-new {
        font-size: 0.7rem;
    }
    
    .product-attributes-new {
        gap: 0.25rem;
        margin: 0.25rem 0;
    }
    
    .attribute-badge-new {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
    }
    
    .product-availability-new {
        font-size: 0.65rem;
    }
    
    .current-price-new {
        font-size: 0.9rem;
    }
    
    .original-price-new {
        font-size: 0.7rem;
    }
    
    .btn-product-new {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .btn-cart-new {
        width: 28px;
        height: 28px;
    }
    
    /* Mobile touch feedback for clickable cards */
    .clickable-card:active {
        background-color: rgba(0,209,178,0.05);
        transform: translateY(-2px);
    }
}

/* Product Card */
.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 450px;
    flex: 1;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d9d9d9;
}

/* Clickable Product Card v2 */
.product-card-v2 {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: rgba(0,209,178,0.3); /* Hint of primary color in border */
}

.clickable-card:active {
    transform: translateY(-2px);
    transition: all 0.1s ease;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 0.6rem;
    left: 0;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    z-index: 1;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    letter-spacing: 0.5px;
    color: #fff;
}

.product-badge.new {
    background-color: #00d1b2;
}

.product-badge.popular {
    background-color: #ff9500;
}

.product-badge.sale {
    background-color: #ff3b30;
}

.product-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    padding: 0.75rem;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f5f5f7;
}

.product-image img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-info {
    padding: 0.5rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.35rem;
}

.product-brand {
    font-size: 0.65rem;
    font-weight: 500;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    display: block;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: var(--secondary-color);
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stars {
    display: flex;
    margin-right: 0.35rem;
    color: #FFB800;
    font-size: 0.7rem;
}

.rating-count {
    font-size: 0.7rem;
    color: #777;
    font-weight: 400;
}

.verified-reviews {
    display: none;
}

/* Product Option Badges */
.product-option-badges {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.option-badge {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    padding: 0;
}

.option-badge:after {
    content: "•";
    display: inline-block;
    margin-left: 0.4rem;
    color: #ccc;
}

.option-badge:last-child:after {
    content: "";
}

.option-badge.storage,
.option-badge.color,
.option-badge.color {
    position: relative;
    display: none;
}

/* Kleurbolletjes voor kleurenselectie */
.color-options {
    display: flex;
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.color-dot.black {
    background-color: #000;
}

.color-dot.white {
    background-color: #fff;
}

.color-dot.blue {
    background-color: #0077cc;
}

.color-dot.red {
    background-color: #e74c3c;
}

.color-dot.purple {
    background-color: #9b59b6;
}

.option-badge:last-child {
    margin-right: 0;
}

/* Product Options */
.product-options {
    margin-bottom: 0.5rem;
}

.option-label {
    display: block;
    font-size: 0.65rem;
    color: #777;
    margin-bottom: 0.2rem;
    font-weight: normal;
}

.storage-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.25rem 0;
}

.storage-options span {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border: 1px solid #e5e5e7;
    border-radius: 3px;
    font-size: 0.7rem;
    color: #777;
    cursor: pointer;
    transition: all 0.15s ease;
}

.storage-options span:hover {
    border-color: var(--primary-color);
}

.storage-options span.option-selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.color-options {
    display: flex;
    gap: 0.35rem;
    margin: 0.25rem 0;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.color-dot.titanium {
    background: linear-gradient(135deg, #8c8c8c 0%, #b0b0b0 50%, #8c8c8c 100%);
}

.color-dot.black {
    background-color: #1a1a1a;
}

.color-dot.silver {
    background-color: #e4e4e2;
}

.color-dot.gold {
    background-color: #f9e5c9;
}

.color-dot.blue {
    background-color: #0071e3;
}

.color-dot.pink {
    background-color: #ffc0cb;
}

.color-dot.titanium {
    background-color: #74777b;
}

.color-dot.white {
    background-color: #f5f5f7;
}

.color-dot.selected {
    box-shadow: 0 0 0 1px var(--primary-color);
    transform: scale(1.1);
}

.color-dot:hover {
    transform: scale(1.1);
}

.product-availability {
    font-size: 0.7rem;
    color: #27ae60;
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.product-availability i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.product-price {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.75rem;
    padding: 0;
    gap: 0.5rem;
}

.product-price .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.product-price .original-price {
    font-size: 0.75rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
    align-self: center;
}

.price-old {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.btn-product {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.75rem;
    background-color: #00f2c3;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-product i {
    font-size: 0.7rem;
}

.btn-product:hover {
    background-color: #00ddb0;
}

.btn-product:active {
    background-color: #00d1b2;
}

/* Mobile Filter Toggle */
.mobile-filters-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 0.75rem;
    display: none;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 50;
    border-top: 3px solid var(--primary-color);
}

.mobile-filter-button {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #e5e5e7;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-filter-button i {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 767px) {
    .filter-header {
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    
    .filter-header h2 {
        font-size: 1rem;
    }
}

.filter-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.filter-close {
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

@media (max-width: 991px) {
    .listing-container {
        display: flex;
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: relative;
        width: 100%;
        z-index: 900;
        background: #fff;
        overflow-y: visible;
        padding: 1rem;
        margin-bottom: 1rem;
        max-height: none;
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
        transform: none;
    }
    
    .filter-close {
        display: block;
    }
    
    .filters-sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-filters-toggle {
        display: flex;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .iphone-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb {
        margin-top: 0.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .products-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sorting-options {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .filter-button {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 0.75rem 0;
        z-index: 50;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .product-image {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .listing-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: static;
        width: 100%;
        flex-basis: auto;
        margin-bottom: 1.5rem;
    }
    
    /* Convert filters to accordion */
    .filter-group h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .filter-group h3::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    }
    
    .filter-group.closed h3::after {
        content: '\f106';
    }
    
    .filter-options, 
    .price-slider,
    .color-options {
        display: none;
    }
    
    .filter-group.open .filter-options, 
    .filter-group.open .price-slider,
    .filter-group.open .color-options {
        display: flex;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .products-topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .iphone-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .filter-button {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 0.75rem 0;
        z-index: 50;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .product-image {
        height: 150px;
    }
}

/* Styles for New Product Cards (v2) */

.product-card-v2 {
    background-color: #fff;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* Softer shadow */
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 540px; /* Fixed height for alignment - adjust as needed */
    position: relative;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* Ensures content fits */
}

.product-card-v2:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image-container-new {
    width: 100%;
    height: 220px; /* Fixed height for image area */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-image-new {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures full visibility without crop */
}

.product-details-new {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows this section to take available space */
}

.product-brand-new {
    font-size: 0.7rem;
    color: #6c757d; /* Greyish text */
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}

.product-title-new {
    font-size: 1.05rem; /* Slightly smaller for compactness */
    font-weight: 600; /* Bold enough but not too heavy */
    color: #343a40; /* Darker text */
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.6em; /* For 2 lines of text */
}

.product-rating-new {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.product-rating-new .stars {
    color: #ffc107; /* Amber/Gold for stars */
    margin-right: 6px;
}

.product-rating-new .stars i {
    font-size: 0.9em; /* Relative to parent font-size */
}

.product-rating-new .rating-count-new {
    font-size: 0.9em; /* Relative to parent font-size */
    color: #6c757d;
}

.product-attributes-new {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.attribute-badge-new {
    background-color: #f1f3f5; /* Very light grey */
    color: #495057; /* Darker grey text for contrast */
    padding: 5px 10px;
    font-size: 0.7rem; /* Small badges */
    border-radius: 12px; /* Pill shape */
    font-weight: 500;
}

.product-availability-new {
    font-size: 0.75rem; /* Compact availability text */
    color: #28a745; /* Green for availability */
    margin-bottom: 10px;
    font-weight: 500;
}

.product-price-new {
    margin-bottom: 15px; /* More space before button */
    display: flex;
    align-items: baseline; /* Align prices nicely */
}

.current-price-new {
    font-size: 1.25rem; /* Prominent current price */
    font-weight: 700;
    color: #212529; /* Almost black */
    margin-right: 8px;
}

.original-price-new {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
}

.btn-product-new {
    background-color: #00F5D4; /* Bright aqua/teal */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px; /* Balanced padding */
    font-size: 0.9rem; /* Clear button text size */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-product-new:hover {
    background-color: #00E0C4; /* Slightly darker on hover */
    transform: translateY(-1px);
}

.btn-product-new:active {
    background-color: #00C5B0; /* Slightly darker on active */
    transform: translateY(0px);
}

.btn-product-new i {
    margin-left: 8px;
    font-size: 0.9em;
}

/* === New Filter Sidebar Styles === */

/* General Filter Group Adjustments */
.filters-sidebar .filter-group h4 {
    font-size: 1rem; /* Adjusted from h3 */
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--secondary-color);
    text-transform: none; /* Reference doesn't use capitalize for h4 */
}

.filters-sidebar .filter-group {
    padding-bottom: 1.25rem; /* Slightly more padding */
    margin-bottom: 1.25rem;
}

/* Serie Filter (Links) */
.filter-series .filter-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-series .filter-links li {
    margin-bottom: 0.5rem;
}

.filter-series .filter-links .filter-link {
    display: block;
    padding: 0.4rem 0.6rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-series .filter-links .filter-link:hover {
    background-color: #f0f0f0;
}

.filter-series .filter-links .filter-link.active {
    background-color: #00D1B2; /* Primary green from reference */
    color: white;
    font-weight: 500;
}

/* Price Filter (noUiSlider Styling) */
.filter-price .price-slider-container {
    padding: 0.5rem 0.1rem; /* Padding for slider handles */
}

#price-slider-range.noUi-target {
    height: 4px; /* Thin track */
    border: none;
    box-shadow: none;
    background: #E0E0E0; /* Light grey track */
}

#price-slider-range .noUi-connect {
    background: #00D1B2; /* Green active range */
    height: 4px;
}

#price-slider-range .noUi-handle {
    height: 14px;
    width: 14px;
    top: -5px; /* Adjust for vertical centering on the 4px track */
    right: -7px; /* Half of width to center */
    border-radius: 50%;
    background: #00D1B2; /* Green handle */
    border: 2px solid white; /* White border around handle */
    box-shadow: none; /* Remove default shadow */
    cursor: pointer;
}

#price-slider-range .noUi-handle::before,
#price-slider-range .noUi-handle::after {
    display: none; /* Remove default pseudo-elements on handle */
}

.filter-price .price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 0.75rem;
}

/* Storage & Condition Filters (Checkbox Lists) */
.filter-storage .filter-options-checkbox,
.filter-condition .filter-options-checkbox {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-storage .filter-options-checkbox li,
.filter-condition .filter-options-checkbox li {
    margin-bottom: 0.6rem;
}

.filter-storage .filter-options-checkbox label,
.filter-condition .filter-options-checkbox label {
    font-size: 0.85rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-storage .filter-options-checkbox input[type="checkbox"],
.filter-condition .filter-options-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #00D1B2; /* Green checkbox */
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Color Filter (Dots) */
.filter-color .color-dots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Increased gap for better touch on mobile */
    margin-top: 0.25rem;
}

.filter-color .color-dot-filter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent; /* Base border */
    box-sizing: border-box;
}

.filter-color .color-dot-filter:hover {
    transform: scale(1.1);
}

.filter-color .color-dot-filter.selected {
    border: 2px solid #00D1B2; /* Green border for selected */
    box-shadow: 0 0 0 1px white inset; /* Inner white ring to make color pop */
    transform: scale(1.1);
}

/* Reset Filters Button */
.btn-reset-filters {
    width: 100%;
    padding: 0.6rem 0.5rem;
    background-color: #f0f0f0; /* Light grey background */
    color: #333; /* Dark text */
    border: 1px solid #cccccc; /* Subtle border */
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 1rem; /* Space above the button */
}

.btn-reset-filters:hover {
    background-color: #e0e0e0;
    border-color: #bbbbbb;
}

/* Ensure filter header elements are styled if not already */
.filters-sidebar .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem; /* Add margin if it's on top of the first filter group */
    border-bottom: 1px solid #f0f0f0; /* Match group border */
}

.filters-sidebar .filter-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.filters-sidebar .filter-header .filter-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0.25rem;
}

