/* Rashi Product Catalogue — front-end styles.
   build.7: full visual redesign to match the site's new premium B2B
   identity (deep pharmaceutical green + lime accent, Poppins, white/soft
   grey, one-row-per-product directory — no ecommerce cards, no prices).
   Scoped under .rpc-catalogue / .rpc-* so it never leans on the active
   theme, per the "must not depend on the active theme" requirement. */

.rpc-catalogue,
.rpc-catalogue *,
.rpc-catalogue *::before,
.rpc-catalogue *::after {
	box-sizing: border-box;
}

.rpc-catalogue {
	--rpc-green-900: #0C6D38;
	--rpc-green-700: #468A3D;
	--rpc-lime-500: #B8D334;
	--rpc-ink: #101B14;
	--rpc-ink-soft: #586459;
	--rpc-paper: #FFFFFF;
	--rpc-surface: #F2F8EF;
	--rpc-line: #DDE8D9;
	--rpc-shadow: 0 20px 48px -26px rgba(12, 109, 56, .28);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--rpc-ink);
	font-size: 15px;
	line-height: 1.6;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.rpc-catalogue a { color: inherit; }

/* ---- Hero ---- */
.rpc-hero {
	position: relative;
	overflow: hidden;
	background: #0A140E;
	border-radius: 24px;
	padding: 56px 48px;
	margin: 32px 0 40px;
	color: #fff;
}
.rpc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 92% -10%, rgba(184, 211, 52, .22), transparent 70%),
		radial-gradient(500px 260px at -5% 110%, rgba(12, 109, 56, .35), transparent 70%);
}
.rpc-hero__inner { position: relative; max-width: 640px; }
.rpc-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rpc-lime-500);
	font-weight: 600;
}
.rpc-hero__kicker::before { content: ""; width: 16px; height: 1px; background: var(--rpc-lime-500); }
.rpc-hero__title {
	margin: 14px 0 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.12;
	font-weight: 600;
}
.rpc-hero__lead {
	margin: 16px 0 0;
	font-size: 16px;
	color: rgba(255, 255, 255, .78);
	max-width: 58ch;
}
.rpc-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding: 13px 24px;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--rpc-lime-500), #9CC22A);
	color: #0A2A14;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
}

/* ---- Short category introduction ---- */
.rpc-intro {
	margin: 0 0 32px;
}
.rpc-intro p {
	font-size: 16px;
	color: var(--rpc-ink-soft);
	line-height: 1.75;
	max-width: 80ch;
	margin: 0;
}

