/*
 Theme Name:   Fabric Child Theme
 Theme URI:    http://fabric.axiomthemes.com/
 Description:  Fabric Child Theme
 Author:       AxiomThemes
 Author URI:   http:///axiomthemes.com/
 Template:     fabric
 Version:      1.0
 Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
 Text Domain:  fabric
*/

/* =Theme customization starts here
------------------------------------------------------------ */

#menu-item-21682 .sub-menu {
  background-color: #f2eadb !important;
}

/*-- nav bar--*/

#menu-item-21682 {
  cursor: default;
}

/*-- page reservation -- */
.page-id-20985 .custom-product-grid {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.custom-product-card {
  padding: 15px;
  width: 300px;
  background-color: #c87952;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.custom-product-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
}

.custom-product-card .product-title {
  font-size: 18px;
  margin: 10px 0 5px 0;
  color: #f2eadb;
}

.custom-product-card .product-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* Prix */
.custom-product-card .product-price {
  font-weight: bold;
  margin-bottom: 10px;
  color: #f2eadb;
}

/* Compteur +/- */
.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.page-id-20985 .quantity-wrapper input {
  color: #f2eadb;
  width: 50px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 30px;
}

.page-id-20985 .qty-plus,
.page-id-20985 .qty-minus {
  background: #eab76c;
  color: #f2eadb;
  padding: 5px 5px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  user-select: none;
}

.page-id-20985 .qty-plus:hover,
.page-id-20985 .qty-minus:hover {
  background: #f2eadb;
  color: #c87952;
}

/* Bouton Ajouter au panier */
.page-id-20985 .add-to-cart-btn {
  background: #eab76c;
  color: #f2eadb;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 25px;
}

.page-id-20985 .add-to-cart-btn:hover {
  background: #f2eadb;
  color: #c87952;
}

ul.custom-cart-list {
  list-style: none;
}

button.remove-line,
button#clear-custom-cart {
  color: #f2eadb;
  background-color: #eab76c;
  cursor: pointer;
}

.remove-line:hover,
#clear-custom-cart:hover {
  background: #c87952;
}

div#custom-cart-fragment {
  padding: 15px;
  margin: 20px auto;
  background-color: rgba(242, 234, 219);
  color: #c87952;
  width: 80%;
  box-shadow: 12px 12px 2px 1px rgba(200, 121, 82, 0.2);
}

#custom-cart-fragment ul li {
  display: grid;
  grid-template-columns: 50% 25% 25%;
  margin: 15px 0;
}

/* Message produit ajouté */
.add-to-cart-message {
  display: block;
  margin-top: 5px;
  color: green;
  font-weight: bold;
  font-size: 14px;
}

/*liste des actions*/

div.custom-cart-actions button {
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}

button#transfer-to-woo {
  background: #ced8a9;
  color: #f2eadb;
}

div.custom-cart-actions button#transfer-to-woo:hover {
  background: #f2eadb;
  color: #c87952;
}

/* Ajouter dans functions.php ou dans votre CSS */
.mpr-step {
  transition: opacity 0.3s ease;
}

