/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Thème enfant pour Hello Elementor avec support Masonry.
Author: Blackmoon
Author URI: https://www.goblackmoon.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ============================ Globale ==============================*/
body {
 overflow-x: hidden;
}

main#content {
  margin-bottom: 50px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  z-index: 9;
}

/* ============================ widget elementor Produit - effet mansory ==============================*/

/* Chaque groupe de 4 est sa propre grille indépendante */
.elementor-widget-woocommerce-products .woocommerce ul.products {
  padding: 16px;
  grid-row-gap: 20px;
}

.elementor-widget-woocommerce-products .woocommerce ul.products .mosaic-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 585px) {
   /* Reset ul — devient un simple conteneur flex vertical */
   .elementor-widget-woocommerce-products .woocommerce ul.products {
     display: flex !important;
     flex-direction: column;
     gap: 24px;
     grid-template-columns: unset !important;
   }

   /* Chaque groupe de 4 est sa propre grille indépendante */
   .elementor-widget-woocommerce-products .woocommerce ul.products .mosaic-group {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     grid-template-rows: 200px 200px;
     gap: 24px;
   }

   .elementor-widget-woocommerce-products .woocommerce ul.products.elementor-grid {
     gap: 24px !important;
   }

   /* ── PATTERN A : grande carte à gauche ── */
   .mosaic-group.pattern-normal li.product:nth-child(1) {
     grid-column: 1;
     grid-row: 1 / 3;
   }

   .mosaic-group.pattern-normal li.product:nth-child(2) {
     grid-column: 2;
     grid-row: 1;
   }

   .mosaic-group.pattern-normal li.product:nth-child(3) {
     grid-column: 3;
     grid-row: 1;
   }

   .mosaic-group.pattern-normal li.product:nth-child(4) {
     grid-column: 2 / 4;
     grid-row: 2;
   }

   /* ── PATTERN B : grande carte à droite ── */
   .mosaic-group.pattern-reverse li.product:nth-child(1) {
     grid-column: 1;
     grid-row: 1;
   }

   .mosaic-group.pattern-reverse li.product:nth-child(2) {
     grid-column: 2;
     grid-row: 1;
   }

   .mosaic-group.pattern-reverse li.product:nth-child(3) {
     grid-column: 1 / 3;
     grid-row: 2;
   }

   .mosaic-group.pattern-reverse li.product:nth-child(4) {
     grid-column: 3;
     grid-row: 1 / 3;
   }
 }

 /* ── Styles communs aux cartes ── */
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product {
   position: relative;
   overflow: hidden;
   border-radius: 12px;
   margin: 0 !important;
   width: auto !important;
   float: none !important;
 }

 /* Image */
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
   display: block;
   height: 100%;
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
   transform: scale(1.06);
 }

 /* Overlay */
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product a.woocommerce-LoopProduct-link::after {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 55%, transparent 100%);
   opacity: 0;
   transition: opacity 0.4s ease;
   pointer-events: none;
   z-index: 1;
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link::after {
   opacity: 1;
 }

 /* Titre + prix : glissement depuis le bas */
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product .price {
   position: absolute;
   left: 0; right: 0;
   z-index: 2;
   color: #fff !important;
   transform: translateY(100%);
   transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   pointer-events: none;
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
   bottom: 0px;
   padding: 0 1rem 1rem;
   font-size: 16px;
   line-height: 1.25;
   opacity: 0.85;
   transition-delay: 0.05s;
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product .price {
  display: none;
 }

 .elementor-widget-woocommerce-products .woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product:hover .price {
   transform: translateY(0);
 }

 /* Bouton masqué */
 .elementor-widget-woocommerce-products .woocommerce ul.products li.product .button {
   display: none;
 }

 .tax-product_cat .elementor-page-title {
   display: block;
 }

/* ============================ widget elementor Catégories de produit ==============================*/

.elementor-widget-wc-categories  {
  width: 100%;
}

/* Reset ul — devient un simple conteneur flex vertical */
.elementor-widget-wc-categories .woocommerce ul.products  {
  gap: 24px !important;
}

 .elementor-widget-wc-categories .woocommerce ul.products li.product-category.product {
   position: relative;
   background-color: rgba(16, 25, 33, 0.85);
   border-radius: 12px;
   padding: 20px 20px;
 }

.elementor-widget-wc-categories .woocommerce  ul.products li.product a img {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: -1;
  transform: none;
}

.elementor-widget-wc-categories .woocommerce ul.products li.product .woocommerce-loop-category__title {
  margin: 0;
  width: 100%;
  text-align: center;
  line-height: 1.25rem;
  font-size: 1rem;
  color: #fff;
}


/* ============================ widget elementor Ajouter au panier ==============================*/
.elementor-add-to-cart table.variations .label {
  background: initial;
  padding: 0;
}

.elementor-add-to-cart table.variations .value.woo-variation-items-wrapper,
.elementor-add-to-cart table.variations .value.woo-variation-items-wrapper:hover {
  background: initial;
}

.elementor-add-to-cart table.variations .label > label {
  font-size: 1.5rem;
}

/* ============================ widget elementor Information additionnel ==============================*/

.elementor-widget-woocommerce-product-additional-information table.shop_attributes {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 15px;
  border: 1px solid #ecebe7;
  overflow: hidden;
}

.elementor-widget-woocommerce-product-additional-information table.shop_attributes tr {
  border-color: #ecebe7 !important;
  border-style: solid;
  border-width: 1px;
}

.elementor-widget-woocommerce-product-additional-information table.shop_attributes th {
  width: 50%;
  text-align: left;
  padding: 8px;
  font-weight: 700;
  color: #a29b9b;
  border-color: #ecebe7;
  border-style: solid;
  border-width: 1px;
  background: #fafaf8 !important;
}

.elementor-widget-woocommerce-product-additional-information table.shop_attributes td {
  width: 50%;
  text-align: left;
  padding: 8px;
  font-style: normal;
  color: #000;
  font-weight: 700;
  border-color: #ecebe7;
  border-style: solid;
  border-width: 1px;
  background: #ffffff !important;
}

.elementor-widget-woocommerce-product-additional-information table.shop_attributes td p {
  padding: initial;
}

/* ============================ widget elementor Upsells (Ventes suggérées) ==============================*/

/* Conteneur de la carte */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Image */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product a.woocommerce-LoopProduct-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0;
}

