/* GastroNaron related products (single product page). Fully scoped to
   section.related so no other product grid is affected. */
section.related.products {
	--gn-green: #26901b;
	--gn-forest: #173b2a;
	--gn-mint: #eef6ea;
	--gn-muted: #5a665f;
	--gn-head: 'Quicksand', sans-serif;
	--gn-body: 'League Spartan', sans-serif;
	padding: 3rem 0 1rem;
}
section.related.products h3 {
	margin: 0 0 1.5rem;
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.15;
	color: var(--gn-forest);
}

/* Grid: 3 / 2 / 1 columns, equal-height rows */
section.related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
section.related.products ul.products::before,
section.related.products ul.products::after {
	display: none !important;
}

/* Card */
section.related.products ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e3ebe0 !important;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(23, 59, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
	section.related.products ul.products li.product:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 24px rgba(23, 59, 42, 0.12);
	}
}
section.related.products ul.products li.product:focus-within {
	outline: 3px solid var(--gn-green);
	outline-offset: 2px;
}

/* Image area: fixed height, image contained (never cropped) */
section.related.products .product-holder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 15rem;
	margin: 0;
	padding: 1rem;
	background: var(--gn-mint);
	overflow: hidden;
}
section.related.products .product-holder > img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}
section.related.products .product-holder .product__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
section.related.products .product-holder .product__link:focus-visible {
	outline: 3px solid var(--gn-green);
	outline-offset: -3px;
}

/* Preparation pill: upper-left */
section.related.products .gn-prep {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	background: var(--gn-green);
	border-radius: 999px;
	box-shadow: none;
	font-family: var(--gn-body);
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.3;
	color: #fff;
	pointer-events: none;
}
section.related.products .gn-prep .gn-prep__name {
	display: inline;
	color: #fff;
	font: inherit;
}
section.related.products .gn-prep__icon {
	display: none;
}

/* "+" control: upper-right */
section.related.products .product-holder .product__action-wrap {
	position: absolute !important;
	top: 0.75rem !important;
	right: 0.75rem !important;
	left: auto !important;
	z-index: 3;
}
section.related.products .product__action-wrap .plus-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	line-height: 1;
	background: #fff !important;
	color: var(--gn-green);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(23, 59, 42, 0.16);
}

/* Body: flex column so the footer sits at the bottom */
section.related.products .product-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.75rem;
	padding: 1.25rem;
	text-align: left;
}
section.related.products .product-info .product__title {
	margin: 0;
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
}
section.related.products .product-info .product__title a {
	color: var(--gn-forest);
	text-decoration: none;
}
section.related.products .product-info .product__title a:hover,
section.related.products .product-info .product__title a:focus-visible {
	color: var(--gn-green);
}
section.related.products .product-info .woocommerce-product-details__short-description {
	display: none;
}

/* Pack sizes: horizontal chips */
section.related.products .gn-packs {
	display: flex;
	flex-flow: row wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
section.related.products .gn-packs li {
	margin: 0;
	padding: 0.15rem 0.65rem;
	background: #fff;
	border: 1px solid #d5e3d0;
	border-radius: 999px;
	font-family: var(--gn-body);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--gn-forest);
}

/* Footer: price + CTA pinned to the bottom edge */
section.related.products .gn-card__foot {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
section.related.products .gn-card__price,
section.related.products .gn-card__price .price {
	margin: 0;
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--gn-forest);
}
section.related.products .gn-card__cta a.button,
section.related.products .gn-card__cta a.groser__ct_btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6rem 1rem !important;
	background: var(--gn-green) !important;
	border: 2px solid var(--gn-green) !important;
	border-radius: 999px !important;
	font-family: var(--gn-body) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-decoration: none;
	text-transform: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
section.related.products .gn-card__cta a.groser__ct_btn:hover {
	background: var(--gn-forest) !important;
	border-color: var(--gn-forest) !important;
}
section.related.products .gn-card__cta a.groser__ct_btn:focus-visible {
	outline: 3px solid var(--gn-green);
	outline-offset: 3px;
}

/* Responsive */
@media (max-width: 899px) {
	section.related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	section.related.products ul.products {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
	section.related.products .product-holder {
		height: 13rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	section.related.products ul.products li.product {
		transition: none;
	}
}
