/**
 * HALINK C9 — Product detail page (Luxury Spa mockup)
 * Markup: .hl-pdp, .hl-pdp-*, .hl-product--detail
 */

.hl-pdp {
	background: var(--hl-bg, #f7f3ec);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hl-product--detail {
	padding: 0;
	background: transparent;
}

/* Breadcrumb */
.hl-pdp__crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding: 1.1rem 0 1.35rem;
	font-size: 0.86rem;
	color: var(--hl-muted);
}

.hl-pdp__crumb a {
	color: var(--hl-muted);
	text-decoration: none;
}

.hl-pdp__crumb a:hover {
	color: var(--hl-gold);
}

.hl-pdp__crumb-sep {
	margin: 0 0.15rem;
	opacity: 0.6;
}

/* ===== GALLERY ===== */
.hl-pdp-gallery {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
}

.hl-pdp-gallery:not(:has(.hl-pdp-gallery__thumbs)) {
	grid-template-columns: 1fr;
}

.hl-pdp-gallery__thumbs {
	max-height: 520px;
	overflow: hidden;
}

.hl-pdp-gallery__thumbs .swiper-slide {
	height: auto !important;
}

.hl-pdp-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--hl-border);
	border-radius: 0.25rem;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 1;
}

.hl-pdp-gallery__thumbs .swiper-slide-thumb-active .hl-pdp-gallery__thumb,
.hl-pdp-gallery__thumbs .is-active .hl-pdp-gallery__thumb {
	border-color: var(--hl-gold);
}

.hl-pdp-gallery__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-pdp-gallery__stage {
	position: relative;
	background: #fff;
	border: 1px solid var(--hl-border);
	border-radius: 0.35rem;
	overflow: hidden;
}

.hl-pdp-gallery__badge {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 3;
	padding: 0.35rem 0.55rem;
	border-radius: 0.15rem;
	background: var(--hl-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.hl-pdp-gallery__main {
	width: 100%;
}

.hl-pdp-gallery__image {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: #f3efe8;
}

.hl-pdp-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hl-ink);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hl-pdp-gallery__nav--prev { left: 0.65rem; }
.hl-pdp-gallery__nav--next { right: 0.65rem; }

/* ===== SUMMARY ===== */
.hl-pdp__summary {
	padding-top: 0.15rem;
}

.hl-pdp__brand {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hl-muted);
}

.hl-pdp__brand-sep {
	margin: 0 0.4rem;
	opacity: 0.5;
}

.hl-pdp__summary .product_title,
.hl-pdp__summary h1 {
	margin: 0 0 0.75rem;
	font-family: var(--hl-font-display);
	font-size: clamp(1.85rem, 3vw, 2.55rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--hl-ink);
}

.hl-pdp__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.85rem;
	margin-bottom: 1rem;
}

.hl-pdp__stars {
	color: var(--hl-gold);
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.hl-pdp__rating-meta {
	font-size: 0.88rem;
	color: var(--hl-muted);
}

.hl-pdp__summary .woocommerce-product-details__short-description {
	margin: 0 0 1.15rem;
	color: var(--hl-text);
	font-size: 1rem;
	line-height: 1.7;
}

.hl-pdp__summary .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Features */
.hl-pdp-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
}

.hl-pdp-features__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	text-align: center;
}

.hl-pdp-features__icon {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(184, 154, 90, 0.5);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--hl-gold);
	font-size: 1rem;
}

.hl-pdp-features__label {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hl-ink);
}

/* Price */
.hl-pdp__price {
	margin: 0 0 0.85rem;
}

.hl-pdp__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.65rem 1rem;
}

.hl-pdp__price .amount,
.hl-pdp__price ins .amount {
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--hl-primary);
	text-decoration: none;
}

.hl-pdp__price del {
	color: var(--hl-muted);
	font-size: 1rem;
}

.hl-pdp__price del .amount {
	font-size: 1rem;
	font-weight: 500;
	color: var(--hl-muted);
}

