/* Akcióközpont ár-összehasonlító – szándékosan visszafogott, a téma tipográfiájára támaszkodik.
   A színeket a :root változókkal írhatod felül a téma CSS-ében. */

.akpc-compare {
	--akpc-line: #e3e3e0;
	--akpc-best: #0f7a4d;
	--akpc-best-bg: #f1f8f4;
	--akpc-muted: #6b6b66;
	margin: 1.5rem 0;
	font-size: 0.975rem;
}

.akpc-compare__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.akpc-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.akpc-table th,
.akpc-table td {
	padding: 0.7rem 0.6rem;
	border-bottom: 1px solid var(--akpc-line);
	vertical-align: middle;
}

.akpc-table thead th {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--akpc-muted);
	border-bottom-width: 2px;
}

.akpc-store {
	font-weight: 600;
	white-space: nowrap;
}

.akpc-store img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	vertical-align: -6px;
	margin-right: 0.4rem;
}

.akpc-price {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.akpc-unit,
.akpc-time {
	color: var(--akpc-muted);
	font-size: 0.875rem;
	white-space: nowrap;
}

.akpc-diff {
	margin-left: 0.35rem;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--akpc-muted);
}

.akpc-row--best {
	background: var(--akpc-best-bg);
}

.akpc-row--best .akpc-price {
	color: var(--akpc-best);
}

.akpc-tag {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.4rem;
	border: 1px solid var(--akpc-line);
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--akpc-muted);
}

.akpc-go {
	text-align: right;
}

.akpc-button {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
	white-space: nowrap;
}

.akpc-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.akpc-note,
.akpc-history {
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: var(--akpc-muted);
}

.akpc-empty {
	color: var(--akpc-muted);
	font-style: italic;
}

/* Mobilon a táblázat vízszintesen görgethető marad */
@media (max-width: 600px) {
	.akpc-compare {
		overflow-x: auto;
	}

	.akpc-table {
		min-width: 430px;
	}
}

.akpc-loyalty {
	font-variant-numeric: tabular-nums;
	color: var(--akpc-best);
	white-space: nowrap;
}

.akpc-product {
	font-size: 0.9rem;
}

.akpc-compare--category .akpc-unit {
	color: inherit;
	font-weight: 600;
}

/* ---------- Termékböngésző ---------- */

.akpc-browser {
	--akpc-line: #e3e3e0;
	--akpc-best: #0f7a4d;
	--akpc-best-bg: #f1f8f4;
	--akpc-muted: #6b6b66;
	--akpc-ink: #1d1d1b;
	margin: 1.5rem 0;
}

.akpc-browser__types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding-bottom: 0.9rem;
	border-bottom: 2px solid var(--akpc-line);
}

.akpc-type {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--akpc-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.925rem;
	line-height: 1.2;
	cursor: pointer;
}

.akpc-type:hover {
	border-color: var(--akpc-ink);
}

.akpc-type.is-active {
	background: var(--akpc-ink);
	border-color: var(--akpc-ink);
	color: #fff;
}

.akpc-type__count {
	font-size: 0.75rem;
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}

.akpc-browser__search {
	margin: 0.9rem 0 0.6rem;
}

.akpc-browser__search input {
	width: 100%;
	max-width: 24rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	font: inherit;
	font-size: 0.925rem;
}

.akpc-browser__cats {
	display: none;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.6rem 0 1.4rem;
}

.akpc-browser__cats.is-active,
.akpc-browser__cats.is-searching {
	display: flex;
}

.akpc-cat {
	padding: 0.32rem 0.7rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.akpc-cat:hover {
	border-color: var(--akpc-ink);
}

.akpc-cat.is-active {
	background: var(--akpc-best-bg);
	border-color: var(--akpc-best);
	color: var(--akpc-best);
	font-weight: 600;
}

.akpc-type:focus-visible,
.akpc-cat:focus-visible,
.akpc-browser__search input:focus-visible {
	outline: 2px solid var(--akpc-best);
	outline-offset: 2px;
}

.akpc-browser__panel.is-loading {
	opacity: 0.45;
	transition: opacity 0.12s;
}

.akpc-panel__title {
	margin: 0 0 0.15rem;
	font-size: 1.35rem;
}

.akpc-panel__meta {
	margin: 0 0 1.1rem;
	color: var(--akpc-muted);
	font-size: 0.85rem;
}

/* Láncok sorrendje a kategóriában */
.akpc-leaders {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.5rem;
	margin-bottom: 1.4rem;
}

.akpc-leader {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--akpc-line);
	border-radius: 5px;
}

.akpc-leader--best {
	border-color: var(--akpc-best);
	background: var(--akpc-best-bg);
}

