/* Modern Mobile Products Page - Minimalist & Şık */

@media (max-width: 768px) {
    .products-section {
        padding: 32px 0 20px;
        padding-top: 32px;
        background-color: white;
    }
    
    .products-container-modern {
        padding: 0 15px;
    }
    
    .products-layout-modern {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Filters Toggle Button - Minimalist, her zaman görünsün */
    .filters-toggle-mobile {
        width: 100%;
        padding: 12px 16px;
        background: white;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        margin-bottom: 15px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        text-align: center;
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .filters-toggle-mobile:hover {
        background: #f8f9fa;
        border-color: var(--primary-color);
    }
    
    .filters-toggle-mobile i {
        font-size: 14px;
    }
    
    /* Filters Sidebar - Mobile */
    .filters-sidebar-modern {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 10000;
        padding: 20px;
        overflow-y: auto;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
    }
    
    .filters-sidebar-modern.mobile-open {
        left: 0;
    }
    
    .filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    .filters-overlay.active {
        display: block;
    }
    
    /* Products Content - Clean Layout */
    .products-content-modern {
        width: 100%;
    }
    
    .products-header-controls-modern {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .products-count-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .products-badge-modern {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    .products-total-modern {
        font-size: 12px;
        color: #999;
    }
    
    .products-sort-select-modern {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Products Grid - kartlar taşmasın */
    .products-section .products-content-modern .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 0;
    }
    
    /* Product Card - tablette taşma olmasın */
    .product-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border: 1px solid #f0f0f0;
        transition: all 0.2s ease;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    
    .product-card .product-info {
        min-width: 0;
        overflow: hidden;
        padding: 14px;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    
    .product-image-wrapper {
        height: 200px;
        background: #f8f9fa;
    }
    
    .product-favorite {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        background: rgba(255,255,255,0.95);
    }
    
    .product-favorite i {
        font-size: 16px;
    }
    
    .product-badge {
        padding: 6px 12px;
        font-size: 10px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
    
    .product-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        min-height: auto;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        color: #333;
    }
    
    /* Engagement - Simplified */
    .product-engagement {
        margin-bottom: 8px;
        gap: 8px;
        font-size: 11px;
    }
    
    .product-favorites-count {
        font-size: 11px;
    }
    
    .product-rating {
        font-size: 11px;
    }
    
    .product-rating .stars {
        font-size: 12px;
    }
    
    /* Shipping - Minimal */
    .product-shipping {
        font-size: 10px;
        margin-bottom: 10px;
        color: #999;
    }
    
    /* Price - Clean */
    .product-price {
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .current-price {
        font-size: 18px;
        font-weight: 700;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .old-price {
        font-size: 12px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Actions – tablette taşma olmasın: butonlar alt alta, tam genişlik */
    .product-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: auto;
        padding-top: 10px;
        min-width: 0;
        width: 100%;
    }
    
    .btn-add-cart,
    .btn-view {
        width: 100%;
        flex: 0 0 auto;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.2;
    }
    
    .btn-add-cart {
        background-color: var(--accent-dark, #1e293b);
        color: #fff;
    }
    
    .btn-view {
        background: #f0f0f0;
        color: #333;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 15px 0;
    }
    
    .products-container-modern {
        padding: 0 12px;
    }
    
    /* Products Grid - 2 Columns even on small screens */
    .products-section .products-content-modern .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        margin-bottom: 6px;
        min-height: 32px;
    }
    
    .product-engagement {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .product-shipping {
        font-size: 9px;
        margin-bottom: 8px;
    }
    
    .current-price {
        font-size: 15px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .old-price {
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .product-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: auto;
        padding-top: 8px;
        min-width: 0;
    }
    
    .btn-add-cart,
    .btn-view {
        flex: 1 1 0%;
        min-width: 0;
        padding: 8px 6px;
        font-size: 10px;
        font-weight: 600;
        border-radius: 5px;
        border: none;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        line-height: 1.2;
    }
    
    .btn-add-cart {
        background-color: var(--accent-dark, #1e293b);
        color: #fff;
    }
    
    .btn-view {
        background: #eee;
        color: #333;
        font-weight: 500;
    }
}