.hl-pdp__save {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.55rem;
	border-radius: 0.15rem;
	background: rgba(184, 154, 90, 0.15);
	color: #9a4a2a;
	font-size: 0.8rem;
	font-weight: 700;
}

.hl-pdp__save .amount {
	font-size: inherit;
	color: inherit;
}

/* Stock */
.hl-pdp__stock {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1.15rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--hl-primary);
}

.hl-pdp__stock-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #3d8b5a;
}

.hl-pdp__stock.is-outofstock {
	color: #a33;
}

.hl-pdp__stock.is-outofstock .hl-pdp__stock-dot {
	background: #a33;
}

/* Variations */
.hl-pdp__summary .variations,
.hl-product__variations-table {
	width: 100%;
	margin-bottom: 1rem;
	border: 0;
}

.hl-pdp__summary .variations th,
.hl-product__variations-table th {
	padding: 0.35rem 0.75rem 0.35rem 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hl-ink);
	vertical-align: middle;
	width: 6.5rem;
}

.hl-pdp__summary .variations td,
.hl-product__variations-table td {
	padding: 0.35rem 0;
}

.hl-pdp__summary .variations select,
.hl-product__variations-table select {
	min-width: 10rem;
	height: 2.5rem;
	border: 1px solid var(--hl-border-strong, var(--hl-border));
	border-radius: 0.2rem;
	padding: 0 0.75rem;
	background: #fff;
}

/* Cart */
.hl-pdp-cart__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.hl-pdp-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--hl-border);
	border-radius: 0.2rem;
	background: #fff;
	overflow: hidden;
	height: 3rem;
}

.hl-pdp-qty__btn {
	width: 2.5rem;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 1.1rem;
	color: var(--hl-ink);
	cursor: pointer;
}

.hl-pdp-qty .qty,
.hl-pdp-qty__input,
.hl-pdp-qty .input-text {
	width: 2.75rem !important;
	height: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-left: 1px solid var(--hl-border) !important;
	border-right: 1px solid var(--hl-border) !important;
	border-radius: 0 !important;
	text-align: center;
	font-weight: 600;
	background: #fff !important;
	box-shadow: none !important;
}

.hl-pdp-cart__add,
.hl-pdp-cart__buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0.2rem;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
}

.hl-pdp-cart__add {
	flex: 1 1 160px;
	border: 0;
	background: var(--hl-primary);
	color: #fff;
}

.hl-pdp-cart__add:hover {
	background: #1c1c1c;
	color: #fff;
}

.hl-pdp-cart__buy {
	flex: 1 1 140px;
	border: 1px solid var(--hl-primary);
	background: #fff;
	color: var(--hl-primary);
}

.hl-pdp-cart__buy:hover {
	background: var(--hl-primary);
	color: #fff;
}

/* Utils */
.hl-pdp-utils {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.35rem;
	margin: 0;
	padding: 0.35rem 0 0;
	list-style: none;
}

.hl-pdp-utils__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hl-muted);
	font-size: 0.88rem;
	text-decoration: none;
	cursor: pointer;
}

.hl-pdp-utils__link:hover,
.hl-pdp-utils__link.is-active {
	color: var(--hl-gold);
}

.hl-pdp-utils__link--wish.is-active .fa-heart,
.hl-pdp-utils__link--compare.is-active .fa {
	color: var(--hl-gold);
}

.hl-pdp-utils__share {
	position: relative;
}

.hl-pdp-utils__share-menu {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	z-index: 12;
	min-width: 11.5rem;
	padding: 0.35rem;
	border: 1px solid var(--hl-border);
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: 0 12px 28px rgba(47, 59, 40, 0.12);
}

.hl-pdp-utils__share-item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 0;
	border-radius: 0.45rem;
	background: transparent;
	color: var(--hl-ink);
	font: inherit;
	font-size: 0.86rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.hl-pdp-utils__share-item:hover,
.hl-pdp-utils__share-item.is-copied {
	background: rgba(184, 154, 90, 0.12);
	color: var(--hl-gold);
}

