/*
Theme Name: Divi Child
Template: Divi

Parametri ne-obligatorii:
Theme URI: https://www.elegantthemes.com/
Description: Tema-copil pentnru Divi
Author: Igor
Author URI: https://condrea.md
Version: 1.1
*/

/* Stilurile mele adaugatoare */
/* Epigraf – Search Results: grid */
/*
.et_pb_blog_posts {
    display: grid !important;
    gap: 30px !important;
}

.et_pb_blog_posts > .et_pb_post {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
*/
/* Preț în rezultatele căutării */
.epigraf-search-price {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Buton În coș în rezultatele căutării */
.epigraf-search-cart-button {
    display: inline-block !important;
    padding: 9px 18px !important;
    background: #173b68 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.epigraf-search-cart-button:hover {
    opacity: 0.85;
    color: #fff !important;
}

.epigraf-search-product-info .button:hover {
    opacity: .85;
    color: #fff !important;
}
.et_pb_post .post-content a.epigraf-search-cart-button,
.et_pb_post .post-content a.epigraf-search-cart-button:visited,
.et_pb_post .post-content a.epigraf-search-cart-button:hover,
.et_pb_post .post-content a.epigraf-search-cart-button:active {
    color: #ffffff !important;
}
/* Epigraf – alinierea copertelor în rezultatele căutării */

/* Distanță mai elegantă între rândurile de cărți */
.et_pb_blog_posts {
    column-gap: 24px !important;
    row-gap: 36px !important;
}

/* Zonă uniformă pentru imaginile rezultatelor */
.et_pb_blog_posts .et_pb_image_container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px !important;
}

/* Imagini proporționale, fără deformare */
.et_pb_blog_posts .et_pb_image_container img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 250px !important;
    object-fit: contain;
    display: block;
}
/* Search Results – coperți responsive */

/* Tablet */
@media (max-width: 980px) {
    .et_pb_blog_posts .et_pb_image_container {
        justify-content: center;
    }
}

/* Phone – imagini și titluri mai apropiate */
@media (max-width: 767px) {
    .et_pb_blog_posts .et_pb_image_container {
        height: 220px;
        justify-content: center;
        margin-bottom: 8px !important;
    }

    .et_pb_blog_posts .et_pb_image_container img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 220px !important;
        object-fit: contain;
    }
}
@media (max-width: 767px) {

    .et_pb_blog_posts .et_pb_post {
        border: none !important;
    }
}
/* Epigraf – eliminarea bordurilor cardurilor */
.et_pb_blog_posts .et_pb_post {
    border: none !important;
    box-shadow: none !important;
}
/* Epigraf – aliniere unitară pe Desktop */
@media (min-width: 981px) {

    .et_pb_blog_posts .et_pb_post {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .et_pb_blog_posts .et_pb_image_container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-start !important;
    }

    .et_pb_blog_posts .et_pb_post .entry-title,
    .et_pb_blog_posts .et_pb_post .post-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}