/* Overlay sombre au survol */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product a.woocommerce-LoopProduct-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 22px;
}

.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product:hover a.woocommerce-LoopProduct-link::after {
  opacity: 1; /* L'ombre devient plus forte au survol */
}

/* --- TITRE (Visible par défaut) --- */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product h2.woocommerce-loop-product__title {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff !important;
  bottom: 12px; /* Position basse par défaut */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  margin: 0 !important;
  padding: 0 15px;
  font-size: 1rem !important;
  font-weight: 600;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.6);
  transform: translateY(100%); /* Caché plus bas */
  opacity: 0;
}

.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product .price bdi,
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product .price span {
  display: none;
}

/* Le prix apparaît et remonte */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product:hover h2.woocommerce-loop-product__title {
  transform: translateY(0);
  opacity: 1;
}
/* Masquer le bouton */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product .button {
  display: none !important;
}

/* Nettoyage des colonnes Elementor */
.elementor-widget-woocommerce-product-upsell .upsells.products ul.products li.product {
  float: none !important;
  width: 100% !important;
}


/* ============================ Bloc produit variations ==============================*/
.variations_form.cart {
  font-family: 'Fira Sans';
}

table.variations td, table.variations th {
  line-height: 1.5;
  padding: 7px 0 16px 0;
}