.mpr-quantity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.quantity-item {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.qty-minus,
.qty-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #c87952;
  background: white;
  color: #c87952;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-minus:hover,
.qty-plus:hover {
  background: #c87952;
  color: white;
}

.qty-controls input {
  width: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: none;
  background: transparent;
}

/* Calendrier : dates disponibles vs indisponibles */
.ui-datepicker .available-date a {
  background: #d1fae5 !important;
  color: #065f46 !important;
  font-weight: bold;
}

.ui-datepicker .unavailable-date a {
  background: #fee2e2 !important;
  color: #991b1b !important;
  text-decoration: line-through;
  pointer-events: none;
}

.mpr-btn-primary {
  background: #c87952;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.mpr-btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.mpr-btn-secondary {
  background: #6b7280;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* décalage progressif pour chaque carte */
.page-id-20985 .custom-product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.page-id-20985 .custom-product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.page-id-20985 .custom-product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.page-id-20985 .custom-product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.page-id-20985 .custom-product-card:nth-child(5) {
  animation-delay: 0.5s;
}
/* continue selon le nombre de cartes */

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

/* page panier */
.shop_table_checkout_review .cart-subtotal {
  display: none;
}
.shop_table_checkout_review .order-total td {
  color: #c87952 !important;
}
.bar_cart,
.bar_payment,
.bar_order {
  font-family: "Ruda", sans-serif;
}
.bar_cart.active {
  color: #c87952;
}
.woocommerce_status_bar .active .num {
  background-color: #c87952;
  font-family: "Ruda", sans-serif;
  font-weight: bold;
  font-size: 18px;
}
.woocommerce_status_bar .num {
  background-color: #f0f0f0;
  color: #666;
  font-family: "Ruda", sans-serif;
  font-weight: bold;
  font-size: 18px;
}

.woocommerce table.shop_table tr:nth-child(n + 1) th,
.woocommerce table.shop_table tr:nth-child(n + 1) td,
.woocommerce table.shop_table td {
  font-family: "Ruda", sans-serif;
  background-color: inherit;
}

.woocommerce .woocommerce-cart-form table.shop_table tbody a {
  font-family: "Ruda", sans-serif;
}
.woocommerce .woocommerce-cart-form table.shop_table tbody a:hover {
  color: #c87952;
}
.woocommerce
  .woocommerce-cart-form
  table.shop_table
  tbody
  .product-price
  span.amount {
  font-family: "Ruda", sans-serif;
}
.woocommerce .woocommerce-cart-form table.shop_table tbody span.amount,
.woocommerce
  .woocommerce-cart-form
  table.shop_table
  tbody
  span.amount
  .woocommerce-Price-currencySymbol {
  font-family: "Ruda", sans-serif;
}
.woocommerce a.remove,
.woocommerce a.remove:hover {
  color: #c87952;
}

.woocommerce
  .woocommerce-cart-form
  table.shop_table
  .woo-actions-inner
  .button.continue_shopping {
  padding: 10px 50px;
  background-color: #c87952;
  color: #f2eadb;
  border-radius: 25px;
  font-family: "Ruda", sans-serif;
}
.woocommerce
  .woocommerce-cart-form
  table.shop_table
  .woo-actions-inner
  .button.continue_shopping:hover {
  background-color: #ffffff;
  color: #c87952;
}

.woocommerce .cart-collaterals h2,
.woocommerce-page .cart-collaterals h2 {
  font-family: "Tropicana", sans-serif;
}

.woocommerce .cart_totals table.shop_table tr th {
  background-color: #c87952 !important;
  font-family: "Ruda", sans-serif;
  color: #f2eadb;
}

.woocommerce .cart-collaterals .order-total span.amount {
  font-family: "Ruda", sans-serif;
  color: #c87952;
}

.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
  padding: 20px 50px;
  background-color: #ced8a9;
  color: #ffffff;
  border-radius: 25px;
  font-family: "Ruda", sans-serif;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
  background-color: #ffffff;
  color: #ced8a9;
}
.woocommerce .order_details.woocommerce-thankyou-order-details li strong {
  font-family: "Ruda", sans-serif;
}
.shop_table_order_details table.shop_table th span.amount,
.shop_table_order_details table.shop_table th *,
.shop_table_order_details table.shop_table td span.amount,
.shop_table_order_details table.shop_table td * {
  font-family: "Ruda", sans-serif;
}

.shop_table_order_details tbody tr:nth-child(5) {
  display: none;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  background-color: inherit !important;
}

.woocommerce .order_details.woocommerce-thankyou-order-details {
  background-color: inherit !important;
  padding: 0px;
}

a.continue_shopping {
  display: none !important;
}

/* accueil services */
.sc_icons .sc_icons_item_title,
.sc_icons .sc_icons_item_title a {
  font-family: "Tropicana", sans-serif;
}
.sc_icons .sc_icons_item_title span,
.sc_icons .sc_icons_item_description span {
  font-family: "Ruda", sans-serif;
}
.sc_icons .sc_icons_item .sc_icons_item_more_link .link_text {
  font-family: "Ruda", sans-serif;
}

/* --- NOUVEAU DESIGN QUANTITÉS PANIER --- */

/* Conteneur global */
.mpr-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 2px solid #c87952; /* Bordure orange globale */
  border-radius: 25px; /* Forme de pilule */
  overflow: hidden;
  background: #fff;
  height: 40px;
}

/* L'input au milieu */
.mpr-quantity-wrapper input.qty {
  width: 50px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield; /* Cache flèches Firefox */
}
.mpr-quantity-wrapper input.qty::-webkit-outer-spin-button,
.mpr-quantity-wrapper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Cache flèches Chrome */
  margin: 0;
}

/* Les boutons +/- */
.mpr-qty-btn {
  width: 35px !important;
  height: 100% !important;
  background: #c87952 !important;
  border: none !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
  padding: 16px 25px !important;
}

.mpr-qty-btn:hover {
  background: #fdf2ea !important; /* Fond légèrement orange au survol */
}

/* Cacher le bouton "Mettre à jour le panier" natif de Woo */
button[name="update_cart"] {
  display: none !important;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
  .mpr-quantity-wrapper {
    height: 35px;
  }
  .mpr-qty-btn {
    width: 30px;
  }
}

/* --- STYLE BOUTON DÉSACTIVÉ --- */
.mpr-qty-btn:disabled {
  opacity: 0.3; /* Rend le bouton transparent/pâle */
  cursor: not-allowed; /* Affiche un sens interdit au survol */
  background-color: #f5f5f5; /* Fond gris */
  color: #ccc; /* Texte gris */
  pointer-events: none; /* Empêche tout clic physique */
  border-color: #ddd; /* Bordure grise */
}