.hl-pdp-utils__share-item .fa {
	width: 1rem;
	text-align: center;
	color: var(--hl-muted);
}

.hl-pdp-utils__share-item:hover .fa,
.hl-pdp-utils__share-item.is-copied .fa {
	color: var(--hl-gold);
}

/* ===== TRUST BAR ===== */
.hl-pdp-trust {
	margin: clamp(2rem, 4vw, 3rem) 0;
	padding: 1.35rem 0;
	background: #efeae2;
	border-top: 1px solid var(--hl-border);
	border-bottom: 1px solid var(--hl-border);
}

.hl-pdp-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.hl-pdp-trust__icon {
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(184, 154, 90, 0.45);
	color: var(--hl-gold);
	font-size: 1.15rem;
	background: #fff;
}

.hl-pdp-trust__title {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hl-ink);
}

.hl-pdp-trust__text {
	font-size: 0.84rem;
	line-height: 1.4;
	color: var(--hl-muted);
}

/* ===== TABS ===== */
.hl-pdp__tabs {
	padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(2rem, 4vw, 3rem);
}

.hl-pdp-tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.5rem;
	background: #fff;
	border: 1px solid var(--hl-border);
	border-radius: 0.35rem;
}

.hl-pdp-tabs__link {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0.2rem;
	background: transparent;
	text-align: left;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--hl-text);
	cursor: pointer;
}

.hl-pdp-tabs__link.is-active,
.hl-pdp-tabs__link:hover {
	background: rgba(184, 154, 90, 0.08);
	border-left-color: var(--hl-gold);
	color: var(--hl-ink);
}

.hl-pdp-tabs__panel {
	padding: 0.25rem 0 0;
}

.hl-pdp-tabs__heading {
	margin: 0 0 1rem;
	font-family: var(--hl-font-display);
	font-size: 1.65rem;
	font-weight: 500;
	color: var(--hl-ink);
}

.hl-pdp-tabs__content {
	color: var(--hl-text);
	font-size: 1.02rem;
	line-height: 1.75;
}

.hl-pdp-desc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
	gap: 1.5rem;
	align-items: start;
}

.hl-pdp-desc__media {
	margin: 0;
	overflow: hidden;
	border-radius: 0.35rem;
}

.hl-pdp-desc__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hl-pdp-check {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hl-pdp-check li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.6rem;
}

.hl-pdp-check li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.35rem;
	color: var(--hl-primary);
	font-weight: 700;
}

.hl-pdp-steps {
	margin: 0;
	padding-left: 1.15rem;
}

.hl-pdp-steps li {
	margin-bottom: 0.55rem;
}

/* ===== RELATED ===== */
.hl-pdp__related {
	padding-top: 0.5rem;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hl-pdp__related-head {
	margin-bottom: 1.5rem;
	text-align: center;
}

.hl-pdp__related .hl-section__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hl-gold);
}

.hl-pdp__related-title {
	margin: 0;
	font-family: var(--hl-font-display);
	font-size: clamp(1.7rem, 2.5vw, 2.25rem);
	font-weight: 500;
	color: var(--hl-ink);
}

.hl-pdp-related__slider {
	position: relative;
	padding: 0 2.75rem;
	overflow: hidden;
}

.hl-pdp-related__slider .swiper-wrapper {
	align-items: stretch;
}

.hl-pdp-related__slider .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.hl-pdp__related .hl-product,
.hl-pdp-related__slider .hl-product {
	height: 100%;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}

.hl-pdp__related .hl-product__inner,
.hl-pdp-related__slider .hl-product__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(47, 59, 40, 0.08);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hl-pdp__related .hl-product:hover .hl-product__inner,
.hl-pdp-related__slider .hl-product:hover .hl-product__inner {
	border-color: rgba(184, 154, 90, 0.45);
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(47, 59, 40, 0.08);
}

