/**
 * Página individual de producto. Replica la composición del detalle de
 * producto del diseño de referencia: franja decorativa, galería grande,
 * panel de compra y carrusel relacionado.
 */

.ht-product-page {
	padding: 34px 0 0;
}

.ht-product-page__inner {
	padding-bottom: 84px;
}

.ht-product-page__banner {
	position: relative;
	height: 62px;
	border-radius: 999px;
	background: center / cover no-repeat url("../images/product-detail/breadcrumbs-strip.png");
	border: 1px solid rgba(188, 155, 104, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
	overflow: hidden;
}

.ht-product-page__banner-fish {
	display: none;
}

.ht-product-single {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr);
	gap: 58px;
	margin-top: 36px;
	align-items: start;
}

.ht-product-single__media {
	min-width: 0;
}

.ht-product-single__gallery-card {
	position: relative;
}

.ht-product-single__badges {
	position: absolute;
	top: 24px;
	left: 26px;
	z-index: 3;
	display: flex;
	gap: 8px;
}

.ht-product-single__badges .ht-badge {
	height: 36px;
	padding-inline: 16px;
	border-radius: 999px;
	font-size: 1.125rem;
	font-weight: 700;
}

.ht-gallery__main {
	position: relative;
	border-radius: 34px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--ht-white);
	border: 1px solid rgba(188, 155, 104, 0.12);
	box-shadow: 0 16px 30px rgba(174, 164, 149, 0.14);
}

.ht-gallery__main-image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 76px 48px 44px;
	opacity: 0;
	transition: opacity var(--ht-transition-base);
}

.ht-gallery__main-image.is-active {
	opacity: 1;
	position: relative;
}

.ht-gallery__main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 18px 20px rgba(19, 48, 16, 0.1));
}

.ht-gallery__thumbs {
	display: flex;
	gap: 14px;
	margin-top: 18px;
	overflow-x: auto;
	padding-bottom: 6px;
}

.ht-gallery__thumb {
	flex: 0 0 102px;
	width: 102px;
	height: 102px;
	border-radius: 24px;
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--ht-white);
	box-shadow: 0 10px 22px rgba(174, 164, 149, 0.16);
	padding: 0;
	cursor: pointer;
}

.ht-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 0;
}

.ht-gallery__thumb.is-active {
	border-color: rgba(188, 155, 104, 0.72);
	box-shadow: 0 10px 26px rgba(188, 155, 104, 0.18);
}

.ht-product-single__info {
	padding-top: 2px;
}

.ht-product-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 8px;
	font-family: var(--ht-font-ui);
	font-size: 1rem;
	font-weight: 500;
	color: #8b7d70;
}

.ht-product-single__title {
	margin: 0;
	max-width: 12ch;
	font-family: var(--ht-font-ui);
	font-size: clamp(2.4rem, 1.8rem + 1.7vw, 3.55rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.06em;
	color: var(--ht-color-primary);
	text-wrap: balance;
}

.ht-product-single__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 42px;
}

.ht-product-single__form--options .variations {
	width: 100%;
	margin: 0 0 18px;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.ht-product-single__form--options .variations th,
.ht-product-single__form--options .variations td {
	padding: 0;
	text-align: left;
}

.ht-product-single__form--options .variations label {
	display: block;
	margin-right: 18px;
	font-family: var(--ht-font-ui);
	color: var(--ht-color-text-muted);
}

.ht-product-single__form--options select {
	min-width: 220px;
	height: 46px;
	padding-inline: 14px;
	border: 1px solid rgba(188, 155, 104, 0.42);
	border-radius: 14px;
	background: var(--ht-white);
	color: var(--ht-color-text);
}

.ht-product-single__form--options .reset_variations {
	display: inline-block;
	margin-left: 10px;
	font-size: 0.84rem;
	color: var(--ht-color-primary);
}

.ht-product-single__form--options .woocommerce-variation-price,
.ht-product-single__form--options .price {
	display: none;
}

.ht-product-single__form--options .single_variation_wrap .quantity {
	display: inline-flex;
	margin-right: 10px;
}

.ht-product-single__form--options .single_variation_wrap input.qty {
	width: 76px;
	height: 46px;
	text-align: center;
	border: 1px solid rgba(188, 155, 104, 0.42);
	border-radius: 14px;
}

.ht-product-single__form--options .single_add_to_cart_button {
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--ht-color-primary);
	color: var(--ht-white);
	font-family: var(--ht-font-ui);
	font-weight: 700;
	cursor: pointer;
}

.ht-product-single__qty-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 11px;
}

.ht-product-single__qty-label {
	display: block;
	font-family: var(--ht-font-ui);
	font-size: 1rem;
	font-weight: 500;
	color: #8b7d70;
}

.ht-product-single__quantity {
	height: 46px;
	border: none;
	border-radius: 999px;
	background: transparent;
	gap: 8px;
	overflow: visible;
}

