/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.elementor-widget-text-editor p:last-child {
    margin-bottom: 0 !important;
}



/* WooCommerce Variations Style */

.prix-sur-demande {
  color: #2f4a5c;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.3px;
}


/* 1. Conteneur principal */
.elementor-add-to-cart {
  width: 100%;
  max-width: 100%;           /* largeur étendue */
  margin: 0 auto 40px;
  padding: 30px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 2. Mise en grille des variations */
.elementor-add-to-cart .variations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 32px;
  margin-bottom: 24px;
}
.elementor-add-to-cart .variations th.label {
  margin-bottom: 4px;
  font-weight: 600;
  color: #333;
  text-align: left;
}
.elementor-add-to-cart .variations td.value {
  margin-bottom: 0;
}

/* 3. Sélecteurs custom */
.elementor-add-to-cart select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #0077c8;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.elementor-add-to-cart select:hover {
  border-color: #005fa3;
}
.elementor-add-to-cart select:focus {
  outline: none;
  border-color: #005fa3;
  box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.2);
}

/* 4. Quantité et bouton */
.elementor-add-to-cart .single_variation_wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 16px;
}
.elementor-add-to-cart .quantity input.qty {
  width: 70px;
  padding: 10px;
  font-size: 1rem;
  text-align: center;
  border: 2px solid #0077c8;
  border-radius: 6px;
}

/* 5. Bouton “Ajouter au panier” */
.elementor-add-to-cart .single_add_to_cart_button {
  flex: 1;
  background: #0077c8;
  color: #fff !important;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}
.elementor-add-to-cart .single_add_to_cart_button:not(.disabled):hover {
  background: #005fa3;
  transform: translateY(-1px);
}
.elementor-add-to-cart .single_add_to_cart_button.disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Désactiver le background hover/active sur les lignes impaires */
table tbody > tr > td,
table tbody > tr > th {
  background-color: transparent !important;
}

table tbody > tr:hover > td,
table tbody > tr:hover > th,
table tbody > tr:active > td,
table tbody > tr:active > th {
  background-color: transparent !important;
}


/*
//////////////////////////////////////////////////
YITH CSS CUSTOMIZATION (start)
//////////////////////////////////////////////////
*/