/*
	Theme Name:     Samatex Child
	Theme URI:      http://enovathemes.com/samatex
	Description:    Industrial WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       samatex
*/

/* =Theme customization starts here
-------------------------------------------------------------- */
.post .post-meta{display: none !important;}
#loop-posts .post-title a{font-size: 22px !important;}




/* --- Desktop & General --- */
.wpb-product-canvas-fixed {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* --- Responsive Tablet & Mobile Improvements --- */

@media (max-width: 1024px) {
    /* Ensure WPBakery rows have some breathing room on tablets */
    .wpb-product-canvas-fixed .vc_column-inner {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .custom-related-wrapper h2 {
        font-size: 26px; /* Slightly smaller heading */
    }
}

@media (max-width: 768px) {
    /* Stack Related Products in 2 columns on mobile instead of 4 */
    .custom-related-wrapper ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -10px !important;
    }
    
    .custom-related-wrapper ul.products li.product {
        width: 50% !important; /* 2 items per row */
        padding: 0 10px !important;
        margin: 0 0 20px 0 !important;
        float: left;
    }

    /* Adjust the long heading for small screens */
    .custom-related-wrapper h2 {
        font-size: 22px;
        padding: 0 15px;
    }

    /* Remove heavy top margins on mobile */
    .custom-related-wrapper {
        margin-top: 40px !important;
    }
}

@media (max-width: 480px) {
    /* Single column for very small phones if 2 columns look too cramped */
    .custom-related-wrapper ul.products li.product {
        width: 100% !important;
        float: none;
    }
    
    /* Ensure WPBakery images don't overflow */
    .wpb-product-canvas-fixed img {
        height: auto !important;
        max-width: 100% !important;
    }
}