/* ---- Search + A-Z ---- */
.rpc-toolbar {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--rpc-paper);
	padding: 18px 0;
	border-bottom: 1px solid var(--rpc-line);
	margin-bottom: 0;
}
.rpc-search {
	position: relative;
	max-width: 440px;
}
.rpc-search input[type="search"] {
	width: 100%;
	padding: 13px 16px 13px 42px;
	border: 1px solid var(--rpc-line);
	border-radius: 12px;
	background: var(--rpc-surface);
	font-family: inherit;
	font-size: 15px;
	color: var(--rpc-ink);
}
.rpc-search input[type="search"]:focus {
	outline: none;
	border-color: var(--rpc-green-700);
	background: var(--rpc-paper);
}
.rpc-search svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--rpc-ink-soft);
	pointer-events: none;
}
.rpc-search__count {
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--rpc-ink-soft);
}
.rpc-az {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}
.rpc-az button {
	font-family: inherit;
	border: 1px solid var(--rpc-line);
	background: var(--rpc-paper);
	color: var(--rpc-ink-soft);
	border-radius: 8px;
	padding: 6px 11px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rpc-az button:hover { border-color: var(--rpc-green-700); color: var(--rpc-green-900); }
.rpc-az button.is-active {
	background: var(--rpc-green-900);
	border-color: var(--rpc-green-900);
	color: #fff;
}

/* ---- Directory: one row per product, no cards ---- */
.rpc-directory {
	margin-top: 8px;
	min-height: 200px;
	position: relative;
}
.rpc-directory.is-loading { opacity: .5; pointer-events: none; }
.rpc-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 4px;
	border-bottom: 1px solid var(--rpc-line);
	transition: background .15s ease;
}
.rpc-row:hover { background: var(--rpc-surface); }
.rpc-row__main { flex: 1; min-width: 0; }
.rpc-row__name {
	font-size: 16px;
	font-weight: 600;
	color: var(--rpc-ink);
	margin: 0;
}
.rpc-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 4px;
	font-size: 13px;
	color: var(--rpc-ink-soft);
}
.rpc-row__meta span b { color: var(--rpc-ink-soft); font-weight: 500; }
.rpc-row__enquire {
	flex: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1px solid var(--rpc-green-900);
	background: transparent;
	color: var(--rpc-green-900);
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rpc-row:hover .rpc-row__enquire,
.rpc-row__enquire:hover {
	background: var(--rpc-green-900);
	color: #fff;
}
.rpc-row__enquire:active { transform: scale(.97); }

.rpc-empty {
	padding: 56px 24px;
	text-align: center;
	color: var(--rpc-ink-soft);
	background: var(--rpc-surface);
	border-radius: 16px;
}
.rpc-empty strong { display: block; color: var(--rpc-ink); font-size: 16px; margin-bottom: 6px; }

.rpc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}
.rpc-pagination a,
.rpc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--rpc-line);
	border-radius: 9px;
	text-decoration: none;
	color: var(--rpc-ink-soft);
	font-size: 13.5px;
	font-weight: 600;
}
.rpc-pagination a:hover { border-color: var(--rpc-green-700); color: var(--rpc-green-900); }
.rpc-pagination .is-active { background: var(--rpc-green-900); border-color: var(--rpc-green-900); color: #fff; }

/* ---- Trust / enquiry CTA ---- */
.rpc-trust {
	margin: 64px 0;
	padding: 44px 40px;
	border-radius: 22px;
	background: linear-gradient(120deg, var(--rpc-green-900), var(--rpc-green-700) 60%, #6a9b3c);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.rpc-trust h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; }
.rpc-trust p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; max-width: 48ch; }
.rpc-trust__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rpc-trust__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	background: #fff;
	color: var(--rpc-green-900);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}
.rpc-trust__email { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---- Related categories ---- */
.rpc-related { margin: 8px 0 56px; }
.rpc-related h2 {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rpc-green-700);
	font-weight: 700;
	margin: 0 0 16px;
}
.rpc-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.rpc-related__card {
	display: block;
	text-decoration: none;
	border: 1px solid var(--rpc-line);
	border-radius: 14px;
	padding: 18px 20px;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rpc-related__card:hover { transform: translateY(-3px); box-shadow: var(--rpc-shadow); border-color: transparent; }
.rpc-related__card span {
	display: block;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rpc-green-700);
	font-weight: 700;
	margin-bottom: 6px;
}
.rpc-related__card strong { font-size: 15px; color: var(--rpc-ink); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.rpc-hero { padding: 40px 24px; border-radius: 18px; }
	.rpc-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 2px; }
	.rpc-row__enquire { align-self: flex-start; }
	.rpc-trust { flex-direction: column; align-items: flex-start; }
	.rpc-related__grid { grid-template-columns: 1fr; }
}

/* ---- Enquiry modal (single product, minimal) ---- */
.rpc-modal {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.rpc-modal[hidden] {
	display: none;
}
.rpc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 14, 10, .68);
	backdrop-filter: blur(3px);
}
.rpc-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rpc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #DDE8D9;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #101B14;
}
.rpc-modal__eyebrow {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #468A3D;
	font-weight: 700;
	margin: 0;
}
.rpc-modal__panel h3 {
	margin: 8px 0 0;
	font-size: 20px;
	font-weight: 600;
	color: #101B14;
}
.rpc-modal__product {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #F2F8EF;
	border: 1px solid #DDE8D9;
	font-size: 14.5px;
	font-weight: 600;
	color: #0C6D38;
}
.rpc-modal__field { margin-top: 16px; }
.rpc-modal__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #586459;
	margin-bottom: 6px;
}
.rpc-modal__field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #DDE8D9;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14.5px;
	color: #101B14;
}
.rpc-modal__field input:focus { outline: none; border-color: #468A3D; }
.rpc-modal__field.has-error input { border-color: #C0392B; }
.rpc-modal__error { display: none; margin-top: 5px; font-size: 12px; color: #C0392B; }
.rpc-modal__field.has-error .rpc-modal__error { display: block; }
.rpc-modal__honeypot { position: absolute; left: -9999px; top: -9999px; }
.rpc-modal__submit {
	width: 100%;
	margin-top: 22px;
	padding: 14px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(120deg, #0C6D38, #468A3D);
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.rpc-modal__submit:disabled { opacity: .6; cursor: default; }
.rpc-modal__status {
	margin-top: 12px;
	font-size: 13px;
	text-align: center;
}
.rpc-modal__status.is-error { color: #C0392B; }

.rpc-modal__success { text-align: center; padding: 8px 0; }
.rpc-modal__success svg { color: #0C6D38; }
.rpc-modal__success h3 { margin: 14px 0 0; }
.rpc-modal__success p { margin: 10px 0 0; color: #586459; font-size: 14.5px; line-height: 1.6; }
.rpc-modal__success strong { color: #101B14; }
.rpc-modal__success button {
	margin-top: 22px;
	padding: 12px 28px;
	border-radius: 999px;
	border: 1px solid #DDE8D9;
	background: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.rpc-catalogue * { transition-duration: .001ms !important; }
}
