/* FMCG Product Layout: category + search pages. The product cards themselves are in cards.css (shared with product pages). */

body.fpl-ls-cat ul.products { margin: 28px 0 44px !important; }
.fpl-sr .fpl-pc-grid { margin: 22px 0 10px; }

/* ---------- sub-category links (same pill style as the site's outlined buttons) ---------- */
.fpl-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 4px;
}
.fpl-subcats a {
	display: inline-block;
	padding: 7px 16px;
	border: 2px solid #151360;
	border-radius: 30px;
	background: #fff;
	color: #151360 !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none !important;
}
.fpl-subcats a span { font-weight: 400; }
.fpl-subcats a:hover,
.fpl-subcats a.is-current { background: #151360; color: #fff !important; }

/* ---------- result count, sorting, page numbers ---------- */
body.fpl-ls-cat .woocommerce-result-count { margin: 16px 0 0 !important; font-size: 15px; color: #555; }
body.fpl-ls-cat .woocommerce-ordering { margin: 10px 0 0 !important; }
body.fpl-ls-cat .woocommerce-ordering select {
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 14px;
	color: #151360;
}
body.fpl-ls-cat nav.woocommerce-pagination { margin: 0 0 40px; text-align: center; }
body.fpl-ls-cat nav.woocommerce-pagination ul {
	display: inline-flex !important;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
}
body.fpl-ls-cat nav.woocommerce-pagination ul li { float: none !important; margin: 0 !important; border: 0 !important; overflow: visible !important; background: none !important; }
body.fpl-ls-cat nav.woocommerce-pagination ul li::before { content: none !important; }
body.fpl-ls-cat nav.woocommerce-pagination ul li a,
body.fpl-ls-cat nav.woocommerce-pagination ul li span {
	display: block;
	min-width: 40px;
	padding: 8px 12px !important;
	border: 1px solid #E5E5E5;
	background: #fff;
	color: #151360;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
}
body.fpl-ls-cat nav.woocommerce-pagination ul li a:hover { color: #067AC0; border-color: #ccc; }
body.fpl-ls-cat nav.woocommerce-pagination ul li span.current { background: #151360; border-color: #151360; color: #fff; }

/* ---------- category intro: fold on phones ---------- */
.fpl-more-intro {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #067AC0;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

/* ---------- search page ---------- */
.fpl-sr { padding: 8px 0 40px; }
.fpl-sr h1 { margin: 0 0 18px; }
.fpl-sr-form { display: flex; gap: 10px; max-width: 640px; margin: 0 0 10px; }
.fpl-sr-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #ccc;
	border-radius: 0;
	font-size: 16px;
	background: #fff;
}
.fpl-sr-form input[type="search"]:focus { outline: 2px solid #067AC0; outline-offset: -1px; }
.fpl-sr-form button {
	height: 46px;
	padding: 0 26px;
	border: 2px solid #151360;
	border-radius: 30px;
	background: #151360;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
}
.fpl-sr-form button:hover { background: #067AC0; border-color: #067AC0; }
.fpl-sr-count { margin: 0 0 8px; color: #555; font-size: 15px; }
.fpl-sr-h {
	margin: 30px 0 0 !important;
	padding-bottom: 10px;
	border-bottom: 1px solid #E5E5E5;
	font-size: 22px !important;
	color: #151360;
	text-transform: none !important;
}
.fpl-sr-list { list-style: none !important; margin: 6px 0 0 !important; padding: 0 !important; }
.fpl-sr-list li {
	margin: 0 !important;
	padding: 16px 0 !important;
	border-bottom: 1px solid #E5E5E5;
	background: none !important;
}
.fpl-sr-list li::before { content: none !important; }
.fpl-sr-list a {
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #151360;
	text-decoration: none;
}
.fpl-sr-list a:hover { color: #067AC0; }
.fpl-sr-date { display: block; margin-top: 2px; font-size: 13px; color: #666; }
.fpl-sr-list p { margin: 6px 0 0 !important; font-size: 15px; line-height: 1.6; color: #333; }
.fpl-sr-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.fpl-sr-pages .page-numbers {
	padding: 8px 12px;
	border: 1px solid #E5E5E5;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	color: #151360;
}
.fpl-sr-pages a.page-numbers:hover { color: #067AC0; }
.fpl-sr-pages .page-numbers.current { background: #151360; border-color: #151360; color: #fff; }
.fpl-sr-none { margin: 20px 0 0; font-size: 16px; }
.fpl-sr-help {
	margin: 36px 0 0;
	padding: 18px 20px;
	background: #F3F9F9;
	font-size: 15px;
}
.fpl-sr-help strong { color: #151360; margin-right: 6px; }
.fpl-sr-help a { font-weight: 600; color: #067AC0; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
	.fpl-ls-cat .term-description { max-height: 7.6em; overflow: hidden; position: relative; }
	.fpl-ls-cat .term-description::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em;
		background: linear-gradient(rgba(255,255,255,0), #fff);
	}
	.fpl-ls-cat .term-description.is-open { max-height: none; }
	.fpl-ls-cat .term-description.is-open::after { display: none; }
	.fpl-subcats { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.fpl-subcats::-webkit-scrollbar { display: none; }
	.fpl-subcats a { flex: none; font-size: 11px; padding: 6px 12px; }
	.fpl-sr-h { font-size: 19px !important; }
	.fpl-sr-form button { padding: 0 16px; }
}
