/*
 * Comparator Prețuri – stiluri publice.
 * Variabilele pot fi suprascrise din temă (:root { --cmp-go: ... }).
 */

:where(:root) {
	--cmp-ink: #14233c;
	--cmp-text: #1c2432;
	--cmp-muted: #586274;
	--cmp-line: #dce2eb;
	--cmp-line-strong: #c3ccd8;
	--cmp-surface: #f2f4f8;
	--cmp-paper: #ffffff;
	--cmp-accent: #1f5fd6;
	--cmp-go: #0b7a43;
	--cmp-go-hover: #075f33;
	--cmp-go-tint: #eef7f1;
	--cmp-red: #c21f32;
	--cmp-radius: 10px;
	--cmp-radius-sm: 6px;
	/* Culorile etichetei energetice UE, de la A (verde) la G (roșu). */
	--cmp-g0: #00a651;
	--cmp-g1: #50b848;
	--cmp-g2: #bed630;
	--cmp-g3: #fff200;
	--cmp-g4: #fdb913;
	--cmp-g5: #f37021;
	--cmp-g6: #ed1c24;
	--cmp-gna: #c7cdd6;
}

.cmp,
.cmp * {
	box-sizing: border-box;
}

.cmp {
	color: var(--cmp-text);
	line-height: 1.5;
}

.cmp .screen-reader-text,
.cmp-page .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.cmp a {
	color: var(--cmp-accent);
}

.cmp :focus-visible {
	outline: 3px solid var(--cmp-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.cmp-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 16px 56px;
}

.cmp-h1 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cmp-ink);
	margin: 0;
}

.cmp-h2 {
	font-size: 1.3rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--cmp-ink);
	margin: 0 0 12px;
}

.cmp-muted {
	color: var(--cmp-muted);
}

.cmp-small {
	font-size: 0.85rem;
}

.cmp-prose {
	max-width: 72ch;
}

.cmp-prose p {
	margin: 0 0 1em;
}

/* Breadcrumbs --------------------------------------------------------- */

.cmp-crumbs ol {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.875rem;
	color: var(--cmp-muted);
}

.cmp-crumbs li + li::before {
	content: "›";
	margin-right: 4px;
	color: var(--cmp-line-strong);
}

.cmp-crumbs a {
	color: var(--cmp-muted);
	text-decoration: none;
}

.cmp-crumbs a:hover {
	color: var(--cmp-accent);
	text-decoration: underline;
}

/* Butoane ------------------------------------------------------------- */

.cmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: var(--cmp-radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.cmp .cmp-btn-go,
.cmp-btn-go {
	background: var(--cmp-go);
	color: #fff;
}

.cmp .cmp-btn-go:hover,
.cmp-btn-go:hover {
	background: var(--cmp-go-hover);
	color: #fff;
}

.cmp .cmp-btn-primary,
.cmp-btn-primary {
	background: var(--cmp-ink);
	color: #fff;
}

.cmp .cmp-btn-ghost,
.cmp-btn-ghost {
	background: var(--cmp-paper);
	color: var(--cmp-ink);
	border-color: var(--cmp-line-strong);
}

.cmp .cmp-btn-ghost:hover,
.cmp-btn-ghost:hover {
	border-color: var(--cmp-ink);
}

.cmp-btn-lg {
	min-height: 48px;
	padding: 12px 22px;
	font-size: 1rem;
}

/* Căutare ------------------------------------------------------------- */

.cmp-search {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line-strong);
	border-radius: 999px;
	overflow: hidden;
}

.cmp-search:focus-within {
	border-color: var(--cmp-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.2);
}

.cmp-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cmp-muted);
	pointer-events: none;
}

.cmp-search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 12px 12px 12px 46px;
	font: inherit;
	font-size: 1rem;
	color: var(--cmp-text);
	outline: none;
}

.cmp-search-input::-webkit-search-cancel-button {
	cursor: pointer;
}

.cmp-search-btn {
	border: 0;
	margin: 4px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--cmp-ink);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cmp-search-btn:hover {
	background: #0b1628;
}

/* Titlul listei ------------------------------------------------------- */

.cmp-listing-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin-bottom: 16px;
}

.cmp-count {
	margin: 0;
	color: var(--cmp-muted);
}

.cmp-search-again {
	flex-basis: 100%;
	max-width: 640px;
	margin-top: 12px;
}

