/* FMCG Product Layout: one card style for every product grid on the site
   (category pages, search, related products on product pages, and picture cards such as the ProfilGate models).
   Matches the theme: square grey box, navy Montserrat titles; on hover a soft shadow and site-blue title (user picked "Option A", 2026-11-13). */

/* ---------- grid ---------- */
.fpl-pc-grid,
body.fpl-ls-cat ul.products {
	display: flex !important;
	flex-wrap: wrap;
	gap: 36px 24px;
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
}
body.fpl-ls-cat ul.products::before,
body.fpl-ls-cat ul.products::after { content: none !important; display: none !important; }
.fpl-pc-grid > *,
body.fpl-ls-cat ul.products > li.product {
	flex: 0 0 calc((100% - 72px) / 4);
	width: auto !important;
	min-width: 0;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	list-style: none !important;
}
body.fpl-ls-cat ul.products > li.product::before { content: none !important; }
.fpl-pc-grid--3 > * { flex-basis: calc((100% - 48px) / 3); }
.fpl-pc-grid--center { justify-content: center; }

/* ---------- card ---------- */
.fpl-pc {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none !important;
	background: #fff;
	border: 1px solid #E5E5E5;
	transition: box-shadow .2s, border-color .2s;
}
a.fpl-pc:hover, a.fpl-pc:focus { color: inherit; text-decoration: none !important; }
.fpl-pc.is-popup { cursor: pointer; }
.fpl-pc:focus-visible { outline: 2px solid #151360; outline-offset: 3px; }

.fpl-pc .fpl-pc-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 16px;
	background: #fff;
	border-bottom: 1px solid #EEF0F2;
	overflow: hidden;
}
.fpl-pc .fpl-pc-img img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	object-fit: contain;
	box-shadow: none !important;
	border: 0 !important;
}

.fpl-pc .fpl-pc-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 16px 18px;
}
.fpl-pc .fpl-pc-brand {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #666;
}
.fpl-pc .fpl-pc-title {
	display: block;
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.35 !important;
	text-transform: none !important;
	color: #151360;
	transition: color .2s;
}
.fpl-pc .fpl-pc-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 22px;
	color: #555;
}
/* Longer, formatted text (picture cards with a description) */
.fpl-pc .fpl-pc-text { font-size: 14px; line-height: 22px; color: #444; }
.fpl-pc .fpl-pc-text p { margin: 0 0 8px; line-height: 22px; }
.fpl-pc .fpl-pc-text p:last-child { margin-bottom: 0; }
.fpl-pc .fpl-pc-text ul { margin: 0; padding: 0; }
body .fpl-pc .fpl-pc-text ul li { list-style: none !important; background: url(../../../themes/fmcg/images/bullet.jpg) 0 8px no-repeat !important; padding-left: 16px !important; margin: 0 0 4px; line-height: 22px; }
.fpl-pc .fpl-pc-more {
	margin-top: auto;
	padding-top: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #151360;
}

/* hover: soft shadow, the name turns site blue, nothing moves */
.fpl-pc:hover { border-color: #D6DCE2; box-shadow: 0 6px 18px rgba(21, 19, 96, .10); }
.fpl-pc:hover .fpl-pc-title { color: #067AC0; }
.fpl-pc:hover .fpl-pc-more { text-decoration: underline; }

/* ---------- smaller screens ---------- */
@media (max-width: 1024px) {
	.fpl-pc-grid > *, body.fpl-ls-cat ul.products > li.product { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 760px) {
	.fpl-pc-grid, body.fpl-ls-cat ul.products { gap: 26px 14px; }
	.fpl-pc-grid > *, body.fpl-ls-cat ul.products > li.product,
	.fpl-pc-grid--3 > * { flex-basis: calc((100% - 14px) / 2); }
	.fpl-pc .fpl-pc-img { padding: 10px; }
	.fpl-pc .fpl-pc-body { padding: 10px 12px 14px; }
	.fpl-pc .fpl-pc-brand { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fpl-pc .fpl-pc-title { font-size: 15px !important; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
	.fpl-pc .fpl-pc-desc { font-size: 13px; line-height: 20px; -webkit-line-clamp: 2; }
}
/* picture cards with longer text (e.g. ProfilGate models): photos fill a 4:3 frame; one per row on phones */
.fpl-pc-grid--text .fpl-pc .fpl-pc-img { aspect-ratio: 4 / 3; padding: 0; }
.fpl-pc-grid--text .fpl-pc .fpl-pc-img img { object-fit: cover; }
@media (max-width: 560px) {
	.fpl-pc-grid--text > * { flex-basis: 100%; }
}
