/* Modern Products Page Styles */

.products-container-modern {
    max-width: 1400px;
    padding: 0 15px;
}

.products-layout-modern {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.products-content-wrapper-modern {
    width: 100%;
    min-width: 0;
}

.products-content-modern {
    width: 100%;
    min-width: 0;
}

.products-header-controls-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.products-count-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.products-badge-modern {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.products-total-modern {
    color: var(--dark-gray);
    font-size: 14px;
    white-space: nowrap;
}

.products-sort-form-modern {
    display: inline-block;
    min-width: 150px;
}

.products-sort-select-modern {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    width: 100%;
    min-width: 150px;
    max-width: 200px;
}

.products-sort-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220,20,60,0.1);
}

/* Ürünler sayfası – PC’de kesin 4 sütun, tablet/mobilde 2 sütun */
.products-section .products-content-modern .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .products-section .products-content-modern .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}

.product-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Filtreler sidebar */
.filters-sidebar-modern {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: 100%;
    min-width: 0;
}

.filters-title-modern {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.filter-section-modern {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

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

/* Mobile Responsive – mobilde 2 sütun (sınır yok), filtreler drawer */
@media (max-width: 968px) {
    .products-layout-modern {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .filters-sidebar-modern {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: left 0.3s ease;
        margin-bottom: 0;
        max-height: 100vh;
    }
    
    .filters-sidebar-modern.mobile-open {
        left: 0;
        display: block;
    }
    
    .products-section .products-content-modern .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    
    .products-header-controls-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-sort-form-modern {
        width: 100%;
    }
    
    .products-sort-select-modern {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .products-section .products-content-modern .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .products-count-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Tablet */
@media (min-width: 969px) and (max-width: 1200px) {
    .products-layout-modern {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}
