/**
 * HALINK C9 — WooCommerce product cards & shared shop UI
 */

.woocommerce ul.products {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 -0.75rem !important;
	padding: 0 !important;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product {
	float: none !important;
	width: 50% !important;
	margin: 0 !important;
	padding: 0.75rem !important;
	list-style: none;
}

@media (min-width: 768px) {
	.woocommerce ul.products li.product {
		width: 33.333% !important;
	}
}

@media (min-width: 992px) {
	.woocommerce ul.products li.product {
		width: 25% !important;
	}
}

.hl-product {
	height: 100%;
	background: #fff;
	border: 1px solid var(--hl-border);
	border-radius: var(--hl-radius-lg);
	overflow: hidden;
	transition: box-shadow var(--hl-transition), transform var(--hl-transition), border-color var(--hl-transition);
}

.hl-product:hover {
	border-color: transparent;
	box-shadow: var(--hl-shadow);
	transform: translateY(-3px);
}

.hl-product__thumb {
	position: relative;
	aspect-ratio: 1;
	background: var(--hl-bg-soft);
	overflow: hidden;
}

.hl-product__media,
.hl-product__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-product__actions {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	opacity: 0;
	transform: translateY(0.4rem);
	transition: opacity var(--hl-transition), transform var(--hl-transition);
}

.hl-product:hover .hl-product__actions {
	opacity: 1;
	transform: none;
}

.hl-product__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--hl-ink);
	box-shadow: var(--hl-shadow);
	cursor: pointer;
	text-decoration: none;
}

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

.hl-product__body {
	padding: 1rem 1.1rem 1.25rem;
}

.hl-product__title {
	margin: 0 0 0.5rem;
	font-size: var(--hl-text-sm);
	font-weight: 700;
	line-height: 1.4;
}

.hl-product__title a {
	color: var(--hl-ink);
}

.hl-product__title a:hover {
	color: var(--hl-primary);
}

.hl-product__price,
.hl-product .price {
	color: var(--hl-primary);
	font-weight: 700;
	font-size: var(--hl-text-base);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.checkout-button {
	background: var(--hl-primary) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--hl-radius-pill) !important;
	padding: 0.85rem 1.5rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.75rem !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--hl-primary-dark) !important;
}

.hl-product {
	background: var(--hl-bg-soft);
	border: 0;
	border-radius: var(--hl-radius-lg);
}

.hl-product:hover {
	box-shadow: var(--hl-shadow);
}

.hl-product__title {
	font-family: var(--hl-font-display);
	font-weight: 600;
}

.hl-product__price,
.hl-product .price {
	color: var(--hl-primary);
}

.hl-qv-modal {
	position: fixed;
	inset: 0;
	z-index: var(--hl-z-modal);
	display: grid;
	place-items: center;
	padding: 1rem;
}

.hl-qv-modal[hidden] {
	display: none !important;
}

.hl-qv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.hl-qv-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: var(--hl-radius-xl);
	padding: 1.5rem;
	box-shadow: var(--hl-shadow-lg);
}

.hl-qv__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
}

.hl-toast {
	position: fixed;
	right: 1rem;
	bottom: 5.5rem;
	z-index: var(--hl-z-toast);
	min-width: 240px;
	padding: 0.9rem 1.1rem;
	border-radius: var(--hl-radius);
	background: var(--hl-ink);
	color: #fff;
	box-shadow: var(--hl-shadow-lg);
}
