.portal-product-grid {
	display: grid;
	gap: 35px 20px;
	width: 100%;
}

.portal-product-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-product-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-product-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	background: #fff;
	border: 0 !important;
	border-radius: 10px 80px 10px 10px;
}

.portal-product-image {
	display: block;
	overflow: hidden;
	width: 100%;
	border-radius: 10px 80px 0 0;
}

.portal-product-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	transition: transform 0.4s ease;
}

.portal-product-card:hover .portal-product-image img {
	transform: scale(1.025);
}

.portal-product-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.portal-product-category {
	margin-bottom: 5px;
	color: #777;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.portal-product-title {
	padding: 0;
	margin: 0 0 7px;
	color: #071a37;
	font-size: 20px;
	line-height: 1.1;
	text-transform: uppercase;
}

.portal-product-title a {
	color: inherit;
	text-decoration: none;
}

.portal-product-price {
	margin-bottom: 16px;
	color: #071a37;
	font-size: 15px;
	font-weight: 600;
}

.portal-product-price del {
	opacity: 0.5;
}

.portal-product-price ins {
	text-decoration: none;
}

.portal-product-price-ex-vat,
.portal-product-price-inc-vat {
	display: inline-block;
	vertical-align: baseline;
	white-space: nowrap;
	font-size: inherit;
	font-weight: inherit;
	margin-top: 0;
}

.portal-product-price-ex-vat {
	margin-inline-end: 12px;
}

.portal-product-price small {
	font-size: 0.72em;
	font-weight: 500;
	text-transform: uppercase;
}

.portal-product-blurb {
	margin: 0 0 18px;
	color: #555;
	font-size: 13px;
	line-height: 1.55;
}

.portal-product-bullets {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 0 !important;
	margin: 0 0 20px !important;
	list-style: none !important;
}

.portal-product-bullets li {
	position: relative;
	padding-left: 22px;
	margin: 0;
	color: #555;
	font-size: 13px;
	line-height: 1.45;
	list-style: none !important;
}

.portal-product-bullets li::before {
	content: "\2713";
	position: absolute;
	top: 1px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #20c724;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 15px;
}

.portal-product-button {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 7px;
	margin-top: auto;
	padding: 10px 15px;
	border-radius: 4px;
	background: #071a37;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease, transform 0.2s ease;
}

.portal-product-button:hover {
	background: #20c724;
	color: #fff !important;
	transform: translateY(-1px);
}

.portal-product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

.portal-product-actions .portal-product-button {
	margin-top: 0;
}

.portal-product-add-to-cart {
	background: #20c724;
}

.portal-product-add-to-cart:hover {
	background: #071a37;
}

.portal-product-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 50px;
}

.portal-product-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: #071a37;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.portal-product-pagination a.page-numbers:hover,
.portal-product-pagination .page-numbers.current {
	background: #20c724;
	color: #fff;
}

.portal-product-pagination .prev,
.portal-product-pagination .next {
	background: #071a37;
	color: #fff;
}

.portal-grid-no-products {
	margin: 0;
}

/* Horizontal product-card layout. */
.portal-product-layout-horizontal {
	--portal-horizontal-accent: var(--portal-product-accent, #20c724);
	gap: 24px;
}

.portal-product-layout-horizontal .portal-product-card {
	flex-direction: row;
	align-items: stretch;
	min-height: 240px;
	border-radius: 12px 45px 12px 12px;
	box-shadow: 0 7px 24px rgba(7, 26, 55, 0.07);
}

.portal-product-layout-horizontal .portal-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48%;
	width: 48%;
	padding: 0;
	border-radius: 12px 0 0 12px;
	background: #f7f8f9;
}

.portal-product-layout-horizontal .portal-product-image img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.portal-product-layout-horizontal .portal-product-content {
	justify-content: center;
	padding: 24px 22px;
}

.portal-product-layout-horizontal .portal-product-category {
	order: 1;
	margin-bottom: 10px;
	color: var(--portal-horizontal-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.portal-product-layout-horizontal .portal-product-title {
	order: 2;
	margin-bottom: 12px;
	font-size: 19px;
	line-height: 1.25;
	text-transform: none;
}

.portal-product-layout-horizontal .portal-product-price {
	order: 4;
	margin-bottom: 12px;
}

.portal-product-layout-horizontal .portal-product-blurb {
	order: 3;
	display: none;
}

.portal-product-layout-horizontal .portal-product-button {
	order: 6;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--portal-horizontal-accent) !important;
	font-size: 12px;
	text-transform: none;
}

.portal-product-layout-horizontal .portal-product-actions {
	order: 6;
	margin-top: 0;
}

.portal-product-layout-horizontal .portal-product-bullets {
	order: 5;
}

.portal-product-layout-horizontal .portal-product-button:hover {
	background: transparent;
	color: var(--portal-horizontal-accent) !important;
	transform: none;
	text-decoration: underline;
}

.portal-product-carousel {
	position: relative;
	width: 100%;
}

.portal-product-carousel-track {
	display: flex;
	grid-template-columns: none;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.portal-product-carousel-track::-webkit-scrollbar {
	display: none;
}

.portal-product-carousel-track .portal-product-card {
	flex: 0 0 calc((100% - (20px * (var(--portal-carousel-columns) - 1))) / var(--portal-carousel-columns));
	scroll-snap-align: start;
}

.portal-product-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 25px;
}

.portal-product-carousel-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #071a37;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.portal-product-carousel-button:hover,
.portal-product-carousel-button:focus-visible {
	background: #20c724;
}

.portal-product-carousel-button:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 980px) {
	.portal-product-grid,
	.portal-product-grid-2,
	.portal-product-grid-3,
	.portal-product-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-product-carousel-track .portal-product-card {
		flex-basis: calc((100% - 20px) / 2);
	}

	.portal-product-layout-horizontal {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.portal-product-grid,
	.portal-product-grid-2,
	.portal-product-grid-3,
	.portal-product-grid-4 {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.portal-product-carousel-track {
		gap: 15px;
	}

	.portal-product-carousel-track .portal-product-card {
		flex-basis: 100%;
	}

	.portal-product-layout-horizontal .portal-product-card {
		min-height: 200px;
	}

	.portal-product-layout-horizontal .portal-product-image {
		flex-basis: 48%;
		width: 48%;
		padding: 0;
	}

	.portal-product-layout-horizontal .portal-product-content {
		padding: 20px 16px;
	}

	.portal-product-layout-horizontal .portal-product-title {
		font-size: 17px;
	}
}
