/* Store page layout (single-clx_store.php) */
.clx-store-page {
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
	padding: 20px 16px 56px;
}

/* GeneratePress wraps content in a container; let our page manage its own width. */
.single-clx_store .site-content { display: block; }
.single-clx_store.separate-containers .site-main { margin: 0; }

/* Breadcrumb */
.clx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .85em; color: var(--clx-muted); }
.clx-crumbs a { color: var(--clx-muted); text-decoration: none; }
.clx-crumbs a:hover { color: var(--clx-accent); }
.clx-crumbs [aria-current] { color: var(--clx-text); font-weight: 600; }

/* Header card */
.clx-store-head {
	display: grid;
	grid-template-columns: 112px 1fr auto;
	align-items: center;
	gap: 22px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--clx-border);
	border-radius: 20px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.clx-store-logo {
	display: grid; place-items: center; overflow: hidden;
	width: 112px; height: 112px;
	background: #fff; border: 1px solid var(--clx-border); border-radius: 22px;
}
.clx-store-logo .clx-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.clx-store-logo .clx-logo-letter {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-size: 2.6em; font-weight: 800;
	color: hsl(var(--h) 60% 35%); background: hsl(var(--h) 80% 94%);
}
.clx-store-intro { min-width: 0; }
.clx-store-intro h1 { margin: 0 0 6px; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; }
.clx-store-lead { margin: 0 0 12px; color: var(--clx-muted); line-height: 1.7; }
.clx-store-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clx-store-chips li {
	padding: 4px 12px; font-size: .82em; font-weight: 600;
	color: var(--clx-text); background: var(--clx-muted-bg); border-radius: 99px;
}
.clx-store-chips li.is-green { color: #0e6b3d; background: #e7f7ee; }

.clx-visit {
	align-self: center;
	padding: 12px 20px; font-weight: 700; white-space: nowrap; text-decoration: none;
	color: var(--clx-text); background: #fff; border: 1.5px solid var(--clx-text); border-radius: 12px;
}
.clx-visit:hover { color: #fff; background: var(--clx-text); }

/* Two columns */
.clx-store-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	margin-top: 24px;
	align-items: start;
}
.clx-store-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.clx-side-card { padding: 20px; background: #fff; border: 1px solid var(--clx-border); border-radius: 16px; }
.clx-side-card h2 { margin: 0 0 12px; font-size: 1.05em; }
.clx-side-card .clx-facts h2, .clx-side-card .clx-related h2 { margin: 0 0 12px; font-size: 1.05em; }
.clx-side-card .clx-related, .clx-side-card .clx-facts { margin: 0; }
.clx-side-trust p { margin: 0 0 10px; font-size: .9em; color: var(--clx-muted); line-height: 1.7; }
.clx-side-more { font-size: .9em; font-weight: 700; text-decoration: none; }

.clx-similar { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.clx-similar a {
	display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px;
	font-weight: 600; text-decoration: none; color: var(--clx-text);
}
.clx-similar-name { flex: 1; }
.clx-similar-code {
	padding: 3px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; font-weight: 800; letter-spacing: 1px;
	color: var(--clx-accent); background: #fff; border: 1.5px dashed var(--clx-accent); border-radius: 8px;
}
.clx-similar a:hover { background: var(--clx-muted-bg); }
.clx-similar .clx-logo { flex: none; display: grid; place-items: center; overflow: hidden; width: 36px; height: 36px; background: #fff; border: 1px solid var(--clx-border); border-radius: 10px; }
.clx-similar .clx-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.clx-similar .clx-logo-letter { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; color: hsl(var(--h) 60% 35%); background: hsl(var(--h) 80% 94%); }

/* Article content */
.clx-prose {
	margin-top: 28px; padding: 28px;
	background: #fff; border: 1px solid var(--clx-border); border-radius: 20px;
	line-height: 1.9;
}
.clx-prose > :first-child { margin-top: 0; }
.clx-prose > :last-child { margin-bottom: 0; }
.clx-prose h2 { margin: 1.8em 0 .6em; font-size: 1.35em; }
.clx-prose h3 { margin: 1.4em 0 .4em; font-size: 1.1em; }
.clx-prose p { margin: 0 0 1em; }
.clx-prose ul, .clx-prose ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.clx-prose li { margin-bottom: .45em; }
.clx-prose ol { list-style: none; counter-reset: step; padding-inline-start: 0; }
.clx-prose ol > li { counter-increment: step; position: relative; padding-inline-start: 2.6em; margin-bottom: .8em; }
.clx-prose ol > li::before {
	content: counter(step);
	position: absolute; inset-inline-start: 0; top: .15em;
	display: grid; place-items: center; width: 1.8em; height: 1.8em;
	font-size: .85em; font-weight: 800; color: var(--clx-accent); background: var(--clx-accent-soft); border-radius: 8px;
}
.clx-prose a { font-weight: 600; }

/* Tablet & mobile */
@media (max-width: 960px) {
	.clx-store-grid { grid-template-columns: 1fr; }
	.clx-store-side { position: static; }
}
@media (max-width: 640px) {
	.clx-store-page { padding: 12px 12px 40px; }
	.clx-store-head { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; border-radius: 16px; }
	.clx-store-logo { width: 72px; height: 72px; border-radius: 16px; }
	.clx-store-logo .clx-logo-letter { font-size: 1.8em; }
	/* Compact hero on phones so the code button is on the first screen (ad traffic). */
	.clx-store-head { grid-template-columns: 52px 1fr; gap: 12px; padding: 14px; }
	.clx-store-logo { width: 52px; height: 52px; border-radius: 12px; }
	.clx-store-head h1 { font-size: 1.3em; }
	.clx-store-lead, .clx-visit { display: none; }
	.clx-store-logo .clx-logo-img { padding: 4px; }
	.clx-prose { padding: 18px; border-radius: 16px; }
}
