/* tk-fiche-variable.css — template canonique pour tout produit WooCommerce variable Takoori.
   Body class : tk-fiche-variable. Design flux normal (PATTERN_T18) : badge/pastilles/tableau
   sont deja dans le HTML servi au premier octet (buffer PHP cote serveur), donc aucun
   position:absolute ni padding devine requis — s'adapte a toute largeur sans breakpoint
   a maintenir. Remplace le pattern Georgia (tk-fiche-georgia) pour tout nouveau produit :
   Georgia reste sur son fichier dedie, non touche, pour zero risque sur une fiche en prod. */

body.tk-fiche-variable { background: var(--tk-bg); }
body.tk-fiche-variable .product { font-family: var(--tk-body); color: var(--tk-ink); }
body.tk-fiche-variable .product h1.product_title {
  font-family: var(--tk-display); font-weight: 800; letter-spacing: -.3px;
  color: var(--tk-ink); font-size: 27px; line-height: 1.2; margin: 0;
}
body.tk-fiche-variable .woocommerce-product-gallery {
  background: var(--tk-surface); border-radius: var(--tk-radius);
}

body.tk-fiche-variable .tk-badge-revendeur {
  display: inline-flex; align-items: center; gap: 7px; background: var(--tk-tint);
  color: var(--tk-accent-d); font-weight: 700; font-size: 12.5px; padding: 6px 12px;
  border-radius: 999px; font-family: var(--tk-body); margin-bottom: 12px;
}
body.tk-fiche-variable .tk-specs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
body.tk-fiche-variable .tk-specs-pills span {
  background: #fff; border: 1px solid var(--tk-line); border-radius: 999px;
  padding: 4px 10px; font-size: 11.5px; color: var(--tk-ink-2); font-family: var(--tk-body);
}

body.tk-fiche-variable .price, body.tk-fiche-variable .woocommerce-Price-amount {
  color: var(--tk-ink); font-weight: 800;
}
body.tk-fiche-variable .single_add_to_cart_button,
body.tk-fiche-variable button.single_add_to_cart_button {
  background: var(--tk-cta) !important; color: #fff !important; border: 0;
  border-radius: 999px; font-family: var(--tk-body); font-weight: 800;
  font-size: 16px; padding: 14px 28px; box-shadow: var(--tk-card-sh);
}
body.tk-fiche-variable .single_add_to_cart_button:hover { background: var(--tk-cta-h) !important; }

