/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

/* === Bordure vignettes swatch : or #FFE1B6 (meme couleur que le bouton au survol) === */
:root {
  --wcboost-swatches-color-border-selected: #FFE1B6;
}

/* Survol : bordure bleue au lieu de noire */
.single-product div.product table.variations .wcboost-variation-swatches--round .wcboost-variation-swatches__item:hover:not(.disabled) {
  border-color: #FFE1B6 !important;
}

/* Selectionnee : bordure bleue fine (1px border, pas de box-shadow ring) */
.single-product div.product table.variations .wcboost-variation-swatches--round .wcboost-variation-swatches__item.selected {
  border-color: #FFE1B6 !important;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Override plugin box-shadow pour eviter double bordure */
.wcboost-variation-swatches__item.selected {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
}
.wcboost-variation-swatches__item:hover {
  box-shadow: none !important;
}

/* === Vignettes swatch : taille reduite en mobile uniquement (75px) === */
@media screen and (max-width: 767px) {
  .wcboost-variation-swatches__item {
    --wcboost-swatches-item-width: 75px !important;
    --wcboost-swatches-item-height: 75px !important;
  }
}

/* === Ask a question / Delivery & Return / Share : alignement horizontal force en mobile === */
@media screen and (max-width: 767px) {
  .ecomus-product-extra-link {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 14px;
  }
  .ecomus-product-extra-link .ecomus-extra-link-item {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    white-space: nowrap;
  }
  .ecomus-product-extra-link .ecomus-svg-icon {
    font-size: 14px !important;
    margin-right: 3px !important;
  }
}

/* === Texte 'Paiement 100% Securise' : taille et graisse reduites === */
.single-product-extra-content .ecomus-icon-box-widget__title {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* === Icones cartes de paiement (payments.png) : taille reduite === */
.single-product-extra-content .em-col img {
  max-width: 200px;
  height: auto;
}

/* === Couleur prix promo et badge pourcentage : rouge -> or/beige de la palette (#FFE1B6) === */
body div.product .ecomus-product-price .price ins,
.single-product div.product .ecomus-product-price .price ins {
  color: #2A2A2A !important;
}
body div.product .ecomus-product-price .price .sale-off,
.single-product div.product .ecomus-product-price .price .sale-off {
  background-color: #FFE1B6 !important;
}

/* === Bouton 'Ajouter au panier' - section Coup de Coeur (haut de page Offres & Coffrets) : noir -> bleu palette arrondi, meme style que les onglets/pastilles === */
.elementor-element-c97783e .single_add_to_cart_button.button,
.elementor-element-ac28bd6 .single_add_to_cart_button.button,
.elementor-element-9a70291 .single_add_to_cart_button.button,
.elementor-element-94e8b74 .single_add_to_cart_button.button,
.elementor-element-c144872 .single_add_to_cart_button.button {
  background-color: #2A2A2A !important;
  border-color: #2A2A2A !important;
  border-radius: 25px !important;
  color: #ffffff !important;
}
.elementor-element-c97783e .single_add_to_cart_button.button:hover,
.elementor-element-ac28bd6 .single_add_to_cart_button.button:hover,
.elementor-element-9a70291 .single_add_to_cart_button.button:hover,
.elementor-element-94e8b74 .single_add_to_cart_button.button:hover,
.elementor-element-c144872 .single_add_to_cart_button.button:hover {
  background-color: #FFE1B6 !important;
  border-color: #FFE1B6 !important;
  color: #ffffff !important;
}

/* === Espace entre la barre de navigation et la 1ere section (haut de page Offres & Coffrets) === */
/* Base (25% de reduction) : 54px -> 40.5px */
/* Bureau + tablette : 15% de reduction supplementaire -> 40.5px * 0.85 = 34.4px */
.page-id-8309 .site-content {
  padding-top: 34.4px !important;
}
/* Mobile uniquement : 30% de reduction supplementaire (x3) -> 22.8px * 0.70 = 16px */
@media screen and (max-width: 767px) {
  .page-id-8309 .site-content {
    padding-top: 16px !important;
  }
}

/* === Titre produit (widget Coup de Coeur / featured-product) : meme style que la vraie page produit === */
/* Ce widget rend le titre en h6 (pas h1) et sans classe .single-product, donc la regle existante dans functions.php ne s'appliquait pas ici */
.product_title.entry-title {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 0.8px currentColor !important;
  text-stroke: 0.8px currentColor !important;
  paint-order: stroke fill !important;
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor !important;
  letter-spacing: 0.02em !important;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .product_title.entry-title {
    font-size: 31px !important;
  }
}
@media screen and (max-width: 767px) {
  .product_title.entry-title {
    font-size: 30px !important;
  }
}

/* === Poser une question / Livraison & Retour / Partager : graisse reduite a 400 sur toutes les tailles === */
.ecomus-product-extra-link .ecomus-extra-link-item {
  font-weight: 400 !important;
}
