/* Base ------------------------ */

body {
    scroll-padding-top: 150px;
}
section#wrapper {
    margin-top: 50px;
}
#cms #content {
    padding : 0; 
 }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: "Mate", serif!important;
    font-weight: 400!important;
    
    font-size: 32px;
    text-wrap : balance;
    overflow-wrap: break-word;

}
h2, .h2 {
    font-size: 26px;
}
h3, .h3 {
    font-size: 22px;
} 
h4, .h4 {
    font-size: 18px;
}
h5, .h5, h6, .h6, .block-categories .h6 {
    font-size: 16px;
}
p, li {
    font-family: 'Montserrat', serif!important;
    font-size: 16px!important;
    font-weight: 400!important;
    line-height: 19.5px!important;
    overflow-wrap: break-word;

}
@media (min-width: 1000px) {
    h1 {
        font-size: 64px!important;
    }
    h2, .h2 {
        font-size: 36px!important;
    }
    h3, .h3 {
        font-size: 24px!important;
        word-break: keep-all;
    }
    h4, .h4 {
        font-size: 20px!important;
    }
    h5, .h5, h6, .h6 {
        font-size: 18px;
    }
}

/* Set section width */
@media (min-width: 1200px) {
    .container {
        width: 1202px;
        max-width: 100%;
    }

    #category .container {
        width: 1600px;
    }
    header {
        position : fixed;
        top : 0;
    }
}

#wrapper {
    background-color: #fff;
}
#header {
    box-shadow: none;
}


/*Buttons*/
.secondary-btn, .elementor-button--view-cart {
    background : none;
    position : relative;
    padding : 12px 16px!important;
    color : #0C0C0C;
    cursor: pointer;
}
.secondary-btn:after, .elementor-button--view-cart:after {
    content : '';
    position : absolute;
    bottom : 8px;
    left : 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 33%;
    height: 1px;
    background: #0C0C0C;
    transition: all .3s ease-out;
}
.secondary-btn:hover:after, .elementor-button--view-cart:hover:after {
    transform: translateX(-50%) scaleX(2);
}

.elementor-button--checkout {
    padding: 12px 16px 12px 16px;
    background: #7fd057;
    color : #0C0C0C;
}
.elementor-button--checkout:hover {
    background: #678736;
}

/* Menu -----------------------------------------*/
/*Mobile*/
.mobile-menu > div > div.elementor-row, .mob-menu-actions .elementor-widget-wrap, .mob-menu-nav  .elementor-widget-wrap {
    flex-flow : row;
    align-items: center;
}
.mob-menu-nav .elementor-nav--burger {
    margin-bottom: 0;
}
.mob-menu-account {
    margin-bottom: 0!important;
}
.mobile-menu {
    max-width: 100%;
}
.fixed.d150 {
    position: fixed;
    left : 0;
    width: 100%;
    background-color: white;
}



/*Tablet*/
@media screen and (max-width : 1200px) {
    #home-menu .elementor-nav--main .elementor-nav a {
        padding: 13px 8px;
    }
}

/* PC */
@media screen and (min-width : 1080px) {
    #home-menu {
        max-width: 100%;
    }

    #home-menu .elementor-nav--align-center .elementor-nav>li:first-child, #home-menu .elementor-nav--align-center .elementor-nav>li:last-child {
        margin-right: 0;
        margin-left: 0;
    }
    #home-menu .elementor-nav {
        justify-content: center;
    }
    .sub-menu > li > .sub-menu {
        translate: 0 -2px;
    }
    

}


/*-------------- Product Card */
.products.row {
    justify-content: start!important;
}
div.js-product.product {
    display: flex;
    flex-direction: column;
}
.products div.js-product.product {
    margin-bottom: 32px;
    max-width: 50%;
    padding: 0 6px;
}
/* Fixes size difference between cards */
article.product-miniature.js-product-miniature {
    height: 100%;
}
.js-product.product {
    height: 100%;
    margin-bottom: 32px;
}

