/**
 * V2 unified product cards — 3.09.1 visual polish
 */

/* ── Card shell ── */
.hh-product-card,
.hh-v2-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fafaf8;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(26, 26, 26, 0.06);
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.hh-product-card:hover,
.hh-v2-product-card:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 16px 40px rgba(26, 26, 26, 0.1);
	transform: translateY(-3px);
}

/* ── Image ── */
.hh-product-card__media,
.hh-v2-card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0eeeb;
	text-decoration: none !important;
}

.hh-product-card__media img,
.hh-v2-card__media img,
.hh-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Fireplace / featured — slightly wider frame */
.hh-v2-product-grid--featured .hh-product-card__media {
	aspect-ratio: 16 / 11;
}

/* ── Body ── */
.hh-product-card__body,
.hh-v2-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.5rem;
	padding: 1rem 1.1rem 1.15rem;
}

.hh-v2-product-grid--featured .hh-product-card__body {
	padding: 1.1rem 1.2rem 1.25rem;
	gap: 0.55rem;
}

.hh-product-card__badges,
.hh-v2-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hh-product-card__badge,
.hh-v2-card__tag {
	display: inline-block;
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	background: #f3f0ec;
	color: #5c534c;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
}

.hh-product-card__title,
.hh-v2-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.hh-v2-product-grid--featured .hh-product-card__title {
	font-size: 1.05rem;
}

.hh-product-card__title a,
.hh-v2-card__title a {
	color: inherit;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hh-product-card__title a:hover,
.hh-v2-card__title a:hover {
	color: #1a1a1a;
}

.hh-product-card__benefit,
.hh-v2-card__text {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.45;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hh-product-card__price {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
}

.hh-product-card__price--quote span,
.hh-product-card__price--request span {
	color: #5c5c5c;
	font-weight: 500;
	font-size: 0.84rem;
}

.hh-product-card__note {
	display: none;
}

/* ── CTAs ── */
.hh-product-card__actions {
	margin-top: auto;
	padding-top: 0.55rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
}

.hh-product-card__actions .button,
.hh-product-card__actions .hh-v2-btn,
.hh-product-card__actions a.hh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.55rem 1rem;
	border-radius: 999px !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	line-height: 1.2;
	white-space: nowrap;
}

.hh-product-card__actions .hh-v2-btn--dark,
.hh-product-card__actions .hh-btn--navy,
.hh-product-card__actions .button.add_to_cart_button {
	background: #1a1a1a !important;
	border: 1px solid #1a1a1a !important;
	color: #fff !important;
}

.hh-product-card__actions .hh-v2-btn--dark:hover,
.hh-product-card__actions .hh-btn--navy:hover,
.hh-product-card__actions .button.add_to_cart_button:hover {
	background: #2d2d2d !important;
	border-color: #2d2d2d !important;
	color: #fff !important;
}

.hh-product-card__actions .hh-v2-btn--outline,
.hh-product-card__actions .hh-btn--ghost {
	background: transparent !important;
	border: 1px solid #d8d0c8 !important;
	color: #1a1a1a !important;
}

.hh-product-card__actions .hh-v2-btn--outline:hover,
.hh-product-card__actions .hh-btn--ghost:hover {
	border-color: #1a1a1a !important;
	color: #1a1a1a !important;
}

.hh-product-card__actions .hh-link-arrow {
	display: none !important;
}

/* ── Grids ── */
.hh-v2-product-grid {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
}

.hh-v2-product-grid ul.products,
.hh-v2-product-grid__list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: stretch;
}

.hh-v2-product-grid ul.products > li.product,
.hh-v2-product-grid__list > li.product,
.hh-v2-product-grid__list > li {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: flex !important;
	flex-direction: column !important;
}

.hh-v2-product-grid__head {
	text-align: center;
	margin-bottom: 1.5rem;
	max-width: 640px;
	margin-inline: auto;
}

.hh-v2-product-grid__head h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 800;
	color: #1a1a1a;
}

.hh-v2-product-grid__intro {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5c5c5c;
}

.hh-v2-product-grid__toolbar {
	margin: 1rem 0 0;
}

.hh-v2-product-grid--featured {
	padding: clamp(2.5rem, 5vw, 3.5rem) 1rem;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hh-v2-product-grid--service-packages {
	padding: clamp(2.75rem, 5vw, 3.75rem) 1rem;
	background: linear-gradient(180deg, #faf9f7 0%, #f3f1ed 100%);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hh-v2-product-grid--service-packages .hh-v2-product-grid__shell {
	max-width: 1120px;
	margin: 0 auto;
}

.hh-v2-product-grid--service-packages .hh-v2-product-grid__head {
	text-align: center;
	margin-bottom: 1.75rem;
}

.hh-v2-product-grid--service-packages .hh-v2-product-grid__head h2 {
	position: relative;
	display: inline-block;
	padding-bottom: 0.45rem;
}

.hh-v2-product-grid--service-packages .hh-v2-product-grid__head h2::after {
	content: "";
	position: absolute;
	right: 20%;
	left: 20%;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
	background: #c41e3a;
}

.hh-v2-product-grid--service-packages ul.products {
	grid-template-columns: repeat(auto-fit, minmax(260px, 320px)) !important;
	max-width: 680px;
	margin-inline: auto;
	justify-content: center;
}

.hh-v2-product-grid--service-packages ul.products > li.product {
	max-width: 320px;
	width: 100%;
}

.hh-v2-product-grid--service-packages .hh-v2-product-card,
.hh-v2-product-grid--service-packages .hh-product-card {
	height: 100%;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.07);
}

.hh-v2-product-grid--featured .hh-v2-product-grid__head {
	text-align: right;
	max-width: none;
	margin-inline: 0;
	margin-bottom: 1.35rem;
}

.hh-v2-product-grid--catalog {
	background: #f7f7f5;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hh-v2-product-grid--catalog .hh-v2-product-grid__head {
	text-align: right;
	max-width: 1120px;
	padding: 0 1rem;
	margin-inline: auto;
}

.hh-v2-product-grid--catalog ul.products {
	max-width: 1120px;
	margin-inline: auto !important;
	padding-inline: 1rem !important;
}

/* Category cards — inner collections (subcategory nav, not product cards) */
.hh-v2-inner-card,
.hh-v2-category-card {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid #e8e2dc;
	box-shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
	text-decoration: none !important;
	color: inherit !important;
}

.hh-v2-inner-card__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.hh-v2-inner-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hh-v2-inner-collections--premium .hh-v2-inner-card {
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

@media (max-width: 1024px) {
	.hh-v2-product-grid ul.products,
	.hh-v2-product-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.hh-v2-product-grid ul.products,
	.hh-v2-product-grid__list {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}

	.hh-product-card__body,
	.hh-v2-card__body {
		padding: 0.9rem 1rem 1rem;
	}

	.hh-product-card__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hh-product-card__actions .hh-v2-btn,
	.hh-product-card__actions .hh-btn,
	.hh-product-card__actions .button {
		width: 100%;
		justify-content: center;
	}
}
