/*
Theme Name: westline
Template: Storefront
Author: Sacha, Julien, Quentin, Thibault
Description: Westline is a child theme of Storefront. This theme adds custom styles and features to the base Storefront theme.
Version: 1.0
*/

/* Custom CSS for Westline child theme */


/* More custom styles for your theme */
@font-face {
    font-family: 'AmaticSC-Regular';
    src: url('/wp-content/themes/westline/fonts/fontawesome/webfonts/Amatic_SC/AmaticSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('/wp-content/themes/westline/fonts/fontawesome/webfonts/Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.custom-header {
    background-color: #fff1b3; /* Couleur de fond */
    border-bottom: 2px solid #e0d8c1;
    width: 100%;
}

.custom-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.custom-header .logo {
    height: 130px;
    position: absolute;
    top: 0;
    left: 80px;
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .custom-header .logo {
        height: 65px;
        position: absolute;
        top: 0;
        left: 10px;
    }
  }

.custom-header .header-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
}


.custom-header .delivery-info
 {
    margin: 0;
    font-family: "AmaticSC-Regular", sans-serif;
    font-size: 7vw;
    font-weight: 600;
    color: #456452;
    text-transform: uppercase;
}
@media (min-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .custom-header .delivery-info
    {
   font-size: 2.9vw
   }
  }
.custom-product-page .title-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    top: 135px;
}
.custom-product-page .title-zone-h1 {
/* Titre principal avec clamp */
font-family: "AmaticSC-Regular", sans-serif;
color: #456452;
font-weight: 400;
font-size: clamp(2rem, 2.5vw + 1rem, 6rem);
    line-height: clamp(2rem, 2vw + 1rem, 6rem);
letter-spacing: normal;
margin: 0;

}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .custom-product-page .title-zone-h1 {
     margin-top: 10%;
     font-weight: 600;
     color: #000000;
     
        
        }
        .custom-product-page .title-zone-text {
            margin-left: 10%;
            font-size: 13pt;;
        }
     
  @media (max-width: 430px) {
    img.custom-persons {
        display: none;
       } 
       img.custom-stars {
        display: none;
       } 
  }
  }

.custom-product-page .title-zone-text {
    font-family: "Raleway", sans-serif;
    color: #456452;
    font-size: 15pt;
}
.custom-header .customer-trust {
    margin: 0;
    font-size: 1.2em;
    color: #4b4b4b;
}

#leaf-left-big {
    position: absolute;
    top: 175px;
    left: -125px;
    height: 70vh;
    transform: rotateY(180deg);
}
#leaf-right {
    position: absolute;
    top: 175px;
    right: -125px;
    height: 70vh;
 
}
/* Ordinateurs Portables et Écrans de Bureau */
@media (max-width: 1024px){
    #leaf-left-big {
     display: none;
    }
    #leaf-right {
        display: none;
     
    }
  }
.custom-product-page {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.product-main-content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
   
}
.storefront-product-pagination {
    display: none;
}
h1.product_title.entry-title{

    font-family: "Raleway", sans-serif;
    font-size: 20pt;
    clear: none;
    margin-top: 0;
    padding: 0;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    font-weight: 600;
    margin: 0;
    font-size: 11pt;
    color: black;
    font-family: "Raleway", sans-serif;
}
.woocommerce-product-details__short-description {
    font-family: "Raleway", sans-serif;
    color: black;
    font-size: 10pt;
    text-align: left;
}
.woocommerce-product-details__short-description p span {
    color: green;
    margin-right: 5px;
}
.woocommerce-product-details__short-description strong {
    color: black;
    font-weight: bolder;
    text-decoration: underline;
}
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    width: 100%;
    position: relative;
}

.carousel {
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
    max-height: 150px;
 
}

.carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    overflow: hidden;
}
@media (min-width: 430px) {
    .carousel {
        width: 95%;
    }
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .carousel-inner {
        overflow: scroll;
        overflow: -moz-scrollbars-none;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll; /* ou auto */
    }
  }
.variation-cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.variation-card {
    min-width: 200px;
    margin: 10px;
    padding: 20px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
}

.variation-card.selected {
    border: 5px solid #4CAF50;
}

.variation-card.selected::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    content: "";
    background-image: url("http://ame-vanille.bicx1234.odns.fr/wp-content/uploads/2024/06/coche-valide-picto.webp");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

.variation-title {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1%;
    font-size: 22pt;
    color: black;
    margin: 0;
}

.variation-price {
    color: #000;
    margin-bottom: 10px;
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translate(-50%);
}

.carousel-control {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4CAF50;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 2.5%;
    padding: 0;
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .carousel-control {
display: none;
    }
  }

.carousel-control.prev {
    left: -30px;
}

.carousel-control.next {
    right: 0;
}

.carousel-control:focus {
    outline: none;
}

