/* =====================================================================
   Fiches produits « éditoriales » — La Main sur la Tête
   Inspirées de la page L'Histoire (2 colonnes aérées, titre Oswald 50px).
   Chargé uniquement sur les fiches produits (enfold-child/functions.php).
   04/10/2026 — Johnny Lo
   ===================================================================== */

/* ---------- Mise en page générale : deux colonnes égales ---------- */
#top.single-product .template-shop.content { padding-top: 50px; padding-bottom: 30px; }
#top.single-product div.product .single-product-main-image {
	width: calc(50% - 26px) !important;
	margin: 0 52px 0 0 !important;
	float: left;
}
#top.single-product div.product .single-product-summary {
	width: calc(50% - 26px) !important;
	margin: 0 !important;
	float: left;
}
#top.single-product div.product .single-product-main-image .sidebar { display: none; }

/* ---------- Image ---------- */
#top.single-product .single-product-main-image .woocommerce-product-gallery { margin: 0; }
#top.single-product .single-product-main-image a.lightbox-added { display: block; border: 0; padding: 0; background: none; }
#top.single-product .single-product-main-image img {
	display: block; width: 100%; height: auto;
	border-radius: 3px;
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
}
#top.single-product .single-product-main-image .image-overlay { border-radius: 3px; }
#top.single-product .single-product-main-image .thumbnails { margin-top: 14px; }
#top.single-product .single-product-main-image .thumbnails img { box-shadow: none; }
.lmslt-product-credit {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 13px; color: #999; letter-spacing: .5px;
	margin: 12px 0 0; text-align: right;
}

/* ---------- Étiquette de catégorie ---------- */
.lmslt-product-cat {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 14px; line-height: 1.4; font-weight: 400;
	letter-spacing: 3px; text-transform: uppercase;
	color: #de8f83;
	margin: 0 0 14px;
}

/* ---------- Titre : identique au « La Main sur la Tête » de L'Histoire ---------- */
#top.single-product div.product h1.product_title {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 50px; line-height: 55px;
	font-weight: 300; letter-spacing: 1px;
	color: #222; text-transform: none;
	margin: 0 0 22px; padding: 0;
}

/* ---------- Prix ---------- */
#top.single-product div.product .summary p.price,
#top.single-product div.product .summary p.price span {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 30px; line-height: 1.2; font-weight: 400;
	color: #de8f83;
}
#top.single-product div.product .summary p.price { margin: 0 0 24px; }

/* ---------- Description courte (chapeau) ---------- */
#top.single-product .woocommerce-product-details__short-description p {
	font-size: 20px; line-height: 33px; color: #666;
	text-align: justify; margin: 0 0 17px;
}

/* ---------- Bouton d'achat (sans quantité) ---------- */
#top.single-product div.product form.cart { margin: 30px 0 20px; padding: 0; border: 0; }
#top.single-product div.product form.cart .quantity { display: none !important; }
#top.single-product div.product form.cart .single_add_to_cart_button,
#top.single-product div.product form.cart .button.single_add_to_cart_button {
	display: inline-block; width: auto; float: none;
	margin: 0; padding: 17px 46px;
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 17px; line-height: 1; font-weight: 400;
	letter-spacing: 2px; text-transform: uppercase;
	color: #fff; background: #de8f83 !important;
	border: 0; border-radius: 3px;
	transition: background-color .25s ease, transform .25s ease;
}
#top.single-product div.product form.cart .single_add_to_cart_button:hover {
	background: #222 !important; transform: translateY(-1px);
}

/* ---------- Informations pratiques ---------- */
.lmslt-product-infos {
	list-style: none; margin: 0 0 6px; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 26px;
}
#top .lmslt-product-infos li {
	display: flex; align-items: center; gap: 10px;
	margin: 0; padding: 0;
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 15px; line-height: 1.6; color: #888;
}
#top .lmslt-product-infos li i,
#top .lmslt-product-infos li svg {
	flex: 0 0 auto; width: 20px; height: 1.1em;
	font-size: 17px; line-height: 1; text-align: center;
	color: #de8f83;
}

