/* ===== TABLET STYLES (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    
    /* Sidebar takes 30% */
    .mobile-filter-sidebar {
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }
    
    /* Products take 70% - 3 products per row */
    .tablet {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }
    
    /* Remove unnecessary padding */
    .search-page-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .row.ps {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* 3 products in one line */
    .product-grid-column {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Make product cards normal size - not too small */
    .single-p .productCap h5 {
        font-size: 15px !important;
    }
    
    .single-p .productCap h5 a {
        font-size: 15px !important;
    }
    
    .single-p .productPrice .regularPrice {
        font-size: 16px !important;
    }
    
    .single-p .productPrice .offerPrice {
        font-size: 13px !important;
    }
    
    .single-p .btn-wrapper .cmn-btn-outline3 {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Portrait tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .mobile-filter-sidebar {
        flex: 0 0 32% !important;
        max-width: 32% !important;
    }
    
    .tablet {
        flex: 0 0 68% !important;
        max-width: 68% !important;
    }
    
    .product-grid-column {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 16px !important;
    }
}

/* Landscape tablet */
@media (min-width: 992px) and (max-width: 1024px) {
    .mobile-filter-sidebar {
        flex: 0 0 28% !important;
        max-width: 28% !important;
    }
    
    .tablet {
        flex: 0 0 72% !important;
        max-width: 72% !important;
    }
    
    .product-grid-column {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 24px !important;
    }
}

/* Make images bigger and div adjusts to image size on tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .single-p .productImg {
        /*text-align: center !important;*/
        /*padding: 10px !important;*/
        background: #fafafa !important;
        height: auto !important;
    }
    
    .single-p .productImg img {
        width: auto !important;
        height: 143px !important;
        /*max-height: 0px !important;*/
        min-height: 144px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .col-md-5 {
        flex: 0 0 auto;
        width: 25.666667%;
    }
}