body.tk-fiche-variable .stock { color: var(--tk-stock); font-weight: 600; }
body.tk-fiche-variable .stock.out-of-stock,
body.tk-fiche-variable p.stock.available-on-backorder { color: #B07A2A; }

body.tk-fiche-variable .woocommerce-variation-availability { min-height: 46px; }
body.tk-fiche-variable .tk-stock-block { margin: 4px 0 16px; }
body.tk-fiche-variable .tk-stock-label {
  font-family: var(--tk-body); font-weight: 700; font-size: 14px; margin: 0 0 3px;
}
body.tk-fiche-variable .tk-stock-label.tk-stock-in { color: var(--tk-stock); }
body.tk-fiche-variable .tk-stock-label.tk-stock-backorder { color: #B07A2A; }
body.tk-fiche-variable .tk-stock-label.tk-stock-out { color: var(--tk-danger); }
body.tk-fiche-variable .tk-delivery-text {
  font-family: var(--tk-body); font-size: 13px; color: var(--tk-muted); margin: 0;
}
body.tk-fiche-variable .single_add_to_cart_button[disabled],
body.tk-fiche-variable .single_add_to_cart_button.disabled {
  background: var(--tk-line) !important; color: var(--tk-muted) !important;
}

body.tk-fiche-variable .woocommerce-product-details__short-description { color: var(--tk-ink); margin: 14px 0; }

/* Selecteurs : notre propre classe pour masquer le select natif, jamais posee par un
   plugin tiers -> pas de guerre de specificite CSS possible. */
body.tk-fiche-variable .tk-native-select-hidden {
  display: none !important;
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Plugin de swatches (cfvsw) : construit sa propre UI en parallele de la notre,
   toujours presente dans le DOM meme quand on la remplace. A masquer explicitement. */
body.tk-fiche-variable .cfvsw-swatches-container { display: none !important; }
body.tk-fiche-variable table.variations { border: 0; }
body.tk-fiche-variable table.variations label {
  font-family: var(--tk-body); font-weight: 700; font-size: 13px; color: var(--tk-ink-2);
  margin-bottom: 6px; display: block;
}
body.tk-fiche-variable table.variations td.value { padding: 0 0 18px; }

body.tk-fiche-variable .tk-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
body.tk-fiche-variable .tk-swatch {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--tk-line);
  background-size: cover; background-position: center; background-color: var(--tk-surface);
  font-family: var(--tk-display); font-weight: 700; color: var(--tk-ink); text-transform: uppercase;
}
body.tk-fiche-variable .tk-swatch:hover { box-shadow: 0 0 0 1px var(--tk-accent); }
body.tk-fiche-variable .tk-swatch.active { border-color: var(--tk-accent); box-shadow: 0 0 0 1px var(--tk-accent); }

body.tk-fiche-variable .tk-pills-select { display: flex; gap: 8px; flex-wrap: wrap; }
body.tk-fiche-variable .tk-pill-select {
  border: 1px solid var(--tk-line); border-radius: 999px; padding: 8px 16px;
  background: #fff; font-family: var(--tk-body); font-size: 13.5px; color: var(--tk-ink-2); cursor: pointer;
}
body.tk-fiche-variable .tk-pill-select:hover { border-color: var(--tk-accent); }
body.tk-fiche-variable .tk-pill-select.active {
  border-color: var(--tk-accent); background: var(--tk-tint); color: var(--tk-accent-d); font-weight: 700;
}

body.tk-fiche-variable .tk-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
body.tk-fiche-variable .tk-gallery-thumbs button {
  width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--tk-line);
  background: var(--tk-surface); padding: 0; cursor: pointer; overflow: hidden;
}
body.tk-fiche-variable .tk-gallery-thumbs button.active { border-color: var(--tk-accent); border-width: 2px; }
body.tk-fiche-variable .tk-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.tk-fiche-variable .flex-control-nav.flex-control-thumbs { display: none !important; }

body.tk-fiche-variable .tk-characteristics { margin: 32px 0; }
body.tk-fiche-variable .tk-tbl {
  width: 100%; max-width: 640px; border-collapse: collapse; font-size: 14.5px; font-family: var(--tk-body);
}
body.tk-fiche-variable .tk-tbl tr { border-bottom: 1px solid var(--tk-line); }
body.tk-fiche-variable .tk-tbl td { padding: 10px 8px; }
body.tk-fiche-variable .tk-tbl td:first-child { color: var(--tk-muted); width: 40%; }
body.tk-fiche-variable .tk-tbl td:last-child { color: var(--tk-ink); font-weight: 600; }


/* ===== COHERENCE ELEMENTOR — le theme builder (post-42253, single produit) impose sa
   propre couleur/police sur des elements natifs WooCommerce (h1, prix, onglets, bouton,
   quantite). Sans !important ici, sa specificite (.elementor-XXXXX .elementor-element...)
   gagne sur nos regles "propres". Bloc identique a celui valide sur Georgia. ===== */
body.tk-fiche-variable h1.product_title,
body.tk-fiche-variable .entry-summary h1 {
  color: var(--tk-ink) !important; font-family: var(--tk-display) !important;
}
body.tk-fiche-variable p.price,
body.tk-fiche-variable .woocommerce-Price-amount {
  color: var(--tk-ink) !important;
}
body.tk-fiche-variable .entry-summary p,
body.tk-fiche-variable .woocommerce-product-details__short-description,
body.tk-fiche-variable .woocommerce-Tabs-panel p,
body.tk-fiche-variable .woocommerce-Tabs-panel li {
  color: var(--tk-ink-2) !important; font-family: var(--tk-body) !important;
}
body.tk-fiche-variable .woocommerce-Tabs-panel h2,
body.tk-fiche-variable .woocommerce-Tabs-panel h3 {
  color: var(--tk-ink) !important; font-family: var(--tk-display) !important;
}
body.tk-fiche-variable .single_add_to_cart_button {
  background: var(--tk-cta) !important; color: #fff !important;
  font-family: var(--tk-body) !important; font-weight: 700 !important;
  border-radius: 999px !important; border: 0 !important;
}
body.tk-fiche-variable .single_add_to_cart_button:hover {
  background: var(--tk-cta-h) !important;
}
body.tk-fiche-variable .quantity input.qty {
  font-family: var(--tk-body) !important; color: var(--tk-ink) !important;
  border: 1px solid var(--tk-line) !important; border-radius: 999px !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs li.active,
body.tk-fiche-variable .woocommerce-tabs ul.tabs li:hover {
  color: var(--tk-accent-d) !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs li.active::before,
body.tk-fiche-variable .woocommerce-tabs ul.tabs li:hover::before {
  background: var(--tk-accent) !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs li a {
  font-family: var(--tk-body) !important; color: var(--tk-ink-2) !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs li.active a {
  color: var(--tk-accent-d) !important; font-weight: 600 !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs li {
  background: transparent !important;
}
body.tk-fiche-variable .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--tk-line) !important;
}
