.woocommerce {
    overflow: auto;
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
  font-family: WooCommerce;
  content: "🎁";
  display: inline-block;
  position: absolute;
  top: 1em;
  left: 1.5em;
}

.woocommerce-error {
    color: red !important;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
  padding: 1em 2em 1em 3.5em;
  margin: 0 0 2em;
  position: relative;
  background-color: #f6f5f8;
  color: #515151;
  border-top: 3px solid #7f54b3;
    border-top-color: rgb(127, 84, 179);
  list-style: none outside;
  width: auto;
  word-wrap: break-word;
}

.woocommerce-info .button {
    float: right;
}

.add_to_cart_button {
    background-color: var(--secondary) !important;
    font-weight: bold;
    text-transform: uppercase;
}

.add_to_cart_button:hover {
    color: white !important;
    background-color: var(--primary) !important;
}

button[name="update_cart"] {
    height: 50px;
}

.woocommerce .onsale {
    background-color: var(--secondary) !important;
}


/*Shop page*/

.wc-block-grid__products {
    max-width: 100%;
}

.woocommerce-products-header {
    margin-top: 10px;
}

.products {
    margin-bottom: 50px;
}

ul[class^=products] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

ul[class^=products] li{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

ul[class^=products] h2 {
    font-size: inherit;
    color: inherit;
}

ul[class^=products] .onsale {
    left: 61px;
}

ul[class^=products] .button {
    border-radius: 9999px;
}

.wc-block-components-product-title:hover a{
    color: var(--secondary) !important;
}

.product {
    position: relative;    
}

.page-title
{
    display: none;
}

.product-sale-badge span
{
    color: white;
}

.product_meta a:hover {
    color: var(--secondary);
}

/**/
.woocommerce-result-count{
    font-weight: 500;
    text-align: center;
}

/*select*/

.wc-block-sort-select, .woocommerce-ordering {
    display: flex;
    justify-content: center;
}

.wc-block-sort-select__select, select[class=orderby] {
    position: relative;
    width: 300px;
    height: 45px;
    background-color: #fff;
    border: 2px solid var(--secondary);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 24px;
}

/* Style général pour la barre de navigation */
.woocommerce-breadcrumb {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    padding: 10px 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    display: none;
}

/* Style pour les liens de la barre de navigation */
.woocommerce-breadcrumb a {
    color: black;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--secondary);
}

/* Style pour les séparateurs entre les éléments */
.woocommerce-breadcrumb::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

/* Masquer le séparateur avant le premier élément */
.woocommerce-breadcrumb a:first-child::before {
    content: '';
}

/* Style pour les éléments de navigation active */
.woocommerce-breadcrumb a:last-child {
    color: #666;
    font-weight: 400;
    pointer-events: none; /* empêche le clic sur l'élément actif */
}

