/*
 * LP Product Tabs
 * Cambia --lp-gold si el dorado principal del sitio es diferente.
 */

.lp-product-tabs {
	--lp-gold: #b99a5b;
	--lp-dark: #3f3f3f;
	--lp-text: #66615b;
	--lp-border: #dedbd5;
	--lp-soft: #faf8f4;
	clear: both;
	width: 100%;
	max-width: 1280px;
	margin: 64px auto 0;
	padding: 0 24px 72px;
	box-sizing: border-box;
}

.lp-tabs-nav {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 62px;
	border-bottom: 1px solid var(--lp-border);
	margin: 0 0 48px;
}

.lp-tab-button {
	position: relative;
	appearance: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--lp-dark);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	margin: 0;
	padding: 18px 0 17px;
	text-transform: uppercase;
	transition: color 180ms ease;
}

.lp-tab-button::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	background: transparent;
	transform: scaleX(0);
	transform-origin: center;
	transition: background 180ms ease, transform 180ms ease;
}

.lp-tab-button:hover,
.lp-tab-button:focus-visible,
.lp-tab-button.is-active {
	color: var(--lp-gold);
}

.lp-tab-button.is-active::after {
	background: var(--lp-gold);
	transform: scaleX(1);
}

.lp-tab-button:focus-visible {
	outline: 2px solid var(--lp-gold);
	outline-offset: 5px;
}

.lp-tab-panel[hidden] {
	display: none !important;
}

.lp-tab-panel.is-active {
	animation: lp-tab-fade 220ms ease;
}

@keyframes lp-tab-fade {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lp-tab-inner {
	width: 100%;
}

.lp-main-title {
	color: var(--lp-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 3vw, 42px);
	font-weight: 400;
	line-height: 1.18;
	margin: 0 0 34px;
	text-transform: none;
}

.lp-check-list {
	list-style: none !important;
	margin: 0 0 58px !important;
	padding: 0 !important;
}

.lp-check-list li {
	position: relative;
	color: var(--lp-text);
	font-size: 17px;
	line-height: 1.75;
	margin: 0 0 12px;
	padding: 0 0 0 32px;
}

.lp-check-list li::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--lp-gold);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.55;
}

.lp-check-list--intro {
	margin-bottom: 62px !important;
}

.lp-content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	margin: 0 0 64px;
}

.lp-content-card {
	min-width: 0;
}

.lp-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 84px;
	margin: 0 0 18px;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	filter: none !important;
	overflow: visible;
}

.lp-card-icon img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1;
}

/* Normaliza visualmente los tres iconos sin deformarlos. */
.lp-content-card:nth-child(1) .lp-card-icon img {
	width: 102px;
	height: 78px;
}

.lp-content-card:nth-child(2) .lp-card-icon img {
	width: 96px;
	height: 72px;
}

.lp-content-card:nth-child(3) .lp-card-icon img {
	width: 72px;
	height: 78px;
}

.lp-content-card h3 {
	color: var(--lp-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 18px;
}

.lp-content-card p {
	color: var(--lp-text);
	font-size: 15.5px;
	line-height: 1.8;
	margin: 0 0 18px;
}

.lp-heart-box {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 24px;
	align-items: center;
	width: 100%;
	margin: 62px 0 0;
	padding: 20px 24px;
	border: 1px solid rgba(185, 154, 91, 0.55);
	border-radius: 10px;
	background: #fbf7ef;
	box-sizing: border-box;
}

.lp-heart-box__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: var(--lp-gold);
}