/* ---------- Catégorie / UGS natifs : remplacés par l'étiquette ---------- */
#top.single-product div.product .product_meta { display: none !important; }

/* ---------- Description longue : texte libre, séparateur comme L'Histoire ---------- */
#top.single-product div.product .woocommerce-tabs { margin: 44px 0 0; padding: 0; border: 0; background: none; }
#top.single-product div.product .woocommerce-tabs ul.tabs,
#top.single-product div.product .woocommerce-tabs .panel > h2 { display: none; }
#top.single-product div.product .woocommerce-tabs .panel {
	border: 0 !important; background: none !important; box-shadow: none !important;
	padding: 0 !important; margin: 0 !important;
}
#top.single-product div.product .woocommerce-tabs .panel::before {
	content: ""; display: block; height: 12px; margin: 0 auto 38px; max-width: 140px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12'%3E%3Cline x1='0' y1='6' x2='62' y2='6' stroke='%23e1e1e1'/%3E%3Ccircle cx='70' cy='6' r='4' fill='none' stroke='%23e1e1e1'/%3E%3Cline x1='78' y1='6' x2='140' y2='6' stroke='%23e1e1e1'/%3E%3C/svg%3E") center / 140px 12px no-repeat;
}
#top.single-product div.product .woocommerce-tabs .panel p {
	font-size: 20px; line-height: 33px; color: #666;
	text-align: justify; margin: 0 0 17px;
}
#top.single-product div.product .woocommerce-tabs .panel blockquote p { font-style: italic; }

/* ---------- Produits liés / recommandés ---------- */
#top.single-product .upsells.products,
#top.single-product .related.products {
	clear: both; padding: 80px 0 10px; margin: 0;
}
#top.single-product .upsells.products > h2,
#top.single-product .related.products > h2 {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 36px; line-height: 44px; font-weight: 300; letter-spacing: 1px;
	color: #222; text-transform: none; text-align: center;
	margin: 0 0 14px;
}
#top.single-product .upsells.products > h2::after,
#top.single-product .related.products > h2::after {
	content: ""; display: block; height: 12px; max-width: 140px; margin: 18px auto 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12'%3E%3Cline x1='0' y1='6' x2='62' y2='6' stroke='%23e1e1e1'/%3E%3Ccircle cx='70' cy='6' r='4' fill='none' stroke='%23e1e1e1'/%3E%3Cline x1='78' y1='6' x2='140' y2='6' stroke='%23e1e1e1'/%3E%3C/svg%3E") center / 140px 12px no-repeat;
}
#top.single-product .upsells.products ul.products,
#top.single-product .related.products ul.products {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
	margin: 0; padding: 0;
}
#top.single-product .upsells.products ul.products::before,
#top.single-product .upsells.products ul.products::after,
#top.single-product .related.products ul.products::before,
#top.single-product .related.products ul.products::after { display: none; }
/* 3 produits par ligne (2 sur tablette, 1 sur téléphone) ; centrés quand il y en a moins */
#top.single-product .upsells.products ul.products li.product,
#top.single-product .related.products ul.products li.product {
	float: none; flex: 0 0 auto; width: calc((100% - 80px) / 3) !important; max-width: 340px; margin: 0 !important; clear: none;
	text-align: center; background: none; border: 0;
}
@media only screen and (max-width: 989px) {
	#top.single-product .upsells.products ul.products li.product,
	#top.single-product .related.products ul.products li.product { width: calc((100% - 40px) / 2) !important; }
}
@media only screen and (max-width: 479px) {
	#top.single-product .upsells.products ul.products li.product,
	#top.single-product .related.products ul.products li.product { width: 100% !important; }
}
#top.single-product .upsells.products li.product .inner_product,
#top.single-product .related.products li.product .inner_product { border: 0; background: none; }
#top.single-product .upsells.products li.product img,
#top.single-product .related.products li.product img {
	border-radius: 3px; transition: transform .35s ease, box-shadow .35s ease;
}
#top.single-product .upsells.products li.product:hover img,
#top.single-product .related.products li.product:hover img {
	transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .35);
}
#top.single-product .upsells.products li.product h2,
#top.single-product .upsells.products li.product .woocommerce-loop-product__title,
#top.single-product .related.products li.product h2,
#top.single-product .related.products li.product .woocommerce-loop-product__title {
	font-family: oswald, Helvetica, Arial, sans-serif;
	font-size: 22px; line-height: 1.3; font-weight: 300; letter-spacing: .5px; color: #222;
	padding: 16px 0 4px; margin: 0;
}
#top.single-product .upsells.products li.product .price,
#top.single-product .upsells.products li.product .price span,
#top.single-product .related.products li.product .price,
#top.single-product .related.products li.product .price span {
	font-size: 20px; color: #de8f83;
}

