/**
 * Product catalogue and research-article styling.
 *
 * Written as plain CSS rather than Tailwind utilities because the theme ships
 * a pre-compiled stylesheet — any new utility class used here would have no
 * rule behind it. Colours mirror the theme's brand palette.
 */

:root {
	--lpc-brand: #1d6ff0;
	--lpc-brand-dark: #0f3f8f;
	--lpc-gold: #c08a2e;
	--lpc-ink: #0f172a;
	--lpc-body: #334155;
	--lpc-line: #e2e8f0;
	--lpc-soft: #f8fafc;
}

/* ---------------------------------------------------------------- hero -- */

.lpc-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #143a7a 0%, #0d2b5c 55%, #08183a 100%);
	color: #fff;
}

.lpc-hero-bg {
	position: absolute;
	inset: 0;
	opacity: 0.18;
}

.lpc-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lpc-hero-inner {
	position: relative;
	padding-top: 3rem;
	padding-bottom: 3.25rem;
}

.lpc-hero-title {
	margin: 1.25rem 0 0;
	max-width: 24ch;
	font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.lpc-hero-text {
	margin: 1rem 0 0;
	max-width: 62ch;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #dbe6fb;
}

.lpc-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}

/* --------------------------------------------------------- breadcrumbs -- */

.lpc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
}

.lpc-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.4rem;
	opacity: 0.45;
}

.lpc-breadcrumbs a {
	color: inherit;
	text-decoration: none;
	opacity: 0.8;
}

.lpc-breadcrumbs a:hover {
	opacity: 1;
	text-decoration: underline;
}

.lpc-breadcrumbs [aria-current="page"] span {
	font-weight: 600;
	opacity: 1;
}

.lpc-hero .lpc-breadcrumbs {
	color: #cbd9f5;
}

.lpc-main > .lpc-breadcrumbs {
	margin-bottom: 1.5rem;
	color: var(--lpc-body);
}

/* ------------------------------------------------------------- layout -- */

.lpc-main {
	padding-top: 2.75rem;
	padding-bottom: 3.5rem;
}

.lpc-section + .lpc-section {
	margin-top: 3rem;
}

.lpc-h2 {
	margin: 0;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
	font-weight: 800;
	color: var(--lpc-ink);
	letter-spacing: -0.015em;
}

.lpc-lede {
	margin: 0.5rem 0 0;
	max-width: 70ch;
	color: var(--lpc-body);
	line-height: 1.65;
}

/* ------------------------------------------------------ category grid -- */

.lpc-catgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.1rem;
	margin-top: 1.5rem;
}

.lpc-cat {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--lpc-line);
	border-radius: 0.9rem;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.lpc-cat:hover {
	transform: translateY(-2px);
	border-color: #bfd3f7;
	box-shadow: 0 12px 28px -18px rgba(15, 42, 92, 0.55);
}

.lpc-cat-media img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.lpc-cat-body {
	display: block;
	padding: 0.9rem 1rem 1.05rem;
}

.lpc-cat-title {
	display: block;
	font-weight: 700;
	color: var(--lpc-ink);
	line-height: 1.35;
}

.lpc-cat-text {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--lpc-body);
}

/* --------------------------------------------------------------- pills -- */

.lpc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.lpc-pill {
	display: inline-flex;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--lpc-line);
	border-radius: 999px;
	background: var(--lpc-soft);
	font-size: 0.875rem;
	font-weight: 500;
	color: #1e293b;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lpc-pill:hover {
	background: #eaf1fe;
	border-color: #bfd3f7;
}

/* -------------------------------------------------------- product grid -- */

.lpc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.lpc-card {
	border: 1px solid var(--lpc-line);
	border-radius: 0.9rem;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.lpc-card:hover {
	transform: translateY(-2px);
	border-color: #bfd3f7;
	box-shadow: 0 14px 30px -20px rgba(15, 42, 92, 0.6);
}

.lpc-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.lpc-card-media img {
	display: block;
	width: 100%;
	height: 165px;
	object-fit: cover;
}

.lpc-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.05rem 1.15rem;
}

.lpc-card-title {
	font-weight: 700;
	line-height: 1.35;
	color: var(--lpc-ink);
}

.lpc-card-text {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--lpc-body);
}

.lpc-card-price {
	margin-top: auto;
	padding-top: 0.4rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--lpc-brand-dark);
}

/* ------------------------------------------------------ single product -- */

.lpc-productlayout {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.lpc-productlayout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 2.75rem;
	}
}

.lpc-productmain img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 1rem;
	border: 1px solid var(--lpc-line);
}

.lpc-productmain {
	margin: 0;
}

.lpc-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.75rem;
}

.lpc-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0.6rem;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.lpc-thumb img {
	width: 84px;
	height: 60px;
	object-fit: cover;
}

.lpc-thumb.is-active,
.lpc-thumb:hover {
	border-color: var(--lpc-brand);
}

.lpc-producttitle {
	margin: 0;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--lpc-ink);
}

.lpc-productlede {
	margin: 0.85rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--lpc-body);
}

.lpc-productprice {
	margin: 1.25rem 0 0;
	padding: 0.9rem 1.1rem;
	border: 1px solid #f0dcb8;
	border-radius: 0.75rem;
	background: #fdf8ef;
}

.lpc-productprice-value {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	color: #8a5f14;
}

.lpc-productprice-note {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #7b6534;
}

.lpc-productbrands {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--lpc-body);
}

.lpc-productactions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.35rem 0 0;
}

.lpc-spectable,
.lpc-table {
	width: 100%;
	margin: 1.6rem 0 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.lpc-spectable caption,
.lpc-table caption {
	margin-bottom: 0.6rem;
	text-align: left;
	font-weight: 700;
	color: var(--lpc-ink);
}

.lpc-spectable th,
.lpc-spectable td,
.lpc-table th,
.lpc-table td {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--lpc-line);
	text-align: left;
	vertical-align: top;
	line-height: 1.55;
}

.lpc-spectable th[scope="row"],
.lpc-table th[scope="row"] {
	width: 38%;
	background: var(--lpc-soft);
	font-weight: 600;
	color: var(--lpc-ink);
}

.lpc-table thead th {
	background: #eef4fe;
	font-weight: 700;
	color: var(--lpc-ink);
}

.lpc-tablewrap {
	margin: 1.75rem 0;
	overflow-x: auto;
}

.lpc-termlist {
	margin: 1.35rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lpc-productbody {
	display: grid;
	gap: 2.5rem;
	margin-top: 3rem;
}

@media (min-width: 1000px) {
	.lpc-productbody {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

/* -------------------------------------------------- article furniture -- */

.lpc-keytakeaways {
	margin: 0 0 2rem;
	padding: 1.35rem 1.5rem;
	border: 1px solid #cddffb;
	border-left: 4px solid var(--lpc-brand);
	border-radius: 0.85rem;
	background: #f4f8ff;
}

.lpc-keytakeaways h2 {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lpc-brand-dark);
}

.lpc-keytakeaways ul {
	margin: 0;
	padding-left: 1.15rem;
}

.lpc-keytakeaways li {
	margin: 0.4rem 0;
	line-height: 1.65;
}

.lpc-sources {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--lpc-line);
	font-size: 0.875rem;
	color: #64748b;
}

.lpc-sources h2 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.lpc-pagination {
	margin-top: 2rem;
}
