/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2023 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.selections {
    display: flex;
    flex-direction: column;

    margin-bottom: 25px;
}

.selections .product a {
    display: flex;
    flex-direction: row;

    padding: 15px 0;

    border-top: 1px solid #efefef;
}

.selections .product:last-child {
    border-bottom: 1px solid #efefef;
}

.selections .product_image {
    width: 10%;
    max-width: 180px;
    margin-right: 15px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 1024px) {
    .selections .product_image {
        width: 30%;
    }
}

.selections .product_informations .product_name {
    text-align: left;
}

.selections .product_informations .product_shortdescription {
    text-align: left;
    font-size: 0.8rem;
    color: #909090;
}

.sourcing,.devis_form {
    position: relative;
}

.sourcing .success ,.devis_form .success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255, 0.7);
}

.sourcing .success h2 ,.devis_form .success h2{
    color: #0b590b;
}

.sourcing .error,.devis_form .error{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255, 0.7);
}

.sourcing .error h2,.devis_form .error h2 {
    color: #b43535;
}

.sourcing h2,
.devis_form h2 {
    padding: 25px 0;
    text-align: center;
}

.cta_after_add_to_cart_product > div {
    margin-top: 20px;
    width: fit-content;
}

.cta_after_add_to_cart_product > div > a,.cta_after_add_to_cart_product > div > span {
    display: flex;
    align-items: center;
    color: #222222;
    cursor: pointer;
}

.cta_after_add_to_cart_product > div:hover > a,
.cta_after_add_to_cart_product > div:hover > span,
.cta_after_add_to_cart_product > div:hover > a > i,
.cta_after_add_to_cart_product > div:hover > span > i
{
    color: #FFD8D4;
}

.cta_after_add_to_cart_product > div > a > i, .cta_after_add_to_cart_product > div > span > i {
    margin-right: 10px;
}

.modal_devis {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000000; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal_content_devis {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 30px 0;
    border: 1px solid #888;
    width: 65%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.modal_devis .close {
    top: 0;
    position: absolute;
    right: 0;
    width: 50px;
    color: #000!important;
    opacity: 1;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.modal_devis .close:hover {
    background: #000;
}

.modal_devis .close:hover > i {
    color: #fff;
}

.category, .subcategory {
    width: calc(20% - 10px);
    min-width: 180px;
}
.category{
    margin-bottom: 20px;
    transition: transform .2s; /* Animation */
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
    background-color: #f2f2f4;
}

.category-cover {
    display: none;
}


.category a
 {
    display: flex;
    height: auto;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    align-items: center;
    justify-content: center;
}

.category h3{
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;

}

.subcategory h4{
    font-size: 11px;
    margin: 0;
    padding: 5px;
}

.subcategory h4:hover {
    color: #D89A95;
}

.subcategory {
    padding-right: 10px;
}

.category a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.02);
    pointer-events: none;
}

.category:hover {
    transform: scale(1.05); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}