.akpc-leader__store {
	font-weight: 600;
	font-size: 0.9rem;
}

.akpc-leader__unit {
	font-variant-numeric: tabular-nums;
	font-size: 0.95rem;
}

.akpc-leader__diff {
	font-size: 0.75rem;
	color: var(--akpc-muted);
}

.akpc-leader--best .akpc-leader__diff {
	color: var(--akpc-best);
	font-weight: 600;
}

/* Terméklista */
.akpc-products {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--akpc-line);
}

.akpc-product-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) auto;
	gap: 0.3rem 1rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--akpc-line);
}

.akpc-product-row__name {
	font-size: 0.95rem;
}

.akpc-product-row__size {
	margin-left: 0.4rem;
	color: var(--akpc-muted);
	font-size: 0.8rem;
	white-space: nowrap;
}

.akpc-product-row__price {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.akpc-product-row__unit {
	display: block;
	color: var(--akpc-muted);
	font-size: 0.78rem;
}

.akpc-product-row__stores {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.akpc-pill {
	padding: 0.15rem 0.45rem;
	border: 1px solid var(--akpc-line);
	border-radius: 3px;
	font-size: 0.75rem;
	color: var(--akpc-muted);
	white-space: nowrap;
}

.akpc-pill b {
	color: var(--akpc-ink);
	font-variant-numeric: tabular-nums;
}

.akpc-pill--best {
	border-color: var(--akpc-best);
	background: var(--akpc-best-bg);
	color: var(--akpc-best);
}

.akpc-pill--best b {
	color: var(--akpc-best);
}

.akpc-more {
	margin: 1.2rem 0;
	text-align: center;
}

@media (max-width: 600px) {
	.akpc-browser__types {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.7rem;
		scrollbar-width: thin;
	}

	.akpc-type {
		flex: 0 0 auto;
	}

	.akpc-product-row {
		grid-template-columns: 1fr auto;
	}
}

/* ---------- Termékkép ---------- */

.akpc-thumb {
	--akpc-thumb-size: 56px;
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: var(--akpc-thumb-size);
	height: var(--akpc-thumb-size);
	border-radius: 5px;
	overflow: hidden;
	background: hsl(var(--akpc-thumb-hue, 200) 32% 92%);
}

/* A monogram mindig ott van a kép alatt: ha a forrás nem válaszol,
   nem üres doboz marad, és nem ugrik meg az elrendezés. */
.akpc-thumb::after {
	content: attr(data-letter);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--akpc-thumb-hue, 200) 42% 34%);
	font-size: calc(var(--akpc-thumb-size) * 0.36);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.akpc-thumb img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

.akpc-thumb img.akpc-thumb--failed {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.akpc-thumb {
		background: hsl(var(--akpc-thumb-hue, 200) 22% 24%);
	}

	.akpc-thumb::after {
		color: hsl(var(--akpc-thumb-hue, 200) 35% 72%);
	}
}

/* A terméksor három oszlopos lesz a képpel */
.akpc-product-row {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	column-gap: 0.85rem;
}

.akpc-product-row__stores {
	grid-column: 2 / -1;
}

@media (max-width: 600px) {
	.akpc-product-row {
		grid-template-columns: auto 1fr auto;
	}

	.akpc-thumb {
		--akpc-thumb-size: 44px;
	}
}

/* ---------- Aloldalak, elemzés ---------- */

.akpc-crumbs {
	margin-bottom: 1rem;
	font-size: 0.8rem;
	color: var(--akpc-muted);
}

.akpc-crumbs a {
	color: inherit;
}

.akpc-crumbs span {
	margin: 0 0.3rem;
}

/* A kategóriák linkek, de csempének látszanak */
a.akpc-cat {
	display: inline-block;
	text-decoration: none;
	color: inherit;
}

a.akpc-cat.is-active {
	color: var(--akpc-best);
}

.akpc-hub__lead {
	font-size: 1.05rem;
	margin: 0 0 0.4rem;
}

.akpc-hub__hint {
	margin: 0;
	color: var(--akpc-muted);
	font-size: 0.9rem;
}

.akpc-analysis {
	margin: 1.6rem 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--akpc-line);
	border-radius: 6px;
}

.akpc-analysis__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.akpc-analysis p {
	margin: 0 0 0.9rem;
	font-size: 0.95rem;
}

.akpc-chart {
	margin: 0;
}

.akpc-chart svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.akpc-chart__grid {
	stroke: var(--akpc-line);
	stroke-width: 1;
}

.akpc-chart__label {
	fill: var(--akpc-muted);
	font-size: 11px;
	font-family: inherit;
}

.akpc-chart__area {
	fill: var(--akpc-best);
	opacity: 0.09;
}

