/* =====================================================================
   Hemera — Fiche produit (v1.2.8)
   Reproduit la maquette : carte unique (photo + résumé), onglets en
   pastilles centrés, « Produits similaires » en grille de 4.
   Chargée en dernier : elle remplace les anciennes couches de règles.
   ===================================================================== */
html:root body.hemera-site.single-product { --hpdp-card-w: 1104px; --hpdp-wide-w: 1296px; --hpdp-ink:#2a1720; --hpdp-gold:#bd8c25; --hpdp-gold-dark:#956818; --hpdp-line:#ead8bd; --hpdp-navy:#1f3556; --hpdp-muted:#a39a9d; }

/* ---------- Fil d'Ariane ---------- */
html:root body.hemera-site.single-product .woocommerce-breadcrumb{
  width:min(var(--hpdp-card-w),calc(100vw - 40px))!important;max-width:none!important;
  margin:30px auto 22px!important;padding:0!important;
  font-size:11px!important;letter-spacing:.06em;text-transform:uppercase;color:#8a7f83!important;
}
html:root body.hemera-site.single-product .woocommerce-breadcrumb a{color:#8a7f83!important;text-decoration:none}
html:root body.hemera-site.single-product .woocommerce-breadcrumb a:hover{color:var(--hpdp-gold-dark)!important}

/* ---------- Grille générale ---------- */
html:root body.hemera-site.single-product .ct-container,html:root body.hemera-site.single-product #primary,html:root body.hemera-site.single-product .content-area,html:root body.hemera-site.single-product .woocommerce,html:root body.hemera-site.single-product .site-main{max-width:none!important}
html:root body.hemera-site.single-product div.product.type-product{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:56px!important;row-gap:0!important;
  width:min(var(--hpdp-card-w),calc(100vw - 40px))!important;max-width:none!important;
  margin:0 auto 60px!important;padding:0!important;float:none!important;
  position:relative!important;left:auto!important;transform:none!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  align-items:start!important;box-sizing:border-box!important;
}
html:root body.hemera-site.single-product div.product.type-product::before{
  content:""!important;display:block!important;
  grid-column:1/-1!important;grid-row:2!important;align-self:stretch;z-index:0;
  background:#fffdfa;border:1px solid #efe3d1;border-radius:18px;
  box-shadow:0 12px 34px rgba(42,23,32,.06);
}
html:root body.hemera-site.single-product div.product.type-product::after{display:none!important;content:none!important}
html:root body.hemera-site.single-product div.product.type-product > *{grid-column:1/-1;position:relative;z-index:1}
html:root body.hemera-site.single-product div.product.type-product > .woocommerce-notices-wrapper{grid-row:1;margin:0 0 14px}
html:root body.hemera-site.single-product div.product.type-product > .woocommerce-notices-wrapper:empty{display:none}
html:root body.hemera-site.single-product .product-entry-wrapper{display:contents!important}

/* ---------- Carte : photo ---------- */
html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery,
html:root body.hemera-site.single-product div.product.type-product .ct-product-gallery-container,
html:root body.hemera-site.single-product div.product.type-product div.images{
  grid-column:1!important;grid-row:2!important;
  width:auto!important;max-width:none!important;min-width:0!important;float:none!important;
  margin:44px 0 44px 56px!important;padding:0!important;
  border:0!important;box-shadow:none!important;background:transparent!important;
  border-radius:20px!important;overflow:hidden!important;position:relative!important;z-index:1!important;
}
html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery__wrapper,
html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery__image,
html:root body.hemera-site.single-product div.product.type-product .ct-media-container,
html:root body.hemera-site.single-product div.product.type-product .flexslider,
html:root body.hemera-site.single-product div.product.type-product .flex-viewport{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  border-radius:20px!important;overflow:hidden!important;background:#f6eee6!important;
}
html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery img,
html:root body.hemera-site.single-product div.product.type-product .ct-product-gallery-container img,
html:root body.hemera-site.single-product div.product.type-product .wp-post-image{
  display:block!important;width:100%!important;max-width:none!important;height:auto!important;
  aspect-ratio:1/.97!important;object-fit:cover!important;border-radius:20px!important;
}
html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery__trigger{top:14px!important;right:14px!important}

/* ---------- Carte : résumé ---------- */
html:root body.hemera-site.single-product div.product.type-product div.summary{
  grid-column:2!important;grid-row:2!important;
  width:auto!important;max-width:none!important;min-width:0!important;float:none!important;
  margin:44px 56px 44px 0!important;padding:0!important;position:relative!important;z-index:1!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
}
html:root body.hemera-site.single-product .hemera-product-category-badge{
  display:inline-flex;margin:0 0 14px!important;padding:6px 13px!important;border-radius:999px;
  background:#f4eadc!important;color:#a8801f!important;font-size:11px!important;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;line-height:1.2;
}
html:root body.hemera-site.single-product .summary .product_title{
  font-family:Georgia,"Times New Roman",serif!important;font-weight:400!important;color:var(--hpdp-ink)!important;
  font-size:clamp(32px,3.3vw,46px)!important;line-height:1.1!important;letter-spacing:0!important;
  margin:0 0 16px!important;width:auto!important;
}
html:root body.hemera-site.single-product .summary p.price,html:root body.hemera-site.single-product .summary span.price{
  display:block;margin:0 0 18px!important;font-size:30px!important;font-weight:700!important;
  color:var(--hpdp-navy)!important;line-height:1.2;
}
html:root body.hemera-site.single-product .summary p.price .amount,html:root body.hemera-site.single-product .summary span.price .amount{color:inherit!important}
html:root body.hemera-site.single-product .summary .woocommerce-product-details__short-description{
  max-width:none!important;margin:0 0 26px!important;
  font-size:16px!important;line-height:1.85!important;color:#3b2f34!important;
}
html:root body.hemera-site.single-product .summary .woocommerce-product-details__short-description p{margin:0}

/* ---------- Quantité / panier / favoris ---------- */
html:root body.hemera-site.single-product .summary form.cart{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  flex-wrap:nowrap!important;gap:14px!important;margin:0 0 30px!important;padding:0!important;
}
html:root body.hemera-site.single-product .summary form.cart .quantity{
  display:inline-flex!important;align-items:center;width:auto!important;margin:0!important;
  border:1px solid #d9cfc4!important;border-radius:8px!important;background:#fff;overflow:hidden;
}
html:root body.hemera-site.single-product .summary form.cart .quantity input.qty{
  width:46px!important;height:48px!important;min-height:0!important;padding:0!important;border:0!important;
  background:transparent!important;text-align:center;font-size:13px!important;box-shadow:none!important;
  -moz-appearance:textfield;
}
html:root body.hemera-site.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
html:root body.hemera-site.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html:root body.hemera-site.single-product .summary form.cart .quantity .ct-increase,
html:root body.hemera-site.single-product .summary form.cart .quantity .ct-decrease,
html:root body.hemera-site.single-product .summary form.cart .quantity .quantity-nav,
html:root body.hemera-site.single-product .summary form.cart .quantity button{
  position:static!important;width:44px!important;height:48px!important;display:flex!important;
  align-items:center;justify-content:center;background:transparent!important;border:0!important;
  color:var(--hpdp-ink)!important;box-shadow:none!important;
}
html:root body.hemera-site.single-product .summary form.cart .quantity .ct-decrease{order:-1}
html:root body.hemera-site.single-product .summary form.cart .single_add_to_cart_button,
html:root body.hemera-site.single-product .summary form.cart button.button.alt{
  flex:0 0 auto!important;width:auto!important;min-width:280px;min-height:50px!important;
  padding:14px 34px!important;border:0!important;border-radius:999px!important;
  background:var(--hpdp-gold)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;
  box-shadow:0 8px 18px rgba(139,94,20,.16)!important;
}
html:root body.hemera-site.single-product .summary form.cart .single_add_to_cart_button:hover{background:var(--hpdp-gold-dark)!important}

html:root body.hemera-site.single-product .summary .tinv-wraper,html:root body.hemera-site.single-product .summary .bdc-ti-wishlist,html:root body.hemera-site.single-product .summary .hemera-favorite-icon{
  display:block!important;width:auto!important;margin:0!important;position:static!important;
}
/* Un seul contour visible : le bouton porte sa bordure, pas son conteneur. */
html:root body.hemera-site.single-product .summary .tinv-wraper,
html:root body.hemera-site.single-product .summary .tinv-wishlist,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist{
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
}
html:root body.hemera-site.single-product .summary .tinv-wraper:focus,
html:root body.hemera-site.single-product .summary .tinv-wraper:focus-within,
html:root body.hemera-site.single-product .summary .tinv-wishlist:focus,
html:root body.hemera-site.single-product .summary .tinv-wishlist:focus-within,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist:focus,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist:focus-within{
  outline:0!important;box-shadow:none!important;
}
html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist_button,
html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist-text{
  color:var(--hpdp-ink)!important;font-size:14px!important;font-weight:600!important;text-decoration:none!important;
}
html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist_button{
  display:inline-flex!important;align-items:center;justify-content:flex-start;gap:10px;
  min-width:280px;min-height:46px;padding:10px 22px!important;box-sizing:border-box;
  border:1px solid #efe3d1!important;border-radius:999px!important;background:#fffdfa!important;
}
html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist_button:hover{border-color:var(--hpdp-gold)!important}
html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist_button::before{margin:0!important;font-size:16px}
/* Fiche produit : réafficher le libellé masqué par les styles historiques du catalogue. */
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button{
  display:inline-flex!important;place-items:initial!important;gap:10px!important;
  width:auto!important;height:auto!important;min-width:280px!important;min-height:46px!important;
  font-size:14px!important;
}
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button span.tinvwl_add_to_wishlist-text{
  display:inline!important;visibility:visible!important;opacity:1!important;
  width:auto!important;height:auto!important;position:static!important;
  font-size:14px!important;line-height:1.4!important;color:var(--hpdp-ink)!important;
}

/* ---------- Méta (UGS / Catégorie / Étiquettes) ---------- */
html:root body.hemera-site.single-product .summary .product_meta{
  margin:0!important;padding:22px 0 0!important;border-top:1px solid #eadfd0!important;
  font-size:11.5px!important;line-height:1.5!important;letter-spacing:.03em;
}
html:root body.hemera-site.single-product .summary .product_meta > span{
  display:block;margin:0 0 7px!important;text-transform:uppercase;font-weight:700;color:var(--hpdp-ink)!important;
}
html:root body.hemera-site.single-product .summary .product_meta > span:last-child{margin-bottom:0!important}
html:root body.hemera-site.single-product .summary .product_meta > span a,html:root body.hemera-site.single-product .summary .product_meta > span .sku{
  font-weight:400!important;color:var(--hpdp-muted)!important;text-decoration:none!important;
}
html:root body.hemera-site.single-product .summary .product_meta > span a:hover{color:var(--hpdp-gold-dark)!important}

/* ---------- Onglets ---------- */
html:root body.hemera-site.single-product div.product.type-product .woocommerce-tabs,
html:root body.hemera-site.single-product div.product.type-product section.related,
html:root body.hemera-site.single-product div.product.type-product section.up-sells{
  grid-column:1/-1!important;justify-self:center;
  width:min(var(--hpdp-wide-w),calc(100vw - 40px))!important;max-width:none!important;
  margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}
html:root body.hemera-site.single-product div.product.type-product .woocommerce-tabs{
  grid-row:3!important;margin-top:56px!important;margin-bottom:56px!important;
  padding:26px 66px 40px!important;background:#fffdfa!important;border:1px solid #efe3d1!important;
  border-radius:16px!important;box-shadow:0 10px 28px rgba(42,23,32,.04)!important;
}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs{
  display:flex!important;justify-content:center;align-items:flex-end;gap:2px;flex-wrap:wrap;
  margin:0 0 26px!important;padding:0!important;list-style:none;border-bottom:1px solid #e6dccd!important;overflow:visible!important;
}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs::before,html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs::after{display:none!important;content:none!important}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li{
  margin:0 0 -1px!important;padding:0!important;border:1px solid #e6dccd!important;border-radius:999px!important;
  background:#fff!important;box-shadow:none!important;
}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li::before,html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li::after{display:none!important;content:none!important}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li a{
  display:block;padding:9px 18px!important;font-size:10.5px!important;font-weight:700!important;
  letter-spacing:.04em;text-transform:uppercase;color:var(--hpdp-ink)!important;
}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li.active{background:#f4eadc!important;border-color:#dcc7a2!important}
html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li.active a{color:#8a6a2f!important}
html:root body.hemera-site.single-product .woocommerce-tabs .panel{margin:0!important;padding:0!important;font-size:14px;line-height:1.8;color:#3b2f34}
html:root body.hemera-site.single-product .woocommerce-tabs .panel > h2:first-child{display:none}
html:root body.hemera-site.single-product .woocommerce-tabs .panel h2,html:root body.hemera-site.single-product .woocommerce-tabs .panel h3{
  font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--hpdp-ink);
  font-size:clamp(28px,2.7vw,40px);line-height:1.15;margin:18px 0 18px;
}
html:root body.hemera-site.single-product .woocommerce-tabs .panel p{margin:0 0 16px}
html:root body.hemera-site.single-product .woocommerce-tabs .panel strong{color:var(--hpdp-ink)}

/* ---------- Produits similaires ---------- */
html:root body.hemera-site.single-product div.product.type-product section.related{grid-row:4!important;margin-top:0!important;margin-bottom:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html:root body.hemera-site.single-product section.related > h2{
  font-family:Georgia,"Times New Roman",serif!important;font-weight:400!important;color:var(--hpdp-ink)!important;
  font-size:clamp(28px,2.7vw,38px)!important;line-height:1.1!important;margin:0 0 22px!important;text-align:left!important;
}
html:root body.hemera-site.single-product section.related ul.products{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;
  margin:0!important;padding:0!important;
}
html:root body.hemera-site.single-product section.related ul.products::before,html:root body.hemera-site.single-product section.related ul.products::after{display:none!important;content:none!important}
html:root body.hemera-site.single-product section.related ul.products li.product{
  width:auto!important;max-width:none!important;margin:0!important;float:none!important;
  background:#fffdfa!important;border:1px solid #efe3d1!important;border-radius:12px!important;overflow:hidden;box-shadow:none!important;
  display:flex!important;flex-direction:column;position:relative;
}
html:root body.hemera-site.single-product section.related ul.products li.product .woocommerce-loop-product__title{font-family:inherit!important;font-weight:600!important;font-size:16px!important;line-height:1.35!important;color:var(--hpdp-ink)!important;padding:14px 16px 6px!important;margin:0!important}
html:root body.hemera-site.single-product section.related ul.products li.product .price{font-size:12px!important;font-weight:400!important;color:#6f6367!important;padding:0 16px 8px!important;margin:0!important}
html:root body.hemera-site.single-product section.related ul.products li.product .hemera-loop-excerpt{font-size:13px!important;line-height:1.55;color:#4a3d42;padding:0 16px!important;margin:0 0 8px!important}
html:root body.hemera-site.single-product section.related ul.products li.product .button{align-self:flex-start;margin:6px 16px 16px!important;padding:9px 20px!important;border-radius:999px!important;background:var(--hpdp-gold)!important;border:0!important;color:#fff!important;font-size:12px!important;font-weight:700!important;min-height:0!important}

/* ---------- Tablette / mobile ---------- */
@media (max-width:1100px){
  html:root body.hemera-site.single-product div.product.type-product{column-gap:32px!important}
  html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery,
  html:root body.hemera-site.single-product div.product.type-product .ct-product-gallery-container{margin-left:32px!important}
  html:root body.hemera-site.single-product div.product.type-product div.summary{margin-right:32px!important}
  html:root body.hemera-site.single-product section.related ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:782px){
  html:root body.hemera-site.single-product div.product.type-product{grid-template-columns:minmax(0,1fr)!important;column-gap:0!important}
  html:root body.hemera-site.single-product div.product.type-product::before{grid-row:2/4!important}
  html:root body.hemera-site.single-product div.product.type-product .woocommerce-product-gallery,
  html:root body.hemera-site.single-product div.product.type-product .ct-product-gallery-container,
  html:root body.hemera-site.single-product div.product.type-product div.images{grid-column:1!important;grid-row:2!important;margin:20px 20px 0!important}
  html:root body.hemera-site.single-product div.product.type-product div.summary{grid-column:1!important;grid-row:3!important;margin:24px 20px 24px!important}
  html:root body.hemera-site.single-product div.product.type-product .woocommerce-tabs{grid-row:4!important;padding:20px 18px 26px!important;margin-top:36px!important;margin-bottom:36px!important}
  html:root body.hemera-site.single-product div.product.type-product section.related{grid-row:5!important}
  html:root body.hemera-site.single-product .summary form.cart .single_add_to_cart_button,html:root body.hemera-site.single-product .summary .tinvwl_add_to_wishlist_button{min-width:0;width:100%!important}
  html:root body.hemera-site.single-product .woocommerce-tabs ul.tabs li a{padding:8px 12px!important}
  html:root body.hemera-site.single-product section.related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
}
@media (max-width:480px){
  html:root body.hemera-site.single-product section.related ul.products{grid-template-columns:minmax(0,1fr)!important}
}


/* v1.2.8 — Le libellé des favoris reste noir même après ajout à la liste. */
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:hover,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:focus,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:active,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-make-remove {
  color:#2a1720!important;
}
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button span,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:hover .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:focus .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:active .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list .tinvwl_add_to_wishlist-text,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-make-remove .tinvwl_add_to_wishlist-text {
  color:#2a1720!important;
}
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button::before,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button:hover::before,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before,
html:root body.hemera-site.single-product .summary .bdc-ti-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-make-remove::before {
  color:#2a1720!important;
}