div.js-product.product, article.product-miniature.js-product-miniature {
    transition: box-shadow ease-out .4s;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
article.product-miniature div.thumbnail-top {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    height: 100%;
}

.thumbnail-container {
    flex-grow: 1; /* Permet à la partie image et titre de prendre toute la place disponible */
}

.product-miniature.js-product-miniature:hover {
    box-shadow: 0px 4px 32px -8px #00000040;
}

/* Discount*/
.discount-label {
    position : absolute;
    top : 16px;
    left : 0;
    z-index: 1;
    background : #F07867;
    padding : 4px 8px 4px 8px;
    color : #0C0C0C;
}

/* Image*/
article.product-miniature .thumbnail-top a {
    height: auto;
    overflow: hidden;
}
article.product-miniature .thumbnail-container {
    margin: 0;
    width: 100%;
}
article.product-miniature .thumbnail-container .product-thumbnail img {
    object-fit: cover;
    height: 350px;
    width: 100%;
}

/*Title*/
article.product-miniature.js-product-miniature .h3.product-title {
    text-align: start;
    padding: 0;
}
article.product-miniature.js-product-miniature .h3.product-title a {
    font-family: Mate;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

@media screen and (min-width : 1080px) {
    article.product-miniature.js-product-miniature .h3.product-title {
        text-align: start;
        padding: 0 16px;
    }
    article.product-miniature.js-product-miniature .h3.product-title a {
        font-size: 24px;
    }

    article.product-miniature .thumbnail-container .product-thumbnail img {
        height: 350px;
    }
}

#custom-old-price-display {
    margin-bottom: 8px;
    display: block;
}


.youtube-video {
    position: relative;
    width: 100%; /* Par défaut, prend 100% de la largeur */
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Styles spécifiques pour les écrans plus larges (ex. PC) */
@media (min-width: 768px) {
    .youtube-video {
        width: 622px; /* Dimensions spécifiques pour les grands écrans */
        padding-bottom: 350px;
    }
}


/* Home page Slider -------------------------- */
#home-slider .carousel-item > a figure:before {
    content : '';
    position : absolute;
    top : 0;
    left : 0;
    height : 100%;
    width : 100%;
    background-color: #0C0C0C;
    opacity: 0.3;
}
.carousel .carousel-item .caption .caption-description p {
    margin-bottom: 0;
}

#home-slider .carousel-item > a .caption > h2 {
    display: none;
}

/* Titles links under slider */
.menu-img-home h3 {
    word-break: keep-all;
    white-space: nowrap;

}



@media screen and (max-width : 991px) {
    #home-slider .carousel-item figcaption.caption * {
        color : white;
    }
    #home-slider .carousel-item figcaption.caption {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 85%;
        text-align: left;
    }
    #menu-img-home h3 {
        word-break: normal;
        white-space: initial;

        font-size: 1rem;
    }

    #menu-img-home .elementor-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap : 0px 8px;
    }
    
}

/* Category page ---------------------- */
/* Category header */
#product-list-header div.hero__container {
    display: flex;
    justify-content: end;
    max-width: 1170px;
    margin: auto;
    padding: 0  16px;
    margin-bottom: 16px;

}

#product-list-header .category-img {
    width: 100%;
    margin-bottom: 16px;
}


#content section div.elementor-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 1080px) {
    #category #product-list-header {
        margin-bottom: 64px;
    }

    .js-product.product {
        margin-bottom: 0;
    }

    #product-list-header div.hero__container {
        max-width: 1600px;
    }

    #product-list-header .hero__container .hero{
        width: 50%;
        display: flex;
        flex-flow: column;
        justify-content: center;
        min-height: 305px;
    }

    #product-list-header .category-img {
        position : absolute;
        left : 0;

        width: 40vw;
        height: 100%;
        max-height: 100%;
        object-fit: cover;
    }


    #content section div.elementor-product-grid {
        display: flex; 
    }
}

@media screen and (min-width : 1200px) {
    #product-list-header .hero__container .hero{
        min-height: 505px;
    }
}