/* Pour une mise en page plus compacte sur les petits écrans */
@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (min-width: 1200px)
{
    .product {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product section ul {
        display: grid;
        grid-template-columns: repeat(2, auto);
    }

}

.product > section {
    grid-column: span 2;
    margin: 0px 10px 0px 10px;
}

.product > section ul li{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.woocommerce-product-gallery__wrapper {
    position: sticky;
    top: 35px;
    display: flex;
}

.woocommerce-product-gallery__wrapper > div:first-child
{
    order: 1;
}

.img-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    order: 0;
}

.woocommerce-product-gallery__image {
    width: 100%;
}

/* edit account*/
.woocommerce-MyAccount-content {
    margin-top: 10px !important;
    margin-bottom: 50px;
}

.woocommerce-thankyou-order-received {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4fd711;
    height: 40px;
    border-radius: 100px;
}

.woocommerce-thankyou-order-received::after {
    content: " ✓";
}

/* Styles pour la navigation du compte en affichage inline */
.woocommerce-MyAccount-navigation {
    background-color: #f7f7f7; /* Couleur de fond claire */
    padding: 10px; /* Espacement intérieur */
    border-radius: 5px; /* Coins arrondis */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre subtile */
}

.woocommerce-MyAccount-navigation ul {
    list-style: none; /* Supprimer les puces */
    padding: 0; /* Supprimer les marges */
    margin: 0; /* Supprimer les marges */
    display: flex; /* Aligner les éléments en ligne */
    flex-wrap: wrap; /* Permettre au texte de se déployer sur plusieurs lignes si nécessaire */
}

.woocommerce-MyAccount-navigation li {
    margin-right: 15px; /* Espacement entre les éléments */
}

.woocommerce-MyAccount-navigation a {
    display: inline-block; /* Affichage en ligne avec padding */
    padding: 8px 12px; /* Espacement intérieur */
    text-decoration: none; /* Supprimer le soulignement */
    color: #333; /* Couleur du texte */
    border-radius: 4px; /* Coins arrondis */
    transition: background-color 0.3s ease, color 0.3s ease; /* Effet de transition */
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    background-color: var(--secondary); /* Couleur de fond lors du survol ou si actif */
    color: #fff !important; /* Couleur du texte lors du survol ou si actif */
}

.woocommerce-MyAccount-navigation .is-active a {
    font-weight: bold; /* Met le texte en gras pour le lien actif */
}


/* Styles pour le formulaire de compte */
.woocommerce-EditAccountForm {
    background-color: #fff; /* Couleur de fond blanche */
    padding: 20px; /* Espacement intérieur */
    border-radius: 5px; /* Coins arrondis */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre subtile */
}

.woocommerce-form-row {
    margin-bottom: 15px; /* Espacement entre les lignes du formulaire */
}

.woocommerce-form-row label, .form-row label {
    display: block; /* Assurer que l'étiquette occupe toute la largeur */
    margin-bottom: 5px; /* Espacement sous l'étiquette */
    font-weight: bold; /* Met l'étiquette en gras */
}

.woocommerce-Input, .woocommerce-input-wrapper input, .woocommerce form .form-row textarea  {
    width: 100%; /* Largeur du champ d'entrée */
    padding: 10px; /* Espacement intérieur */
    border: 1px solid #ddd; /* Bordure fine */
    border-radius: 4px; /* Coins arrondis */
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur totale */
}

.woocommerce-Input:focus {
    border-color: var(--secondary); /* Couleur de bordure lors du focus */
    outline: none; /* Supprimer le contour par défaut */
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3); /* Ombre de focus */
}

.woocommerce-Button, .woocommerce-button, .wc-backward {
    background-color: var(--secondary) !important; /* Couleur de fond du bouton */
    color: #fff !important; /* Couleur du texte */
    padding: 10px 20px; /* Espacement intérieur du bouton */
    border: none; /* Supprimer la bordure */
    border-radius: 4px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointer */
    transition: background-color 0.3s ease; /* Effet de transition */
}
.woocommerce-EditAccountForm .clear {
    clear: both; /* S'assurer que les éléments flottants sont correctement gérés */
}

.woocommerce-EditAccountForm fieldset {
    border: 1px solid #ddd; /* Bordure fine autour du fieldset */
    padding: 15px; /* Espacement intérieur */
    border-radius: 4px; /* Coins arrondis */
    margin-bottom: 20px; /* Espacement sous le fieldset */
}

.woocommerce-EditAccountForm fieldset legend {
    font-weight: bold; /* Met le texte du legend en gras */
    padding: 0 10px; /* Espacement horizontal */
    background-color: #f7f7f7; /* Couleur de fond du legend */
    border-radius: 4px; /* Coins arrondis */
}

/*download*/
.woocommerce-info {
    border-top-color: var(--primary) !important;
}

.woocommerce-info::before
{
    color: var(--primary) !important;
}

/* cart */

/* Style général pour le formulaire de panier */
.woocommerce-cart-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

/* Style du tableau de panier */
.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_table th,
.shop_table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

/* Style pour les en-têtes du tableau */
.shop_table thead th {
    background: #f4f4f4;
    font-weight: bold;
}

/* Style pour les cellules de produits */
.product-thumbnail img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}

.product-name a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.product-name a:hover {
    color: var(--secondary);
}

/* Style pour les prix */
.product-price .woocommerce-Price-amount {
    font-size: 1.2em;
    font-weight: bold;
}

