/**
 * Module Cookbook
 *
 * @author    Empty
 * @copyright 2007-2025 PrestaShop SA
 * @license   Empty
 */

/******************************************************
* CMS PAGE
*/

/*******Recette CMS *******/
#cms #recette,
#cms #recette p,
#cms #recette ul {
    color: #232323;
}


#cms .image_recette {
    /*max-height: 355px;*/
    width: 90%;
    max-width: 100%;
    height: auto;
    border-radius: 40px;
}
#cms #recette > div:before {
    font-size: 2em;
    color: var(--primary);
    padding: 15px 0;
    margin: 20px 0;
    border-bottom: 1px solid white;
    display: block;
    width: 100%;
    font-weight: 500;
}
#image {
    order: 2;
    width: 40%;
}
#entete {
    order: 1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 15% 50px;
}
#recette #description {
    order: 4;
    width: 100%;
}
#instruction {
    order: 5;
    width: 100%;
}
#ingredients {
    order: 3;
    width: 60%;
}

#entete > div {
    width: 21%;
    text-align: center;
    background: #e8e3df url(../img/icone-preparation.png) no-repeat center 10px;
    border-radius: 15px;
    padding: 80px 20px 15px;
    margin: 0 2%;
}
#entete #cuisson {
    background-image: url(../img/icone-cuisson.png);
}
#entete #total {
    background-image:  url(../img/icone-total.png);
}
#entete #nb_personnes {
    background-image:  url(../img/icone-personnes.png) ;
}

#entete > div .lib {
    color: var(--secondary);
    display: block;
}
#entete > div .value {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.2;
    text-transform: lowercase;
    display: block;
}
#total span.lib {
    max-width: 50px;
    margin: 0 auto;
}
#ingredients:before {
    content:"Ingredients";
}
#recette #description:before {
    content:"Description";
}
#instruction:before {
    content:"Instructions";
}
#instruction h2,
#instruction h3 {
    color: var(--secondary);
}
/*******Produits CMS *******/
 #cms .page-footer {
    margin-bottom: 0;
 }
#cms #products {
    margin: 0 -5px;
}
/*
    #cms #products .thumbnail-container {
        height:355px;
    }

        #cms #products .thumbnail-container:hover .highlighted-informations {
            bottom: 8.625rem;
        }

        #cms #products .thumbnail-container:hover .highlighted-informations.no-variants {
            bottom: 6.375rem;
        }

        #cms #products .thumbnail-container .product-description {
            height:115px;
        }
*/
            #cms #products .thumbnail-container .product-description .product-price-and-shipping {
                margin-bottom: 5px;
            }

            
            #cms #products .cookbook-form {
                border-top: 1px solid #e8e3df;
                border-bottom: 1px solid #e8e3df;
                display: flex;
                justify-content: space-evenly;
                padding: 3px 5px 2px;
            }

            #cms #products .thumbnail-container .product-description .input-group {
                float: none;
                margin-left: 0;
                padding: 0 10px;
                width: 50px;
                border: none;
                text-align: center;
                border-radius: 20px;
                line-height: 0.8;
                height: 19px;
                margin-top: 2px;
            }

           #cms #products .thumbnail-container .product-description .btn-primary {
                float: none;
                font-size: 14px;
                margin-left: 0px;
                height: auto;
                background: none;
                color: #9a9a9a;
                font-size: 11px !important;
                padding: 4px;
            }

            #cms #products .thumbnail-container .product-description .btn-primary:hover {
                background: none;
                color: var(--secondary);
            }

           

@media screen and (max-width: 480px) {

    #cms #content .add-to-cart {
        padding-left: 5px;
        padding-right: 8px;
        font-size: 14px;
    }
}



/******************************************************
* PRODUCT PAGE
*/
#cookbook {
    clear: both;
    margin:45px 0 0 0;
}

    #cookbook h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    #cookbook ul {
        
    }
    
        #cookbook ul li {
            border: 1px solid #cdcdcd;
            clear: left;
            display: table;
            list-style-type: none;
            margin: 0 0 12px 0;
            width: 100%;
        }
        
            #cookbook ul li img {
                display: table-cell;
                margin: 4px;
                vertical-align: top;
                width: 200px;
            }
            
            #cookbook ul li .recipe-content {
                display: table-cell;
                vertical-align: top;
                width: 80%;
            }
            
                #cookbook ul li .recipe-content h3 {
                    margin: 5px 0 0 0;
                }
                
                #cookbook ul li .recipe-content h3 .title-recipe {
                    font-size: 16px;
                    margin: 5px 0 0 15px;
                    text-decoration: none;
                }

                #cookbook ul li .recipe-content .title-recipe:hover {
                    text-decoration: underline;
                }

                #cookbook ul li .recipe-content div {
                    line-height: 1.4em;
                    margin: 5px 15px 10px 15px;
                }

                #cookbook ul li .recipe-content > a {
                    float: right;
                    margin: 0 15px 10px 0;
                }

                #cookbook ul li .recipe-content .more-recipe:hover {
                    background-position: left -50px;
                }
            
#product #more_info_block {
    clear: both;
}
@media (max-width: 991.98px) {
    #entete {
        margin: 0 4% 50px;
    }
}
@media (max-width: 767.98px) {
    #entete > div {
        width: 41%;
        margin: 10px 2%;
    }
    #image {
        width: 100%;
        text-align: center;
    }
    #ingredients {
        width: 100%;
    }
    #cuisson span.lib {
        max-width: 90px;
        margin: 0 auto;
    }
}
@media (max-width: 575.98px) {
    #entete > div {
        width: 100%;
        margin: 10px 2%;
        background: #e8e3df url(../img/icone-preparation.png) no-repeat 10px center;
        padding: 20px 15px 20px 80px;
    }
    
    #cuisson span.lib,
    #total span.lib {
        max-width: 250px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 480px) {
    
    #cookbook ul li {
        display: block;
    }
    
        #cookbook ul li img {
            display: block;
            margin: 4px auto 15px auto;
            width: 200px;
        }
}