.description-collapsed {
    max-height: 5em; 
    overflow: hidden;
    transition: max-height 0.3s ease;
}

  .description-expanded {
    max-height: none; 
  }
#read-more {
    background: none;
    border: none;
    color: #7fd057;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
  }
  #read-more:hover {
    text-decoration: none;
    color: #0056b3; 
  }


/* Category sidebar*/
/* div > ul > li > ul > li > a*/
div.block-categories {
    border: solid 2px #7fd057;
    padding : 16px 24px;
}

ul.category-top-menu {

}
ul.category-sub-menu li {
    padding : 4px 8px;
    margin-bottom: 8px;

}
ul.category-sub-menu li, ul.category-sub-menu li a {
    transition : ease-out all .3s;
}
ul.category-sub-menu li:hover{
    background-color : #7fd057;
}
ul.category-sub-menu li:hover a {
    color : white;
}

#js-product-list-top > div.col-md-6 > div > div > button {
    border: none;
    border-bottom: 2px solid #0C0C0C;
    width: 143px;
}


/* Section Chronofresh */
.chronofresh {
    background-color : #7fd057;
    padding : 16px;

    display: flex;
    flex-flow: column;
}
.chronofresh * {
    color : black;
}
.chronofresh__title, .chronofresh__column h3 {
    margin-bottom: 16px;

    font-family: Mate;
    font-weight: 400;
    line-height: 43.92px;
}
.chronofresh__column h3 {
    line-height: 29.28px;
}
.chronofresh p {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.5px;
}

@media screen and (min-width : 1080px) {
    .chronofresh {
        padding : 38px 64px;
        margin : 128px 0;

    }
    .chronofresh * {
        text-align: center;
    }

    .chronofresh__title, .chronofresh__column h3 {
        margin-bottom: 42px;
    }
    .chronofresh__content {
        display: flex;
        justify-content: space-between;
    }

    .chronofresh__column {
        max-width: 33%;
        padding: 8px 32px;
    }

}

/* Section autre catégories */
.other-categories {
    margin: 64px 0;
}
.other-categories__title {
    font-family: Mate;
    font-weight: 400;
    line-height: 43.92px;
    text-align: center;
    margin-bottom : 32px;
}

@media screen and (min-width : 1080px) {
    .other-categories__grid {
        display: grid;
    
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 103px);
    
        grid-gap : 16px;
    }

    a.other-catgories__grid__cell {
        margin-bottom: 0;
    }
}

.other-catgories__grid__cell {
    display: flex;
    align-items: end;
    padding : 16px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    min-height: 150px;
    margin-bottom: 16px;
}
.other-catgories__grid__cell:hover {
    cursor: pointer;
}
.other-catgories__grid__cell h3 {
    color : white;
    transition : ease-out .3s transform;
}
.other-catgories__grid__cell:hover h3{
    transform: translate3d(0, -8px, 0);
}
.other-catgories__grid__cell.fromages {
    grid-row: 1/7;
}
.other-catgories__grid__cell.vins {
    grid-row: 1/4;
}
.other-catgories__grid__cell.charcuteries {
    grid-row: 1/3;
}
.other-catgories__grid__cell.epicerie {
    grid-row: 4/7;
}
.other-catgories__grid__cell.plateaux {
    grid-row: 3/7;
}

/* Product Page ------------------------- */
label.ce-product-variants__radio-wrapper > span.ce-product-variants__option {
    border-color: #7fd057!important;
    padding : 12px 24px!important;
}
label.ce-product-variants__radio-wrapper > input:checked ~ span.ce-product-variants__option {
    border-color: #7fd057!important;
    background-color : #7fd057;
}

/*Product image slider*/
#product-img-slider .elementor-swiper-button {
    bottom: 0;
    top: auto;
    height: fit-content;
    color: black;
}

/*Add to cart button*/
.elementor-button-add-to-cart .ceicon-bag-medium {
    font-size: 25px;
}
.elementor-button-add-to-cart .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
}



/* Pop up -----------------------------*/
div.fancybox-stage {
    background-color: rgba(24, 24, 24, 0.1)!important; 
}