/* Vignettes : image nette, sans le voile gris du style Enfold « minimal-overlay » (qui posait le titre
   et le prix sur l'image assombrie et les retirait au survol) ; titre et prix sous l'image. */
#top.single-product #wrap_all .upsells.products li.product .inner_product_header,
#top.single-product #wrap_all .related.products li.product .inner_product_header {
	position: static; width: auto; height: auto; min-height: 0;
	padding: 0; background: none; opacity: 1; border: 0;
}
#top.single-product #wrap_all .upsells.products li.product a:hover .inner_product_header,
#top.single-product #wrap_all .related.products li.product a:hover .inner_product_header { opacity: 1; }
#top.single-product #wrap_all .upsells.products li.product .inner_product_header_table,
#top.single-product #wrap_all .upsells.products li.product .inner_product_header_cell,
#top.single-product #wrap_all .related.products li.product .inner_product_header_table,
#top.single-product #wrap_all .related.products li.product .inner_product_header_cell { display: block; height: auto; width: auto; }
#top.single-product #wrap_all .upsells.products li.product h2,
#top.single-product #wrap_all .upsells.products li.product h3,
#top.single-product #wrap_all .related.products li.product h2,
#top.single-product #wrap_all .related.products li.product h3 { color: #222; transition: color .2s ease; }
#top.single-product #wrap_all .upsells.products li.product a:hover h2,
#top.single-product #wrap_all .upsells.products li.product a:hover h3,
#top.single-product #wrap_all .related.products li.product a:hover h2,
#top.single-product #wrap_all .related.products li.product a:hover h3 { color: #de8f83; }
#top.single-product #wrap_all .upsells.products li.product .price,
#top.single-product #wrap_all .upsells.products li.product .price span,
#top.single-product #wrap_all .upsells.products li.product .price ins:before,
#top.single-product #wrap_all .related.products li.product .price,
#top.single-product #wrap_all .related.products li.product .price span,
#top.single-product #wrap_all .related.products li.product .price ins:before { color: #de8f83; }
#top.single-product #wrap_all .upsells.products li.product .thumbnail_container,
#top.single-product #wrap_all .related.products li.product .thumbnail_container { overflow: visible; background: none; }

/* ---------- Tablette et mobile ---------- */
@media only screen and (max-width: 989px) {
	#top.single-product div.product h1.product_title { font-size: 42px; line-height: 48px; }
}
@media only screen and (max-width: 767px) {
	#top.single-product .template-shop.content { padding-top: 30px; }
	#top.single-product div.product .single-product-main-image,
	#top.single-product div.product .single-product-summary {
		width: 100% !important; margin: 0 !important; float: none;
	}
	#top.single-product div.product .single-product-main-image { margin-bottom: 34px !important; }
	#top.single-product div.product h1.product_title { font-size: 36px; line-height: 42px; }
	#top.single-product .woocommerce-product-details__short-description p,
	#top.single-product div.product .woocommerce-tabs .panel p { font-size: 18px; line-height: 30px; text-align: left; }
	#top.single-product div.product form.cart .single_add_to_cart_button,
	#top.single-product div.product form.cart .button.single_add_to_cart_button { display: block; width: 100%; text-align: center; }
	#top.single-product .upsells.products, #top.single-product .related.products { padding-top: 60px; }
}