.variations_form .variations {
    display: none;
}
.custom-price-info {
    display: flex;
    gap: 1%;
    align-items: center;
    font-family: "Raleway", sans-serif;
    font-size: 15pt;
    padding: 0;

}
.promo-box {
    background-color: #fff1b3;
    border-radius: 25px;
    padding: 15px;
    margin-top: 20px;
    font-family: "Raleway", sans-serif;
    color: #456452;
    text-align: center;
    border: 1px solid black;
}
.single-product div.product .product_meta span.sku_wrapper{
    display: none;
}
.single-product div.product .product_meta span.posted_in{
    display: none;
}
.single-product div.product .product_meta div.tagged_as{
    display: flex;
    gap: clamp(5px, .7vw, 20px); 
    overflow: scroll;
}
.single-product div.product .product_meta div.tagged_as::-webkit-scrollbar {
    display: none;
}
.product_meta .tagged_as p {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    font-size: 15pt;
    text-decoration: none !important;
    color: black;
    border: 1px solid black;
    padding: 0 1%;
    border-radius: 25px;
    background-color: #fff1b3;
    display: inline;
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .product_meta .tagged_as a {
        font-size: 11pt;

    }
  }
.promo-box h2 {
    font-family: "AmaticSC-Regular", sans-serif;
    font-size: 18pt;
    color: #4CAF50;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 600;
}
.promo-box p {
    font-family: "Raleway", sans-serif;
    font-size: 8pt;
    color: #4CAF50;
    margin: 0;
}
.woocommerce div.product .product_title {
    font-family: "Raleway", sans-serif;
    font-size: 20pt;
    clear: none;
    margin-top: 0;
    padding: 0;
}
.woocommerce div.product .product_title span {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1.5%;
    font-size: 30pt;
}
.custom-short-description-link {
    font-family: "Raleway", sans-serif;
    color: black;
    font-size: 13pt;
}
.custom-info-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px 0;
}
@media (max-width: 769px) {
    /* Styles pour les petits écrans mobiles */
    .custom-info-section {
       flex-direction: column;
    }
  }
  
.product-content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0;
}
@media (max-width: 1024px){
    .product-content-wrapper {
    flex-direction: column;
    }
    .product-description-main {

        padding: 20px;
        font-family: "Raleway", sans-serif;
    }
    .product-sidebar {

        display: flex;
        flex-direction: column;
        gap: 20px;
    }
  }
.product-description-main {
    flex: 2;
    padding: 20px;
    font-family: "Raleway", sans-serif;
}
.product-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-advantages, .product-highlights {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 5%;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1.5%;
    font-size: 30pt;
}
.product-advantages ul {
    list-style: none;
    padding: 0;
    margin:0;
}
.product-highlights {
    background: #459c47;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
@media (min-width: 1024px) {
    /* Styles pour les petits écrans mobiles */
    .product-advantages, .product-highlights {
        margin-left: 15%;
    }
  }
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1.5%;
    font-size: 30pt;
}
.product-highlights p {
    font-family: "Raleway", sans-serif;
    color: white;
    font-size: 13pt;
}
.single-product div.product .product_meta {
    padding: 0;
    border-top: none;
    margin-bottom: clamp(5px, 1%, 20px);
}
hr.custom-separator {
    width: 75%;
 margin-top: 1%;
 margin-bottom: 1%;
}
.single-product div.product .edit-link {
    display: none;
}
.woocommerce div.product form.cart .button {
    vertical-align: middle;
    float: left;
    margin-left: 10%;
    padding: 21px 50px;
    border-radius: 20px;
    background-color: #459c47;
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .woocommerce div.product form.cart .button {
        vertical-align: middle;
        float: left;
        margin-left: 0;
        margin-top: 5%;
        padding: 21px 50px;
        border-radius: 20px;
        background-color: #459c47;
        width: 100%;
    }
  }