div.fancybox-stage #everpspopup_block_center {
    padding : 32px;
}

div.fancybox-stage .btn-info {
    padding : 16px 8px;
    margin-top : 32px;
}

div.fancybox-stage .input-group {
    display: flex;
    justify-content: center;
}
/*
.btn.btn-primary {
    background-color: #7fd057;
}*/
/*
.btn.btn-primary:hover {
    background-color: rgba(127,208,87,0.73);
}
*/

.h6.product-name {
    color: #7fd057;
}

body, html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.vert-align-c {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vert-align-c .throw-right  * {
    justify-content: end;
}
.elementor-nav--dropdown.elementor-nav__container {
    top : 50px!important;
    left : 0;   
}
@media screen and (max-width : 400px) {
    #category .card-block {
        padding : 0;
    }

    .product-miniature {
        display: block;
    }
}

.sub-menu-col a {
    width : 100%;
    position : relative;
}

.sub-menu-col a div.elementor-widget-container:before {
    content : '';
    width : 100%;
    height : 100%;

    position : absolute;
    top : 0;
    left : 0;

    background-color : black;
    opacity: 0;
}
.sub-menu-col a:hover div.elementor-widget-container:before {
    opacity: 0.4;
}


/* Button section*/
div.product-actions.js-product-actions  {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0;

    margin-top: auto;
}

button.btn.btn-primary.add-to-cart {
    background : none;
    padding: 0;
}

@media screen and (min-width : 1080px) {
    div.product-actions.js-product-actions  {
        padding: 8px 16px;
    }
}

/* Remove unnessessary margins*/
div.product-actions.js-product-actions .product-discounts {
    margin: 0; 
}
div.product-actions.js-product-actions .add {
    margin: 0;
}

div.js-product.product .add-icon {
    height: 42px;
    width: 42px;
}

/* Cart page -------------------------- */
.card.cart-summary {
    border: 2px #7fd057 solid;
}

/*collapsable cart*/
#free-shipping-message {
    padding : 8px;
    border-bottom : solid 2px #DB582C;
    color : #DB582C;
    margin-top: 8px;
    
    display: flex;
    align-items: center;
    gap: 8px;
}
#cartbtn, #cartbtnmobile {
    margin-bottom: 0;
}
.free-shipping-message img {
    height: 32px;
    width: 32px;
}

/* Checkout page ------------------------------- */
.checkout-personal-information-step h1 {

}

input.form-control {
    border: none;
    background: none;
    border-bottom: solid 2px #0C0C0C;
}

.blockreassurance_product > div {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.blockreassurance_product > div > span {
    padding-top: 0!important;
}
.blockreassurance_product > div > p {
    margin: 0;
}

/* Oder Confirmation ----------------------- */
#order-confirmation .breadcrumb {
    display: none;
}
#order-confirmation #content {
    display: none;
}
#order-confirmation #notifications {
    display: none;
}
#order-confirmation #wrapper {
    position : relative;

    height: 90dvh;
    height: 90vh;
    display: flex;
    align-items: center;
}
.confirm__page {
    width: 100vw;
    height: 100vh; 
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm__img {
    position : absolute;
    top : 0;
    left : 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirm__hero {
    text-align: center;
    position: relative;
}
.confirm__hero * {
    color : white;
}
.confirm__hero *:after {
    background:#fff;
}
.confirm__hero .link {
    color : #F07867;
}

/* Page à propos ----------------------------------- */
/*.elementor-page-6070201 */

/* Cart --------------------------------------------- */
.elementor-cart__footer-buttons a.elementor-button--view-cart  {
    color: #0C0C0C!important;
}


.elementor-search__product-price{
    color: black!important;
}

.elementor-search__product-name{
    color: black!important ;
}

.elementor-search__input {
    min-width: 140px!important;
}
.elementor-search__icon {
    display: none;
}


/* Menu à Facette */
#left-column .searcher-content > .searcher-header {
    background-color: #7fd057;
    padding : 16px;
}
#left-column .input-group-addon {
    background-color: #7fd057;
}