.ht-product-single__quantity .ht-quantity__btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #e3d2af;
	color: var(--ht-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 -2px 0 rgba(188, 155, 104, 0.2);
}

.ht-product-single__quantity .ht-quantity__btn svg {
	width: 16px;
	height: 16px;
}

.ht-product-single__quantity .ht-quantity__input {
	width: 98px;
	height: 30px;
	border-radius: 999px;
	background: var(--ht-white);
	font-family: var(--ht-font-ui);
	font-size: 1.125rem;
	font-weight: 700;
	color: #8b7d70;
	box-shadow: 0 1px 0 rgba(188, 155, 104, 0.14);
}

.ht-product-single__form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.ht-product-single__quote-btn,
.ht-product-single__favorite {
	height: 48px;
	padding-inline: 18px 22px;
	border-radius: 999px;
	font-family: var(--ht-font-ui);
	font-size: 1rem;
	font-weight: 700;
	box-shadow: inset 0 -3px 0 rgba(16, 48, 16, 0.12);
}

.ht-product-single__quote-btn {
	gap: 10px;
}

.ht-product-single__quote-btn svg,
.ht-product-single__favorite svg {
	width: 18px;
	height: 18px;
}

.ht-product-single__favorite {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #d5b77e;
	background: var(--ht-color-tan);
	color: var(--ht-white);
	box-shadow: inset 0 -3px 0 rgba(160, 126, 72, 0.18);
	transition: transform var(--ht-transition-fast), background var(--ht-transition-fast), border-color var(--ht-transition-fast);
	cursor: pointer;
}

.ht-product-single__favorite:hover {
	transform: translateY(-1px);
	background: #c7a56f;
}

.ht-product-single__favorite.is-active {
	background: var(--ht-color-accent);
	border-color: var(--ht-color-accent);
}

.ht-product-single__description-card {
	margin-top: 38px;
	border-radius: 32px;
	background: var(--ht-white);
	border: 1px solid rgba(188, 155, 104, 0.14);
	box-shadow: 0 14px 28px rgba(174, 164, 149, 0.14);
	overflow: hidden;
}

.ht-product-single__section-title {
	margin: 0;
	padding: 18px 28px 17px;
	font-family: var(--ht-font-ui);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ht-color-tan);
	background: linear-gradient(180deg, #ece4d3 0%, #e7dfce 100%);
}

.ht-product-single__description-copy {
	padding: 16px 28px 4px;
	font-size: 0.9625rem;
	line-height: 1.65;
	color: #97887b;
}

.ht-product-single__description-copy p {
	margin: 0 0 10px;
}

.ht-product-single__spec-table th,
.ht-product-single__spec-table td {
	padding: 16px 28px;
	font-size: 0.95rem;
}

.ht-product-single__spec-table tr {
	border-bottom-color: rgba(188, 155, 104, 0.16);
}

.ht-product-single__spec-table th {
	position: relative;
	width: 36%;
	padding-left: 46px;
	font-weight: 500;
	color: #9a8d81;
}

.ht-product-single__spec-table th::before {
	content: "";
	position: absolute;
	left: 28px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--ht-color-tan);
	transform: translateY(-50%);
}

.ht-product-single__spec-table td {
	color: #918378;
}

.ht-product-single__related-wrap {
	padding: 0 0 0;
}

.ht-product-single__related-section {
	padding-block: 52px 56px;
}

.ht-featured-products {
	contain: paint;
	background: var(--ht-color-bg-alt);
	border-radius: 40px;
	overflow: hidden;
	padding-inline: 48px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ht-featured-products .ht-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.ht-featured-products .ht-section-title {
	margin: 0;
	font-family: var(--ht-font-ui);
	font-size: clamp(2rem, 1.75rem + 1vw, 2.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.05em;
	color: var(--ht-color-primary);
}

.ht-featured-products__catalog-link {
	height: 50px;
	padding-inline: 22px;
	gap: 12px;
	color: var(--ht-color-text-muted);
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 18px rgba(188, 155, 104, 0.12);
}

.ht-featured-products__catalog-link svg {
	width: 18px;
	height: 18px;
	color: var(--ht-color-text-muted);
}

.ht-featured-products .ht-carousel__track {
	gap: 24px;
	padding: 10px 56px 14px 0;
	scroll-padding-left: 0;
}

.ht-featured-products .ht-carousel__track > * {
	flex-basis: 234px;
}

.ht-featured-products .ht-carousel__nav {
	left: -42px;
	right: -42px;
}

.ht-featured-products .ht-carousel__arrow {
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--ht-color-tan);
	box-shadow: none;
	backdrop-filter: blur(2px);
}

.ht-featured-products .ht-carousel__arrow:hover {
	background: rgba(255, 255, 255, 0.9);
}

.ht-featured-products .ht-carousel__arrow svg {
	width: 22px;
	height: 22px;
}

.ht-featured-products .ht-carousel__scrollbar {
	height: 3px;
	margin-top: 14px;
	background: rgba(188, 155, 104, 0.28);
	border-radius: 999px;
}

.ht-featured-products .ht-carousel__scrollbar-thumb {
	background: rgba(188, 155, 104, 0.78);
}

.ht-featured-products .ht-product-card {
	padding: 7px;
	border-radius: 30px;
	background: var(--ht-white);
	box-shadow: 0 8px 24px rgba(174, 164, 149, 0.18);
	min-height: 402px;
}

.ht-featured-products .ht-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(174, 164, 149, 0.2);
}