.cmp-subcats {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 20px;
	scrollbar-width: thin;
}

.cmp-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--cmp-line-strong);
	border-radius: 999px;
	background: var(--cmp-paper);
	color: var(--cmp-ink);
	text-decoration: none;
	font-size: 0.9rem;
	white-space: nowrap;
}

.cmp .cmp-chip {
	color: var(--cmp-ink);
}

.cmp-chip:hover {
	border-color: var(--cmp-ink);
}

.cmp-chip-count {
	color: var(--cmp-muted);
	font-size: 0.8rem;
}

.cmp-chip-active {
	background: var(--cmp-ink);
	border-color: var(--cmp-ink);
}

.cmp .cmp-chip-active {
	color: #fff;
}

/* Listă + filtre ------------------------------------------------------ */

.cmp-listing {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.cmp-filters {
	position: sticky;
	top: 16px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	padding: 4px 16px 16px;
	scrollbar-width: thin;
}

.admin-bar .cmp-filters {
	top: 48px;
}

.cmp-filters-head {
	display: none;
}

.cmp-facet {
	border: 0;
	border-bottom: 1px solid var(--cmp-line);
	margin: 0;
	padding: 14px 0;
	min-width: 0;
}

.cmp-facet legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--cmp-ink);
}

.cmp-facet legend + * {
	clear: both;
}

.cmp-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	cursor: pointer;
	font-size: 0.93rem;
}

.cmp-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cmp-ink);
	flex: none;
}

.cmp-check span:nth-of-type(1) {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.cmp-facet-count {
	color: var(--cmp-muted);
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.cmp-more summary {
	cursor: pointer;
	color: var(--cmp-accent);
	font-size: 0.9rem;
	padding: 6px 0 2px;
	list-style: none;
}

.cmp-more summary::-webkit-details-marker {
	display: none;
}

.cmp-more[open] summary {
	display: none;
}

.cmp-price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.cmp-price-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--cmp-muted);
}

.cmp-input,
.cmp-select {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--cmp-line-strong);
	border-radius: var(--cmp-radius-sm);
	background: var(--cmp-paper);
	color: var(--cmp-text);
	font: inherit;
	font-size: 0.93rem;
}

.cmp-filter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
}

.cmp-filter-actions .cmp-btn {
	flex: 1;
}

.cmp-clear {
	font-size: 0.9rem;
}

.cmp-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 12px;
}

.cmp-filters-toggle {
	display: none;
	margin-right: auto;
}

.cmp-sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cmp-sort label {
	color: var(--cmp-muted);
	font-size: 0.9rem;
	white-space: nowrap;
}

.cmp-sort .cmp-select {
	width: auto;
}

.cmp-active-filters {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Grila de produse ---------------------------------------------------- */

.cmp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
	gap: 16px;
}

.cmp-card {
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	min-width: 0;
}

.cmp-card:hover {
	border-color: var(--cmp-line-strong);
}

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

.cmp .cmp-card-link {
	color: inherit;
}

.cmp-card-link:hover .cmp-card-title {
	color: var(--cmp-accent);
	text-decoration: underline;
}

.cmp-card-img {
	position: relative;
	aspect-ratio: 1 / 1;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--cmp-line);
}

.cmp-card-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cmp-noimg {
	width: 40%;
	height: auto;
	color: var(--cmp-line-strong);
}

.cmp-badge-discount {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--cmp-red);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.cmp-card-img .cmp-badge-discount {
	position: absolute;
	top: 10px;
	left: 10px;
}

.cmp-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px 14px;
	flex: 1;
}

.cmp-card-brand {
	font-size: 0.8rem;
	color: var(--cmp-muted);
	font-weight: 600;
}

.cmp-card-title {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cmp-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.cmp-card-price {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
}

.cmp-from {
	font-size: 0.8rem;
	color: var(--cmp-muted);
}

.cmp-price {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--cmp-ink);
	letter-spacing: -0.01em;
}

.cmp-old {
	font-size: 0.85rem;
	color: var(--cmp-muted);
}

.cmp-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 0.82rem;
	color: var(--cmp-muted);
}

.cmp-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
}

.cmp-stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.cmp-stock-in {
	color: var(--cmp-go);
}

.cmp-stock-out {
	color: var(--cmp-muted);
}