.lp-heart-box__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.lp-heart-box p {
	color: var(--lp-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

/* Compatibilidad con estilos agresivos de Astra/WooCommerce. */
.woocommerce div.product .lp-product-tabs button.lp-tab-button {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding-right: 0;
	padding-left: 0;
}

.woocommerce div.product .lp-product-tabs button.lp-tab-button:hover,
.woocommerce div.product .lp-product-tabs button.lp-tab-button:focus {
	background: transparent;
	color: var(--lp-gold);
}

/* Tablet */
@media (max-width: 900px) {
	.lp-product-tabs {
		margin-top: 48px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.lp-content-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.lp-content-card {
		max-width: 760px;
	}

	.lp-card-icon {
		width: 68px;
		height: 68px;
	}
}

/* Móvil */
@media (max-width: 600px) {
	.lp-product-tabs {
		margin-top: 38px;
		padding-right: 16px;
		padding-bottom: 50px;
		padding-left: 16px;
	}

	.lp-tabs-nav {
		gap: 30px;
		margin-bottom: 36px;
	}

	.lp-tab-button {
		font-size: 13px;
		padding-top: 15px;
		padding-bottom: 14px;
	}

	.lp-main-title {
		margin-bottom: 26px;
	}

	.lp-check-list {
		margin-bottom: 42px !important;
	}

	.lp-check-list li {
		font-size: 15px;
		line-height: 1.65;
		padding-left: 28px;
	}

	.lp-content-grid {
		gap: 42px;
		margin-bottom: 48px;
	}

	.lp-content-card p {
		font-size: 15px;
		line-height: 1.72;
	}

	.lp-heart-box {
		margin-top: 44px;
	}

	.lp-heart-box {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 18px;
		text-align: center;
	}

	.lp-heart-box__icon {
		margin: 0 auto;
	}
}


/* Evita sombras o fondos heredados del tema Astra/WooCommerce. */
.woocommerce div.product .lp-product-tabs .lp-card-icon,
.woocommerce div.product .lp-product-tabs .lp-card-icon img,
.ast-single-post .lp-product-tabs .lp-card-icon img {
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	filter: none !important;
}


/* =========================================================
   PRODUITS SIMILAIRES
   ========================================================= */

.single-product .related.products {
	clear: both;
	max-width: 1280px;
	margin: 72px auto 0;
	padding: 0 24px 80px;
	box-sizing: border-box;
}

.single-product .related.products > h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	color: #8d8278;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 0 0 34px;
	text-align: center;
	text-transform: uppercase;
}

.single-product .related.products > h2::before,
.single-product .related.products > h2::after {
	content: "";
	display: block;
	width: 170px;
	height: 46px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	flex: 0 0 auto;
}

.single-product .related.products > h2::before {
	background-image: url("../images/branch-left.png");
}

.single-product .related.products > h2::after {
	background-image: url("../images/branch-right.png");
}

.single-product .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin: 0 !important;
	padding: 0 !important;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
	display: none !important;
}

.single-product .related.products ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 0 18px;
	background: #fff;
	border: 1px solid #eee8df;
	box-shadow: none !important;
	overflow: hidden;
}

.single-product .related.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	text-decoration: none;
}

.single-product .related.products li.product a img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	margin: 0 0 16px !important;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.single-product .related.products li.product .woocommerce-loop-product__title {
	color: var(--lp-gold, #b99a5b);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px !important;
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
	padding: 0 16px 10px !important;
	text-transform: none;
}

.single-product .related.products li.product .woocommerce-product-details__short-description {
	display: block;
	color: #756f68;
	font-size: 12px;
	line-height: 1.55;
	margin: 0;
	padding: 0 16px 10px;
}

.single-product .related.products li.product .price {
	display: block;
	color: var(--lp-gold, #b99a5b) !important;
	font-size: 14px !important;
	font-weight: 500;
	margin: auto 0 12px !important;
	padding: 0 16px;
}

.single-product .related.products li.product .button,
.single-product .related.products li.product a.button {
	align-self: flex-start;
	min-height: auto;
	margin: 0 16px !important;
	padding: 10px 16px !important;
	background: var(--lp-gold, #b99a5b) !important;
	border: 1px solid var(--lp-gold, #b99a5b) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em;
	line-height: 1.1 !important;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease;
}

.single-product .related.products li.product .button:hover,
.single-product .related.products li.product a.button:hover {
	background: #fff !important;
	color: var(--lp-gold, #b99a5b) !important;
}

.single-product .related.products li.product .star-rating,
.single-product .related.products li.product .onsale {
	display: none !important;
}

@media (max-width: 900px) {
	.single-product .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.single-product .related.products > h2::before,
	.single-product .related.products > h2::after {
		width: 115px;
	}
}

@media (max-width: 600px) {
	.single-product .related.products {
		margin-top: 52px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.single-product .related.products > h2 {
		gap: 10px;
		font-size: 14px;
	}

	.single-product .related.products > h2::before,
	.single-product .related.products > h2::after {
		width: 72px;
		height: 32px;
	}

	.single-product .related.products ul.products {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}


/* =========================================================
   CARTES NORMALES DU CATALOGUE / BOUTIQUE
   Prix à gauche et bouton à droite sur le même axe.
   Ne s'applique pas aux produits similaires de la fiche produit.
   ========================================================= */

body:not(.single-product) .woocommerce ul.products {
	align-items: stretch;
}

body:not(.single-product) .woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-bottom: 74px;
	box-sizing: border-box;
}

body:not(.single-product) .woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
}

body:not(.single-product) .woocommerce ul.products li.product .price {
	position: absolute;
	left: 0;
	bottom: 20px;
	display: flex;
	align-items: center;
	min-height: 34px;
	margin: 0 !important;
	padding: 0;
}

body:not(.single-product) .woocommerce ul.products li.product .button,
body:not(.single-product) .woocommerce ul.products li.product a.button {
	position: absolute;
	right: 0;
	bottom: 20px;
	width: auto;
	max-width: calc(100% - 105px);
	margin: 0 !important;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 520px) {
	body:not(.single-product) .woocommerce ul.products li.product {
		padding-bottom: 118px;
	}

	body:not(.single-product) .woocommerce ul.products li.product .price {
		left: 0;
		bottom: 72px;
	}

	body:not(.single-product) .woocommerce ul.products li.product .button,
	body:not(.single-product) .woocommerce ul.products li.product a.button {
		left: 0;
		right: auto;
		bottom: 20px;
		max-width: 100%;
	}
}