.woocommerce-variation.single_variation .woocommerce-variation-price {
    display: none;
}
.secticonepromo {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 1%;
}
.custom-price-info {
    margin-bottom: clamp(5px, 1%, 20px);
}
.custom-price-info p {
    margin: 0;
    color: black;
}
.tagged_as p {
    margin: 0;
}
ul.tabs.wc-tabs {
    display: none;
}
.storefront-full-width-content .woocommerce-tabs .panel {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.product-advantages li::before {
    content: "✔";
    color: green;
    margin-right: 5px;
}
.product-highlights h2 {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1.5%;
    font-size: 30pt;
    margin-bottom: 10px;
    position: absolute;
    top: -45px;
    background: #fff1b3;
    padding: 0 0.7rem;
    border-radius: 20px;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price {
    display: none;
}
.promotion-label {
    background-color: #459c47;
    color: white;
    padding: 1px 3px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px;
    width: 120px;
}
.info-box {
    text-align: center;
    flex: 1;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.info-box img {
    width: 100px;
    height: auto;
    filter: brightness(0.6);
    opacity: 80%;
  
}
.info-box h3 {
    margin: 0;
}
section.related.products h2 {
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    margin-top: 1.5%;
    font-size: 30pt;
}
section.related.products {
    display: none !important;
}
div#reviews {
    display: none;
}
/* Section des avis clients */
.customer-reviews {
    background: #459c47;
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.review-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (max-width: 375px) {
    /* Styles pour les petits écrans mobiles */
    .review-card {
 width: 95%;
    }
  }
.review-card:hover {
    transform: scale(1.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 1.2em;
    margin: 0;
}

.user-role {
    font-size: 0.9em;
    color: gray;
    margin: 0;
}

.review-text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.star {
    color: #ffc107;
    font-size: 1.5em;
}

/* Responsivité */
@media (min-width: 768px) {
    .review-card {
        width: calc(50% - 40px);
    }
}

@media (min-width: 1024px) {
    .review-card {
        width: calc(33.33% - 40px);
    }
}
/* Section de la vidéo */
.video-section {
    background-color: #f0f0f0; /* Optionnel: couleur de fond de la section */
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    padding-top: 25px; /* Espace au-dessus pour centrer verticalement */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* Taille maximale de la vidéo */
    background-color: #000; /* Optionnel: couleur de fond pour un meilleur contraste */
}

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

/* Responsivité */
@media (min-width: 768px) {
    .video-container {
        max-width: 1000px; /* Ajuste la taille pour les écrans plus grands */
    }
}

@media (min-width: 1024px) {
    .video-container {
        max-width: 1200px; /* Taille plus large pour les grands écrans */
    }
}
/* Ajoute le texte défilant à droite sans affecter la hauteur du header */
.custom-header .marquee-container {
    position: absolute;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #fff1b3; /* Assurez-vous que la couleur de fond correspond à celle du header */
    overflow: hidden;
    white-space: nowrap;
    padding: 0 20px; /* Optionnel: ajouter un peu d'espace autour du texte */

}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .custom-header .marquee-container {
        right: 19%;
        bottom: -35px;
        background-color: transparent;
    
    }
  }

.custom-header .marquee {
    display: inline-block;
    animation: scroll-left 10s linear infinite;
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
color: black;
    font-size: 4.5vw;
}
@media (min-width: 430px) {
    .custom-header .marquee {
        font-size: 1.5vw;
    }
  }

/* Animation pour le texte défilant */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Styles pour le footer */
/* Footer */
.custom-footer {
    background-color: #fff1b3;
    color: black;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Ajoute de l'espace entre les liens */
    margin-bottom: 1%;
}

#legal-link, #contact-link {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-family: "AmaticSC-Regular", sans-serif;
    font-weight: 600;
    font-size: 30pt;
}
@media (max-width: 430px) {

    #legal-link, #contact-link {
        font-size: 15pt;
    } 
}


#legal-link:hover, #contact-link:hover {
    text-decoration: underline;
}

/* Popup */
.popup {
    display: none; /* Cachée par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Floutage de l'arrière-plan */
    overflow-y: auto; /* Permet le défilement vertical */
    padding: 20px; /* Pour éviter que le contenu touche les bords */
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    max-height: 90vh; /* Assure que la popup ne dépasse pas 90% de la hauteur de la fenêtre */
    overflow-y: auto; /* Permet le défilement à l'intérieur de la popup */
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content p {
    margin: 10px 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
}

/* Responsivité */
@media (max-width: 600px) {
    .popup-content {
        width: 90%;
    }
}
.mark {

    font-family: "Raleway", sans-serif;
}
.logo-footer {
    position: absolute;
    top: -30px;
    left: 80px;
    height: 130px;
}
@media (max-width: 430px) {
    /* Styles pour les petits écrans mobiles */
    .logo-footer {
     display: none;
        }
  }
.single-product div.product {
    width: 85%;
}



/* Styles généraux pour le bouton sticky */
.sticky-add-to-cart {
    display: none; /* Masqué par défaut */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ff6600; /* Couleur vive qui contraste bien */
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

#stickyAddToCart button {
    background-color: transparent;
    font-family: "AmaticSC-Regular", sans-serif;
    color: #456452;
    font-weight: 400;
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    line-height: clamp(2rem, 4vw + 1rem, 6rem);
    letter-spacing: normal;
        font-weight: 600;
        color: white;
}
/* Afficher le bouton sticky uniquement sur les écrans de moins de 430px */
@media (max-width: 430px) {
    .sticky-add-to-cart {
        display: block;
    }
}


img.wp-post-image {
    width: 100%;
}
.quantity .plus, .quantity .minus {
    background-color: #459c47;
    color: white;
}
.single_variation_wrap .quantity .qty::-webkit-outer-spin-button,
.single_variation_wrap .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
} 
/* Firefox */
.single_variation_wrap .quantity input[type=number] {
    -moz-appearance: textfield;
  }
  .storefront-full-width-content.single-product div.product div.summary {
    margin-bottom: 0;
  }
  .woocommerce-tabs.wc-tabs-wrapper {
    padding-top: 0;
  }
  /* Ajuster pour que le bouton ne cache pas le footer */
body {
    padding-bottom: 0; /* Ajoutez un espace pour le bouton sticky */
}

@media (max-width: 430px) {
    body {
        padding-bottom: 75px; /* Plus d'espace pour le bouton sur mobile */
    }
}
.order-notice {
    text-align: center;
    font-family: "AmaticSC-Regular", sans-serif;
    font-size: 1em;
    color: #456452;
}

.order-notice button {
    all: unset;
    color: #459c47;
    text-decoration: underline;
    cursor: pointer;
}

