/* Responsive Design Overrides */

/* Responsive Design */
@media (max-width: 768px) {
    .products-header {
        position: sticky;
        top: 0;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .view-options {
        justify-content: space-between;
    }
    
    .sort-by-label {
        display: none;
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 768px) {
    /* Mobil container düzenlemesi */
    .container.mx-auto.px-4.py-6 {
        padding: 1rem;
    }
    
    /* Mobil header düzenlemesi */
    header.bg-blue-100 {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Başlık mobilde daha küçük */
    header.bg-blue-100 h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    /* Alt kategoriler mobilde daha kompakt */
    .flex.flex-wrap.gap-2 {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .flex.flex-wrap.gap-2 a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Products header mobil düzenlemesi - Hepsi yan yana */
    .products-header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .products-header .flex.items-center.space-x-2 {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }
    
    .filter-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    /* Sort dropdown mobilde kompakt */
    .sort-dropdown {
        flex: 1;
        min-width: 0;
    }
    
    .sort-dropdown-button {
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .sort-dropdown-button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* View switcher mobilde sağda kompakt */
    .mobile-view-switcher {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .category-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .category-header-subcats {
        width: 100%;
    }
    
    .desktop-view-switcher,
    .mobile-view-switcher {
        gap: 0.25rem;
    }
    
    .view-button {
        width: 2rem;
        height: 2rem;
    }
    
    .filter-panel {
        padding: 1.5rem;
    }
    
    .filter-panel.compact {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-items {
        max-height: 200px;
    }
    
    .filter-panel.compact .filter-items {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlar için */
    .container.mx-auto.px-4.py-6 {
        padding: 0.75rem;
    }
    
    header.bg-blue-100 {
        padding: 1rem 0.75rem;
    }
    
    header.bg-blue-100 h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    /* İkon ve başlık mobilde daha küçük */
    .w-10.h-10 {
        width: 2rem;
        height: 2rem;
    }
    
    .w-5.h-5 {
        width: 1rem;
        height: 1rem;
    }
    
    .mr-3 {
        margin-right: 0.5rem;
    }
    
    /* Products header küçük ekranlarda daha kompakt */
    .products-header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .products-header .flex.items-center.space-x-2 {
        gap: 0.25rem;
    }
    
    .filter-button {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .filter-button .h-4 {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .sort-dropdown-button {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .view-button {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .view-button svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .subcategory-tabs {
        gap: 0.5rem;
    }
    
    .subcategory-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .subcategory-tab-count {
        margin-left: 0.5rem;
        padding: 0.125rem 0.375rem;
    }
    
    /* Alt kategoriler daha küçük */
    .flex.flex-wrap.gap-2 a {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    /* Compact filter panel adjustments for very small screens */
    .filter-panel.compact {
        padding: 0.375rem;
        margin-bottom: 0.375rem;
    }
    
    .filter-panel.compact .filter-panel-inner {
        gap: 0.375rem;
    }
    
    .filter-section.compact {
        padding: 0.25rem;
    }
    
    .filter-section.compact h3 {
        font-size: 0.6875rem;
    }
    
    .filter-section.compact .filter-items {
        max-height: 140px;
    }
    
    .filter-section.compact .filter-checkbox-label {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.25rem;
    }
    
    .filter-section.compact .filter-checkbox {
        width: 0.625rem;
        height: 0.625rem;
        margin-right: 0.375rem;
    }
    
    .filter-section.compact .w-5.h-5 {
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .filter-section.compact .w-5.h-5 svg {
        width: 0.5rem;
        height: 0.5rem;
    }
    
    .filter-section.compact input[type="number"] {
        padding: 0.1875rem 0.375rem;
        font-size: 0.6875rem;
    }
    
    .filter-panel.compact .flex.flex-col.sm\\:flex-row {
        gap: 0.375rem;
        padding-top: 0.375rem;
        margin-top: 0.375rem;
    }
    
    .filter-panel.compact button {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .filter-panel.compact button svg {
        width: 0.625rem;
        height: 0.625rem;
    }
}