.hl-pdp__related .hl-product__thumb,
.hl-pdp-related__slider .hl-product__thumb {
	position: relative;
	aspect-ratio: 1;
	background: #f3efe8;
	overflow: hidden;
}

.hl-pdp__related .hl-product__media,
.hl-pdp__related .hl-product__img,
.hl-pdp-related__slider .hl-product__media,
.hl-pdp-related__slider .hl-product__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.hl-pdp__related .hl-product:hover .hl-product__img,
.hl-pdp-related__slider .hl-product:hover .hl-product__img {
	transform: scale(1.04);
}

.hl-pdp__related .hl-product__body,
.hl-pdp-related__slider .hl-product__body {
	padding: 0.9rem 0.95rem 1rem;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.hl-pdp__related .hl-product__title,
.hl-pdp-related__slider .hl-product__title {
	margin: 0 0 0.35rem;
	font-family: var(--hl-font-display);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
}

.hl-pdp__related .hl-product__title a,
.hl-pdp-related__slider .hl-product__title a {
	color: var(--hl-ink);
	text-decoration: none;
}

.hl-pdp__related .hl-product__title a:hover,
.hl-pdp-related__slider .hl-product__title a:hover {
	color: var(--hl-gold);
}

.hl-pdp__related .hl-product__price,
.hl-pdp-related__slider .hl-product__price {
	margin-top: 0;
	color: var(--hl-primary);
	font-weight: 700;
}

.hl-pdp__related .hl-product__price ins,
.hl-pdp-related__slider .hl-product__price ins {
	text-decoration: none;
	color: #c45c5c;
}

.hl-pdp__related .hl-product__wish.is-active,
.hl-pdp-related__slider .hl-product__wish.is-active {
	color: #e67e22;
	background: #fff8f0;
}

.hl-pdp-related__slider .swiper-button-prev,
.hl-pdp-related__slider .swiper-button-next {
	width: 2.5rem;
	height: 2.5rem;
	margin-top: 0;
	top: 38%;
	border: 0;
	border-radius: 50%;
	background: var(--hl-primary);
	color: #fff;
	box-shadow: 0 6px 18px rgba(47, 59, 40, 0.18);
}

.hl-pdp-related__slider .swiper-button-prev {
	left: 0;
}

.hl-pdp-related__slider .swiper-button-next {
	right: 0;
}

.hl-pdp-related__slider .swiper-button-prev:after,
.hl-pdp-related__slider .swiper-button-next:after {
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
}

.hl-pdp-related__slider .swiper-button-prev:hover,
.hl-pdp-related__slider .swiper-button-next:hover {
	background: var(--hl-gold);
}

/* Hide WC default related heading if any */
.hl-pdp__related > .related > h2,
.hl-pdp__related .woocommerce-loop-product__title {
	display: none;
}

@media (max-width: 767.98px) {
	.hl-pdp-related__slider {
		padding: 0 2rem;
	}
}

@media (max-width: 991.98px) {
	.hl-pdp-gallery {
		grid-template-columns: 1fr;
	}

	.hl-pdp-gallery__thumbs {
		order: 2;
		max-height: none;
	}

	.hl-pdp-gallery__thumbs .swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.hl-pdp-gallery__thumbs .swiper-slide {
		width: auto !important;
		margin: 0 !important;
	}

	.hl-pdp-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hl-pdp-desc {
		grid-template-columns: 1fr;
	}

	.hl-pdp-tabs__nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.hl-pdp-tabs__link {
		flex: 1 1 auto;
		border-left: 0;
		border-bottom: 2px solid transparent;
		text-align: center;
		padding: 0.7rem 0.75rem;
		font-size: 0.82rem;
	}

	.hl-pdp-tabs__link.is-active,
	.hl-pdp-tabs__link:hover {
		border-left-color: transparent;
		border-bottom-color: var(--hl-gold);
	}
}

@media (max-width: 575.98px) {
	.hl-pdp-cart__add,
	.hl-pdp-cart__buy {
		flex: 1 1 100%;
	}
}