.cmp-grid-row {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cmp-row {
	margin: 40px 0 0;
}

.cmp-row-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.cmp-row-head .cmp-h2 {
	margin: 0;
}

.cmp-row-more {
	white-space: nowrap;
	font-weight: 600;
}

/* Paginare ------------------------------------------------------------ */

.cmp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
}

.cmp-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--cmp-line-strong);
	border-radius: var(--cmp-radius-sm);
	background: var(--cmp-paper);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.cmp .cmp-page-link {
	color: var(--cmp-ink);
}

.cmp .cmp-page-current {
	background: var(--cmp-ink);
	border-color: var(--cmp-ink);
	color: #fff;
	font-weight: 700;
}

.cmp-page-gap {
	color: var(--cmp-muted);
	padding: 0 4px;
}

/* Stări goale --------------------------------------------------------- */

.cmp-empty {
	background: var(--cmp-paper);
	border: 1px dashed var(--cmp-line-strong);
	border-radius: var(--cmp-radius);
	padding: 28px 24px;
}

.cmp-empty-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--cmp-ink);
	margin: 0 0 6px;
}

.cmp-about {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--cmp-line);
}

/* Grila de categorii -------------------------------------------------- */

.cmp-cat-grid {
	--cmp-cols: 6;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--cmp-cols), minmax(0, 1fr));
	gap: 12px;
}

.cmp-cat-tile a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	padding: 16px 12px;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	text-decoration: none;
	text-align: center;
}

.cmp-cat-tile a:hover {
	border-color: var(--cmp-ink);
}

.cmp-cat-img {
	width: 88px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}

.cmp-cat-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.cmp-cat-name {
	font-weight: 700;
	color: var(--cmp-ink);
	line-height: 1.25;
}

.cmp-cat-count {
	font-size: 0.8rem;
	color: var(--cmp-muted);
}

/* Pagina produsului --------------------------------------------------- */

.cmp-product-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-bottom: 40px;
}

.cmp-gallery-main {
	aspect-ratio: 1 / 1;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.cmp-gallery-main img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cmp-thumbs {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
}

.cmp-thumb {
	width: 72px;
	height: 72px;
	padding: 6px;
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius-sm);
	background: var(--cmp-paper);
	cursor: pointer;
}

.cmp-thumb.is-active {
	border-color: var(--cmp-ink);
	box-shadow: inset 0 0 0 1px var(--cmp-ink);
}

.cmp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cmp-summary-brand {
	margin: 0 0 4px;
	font-weight: 700;
	color: var(--cmp-muted);
}

.cmp-product-title {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.cmp-ean {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--cmp-muted);
	font-variant-numeric: tabular-nums;
}

.cmp-best {
	margin-top: 20px;
	padding: 20px;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-top: 4px solid var(--cmp-go);
	border-radius: var(--cmp-radius);
}

.cmp-best p {
	margin: 0;
}

.cmp-best-label {
	font-weight: 600;
	color: var(--cmp-go);
}

.cmp-best-price {
	font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--cmp-ink);
	margin: 2px 0 4px !important;
}

.cmp-best-old {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--cmp-muted);
	margin-bottom: 4px !important;
}

.cmp-best-where {
	color: var(--cmp-text);
}

.cmp-best-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.cmp-best-none {
	border-top-color: var(--cmp-line-strong);
}

.cmp-best-none .cmp-best-label {
	color: var(--cmp-muted);
}

.cmp-updated {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--cmp-muted);
}

.cmp-section {
	margin: 0 0 40px;
	scroll-margin-top: 24px;
}

/* Nota de transparență ------------------------------------------------ */

.cmp-disclosure {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 16px;
	padding: 10px 14px;
	background: var(--cmp-surface);
	border-radius: var(--cmp-radius-sm);
	color: var(--cmp-muted);
	font-size: 0.87rem;
	line-height: 1.45;
	max-width: 100ch;
}

.cmp-disclosure svg {
	flex: none;
	margin-top: 2px;
}

/* Ofertele: scara de prețuri ----------------------------------------- */

.cmp-offers {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	overflow: hidden;
}

.cmp-offer {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.35fr) auto;
	gap: 12px 24px;
	align-items: center;
	padding: 16px 20px;
	border-top: 1px solid var(--cmp-line);
}

.cmp-offer:first-child {
	border-top: 0;
}

.cmp-offer.is-best {
	background: var(--cmp-go-tint);
	box-shadow: inset 4px 0 0 var(--cmp-go);
}

