/*
Theme Name: leenami-astra
Theme URI: https://leenami.fr/
Description: Thème enfant Astra développé exclusivement pour le site leenami.fr.  
Usage strictement exclusif – toute redistribution, reproduction ou réutilisation non autorisée est interdite.
Author: Emmanuel VITRY
Author URI: https://leenami.fr/
Template: astra
Version: 1.0.0
License: Usage strictement privé
License URI: https://leenami.fr/interdiction-de-redistribution
Text Domain: leenami-astra
*/

/* Met en surbrillance (fond coloré) le lien actif dans le menu Mon Compte (WooCommerce) */
body .woocommerce-MyAccount-navigation-link.is-active a {
	background-color: var(--ast-global-color-4); /* Utilise la couleur globale 4 du thème Astra */
}

/* Définie le fond blanc par défaut pour tous les liens du menu Mon Compte (non actifs) */
body .woocommerce-MyAccount-navigation-link a {
	background-color: white;
}

/* Applique un fond blanc et des bords arrondis au menu déroulant de tri des produits */
.woocommerce-js .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
	background-color: white;
	border-radius: 15px; /* Bords arrondis pour un style plus doux */
}

/* Change la couleur du texte des onglets (description, avis, etc.) sur la page produit */
.woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
	color: var(--ast-global-color-1); /* Utilise la couleur globale 1 du thème Astra */
}

/* Menu WIP: remove when menu is done*/
.menu-WIP-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  position: relative;
}

.menu-WIP-item {
  position: relative;
}

.menu-WIP-item > a {
  text-decoration: none;
  color: inherit;
}

.menu-WIP-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-top: 5px;
  z-index: 999;
}

.menu-WIP-item:hover > .menu-WIP-tooltip {
  opacity: 1;
}

.menu-WIP-compte .menu-WIP-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 6px;
}

.menu-WIP-compte:hover .menu-WIP-dropdown {
  display: block;
}

.menu-WIP-dropdown .menu-WIP-item {
  margin: 5px 0;
  position: relative;
}

.leenami-nav ul.menu-WIP-list {
  display: flex;
  align-items: center; /* Centrage vertical */
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leenami-nav .menu-WIP-item {
  display: flex;
  align-items: center; /* Centrage vertical des liens */
  position: relative;
}

.leenami-nav .menu-WIP-item a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

/* Lightbox Zoom Image */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 10px #000;
  border-radius: 8px;
}
