/*
 * Held Stone Phase 2 R2-3 Product Card System
 * Collection and related-product loop refinements only.
 */

.held-category-page .held-product-grid-section ul.products,
.held-home-page .woocommerce ul.products,
body.single-product .related ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products {
	gap: 30px;
}

.held-category-page .held-product-grid-section ul.products li.product,
.held-home-page .woocommerce ul.products li.product,
body.single-product .related ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product {
	display: flex;
	flex-direction: column;
	padding: 10px;
	border: 1px solid rgba(229, 216, 200, 0.62);
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(47, 36, 28, 0.05);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.held-category-page .held-product-grid-section ul.products li.product:hover,
.held-home-page .woocommerce ul.products li.product:hover,
body.single-product .related ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover {
	transform: translateY(-2px);
	border-color: rgba(196, 172, 151, 0.82);
	box-shadow: 0 18px 42px rgba(47, 36, 28, 0.1);
}

.held-category-page .held-product-grid-section ul.products li.product .astra-shop-thumbnail-wrap,
.held-home-page .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.single-product .related ul.products li.product .astra-shop-thumbnail-wrap,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 14px;
	padding: 0;
	border-radius: 20px;
	background: #fbf8f3;
	overflow: hidden;
}

.held-category-page .held-product-grid-section ul.products li.product .astra-shop-thumbnail-wrap > a,
.held-home-page .woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a,
body.single-product .related ul.products li.product .astra-shop-thumbnail-wrap > a,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap > a,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap > a {
	display: block;
	width: 100%;
	height: 100%;
}

.held-category-page .held-product-grid-section ul.products li.product .astra-shop-thumbnail-wrap img,
.held-home-page .woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body.single-product .related ul.products li.product .astra-shop-thumbnail-wrap img,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap img,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	margin: 0;
	transition: transform 0.25s ease;
}

.held-category-page .held-product-grid-section ul.products li.product:hover .astra-shop-thumbnail-wrap img,
.held-home-page .woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img,
body.single-product .related ul.products li.product:hover .astra-shop-thumbnail-wrap img,
body.post-type-archive-product ul.products li.product:hover .astra-shop-thumbnail-wrap img,
body.tax-product_cat ul.products li.product:hover .astra-shop-thumbnail-wrap img {
	transform: scale(1.04);
}

.held-category-page .held-product-grid-section ul.products li.product .ast-loop-product__link,
.held-home-page .woocommerce ul.products li.product .ast-loop-product__link,
body.single-product .related ul.products li.product .ast-loop-product__link,
body.post-type-archive-product ul.products li.product .ast-loop-product__link,
body.tax-product_cat ul.products li.product .ast-loop-product__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 2px;
	text-decoration: none;
}

.held-category-page .held-product-grid-section ul.products li.product .woocommerce-loop-product__title,
.held-home-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.single-product .related ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	color: var(--hsj-r2-text, #2F241C);
	font-size: 17px;
	line-height: 1.42;
	font-weight: 600;
}

.held-category-page .held-product-grid-section ul.products li.product .price,
.held-home-page .woocommerce ul.products li.product .price,
body.single-product .related ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price {
	margin-top: 4px;
	margin-bottom: 0;
	color: #6f6258;
	font-size: 15px;
	font-weight: 500;
}

.held-category-page .held-product-grid-section ul.products li.product .button,
.held-home-page .woocommerce ul.products li.product .button,
body.single-product .related ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button {
	width: 100%;
	min-height: 44px;
	margin-top: 14px;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--hsj-r2-brown, #3A2A22);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	box-shadow: none;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.held-category-page .held-product-grid-section ul.products li.product .button:hover,
.held-home-page .woocommerce ul.products li.product .button:hover,
body.single-product .related ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover,
.held-category-page .held-product-grid-section ul.products li.product .button:focus,
.held-home-page .woocommerce ul.products li.product .button:focus,
body.single-product .related ul.products li.product .button:focus,
body.post-type-archive-product ul.products li.product .button:focus,
body.tax-product_cat ul.products li.product .button:focus {
	background: var(--hsj-r2-brown-hover, #241914);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(36, 25, 20, 0.16);
}

body.single-product .related ul.products {
	gap: 28px;
}

@media (min-width: 1200px) {
	.held-category-page .held-product-grid-section ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1280px) and (min-width: 921px) {
	.held-category-page .held-product-grid-section ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		gap: 28px;
	}
}

@media (max-width: 920px) {
	.held-category-page .held-product-grid-section ul.products,
	.held-home-page .woocommerce ul.products,
	body.single-product .related ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		gap: 18px;
	}

	.held-category-page .held-product-grid-section ul.products li.product,
	.held-home-page .woocommerce ul.products li.product,
	body.single-product .related ul.products li.product,
	body.post-type-archive-product ul.products li.product,
	body.tax-product_cat ul.products li.product {
		padding: 8px;
		border-radius: 20px;
	}

	.held-category-page .held-product-grid-section ul.products li.product .astra-shop-thumbnail-wrap,
	.held-home-page .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
	body.single-product .related ul.products li.product .astra-shop-thumbnail-wrap,
	body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
	body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap {
		margin-bottom: 12px;
		border-radius: 18px;
	}

	.held-category-page .held-product-grid-section ul.products li.product .woocommerce-loop-product__title,
	.held-home-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
	body.single-product .related ul.products li.product .woocommerce-loop-product__title,
	body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
	body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px;
		line-height: 1.4;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.held-category-page .held-product-grid-section ul.products li.product .price,
	.held-home-page .woocommerce ul.products li.product .price,
	body.single-product .related ul.products li.product .price,
	body.post-type-archive-product ul.products li.product .price,
	body.tax-product_cat ul.products li.product .price {
		font-size: 13px;
	}

	.held-category-page .held-product-grid-section ul.products li.product .button,
	.held-home-page .woocommerce ul.products li.product .button,
	body.single-product .related ul.products li.product .button,
	body.post-type-archive-product ul.products li.product .button,
	body.tax-product_cat ul.products li.product .button {
		min-height: 38px;
		margin-top: 12px;
		padding: 9px 12px;
		font-size: 11px;
	}
}

@media (max-width: 560px) {
	.held-category-page .held-product-grid-section ul.products,
	.held-home-page .woocommerce ul.products,
	body.single-product .related ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.held-category-page .held-product-grid-section ul.products li.product,
	.held-home-page .woocommerce ul.products li.product,
	body.single-product .related ul.products li.product,
	body.post-type-archive-product ul.products li.product,
	body.tax-product_cat ul.products li.product {
		padding: 7px;
		border-radius: 18px;
		box-shadow: 0 8px 18px rgba(47, 36, 28, 0.045);
	}
}