.akpc-chart__line {
	fill: none;
	stroke: var(--akpc-best);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.akpc-chart__dot {
	fill: var(--akpc-best);
}

.akpc-chart figcaption {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: var(--akpc-muted);
}

.akpc-related {
	margin: 1.8rem 0 0.6rem;
}

.akpc-related h3 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
}

.akpc-related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.akpc-related a {
	display: inline-block;
	padding: 0.28rem 0.6rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	font-size: 0.82rem;
	text-decoration: none;
	color: inherit;
}

/* ---------- Ár szerinti szűrő ---------- */

.akpc-filter {
	margin: 1.4rem 0 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--akpc-line);
	border-radius: 6px;
}

.akpc-filter__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.9rem;
}

.akpc-filter label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.78rem;
	color: var(--akpc-muted);
}

.akpc-filter input[type="number"] {
	width: 6.5rem;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	font: inherit;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.akpc-filter select {
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	font: inherit;
	font-size: 0.9rem;
}

.akpc-filter__unit {
	color: var(--akpc-muted);
	font-size: 0.85rem;
}

.akpc-filter__apply {
	cursor: pointer;
}

.akpc-filter__clear {
	font-size: 0.82rem;
	color: var(--akpc-muted);
}

.akpc-filter__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--akpc-line);
}

.akpc-filter__step {
	padding: 0.25rem 0.6rem;
	border: 1px solid var(--akpc-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.akpc-filter__step:hover {
	border-color: var(--akpc-best);
	color: var(--akpc-best);
}

.akpc-list__count {
	margin: 0 0 0.3rem;
	font-size: 0.82rem;
	color: var(--akpc-muted);
}

@media (max-width: 600px) {
	.akpc-filter__row {
		gap: 0.6rem;
	}

	.akpc-filter input[type="number"] {
		width: 5rem;
	}
}

/* ---------- Gyűjtőoldal: hol a legnagyobb a különbség ---------- */

.akpc-hub__title {
	margin: 1.6rem 0 0.3rem;
	font-size: 1.2rem;
}

.akpc-gaps {
	list-style: none;
	margin: 1rem 0 1.6rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 0.5rem;
}

.akpc-gap {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--akpc-line);
	border-radius: 6px;
}

.akpc-gap__body {
	flex: 1 1 auto;
	min-width: 0;
}

.akpc-gap__name {
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.akpc-gap__name:hover {
	text-decoration: underline;
}

.akpc-gap__prices {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--akpc-muted);
	font-variant-numeric: tabular-nums;
}

.akpc-gap__vs {
	margin: 0 0.25rem;
	opacity: 0.7;
}

.akpc-gap__diff {
	flex: 0 0 auto;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	background: var(--akpc-best-bg);
	color: var(--akpc-best);
	font-size: 0.82rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ---------- Terméktípus- és termékoldal ---------- */

.akpc-cat--type {
	border-color: var(--akpc-ink);
	font-weight: 600;
}

.akpc-typetable th[scope="row"] a {
	color: inherit;
}

.akpc-product-head {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.2rem;
}

.akpc-product-head__price {
	margin: 0.3rem 0 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.akpc-product-head__price strong {
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
	color: var(--akpc-best);
}

.akpc-product-head__price span {
	color: var(--akpc-muted);
	font-size: 0.9rem;
}

a.akpc-product-row__name {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--akpc-line);
}

a.akpc-product-row__name:hover {
	border-bottom-color: currentColor;
}

@media (max-width: 600px) {
	.akpc-product-head {
		gap: 0.7rem;
	}
}

/* ---------- Lapozás ---------- */

.akpc-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 1.2rem 0;
}

.akpc-pager a,
.akpc-pager__current {
	min-width: 2.1rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--akpc-line);
	border-radius: 4px;
	text-align: center;
	font-size: 0.85rem;
	text-decoration: none;
	color: inherit;
	font-variant-numeric: tabular-nums;
}

.akpc-pager__current {
	background: var(--akpc-ink);
	border-color: var(--akpc-ink);
	color: #fff;
	font-weight: 600;
}

.akpc-updated {
	margin: 1rem 0 0;
	font-size: 0.8rem;
	color: var(--akpc-muted);
}

/* Kiszerelés, ami ellentmond a terméknévnek: egységárat nem írunk ki,
   de megmondjuk, miért nincs ott. */
.akpc-product-row__unit--unknown {
	font-style: italic;
	opacity: 0.75;
	cursor: help;
}

/* Csak szerkesztőnek szóló magyarázat az üres lista alatt. */
.akpc-empty--admin {
	margin-top: 0.6rem;
	padding: 0.6rem 0.8rem;
	border-left: 3px solid #d63638;
	background: #fcf0f1;
	font-size: 0.85rem;
}