.woo-variation-swatches .variable-items-wrapper {
  grid-gap: 16px;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item) {
  border-radius: 0;
  box-shadow: none;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected, .woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover {
  box-shadow: none;
  border-bottom: 1px solid #000;
}

.elementor-add-to-cart .variations_form.cart table.variations .label > label {
  font-size: 1.25rem;
}

.elementor-add-to-cart .variations_form.cart table.variations .label .woo-selected-variation-item-name {
  display: none;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item .variable-item-span {
  padding: 0;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item {
  padding: 0;
}

.woocommerce div.product form.cart .reset_variations {
  font-size: .83em;
  margin-top: 1rem;
  display: inline-block;
  background: #63A294;
  border-radius: 10px;
  padding: 3px 6px 1px;
  line-height: 1.25;
  color: #fff;
}

.woocommerce div.product form.cart .reset_variations:hover {
  background: #38496a;
  color: #fff;
}

.woocommerce-variation-price {
  margin-bottom: 8px;
}

.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: 700;
  color: #000;
}

.price-additional-info-wrapper {
  margin-bottom: 0;
}

.price-additional-info-wrapper span.price-additional-info {
  font-size: 14px;
  color: #000;
}

.woocommerce-variation-price-detail .price-unit {
  margin-left: 8px;
  color: #000;
}

.woocommerce div.product form.cart .woocommerce-variation-description p {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #000;
}

.woopq-quantity-input .woopq-quantity-input-plus, .woopq-quantity-input .woopq-quantity-input-minus {
  background-color: #38496a;
  border: 1px solid #38496a;
  border-radius: 5px;
  color: #ffff;
}

.woopq-quantity-input .woopq-quantity-input-plus:hover, .woopq-quantity-input .woopq-quantity-input-minus:hover {
  background-color: #b94700;
  border: 1px solid #b94700;
}

.woopq-quantity-input input.input-text.qty {
  min-height: 40px;
  margin-left: 4px !important;
  margin-right: 4px !important;
  border: 1px solid #000;
}

/* AFW - cacher element page produit */
.single_variation_wrap .woocommerce-variation-description,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .price-additional-info-wrapper,
.variations_form.cart .woocommerce-variation-add-to-cart .quantity.woopq-quantity {
  display: none !important;
}

.yith_ywraq_add_item_response_message,
.yith_ywraq_add_item_product_message {
  margin-top: 5px;
  background: #f1f4f7;
  border-radius: 5px;
  padding: 1rem;
  color: #000;
  font-size: 1rem;
}

.yith_ywraq_add_item_browse_message {
  margin-top: 1rem;
}

.yith_ywraq_add_item_browse_message a {
  background: #38496a;
  border: 1px solid #38496a;
  border-radius: 25px;
  padding: 10px 20px 10px 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.yith_ywraq_add_item_browse_message a:hover {
  background: transparent;
  border: 1px solid #38496a;
  color: #38496a;
}

 /* ============================ Elements devis Yith ==============================*/
 .widget_ywraq_mini_list_quote *,
 .yith-request-a-quote-page .page-content * {
   font-family: 'Fira Sans';
 }

 .widget_ywraq_mini_list_quote .raq-info {
 padding: 0 8px;
 font-size: 16px;
 border: 0;
 }

.widget_ywraq_mini_list_quote .raq-info span.raq-tip-counter {
  display: flex;
}

.widget_ywraq_mini_list_quote .raq-info span.raq-items-number {
  color: #fff;
}

.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-content {
  opacity: 1;
  visibility: visible;
  right: 100px;
  top: 6px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content {
  padding: 10px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content p.items-count {
  text-align: center;
  font-weight: 600;
  background: #314867;
  color: #fff;
  border-radius: 6px;
  padding: 12px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul.yith-ywraq-list {
  padding: 8px;
  margin-bottom: 4px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul li {
  padding: 8px 0 8px 23px;
  border-bottom: 1px solid #dcdcdc;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content a.yith-ywraq-list-item-product-info {
  color: #000;
  font-weight: 400 !important;
  font-size: 14px;
  line-height: 1;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul.yith-ywraq-list img {
  margin-right: 8px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content span.quantity {
  background: #63A294;
  display: inline-block !important;
  padding: 3px;
  border-radius: 5px;
  font-weight: 400;
  color: #fff;
  font-size: 12px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content .button {
  border-radius: 25px;
  color: #fff;
  background-color: #63A294;
  border: 1px solid #63A294;
  width: 100%;
  text-align: center;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content .button:hover {
  color: #63A294;
  background-color: #fff;
  border: 1px solid #63A294;
}

/* ============================ Bouton woocommerce ==============================*/

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button  {
  background-color: #63A294;
  border: 1px solid #63A294;
  color: #fff;
  border-radius: 25px;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover  {
  background-color: #fff;
  border: 1px solid #63A294;
  color: #63A294;
}

 /* ============================ page devis vide Yith ==============================*/
.woocommerce.ywraq-wrapper.ywraq-empty {
 padding-bottom: 50px;
}

.ywraq-empty .ywraq-form-table-wrapper.wide {
  padding-bottom: 32px;
}

.ywraq-wrapper.ywraq-empty .ywraq-before-form, .ywraq-wrapper.ywraq-with-form.ywraq-empty .ywraq-before-form {
  padding: 30px;
  border: 0;
  height: 100%;
  align-items: center;
  text-align: center;
  display: block;
  background: #f9f8f4;
  margin-top: 32px;
  margin-bottom: 32px;
  border-radius: 25px;
}

 /* ============================ page devis Yith ==============================*/
.woocommerce.ywraq-wrapper.ywraq-with-form {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background-color: #f9f8f4;
}

.woocommerce.ywraq-wrapper.ywraq-with-form > * {
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.yith-ywraq-before-table {
  padding: 12px 16px;
  text-align: right;
  background: #63A294;
}

a.button.wc-backward.yith-ywraq-before-table-wc-backward {
  border-radius: 25px;
  background: #314867;
  color: #fff;
  font-weight: 400;
  border: 0;
}

a.button.wc-backward.yith-ywraq-before-table-wc-backward:hover {
  background: #fff;
  color: #000;
}

.ywraq-form-table-wrapper #yith-ywraq-form {
  background: #fff;
  padding: 32px 64px;
}

.ywraq-form-table-wrapper #ywraq-other-form {
  padding: 32px 64px;
}

.ywraq-form-table-wrapper #ywraq-other-form .ywraq-form-title {
  display: none;
}

.ywraq-form-table-wrapper #yith-ywraq-form h2 {
  font-size: 32px;
  color: #474747;
  font-weight: 600;
}

.ywraq-form-table-wrapper #ywraq-other-form h2 {
  font-size: 32px;
  color: #474747;
  font-weight: 600;
}

.ywraq-form-table-wrapper #ywraq-other-form h2 em {
  font-size: 32px;
  color: #474747;
  font-weight: 600;
}

.ywraq-form-table-wrapper #ywraq-other-form h3,
.ywraq-form-table-wrapper #yith-ywraq-form h3 {
  font-weight: 700;
  font-size: 18px;
  color: #474747;
}

/* ── Liste de cards ──────────────────────────────────────── */
.ywraq-card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
}

/* ── Card produit ────────────────────────────────────────── */
.ywraq-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  margin-bottom: 1.5rem;
}

.ywraq-card:last-child {
  border-bottom: none;
}

/* ── Bouton +/- ───────────────────────────────────────────── */
.ywraq-form-table-wrapper #yith-ywraq-form .woopq-quantity-input-plus,
.ywraq-form-table-wrapper #yith-ywraq-form .woopq-quantity-input-minus {
  background-color: #f9f8f4;
  color: #000;
  border-radius: 5px;
  border: 0;
}

.ywraq-form-table-wrapper #yith-ywraq-form .woopq-quantity-input-plus:hover,
.ywraq-form-table-wrapper #yith-ywraq-form .woopq-quantity-input-minus:hover {
  background-color: #63A294;
  color: #fff;
}

.woocommerce .ywraq-card-list .ywraq-card__remove a.remove {
  color: #bbb6b6 !important;
}

button.button.ywraq_clean_list {
  background: #f9f8f4;
  border-radius: 25px;
  color: #000;
  font-weight: 400;
  padding: 8px 24px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border: 0;
}

body .ywraq-actions__right .button {
  background: #63A294;
  border-radius: 25px;
  color: #fff;
  font-weight: 400;
  padding: 8px 24px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border: 0;
}

body .ywraq-actions__right .button:hover,
button.button.ywraq_clean_list:hover {
  background: #314867;
  color: #fff;
  border: 0;
}

/* ── Thumbnail ───────────────────────────────────────────── */
.ywraq-card__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  border: 1px solid #f9f8f4;
}

.ywraq-card__thumb a,
.ywraq-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ywraq-card__thumb-placeholder {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

/* ── Infos centre ────────────────────────────────────────── */
.ywraq-card__info {
    flex: 1 1 auto;
    min-width: 0;
}

.ywraq-card__name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

.ywraq-card__name a {
    color: #474747;
    text-decoration: none;
}

.ywraq-card__name a:hover {
    text-decoration: underline;
}

.ywraq-card__unit-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

/* Variations / attributs */
.ywraq-card__meta {
    list-style: none;
    margin: 0 0 5px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.ywraq-card__meta li {
    font-size: 0.82rem;
    color: #555;
}

.ywraq-card__meta-key {
    font-weight: 300;
}

.ywraq-card__meta-val {
    color: #474747;
}

/* SKU */
.ywraq-card__sku {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #999;
    letter-spacing: 0.02em;
}

/* ── Droite : quantité + subtotal + suppression ──────────── */
.ywraq-card__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Label quantité */
.ywraq-card__qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ywraq-card__qty-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #474747;
    letter-spacing: 0.04em;
}

.ywraq-card__qty-required {
    color: #c0392b;
    margin-left: 1px;
}

/* Input quantité WooCommerce */
.ywraq-card__qty .quantity {
    display: flex;
    align-items: center;
}

.ywraq-card__qty .quantity input.qty {
    width: 64px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #f9f8f4;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    background: #fff;
    color: #1a1a1a;
    -moz-appearance: textfield;
}

.ywraq-card__qty .quantity input.qty::-webkit-inner-spin-button,
.ywraq-card__qty .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Prix ligne */
.ywraq-card__subtotal {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Bouton supprimer */
.ywraq-card__remove .yith-ywraq-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.ywraq-card__remove .yith-ywraq-item-remove:hover {
    color: #c0392b;
    background: #fff0ee;
}

/* ── Totaux ──────────────────────────────────────────────── */
.ywraq-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 16px 24px;
    border: 1px solid #e8e8e8;
    border-top: none;
    background: #fafafa;
}

.ywraq-totals__row {
    display: flex;
    gap: 24px;
    font-size: 0.88rem;
    color: #555;
}

.ywraq-totals__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
    margin-top: 4px;
}

.ywraq-totals__label {
    min-width: 80px;
    text-align: right;
}

.ywraq-totals small.includes_tax {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
}

/* ── Boutons bas ─────────────────────────────────────────── */
.ywraq-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
}