.ht-featured-products .ht-product-card__media {
	aspect-ratio: 1 / 0.94;
	background: var(--ht-white);
	border-radius: 24px;
	padding: 14px 14px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ht-featured-products .ht-product-card__media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ht-featured-products .ht-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.07);
	filter: drop-shadow(0 10px 10px rgba(24, 48, 24, 0.16));
}

.ht-featured-products .ht-product-card__badges {
	top: 6px;
	left: 8px;
	gap: 6px;
}

.ht-featured-products .ht-badge {
	height: 18px;
	padding-inline: 8px;
	font-size: 0.625rem;
	font-weight: 700;
}

.ht-featured-products .ht-product-card__body {
	margin-top: 8px;
	padding: 16px 12px 11px;
	border-radius: 24px;
	background: #f2ece5;
	align-items: center;
	text-align: center;
	gap: 7px;
	flex: 1;
}

.ht-featured-products .ht-product-card__category {
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #9e9083;
}

.ht-featured-products .ht-product-card__title {
	min-height: 4.5em;
	font-family: var(--ht-font-ui);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.38;
	color: #807367;
	text-wrap: balance;
	-webkit-line-clamp: 3;
}

.ht-featured-products .ht-product-card__actions {
	width: 100%;
	margin-top: auto;
	gap: 10px;
	align-items: center;
}

.ht-featured-products .ht-product-card__actions form {
	flex: 1;
}

.ht-featured-products .ht-product-card__actions .ht-btn {
	height: 34px;
	padding-inline: 14px;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 6px;
	background: var(--ht-color-primary);
	box-shadow: inset 0 -3px 0 rgba(16, 48, 16, 0.12);
}

.ht-featured-products .ht-product-card__actions .ht-btn svg {
	width: 14px;
	height: 14px;
}

.ht-featured-products .ht-product-card__favorite {
	width: 34px;
	height: 34px;
	background: var(--ht-white);
	border-width: 1.5px;
	color: var(--ht-color-tan);
	box-shadow: inset 0 -2px 0 rgba(188, 155, 104, 0.12);
}

.ht-featured-products .ht-product-card__favorite.is-active {
	background: rgba(196, 45, 28, 0.08);
	border-color: var(--ht-color-accent);
	color: var(--ht-color-accent);
}

@media (max-width: 1180px) {
	.ht-product-single {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.ht-product-single__title {
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.ht-product-page {
		padding-top: 26px;
	}

	.ht-featured-products {
		padding-inline: 32px;
		border-radius: 32px;
	}

	.ht-featured-products .ht-carousel__track {
		padding-right: 32px;
	}

	.ht-featured-products .ht-carousel__nav {
		left: -20px;
		right: -20px;
	}
}

@media (max-width: 767px) {
	.ht-product-page__banner {
		height: 54px;
	}

	.ht-product-single__badges {
		top: 18px;
		left: 18px;
	}

	.ht-product-single__badges .ht-badge {
		height: 30px;
		padding-inline: 12px;
		font-size: 0.95rem;
	}

	.ht-gallery__main-image {
		padding: 68px 26px 28px;
	}

	.ht-gallery__thumb {
		flex-basis: 84px;
		width: 84px;
		height: 84px;
		border-radius: 20px;
	}

	.ht-product-single__form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-product-single__quote-btn,
	.ht-product-single__favorite {
		justify-content: center;
		width: 100%;
	}

	.ht-product-single__description-copy,
	.ht-product-single__spec-table th,
	.ht-product-single__spec-table td {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ht-product-single__spec-table th {
		padding-left: 38px;
	}

	.ht-product-single__spec-table th::before {
		left: 20px;
	}

	.ht-featured-products {
		padding-inline: 22px;
		border-radius: 28px;
	}

	.ht-featured-products .ht-section-header {
		flex-direction: column;
		align-items: stretch;
	}

	.ht-featured-products__catalog-link {
		width: 100%;
		justify-content: center;
	}

	.ht-featured-products .ht-carousel__track {
		padding-right: 22px;
	}
}

@media (max-width: 599px) {
	.ht-product-single__meta {
		font-size: 0.92rem;
		gap: 8px;
	}

	.ht-product-single__title {
		font-size: clamp(2rem, 1.5rem + 3.2vw, 2.8rem);
	}

	.ht-product-single__quantity .ht-quantity__input {
		width: 82px;
	}
}
