.langostino-marisco-product-grid,
.woocommerce ul.products,
.wc-block-grid__products {
	display: grid;
	align-items: stretch;
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.5rem);
}

.langostino-marisco-product-grid {
	margin: 0;
}

.woocommerce ul.products {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

body :is(.wc-block-product, .langostino-marisco-product-card, .wc-block-grid__product, .woocommerce ul.products li.product) {
	box-sizing: border-box;
	min-width: 0;
	border: 1px solid rgb(6 79 91 / 10%);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 8px 20px rgb(6 79 91 / 10%);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body :is(.wc-block-product, .langostino-marisco-product-card, .wc-block-grid__product, .woocommerce ul.products li.product):hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgb(6 79 91 / 16%);
}

.langostino-marisco-product-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	align-items: stretch;
	padding: 0.9rem;
}

.langostino-marisco-product-details > svg {
	display: none;
}

body.langostino-content-page .entry-content .langostino-marisco-product-details > svg {
	display: none;
}

.langostino-marisco-product-card > a:has(> img),
.woocommerce ul.products li.product > a:first-child:has(> img),
.wc-block-grid__product-image,
.wc-block-product .wc-block-components-product-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	margin: 0 !important;
	border-radius: 0.75rem;
	background: #edf4f4;
}

body.langostino-content-page .entry-content .langostino-marisco-product-card > a:has(> img) {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	margin: 0;
}

.langostino-marisco-product-card > a:has(> img) img,
.woocommerce ul.products li.product > a:first-child img,
.wc-block-grid__product-image img,
.wc-block-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 220ms ease;
}

body.langostino-content-page .entry-content .langostino-marisco-product-card > a:has(> img) img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.langostino-marisco-product-card:hover > a:has(> img) img,
.woocommerce ul.products li.product:hover > a:first-child img,
.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.035);
}

body .langostino-marisco-product-card > h5,
body .wc-block-product > .wp-block-post-title,
body .wc-block-grid__product-title,
body .woocommerce ul.products li.product .woocommerce-loop-product__title {
	box-sizing: border-box;
	display: -webkit-box;
	height: 4.2em;
	min-height: 4.2em;
	max-height: 4.2em;
	margin: 0.9rem 0 0.45rem;
	overflow: hidden;
	padding: 0;
	color: var(--langostino-primary);
	font-family: "Poppins", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body .langostino-marisco-product-card > h5 a,
body .wc-block-product > .wp-block-post-title a,
body .wc-block-grid__product-title a,
body .woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: var(--langostino-primary);
	text-decoration: none;
}