/* Style pour la quantité */
.product-quantity .quantity {
    display: flex;
    align-items: center;
    justify-content: end;
}

.product-quantity .input-text {
    width: 60px;
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Style pour la section des totaux */

.cart:has(.single_add_to_cart_button) {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cart .button {
    max-width: 100%;
}

.cart-collaterals {
    margin-top: 20px;
}

.cart_totals {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--secondary)e0e0;
    border-radius: 10px;
}

.cart_totals h2 {
    margin-top: 0;
    font-size: 1.5em;
}

.shop_table th,
.shop_table td {
    padding: 10px;
    border-bottom: 1px solid var(--secondary);
}

.cart_totals .shop_table {
    width: 100%;
}

.order-total strong {
    font-size: 1.5em;
    color: var(--primary);
}

/* Style pour le bouton de validation de commande */
.checkout-button {
    background-color: var(--secondary) !important;
    color: white;
}

.coupon > .input-text {
  width: 25% !important;
  height: 50px;
  border: none;
  /*! padding: 10px 25px; */
  border-radius: 75px;
  line-height: normal;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.coupon  {
    display: flex;
    justify-content: space-around;
    width: auto;
}

/*shop*/

.woocommerce-LoopProduct-link {
    position: relative;
    color: inherit;
}

.woocommerce-LoopProduct-link > .onsale, .product > .onsale, .wc-block-components-product-sale-badge {
    position: absolute !important;
    left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    height: 50px !important;
    width: 70px !important;
    font-weight: 700 !important;
    background-color: var(--primary) !important;
    color: white !important;
    outline: none;
    border: none !important;
    text-transform: uppercase;
    font-size: 14px !important;
}

/*description*/
/* Conteneur principal des onglets */
.woocommerce-tabs.wc-tabs-wrapper {
    border-top: 1px solid var(--secondary);
}

/* Styles des onglets (liens) */
.woocommerce-tabs .tabs.wc-tabs {
    list-style-type: none;
    padding: 0;
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--secondary);
}

.woocommerce-tabs .tabs.wc-tabs .tab-item {
    margin-right: 15px;
}

.woocommerce-tabs .tabs.wc-tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs.wc-tabs li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

.woocommerce-tabs .tabs.wc-tabs li.active a {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.woocommerce-tabs .tabs.wc-tabs li a:hover {
    color: var(--secondary);
}

/* Styles des panneaux de contenu */
.woocommerce-Tabs-panel {
    display: none;
    padding: 20px;
    border: 1px solid #e6e6e6;
    margin-bottom: 20px;
}

.woocommerce-Tabs-panel--description.panel {
    display: block;
}

.woocommerce-Tabs-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Liste personnalisée dans la description */
.woocommerce-Tabs-panel ul.a-unordered-list {
    list-style-type: disc;
    margin-left: 20px;
}

.woocommerce-Tabs-panel ul.a-unordered-list li {
    margin-bottom: 10px;
}

/* Styles des avis */
.woocommerce-Reviews-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.commentlist {
    list-style-type: none;
    padding: 0;
}

.comment_container {
    display: flex;
    margin-bottom: 20px;
}

.comment_container img.avatar {
    margin-right: 15px;
    border-radius: 50%;
}

.comment-text {
    flex: 1;
}

.comment-text .meta {
    margin-bottom: 10px;
    color: #777;
    font-size: 0.9rem;
}

.comment-text .description p {
    margin: 0;
}

/* Formulaire d'ajout d'avis */
#review_form_wrapper {
    margin-top: 30px;
}

#review_form {
    border: 1px solid #e6e6e6;
    padding: 20px;
    background-color: #f9f9f9;
}

#review_form .comment-form-rating label,
#review_form .comment-form-comment label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#review_form .stars {
    margin-bottom: 15px;
}

#review_form .stars a {
    color: #ddd;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

#review_form .stars a:hover,
#review_form .stars a.star-1:hover ~ a {
    color: #0071a1;
}

#review_form .comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#review_form .form-submit input.submit {
    background-color: var(--secondary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 700;
}

#review_form .form-submit input.submit:hover {
    background-color: var(--primary);
}