.cmp-offer-shop {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.cmp-offer-name {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--cmp-ink);
}

.cmp-offer-logo {
	height: 28px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	object-position: left center;
}

.cmp-offer-title {
	font-size: 0.83rem;
	color: var(--cmp-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cmp-ladder {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cmp-arrow {
	--w: 50%;
	flex: none;
	width: calc(var(--w) * 0.55);
	min-width: 44px;
	height: 30px;
	display: flex;
	align-items: center;
	padding-left: 10px;
	clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
	font-weight: 800;
	font-size: 0.95rem;
	color: #fff;
}

.cmp-g0 { background: var(--cmp-g0); }
.cmp-g1 { background: var(--cmp-g1); }
.cmp-g2 { background: var(--cmp-g2); color: var(--cmp-ink); }
.cmp-g3 { background: var(--cmp-g3); color: var(--cmp-ink); }
.cmp-g4 { background: var(--cmp-g4); color: var(--cmp-ink); }
.cmp-g5 { background: var(--cmp-g5); }
.cmp-g6 { background: var(--cmp-g6); }
.cmp-gna { background: var(--cmp-gna); color: var(--cmp-ink); }

.cmp-ladder-price {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--cmp-ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.cmp-offer-diff {
	margin: 4px 0 0;
	font-size: 0.83rem;
	color: var(--cmp-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
}

.cmp-tag-best {
	font-weight: 700;
	color: var(--cmp-go);
}

.cmp-offer.is-out .cmp-ladder-price {
	color: var(--cmp-muted);
}

.cmp-offer-cta .cmp-btn {
	min-width: 156px;
}

/* Istoricul prețului -------------------------------------------------- */

.cmp-history {
	margin: 0;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	padding: 16px 20px 16px;
}

.cmp-history-plot {
	position: relative;
	padding-left: 96px;
}

.cmp-history-scale {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 88px;
	font-size: 0.8rem;
	color: var(--cmp-muted);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.cmp-history-scale span {
	position: absolute;
	right: 0;
	transform: translateY(-50%);
}

.cmp-history-svg {
	display: block;
	width: 100%;
	height: 220px;
	overflow: visible;
	cursor: crosshair;
	touch-action: pan-y;
}

.cmp-history-grid,
.cmp-history-base {
	stroke: var(--cmp-line);
	stroke-width: 1;
}

.cmp-history-area {
	fill: var(--cmp-accent);
	fill-opacity: 0.1;
}

.cmp-history-line {
	fill: none;
	stroke: var(--cmp-accent);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

/* Punctele: linii de lungime zero cu capăt rotund (rămân cercuri când graficul se întinde). */
.cmp-history-ring {
	stroke: var(--cmp-paper);
	stroke-width: 14;
	stroke-linecap: round;
}

.cmp-history-dot {
	stroke: var(--cmp-accent);
	stroke-width: 10;
	stroke-linecap: round;
}

.cmp-history-cross {
	stroke: var(--cmp-muted);
	stroke-width: 1;
}

.cmp-history-tip {
	position: absolute;
	top: 2px;
	display: flex;
	flex-direction: column;
	padding: 6px 10px;
	background: var(--cmp-ink);
	color: #fff;
	border-radius: var(--cmp-radius-sm);
	font-size: 0.8rem;
	line-height: 1.3;
	pointer-events: none;
	white-space: nowrap;
	z-index: 2;
}

.cmp-history-tip[hidden] {
	display: none;
}

.cmp-history-tip strong {
	font-size: 0.95rem;
}

.cmp-history-tip span {
	opacity: 0.85;
}

.cmp-history-axis {
	display: flex;
	justify-content: space-between;
	margin: 6px 0 0 96px;
	font-size: 0.8rem;
	color: var(--cmp-muted);
}

.cmp-history-cap {
	margin-top: 12px;
	font-size: 0.93rem;
	max-width: 80ch;
}

.cmp-history-table {
	margin-top: 10px;
	font-size: 0.9rem;
}

.cmp-history-table summary {
	cursor: pointer;
	color: var(--cmp-accent);
}

.cmp-history-table table {
	margin-top: 8px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.cmp-history-table th,
.cmp-history-table td {
	text-align: left;
	padding: 4px 24px 4px 0;
	border-bottom: 1px solid var(--cmp-line);
}

.cmp-history-flat {
	margin: 0;
}

/* Specificații -------------------------------------------------------- */

.cmp-specs {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	background: var(--cmp-paper);
	border: 1px solid var(--cmp-line);
	border-radius: var(--cmp-radius);
	padding: 4px 20px;
}

.cmp-spec {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--cmp-line);
	font-size: 0.93rem;
}

.cmp-spec dt {
	color: var(--cmp-muted);
}

.cmp-spec dd {
	margin: 0;
	font-weight: 600;
}

.cmp-desc {
	color: var(--cmp-text);
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
	.cmp-grid-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cmp-grid-row > :nth-child(n + 7) {
		display: none;
	}
	.cmp-cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	.cmp-listing {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-filters {
		position: fixed;
		inset: 0 auto 0 0;
		top: 0;
		z-index: 100000;
		width: min(88vw, 380px);
		max-height: none;
		border-radius: 0;
		border: 0;
		padding: 0 20px 24px;
		transform: translateX(-102%);
		visibility: hidden;
		box-shadow: 0 0 0 100vmax rgba(10, 18, 32, 0);
		transition: transform 0.2s ease, visibility 0.2s, box-shadow 0.2s;
	}

	.admin-bar .cmp-filters {
		top: 0;
	}

	.cmp-filters.is-open {
		transform: none;
		visibility: visible;
		box-shadow: 0 0 0 100vmax rgba(10, 18, 32, 0.45);
	}

	.cmp-filters-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		background: var(--cmp-paper);
		padding: 16px 0 8px;
		z-index: 1;
	}

	.cmp-filters-title {
		margin: 0;
		font-size: 1.2rem;
		color: var(--cmp-ink);
	}

	.cmp-filters-close {
		width: 40px;
		height: 40px;
		border: 0;
		background: transparent;
		color: var(--cmp-ink);
		cursor: pointer;
	}

	.cmp-filter-actions {
		position: sticky;
		bottom: -24px;
		background: var(--cmp-paper);
		padding-bottom: 8px;
	}

	.cmp-filters-toggle {
		display: inline-flex;
	}

	.cmp-product-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.cmp-gallery-main {
		max-width: 420px;
		margin: 0 auto;
		width: 100%;
	}

	.cmp-thumbs {
		justify-content: center;
	}

	.cmp-offer {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 14px 16px;
	}

	.cmp-offer-shop {
		grid-column: 1 / -1;
	}

	.cmp-offer-price {
		min-width: 0;
	}

	.cmp-offer-cta .cmp-btn {
		min-width: 0;
	}

	.cmp-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-grid-row {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: minmax(180px, 46%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		scrollbar-width: thin;
	}

	.cmp-grid-row > * {
		scroll-snap-align: start;
	}

	.cmp-grid-row > :nth-child(n + 7) {
		display: block;
	}

	.cmp-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.cmp-wrap {
		padding: 12px 12px 40px;
	}

	.cmp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cmp-grid-row {
		grid-template-columns: none;
		grid-auto-columns: minmax(160px, 62%);
	}

	.cmp-card-img {
		padding: 10px;
	}

	.cmp-card-body {
		padding: 10px 10px 12px;
	}

	.cmp-card-title {
		font-size: 0.88rem;
	}

	.cmp-price {
		font-size: 1.08rem;
	}

	.cmp-toolbar {
		justify-content: space-between;
	}

	.cmp-sort label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.cmp-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.cmp-cat-img {
		width: 64px;
		height: 64px;
	}

	.cmp-offer {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-offer-cta .cmp-btn {
		width: 100%;
	}

	.cmp-ladder-price {
		font-size: 1.2rem;
	}

	.cmp-best-actions .cmp-btn {
		flex: 1 1 100%;
	}

	.cmp-history {
		padding: 12px;
	}

	.cmp-history-plot {
		padding-left: 76px;
	}

	.cmp-history-scale {
		width: 70px;
		font-size: 0.72rem;
	}

	.cmp-history-svg {
		height: 170px;
	}

	.cmp-history-axis {
		margin-left: 76px;
	}

	.cmp-spec {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

html.cmp-no-scroll {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.cmp-filters {
		transition: none;
	}
}

@media print {
	.cmp-filters,
	.cmp-toolbar,
	.cmp-offer-cta,
	.cmp-best-actions {
		display: none !important;
	}
}
