/**
 * A4W Brand Customizer - Front-Office CSS
 */

/* Liste des marques - Style PrestaShop */
#module-a4w_brandcustomizer-brandlist .brand-list-container,
#module-a4w_brandcustomizer-brandgroup .brand-list-container {
    padding: 20px 0;
}

#module-a4w_brandcustomizer-brandlist ul,
#module-a4w_brandcustomizer-brandgroup ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#module-a4w_brandcustomizer-brandlist ul.brand-list,
#module-a4w_brandcustomizer-brandgroup ul.brand-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 0;
    list-style: none;
    margin: 0;
}

#module-a4w_brandcustomizer-brandlist  ul .brand,
#module-a4w_brandcustomizer-brandgroup  ul .brand {
    position: relative;
    width: calc(20% - 10px);
    min-width: 210px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    background: #fff;
    transition: 0.4s ease-out;
}

#module-a4w_brandcustomizer-brandlist ul.brand-list .brand,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand {
    position: relative;
    width: calc(20% - 10px);
    min-width: 210px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    background: #fff;
    transition: 0.4s ease-out;
}

#module-a4w_brandcustomizer-brandlist  ul .brand:hover,
#module-a4w_brandcustomizer-brandgroup  ul .brand:hover,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand:hover,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand:hover {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
}

#module-a4w_brandcustomizer-brandlist  ul .brand-img,
#module-a4w_brandcustomizer-brandgroup  ul .brand-img,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-img,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-img {
    position: relative;
    width: 200px;
    margin: auto;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-img a,
#module-a4w_brandcustomizer-brandgroup  ul .brand-img a,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-img a,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-img a {
    display: block;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-img a::before,
#module-a4w_brandcustomizer-brandgroup  ul .brand-img a::before,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-img a::before,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-img a::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: "";
}

#module-a4w_brandcustomizer-brandlist  ul .brand-img img,
#module-a4w_brandcustomizer-brandgroup  ul .brand-img img,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-img img,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-img img {
    max-width: 100%;
    height: auto;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-infos,
#module-a4w_brandcustomizer-brandgroup  ul .brand-infos,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-infos,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-infos {
    margin-top: 10px;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-infos p,
#module-a4w_brandcustomizer-brandgroup  ul .brand-infos p,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-infos p,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-infos p {
    margin: 0;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-infos a,
#module-a4w_brandcustomizer-brandgroup  ul .brand-infos a,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-infos a,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-infos a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-infos a:hover,
#module-a4w_brandcustomizer-brandgroup  ul .brand-infos a:hover,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-infos a:hover,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-infos a:hover {
    color: #DBBA99;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-products,
#module-a4w_brandcustomizer-brandgroup  ul .brand-products,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-products,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-products {
    display: none;
}

#module-a4w_brandcustomizer-brandlist  ul .brand-products a,
#module-a4w_brandcustomizer-brandgroup  ul .brand-products a,
#module-a4w_brandcustomizer-brandlist ul.brand-list .brand-products a,
#module-a4w_brandcustomizer-brandgroup ul.brand-list .brand-products a {
    display: block;
    margin-top: 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

/* Page détail marque - Image personnalisée */
.manufacturer-cover-custom {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

/* Page groupe de marques */
#module-a4w_brandcustomizer-brandgroup .brand-group-container {
    padding: 20px 0;
}

/* Header du groupe - Image gauche / Contenu droite */
#module-a4w_brandcustomizer-brandgroup .group-header-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

#module-a4w_brandcustomizer-brandgroup .group-header-image {
    flex: 0 0 300px;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

#module-a4w_brandcustomizer-brandgroup .group-header-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

#module-a4w_brandcustomizer-brandgroup .group-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#module-a4w_brandcustomizer-brandgroup .group-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

#module-a4w_brandcustomizer-brandgroup .group-description {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

#module-a4w_brandcustomizer-brandgroup .group-description p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Page manufacturer listing - Layout image gauche / texte droite */
#manufacturer .manufacturer-header-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

#manufacturer .manufacturer-listing-image {
    flex: 0 0 300px;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

#manufacturer .manufacturer-listing-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

#manufacturer .manufacturer-listing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#manufacturer .manufacturer-listing-content h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

#manufacturer #manufacturer-short_description,
#manufacturer #manufacturer-description {
    margin-bottom: 15px;
}

#manufacturer #manufacturer-short_description p,
#manufacturer #manufacturer-description p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

/* Responsive */
@media (max-width: 991px) {
    #module-a4w_brandcustomizer-brandlist  ul,
    #module-a4w_brandcustomizer-brandgroup  ul,
    #module-a4w_brandcustomizer-brandlist ul.brand-list,
    #module-a4w_brandcustomizer-brandgroup ul.brand-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    #manufacturer .manufacturer-header-wrapper {
        flex-direction: column;
    }

    #manufacturer .manufacturer-listing-image {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    /* Header du groupe en colonne sur mobile */
    #module-a4w_brandcustomizer-brandgroup .group-header-wrapper {
        flex-direction: column;
    }

    #module-a4w_brandcustomizer-brandgroup .group-header-image {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #module-a4w_brandcustomizer-brandlist  ul .brand,
    #module-a4w_brandcustomizer-brandgroup  ul .brand,
    #module-a4w_brandcustomizer-brandlist ul.brand-list .brand,
    #module-a4w_brandcustomizer-brandgroup ul.brand-list .brand {
        width: calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 575px) {
    #module-a4w_brandcustomizer-brandlist  ul .brand,
    #module-a4w_brandcustomizer-brandgroup  ul .brand,
    #module-a4w_brandcustomizer-brandlist ul.brand-list .brand,
    #module-a4w_brandcustomizer-brandgroup ul.brand-list .brand {
        width: calc(100% - 10px);
    }
}