.ywraq-actions__left,
.ywraq-actions__right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ── Addon card (WAPO) ───────────────────────────────────── */
.ywraq-card--addon {
    background: #fafafa;
    padding-left: 44px; /* indentation visuelle */
}

.ywraq-card--addon .ywraq-card__info {
    font-size: 0.85rem;
    color: #666;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 640px ) {
    .ywraq-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .ywraq-card__info {
        flex: 1 1 calc(100% - 100px);
    }

    .ywraq-card__right {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .ywraq-totals {
        padding: 12px 16px;
    }

    .ywraq-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ======================== Widget woo product ================================*/
.elementor-widget-premium-woo-products .premium-woo-product-actions-wrapper {
  display: none;
}

/* ============================ Contact form 7 ==============================*/
/* Reset before */
.woocommerce .wpcf7 form .form-row::after,
.woocommerce .wpcf7 form .form-row::before,
.woocommerce-page .wpcf7 form .form-row::after,
.woocommerce-page .wpcf7 form .form-row::before {
  content: none;
}

.woocommerce .wpcf7 form .form-row {
  margin: initial;
  padding: initial;
}

.ywraq-form-table-wrapper #ywraq-other-form h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Style du bouton d'upload de Logo */
.custom-file-upload {
  display: inline-block;
  cursor: pointer;
  background: transparent;
  color: #314867; /* Le vert de votre maquette */
  border: 2px solid #314867;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s;
  padding: 4px 8px;
  font-size: 14px;
  max-width: 230px;
}

.custom-file-upload input[type="file"] {
  display: none; /* Cache le bouton moche par défaut */
}

.custom-file-upload:hover {
  background: #314867;
  color: #fff;
}

.woocommerce .wpcf7 form .form-row select {
  border: 1px solid #ddd;
  color: #757575;
}

/* Transformation des Radio Buttons en "Chips" (Express, 15 jours...) */
.chips-group .wpcf7-list-item {
  display: inline-block;
  margin: 5px;
}

.chips-group input[type="radio"] {
  display: none;
}

.chips-group .wpcf7-list-item-label {
display: inline-block;
padding: 10px 20px;
border: 1px solid #ccc;
border-radius: 10px;
cursor: pointer;
background: white;
}

.chips-group input[type="radio"]:checked + .wpcf7-list-item-label {
border-color: #1a4d44;
color: #1a4d44;
background: #f4f9f8;
font-weight: bold;
}

/* Mise en page des colonnes */
.form-row.double-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .form-row.double-col {
      grid-template-columns: 1fr;
  }
}

.form-row.triple-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .form-row.triple-col {
      grid-template-columns: 1fr;
  }
}