body .langostino-marisco-product-card > h5 a:hover,
body .langostino-marisco-product-card > h5 a:focus-visible,
body .wc-block-product > .wp-block-post-title a:hover,
body .wc-block-product > .wp-block-post-title a:focus-visible,
body .wc-block-grid__product-title a:hover,
body .wc-block-grid__product-title a:focus-visible,
body .woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,
body .woocommerce ul.products li.product .woocommerce-loop-product__title a:focus-visible {
	color: var(--langostino-secondary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.langostino-marisco-product-price,
.langostino-marisco-product-price .woocommerce-Price-amount,
body .wc-block-product .wp-block-woocommerce-product-price,
body .wc-block-grid__product .wc-block-grid__product-price,
body .woocommerce ul.products li.product .price {
	color: var(--langostino-primary);
	font-weight: 700;
}

.langostino-marisco-product-price {
	display: flex;
	box-sizing: border-box;
	height: 4rem;
	flex-wrap: wrap;
	align-content: center;
	align-items: baseline;
	gap: 0 0.25rem;
	overflow: hidden;
	font-size: 1.05rem;
	line-height: 1.3;
}

.langostino-marisco-product-price > small {
	flex-basis: 100%;
	color: #687b7e;
	font-size: 0.75rem;
	font-weight: 400;
}

.langostino-marisco-product-details {
	box-sizing: border-box;
	height: 1.25rem;
	overflow: hidden;
	color: #687b7e;
	font-size: 0.75rem;
	line-height: 1.25rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.langostino-marisco-product-details > ul {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

.langostino-marisco-product-details > ul > li {
	display: inline;
	margin: 0;
}

body.langostino-content-page .entry-content .langostino-marisco-product-details > ul {
	margin: 0;
	padding: 0;
}

body.langostino-content-page .entry-content .langostino-marisco-product-details > ul > li {
	margin: 0;
}

body.langostino-content-page .entry-content .langostino-marisco-product-details a {
	color: inherit;
	text-decoration: none;
}

body.langostino-content-page .entry-content .langostino-marisco-product-details a:hover,
body.langostino-content-page .entry-content .langostino-marisco-product-details a:focus-visible {
	color: var(--langostino-primary);
	text-decoration: underline;
	text-decoration-color: currentColor;
}

.langostino-marisco-product-actions {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: stretch;
	margin-top: auto;
}

.langostino-marisco-product-actions form {
	display: flex;
	width: 100%;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.langostino-marisco-product-actions form > label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.langostino-marisco-product-actions form .quantity {
	flex: 0 0 4.5rem;
}

.langostino-marisco-product-actions form .quantity input,
.langostino-marisco-product-actions form > input.qty {
	box-sizing: border-box;
	width: 4.5rem;
	max-width: 100%;
	flex: 0 1 4.5rem;
	min-height: 42px;
	border: 1px solid #c5d4d5;
	border-radius: 0.55rem;
}

.langostino-marisco-product-actions form .button,
.langostino-marisco-product-actions form button[type="submit"],
.langostino-marisco-product-actions > a,
body.langostino-content-page .entry-content .langostino-marisco-product-actions form .button,
body.langostino-content-page .entry-content .langostino-marisco-product-actions form button[type="submit"],
body.langostino-content-page .entry-content .langostino-marisco-product-actions > a,
body .wc-block-product .wp-block-woocommerce-product-button > a,
body .wc-block-product .wc-block-components-product-button__button,
body .wc-block-grid__product .wp-block-button__link,
body .woocommerce ul.products li.product .button {
	box-sizing: border-box;
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: var(--langostino-primary);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.langostino-marisco-product-actions form .button,
.langostino-marisco-product-actions form button[type="submit"] {
	flex: 1 1 7rem;
}

.langostino-marisco-product-actions > a {
	width: 100%;
	flex: 1 1 auto;
}

.langostino-marisco-product-actions form .button:hover,
.langostino-marisco-product-actions form button[type="submit"]:hover,
.langostino-marisco-product-actions > a:hover,
body.langostino-content-page .entry-content .langostino-marisco-product-actions form .button:hover,
body.langostino-content-page .entry-content .langostino-marisco-product-actions form button[type="submit"]:hover,
body.langostino-content-page .entry-content .langostino-marisco-product-actions > a:hover,
body .wc-block-product .wp-block-woocommerce-product-button > a:hover,
body .wc-block-product .wc-block-components-product-button__button:hover,
body .wc-block-grid__product .wp-block-button__link:hover,
body .woocommerce ul.products li.product .button:hover {
	transform: translateY(-1px);
	background: var(--langostino-accent);
	color: #fff;
}

.woocommerce ul.products li.product {
	display: flex;
	min-width: 0;
	flex-direction: column;
	float: none;
	margin: 0 !important;
	padding: 0.9rem;
}

.woocommerce ul.products li.product .button {
	width: 100%;
	margin: auto 0 0;
}

body .langostino-product-gallery .langostino-related-products .wc-block-product {
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 8px 20px rgb(6 79 91 / 10%);
}

@media (max-width: 900px) {
	.langostino-marisco-product-grid,
	.woocommerce ul.products,
	.wc-block-grid__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.langostino-marisco-product-grid,
	.woocommerce ul.products,
	.wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.7rem;
	}

	body.langostino-content-page .entry-content .langostino-content-page__media-feature .langostino-marisco-product-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.langostino-marisco-product-card {
		padding: 0.6rem;
		border-radius: 0.8rem;
	}

	body .langostino-marisco-product-card > h5,
	body .wc-block-product > .wp-block-post-title,
	body .wc-block-grid__product-title,
	body .woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.82rem;
	}

	.langostino-marisco-product-price {
		font-size: 0.9rem;
	}

	.langostino-marisco-product-actions form .button,
	.langostino-marisco-product-actions form button[type="submit"],
	.langostino-marisco-product-actions > a {
		padding: 0.35rem 0.25rem;
		font-size: 0.68rem;
		line-height: 1.1;
	}

	.langostino-marisco-product-actions form .quantity input,
	.langostino-marisco-product-actions form > input.qty {
		width: 3.5rem;
		flex-basis: 3.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body :is(.wc-block-product, .langostino-marisco-product-card, .wc-block-grid__product, .woocommerce ul.products li.product),
	.langostino-marisco-product-card img,
	.langostino-marisco-product-actions form .button,
	.langostino-marisco-product-actions form button[type="submit"],
	body .wc-block-product .wp-block-woocommerce-product-button > a,
	body .wc-block-product .wc-block-components-product-button__button,
	body .woocommerce ul.products li.product .button {
		transition: none;
	}
}