.cart input {
    width: 100%; /* Ajuste la largeur selon les besoins */
    padding: 10px 15px; /* Espacement interne */
    border: 2px solid #ccc; /* Bordure grise claire */
    border-radius: 5px; /* Coins arrondis */
    font-size: 1rem; /* Taille de la police */
    color: #333; /* Couleur du texte */
    background-color: #fff; /* Couleur de fond */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre légère */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-tabs {
    grid-column: 2;
}

/*stars*/
.star-1::after,.star-2::after,.star-3::after,.star-4::after,.star-5::after {
    content: '★'; /* Contenu de l'étoile */
    font-size: 24px; /* Taille de l'étoile */
    color: var(--star-color); /* Couleur par défaut (gris) */
    position: relative;
    top: 0;
    left: 5px;
}

.star-1:hover:after,.star-2:hover:after,.star-3:hover:after,.star-4:hover:after,.star-5:hover:after {
    color: yellow;
}

.wc-block-grid__product-rating .star-rating span::before, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars span::before {
    content: '★★★★★' !important;
}

.wc-block-grid__product-rating .star-rating:hover span::before, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars:hover span::before {
    color: yellow;
}

.wc-block-grid__product-rating .wc-block-grid__product-rating__stars::before {
    content: '' !important;
}

/* Zoom effect on image hover */
.woocommerce-product-gallery__image img {
    display: block;
}

.zoom-lens {
    position: absolute;
    width: 100px; /* Largeur de la lentille de zoom */
    height: 100px; /* Hauteur de la lentille de zoom */
    border: 1px solid #000;
    background-repeat: no-repeat;
    pointer-events: none;
    display: none; /* La lentille est cachée par défaut */
    background-size: 300%; /* Ajuster selon le niveau de zoom souhaité */
}

.woocommerce-product-gallery__image:hover .zoom-lens {
    display: block; /* Affiche la lentille au survol */
}

.woocommerce-product-gallery__image:hover {
  cursor: zoom-in;
}

.woocommerce-product-gallery__wrapper div img {
    max-width: 100%;
    height: auto;
}

.products img {
    max-width: 100%;
    height: auto;
}

/* checkout */

.wc-proceed-to-checkout {
    float: right;
}

.wc-proceed-to-checkout a{
    height: 100%;
    vertical-align: middle;
    text-align: center;
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
}

/* shop button content*/
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link.added::after {
    content: "✓" !important;;
}

.prom_message{
    font-weight: 600;
    font-size: 15px;
    line-height:65px;
    letter-spacing: 10px;
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 400%;
    animation: move 5s ease infinite;
    background-image: linear-gradient( 68.7deg,  rgba(29,173,235,1) 13.2%, rgba(137,149,250,1) 29.8%, rgba(229,109,212,1) 48.9%, rgba(255,68,128,1) 68.2%, rgba(255,94,0,1) 86.4% );
}

@keyframes move {
    0%,100%{
        background-position: 200% 0%;
    }

    50%{
        background-position: 0% 200%;
    }
}


/* Login */

.password-input {
    position: relative;
}

.show-password-input {
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
}

.show-password-input::after {
    content: "👁️️";
    font-weight: bold;
}

.display-password::after {
    content: "✖";
}

#place_order {
    float: right;
    margin-bottom: 50px;
}

.remove {
    font-size: 50px;
    color: red;
}

/* product thumbnail */


/* Style du modal (masqué par défaut) */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Fond semi-transparent */
    animation: fadeIn 0.5s; /* Animation d'apparition */
}

/* Style de l'image dans le modal */
.modal-content {
    display: block;
    margin: 15% auto;
    max-width: 80%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Ajouter un effet d'agrandissement au modal */
.modal-content:hover {
    transform: scale(1.05);
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 40px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    z-index: 1000;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/*.woocommerce-orders-table__cell[data-title="Actions"] {
    display: flex;
    justify-content: space-between;
}*/

.buy-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
}

.wc-block-grid__products, .products  {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.cart_totals {
    overflow: auto;
}

td[data-title="Actions"] a {
    margin-right: 2px;
}

.wc-backward::before {
    content: '↩';
}





