/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


/* shop page custom layout */
/* =====================================
   SALIENT FOOD GRID – HARD OVERRIDE
===================================== */

/* Force 2-column shop layout */
body.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -12px !important;
}

body.woocommerce ul.products li.product {
    width: 50% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

/* FORCE LEFT-RIGHT LAYOUT */
 .food-card {
    padding: 10px;
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    gap: 15px;
}

/* IMAGE LEFT – HARD FIX */
.food-image {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    flex: 0 0 130px !important;
    position: relative !important;
    width: 30%;
    display: inline-grid;
    float: left;
        background: #fff;

}

/* IMAGE ITSELF */
.food-image img {
    /*width: 100% !important;*/
    /*height: auto !important;*/
    /*display: block !important;*/
    /*position: static !important;*/
    
    width: 140px !important;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

/* CONTENT RIGHT */
p.food-desc {
    font-size: 14px;
    padding-bottom: 10px;
}
 .food-content {
    flex: 1;
}
.food-title{
    font-size: 18px !important;
    margin-top:0 !important;
    font-weight: bold !important;
    margin-bottom: 6px;
}
.food-qty{
    display: flex;
    align-items: center;
    gap: 10px;
}
.food-qty .add_to_cart_button{
    margin-top:0 !important;
}
/* REMOVE SALIENT IMAGE INTERFERENCE */
 .food-card img:not(.food-image img) {
    display: none !important;
}
.wc-time-closed-message {
        background: #fff3cd;color: #856404;padding: 6px 10px;margin-top: 6px;font-size: 13px;border-radius: 4px;
    }
    .wc-time-closed-message.single {
       margin: 12px 0;font-size: 14px;
    }
/* MOBILE */
@media (max-width: 768px) {
    body.woocommerce ul.products li.product {
        width: 100% !important;
    }

    body.woocommerce .food-card {
        flex-direction: column !important;
    }

    body.woocommerce .food-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce .food-content {
        max-width: 100% !important;
    }
}