.form-row { margin-bottom: 20px; }

.form-devis-container input, .form-devis-container textarea {
width: 100%;
padding: 6px;
border-radius: 8px;
border: 1px solid #ddd;
background: #fdfdfd;
margin-bottom: 8px;
}

/* Style global pour les groupes de boutons (Type de client ET Délais) */
.chips-group .wpcf7-list-item {
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
}

.type-client-group {
background: #fff;
padding: 0;
margin: 0;
display: inline-block;
border-radius: 25px;
margin-bottom: 12px;
}

.type-client-group.chips-group .wpcf7-list-item {
margin: 3px;
}

/* On cache le petit rond radio d'origine */
.chips-group input[type="radio"] {
display: none;
}

/* Style des boutons non cochés */
.chips-group .wpcf7-list-item-label {
display: inline-block;
padding: 10px 30px;
border: 1px solid #e1ddc5;
border-radius: 8px;
cursor: pointer;
background: #fff;
color: #474747;
transition: all 0.2s ease-in-out;
text-align: center;
min-width: 120px;
padding: 4px 12px;
}

.type-client-group.chips-group .wpcf7-list-item-label {
border-radius: 50px;
}

.type-client-group.chips-group .wpcf7-list-item-label {
border: 0;
}


/* Style du bouton quand il est sélectionné */
.chips-group input[type="radio"]:checked + .wpcf7-list-item-label {
border-color: #e1ddc5;
background-color: #e1ddc5;
color: #474747;
font-weight: 400;
padding: 4px 12px;
}

.form-row.submit-zone {
  text-align: center;
  margin-top: 2rem !important;
}

input.wpcf7-form-control.wpcf7-submit {
  background: #63A294;
  border-radius: 25px;
  color: #fff;
  font-weight: 400;
  padding: 12px 24px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border: 0;
  width: inherit;
}

input.wpcf7-form-control.wpcf7-submit:hover {
  background: #314867;
}

/* Petit effet au survol pour le côté interactif */
.chips-group .wpcf7-list-item-label:hover {
background-color: #f9f9f9;
border-color: #bbb;
}

.wpcf7-not-valid-tip {
font-size: 12px;
}
