/* Prekių katalogas – dizainas.
   Viena įsimintina detalė: geltona kainos etiketė. Visa kita rami. */

:root {
	--pk-ink: #17212b;
	--pk-muted: #5e6875;
	--pk-line: #e2e6ea;
	--pk-surface: #f4f6f8;
	--pk-bg: #ffffff;
	--pk-accent: #0b5d66;
	--pk-accent-hover: #084850;
	--pk-tag: #ffd400;
	--pk-sale: #c8102e;
	--pk-good: #1d7a3e;
	--pk-radius: 10px;
	--pk-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.pk,
.pk-cats,
.pk-grid,
.pk-search,
.pk-shops {
	font-family: var(--pk-font);
	color: var(--pk-ink);
}

.pk {
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	box-sizing: border-box;
}
.pk *,
.pk-grid *,
.pk-cats *,
.pk-search * { box-sizing: border-box; }

.pk a { color: var(--pk-accent); }
.pk h1, .pk h2, .pk h3 { font-family: var(--pk-font); color: var(--pk-ink); letter-spacing: -0.01em; }

/* ---------- Kainos etiketė ---------- */

.pk-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
}
.pk-tag {
	display: inline-block;
	position: relative;
	padding: 3px 10px 3px 16px;
	background: var(--pk-tag);
	color: #17212b;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	white-space: nowrap;
	clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
	border-radius: 0 4px 4px 0;
}
.pk-tag::before { /* skylutė etiketėje */
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: rgba(23, 33, 43, .55);
}
.pk-price del { color: var(--pk-muted); font-size: .9em; }
.pk-price--big .pk-tag { font-size: 1.75rem; padding: 6px 16px 6px 26px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.pk-price--big .pk-tag::before { left: 12px; width: 6px; height: 6px; margin-top: -3px; }
.pk-save { color: var(--pk-sale); font-weight: 700; font-size: .95rem; }

/* ---------- Mygtukai ---------- */

.pk-btn,
.pk-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--pk-accent);
	color: #fff !important;
	font: 700 1rem/1.2 var(--pk-font);
	text-decoration: none !important;
	cursor: pointer;
}
.pk-btn:hover,
.pk-search button:hover { background: var(--pk-accent-hover); }
.pk-btn:focus-visible,
.pk a:focus-visible,
.pk-search input:focus-visible,
.pk-grid a:focus-visible {
	outline: 3px solid var(--pk-tag);
	outline-offset: 2px;
}
.pk-btn--small { padding: 8px 12px; font-size: .9rem; }
.pk-btn--big { width: 100%; padding: 16px 20px; font-size: 1.1rem; margin-top: 18px; }

/* ---------- Kortelės ---------- */

.pk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 0;
}
.pk-card {
	display: flex;
	flex-direction: column;
	background: var(--pk-bg);
	border: 1px solid var(--pk-line);
	border-radius: var(--pk-radius);
	overflow: hidden;
}
.pk-card:hover { border-color: #c7ced5; }
.pk-card__img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--pk-surface);
}
.pk-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply; /* baltas nuotraukų fonas susilieja su pilku */
}
.pk-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--pk-sale);
	color: #fff;
	font: 700 .85rem/1.3 var(--pk-font);
}
.pk-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 12px 14px 14px;
}
.pk-card__shop { margin: 0 0 4px; font-size: .8rem; color: var(--pk-muted); }
.pk-card__title {
	margin: 0 0 12px;
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pk-card__title a { color: var(--pk-ink) !important; text-decoration: none; }
.pk-card__title a:hover { text-decoration: underline; }
.pk-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---------- Kategorijos, parduotuvės, paieška ---------- */

.pk-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}
.pk-cat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 16px;
	border-radius: var(--pk-radius);
	background: var(--pk-surface);
	color: var(--pk-ink) !important;
	text-decoration: none !important;
	border-left: 4px solid var(--pk-accent);
}
.pk-cat:hover { background: #e9edf1; }
.pk-cat__name { font-weight: 700; font-size: 1.05rem; }
.pk-cat__n { font-size: .85rem; color: var(--pk-muted); }

.pk-shops {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.pk-shop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--pk-line);
	border-radius: var(--pk-radius);
	text-decoration: none !important;
	color: var(--pk-ink) !important;
	text-align: center;
}
.pk-shop__logo { max-width: 120px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.pk-shop__name { font-weight: 700; }
.pk-shop__n { font-size: .85rem; color: var(--pk-muted); }

.pk-search {
	display: flex;
	gap: 8px;
	max-width: 640px;
}
.pk-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 13px 16px;
	border: 2px solid var(--pk-ink);
	border-radius: 8px;
	font: 400 1rem var(--pk-font);
	background: #fff;
	color: var(--pk-ink);
}

/* ---------- Katalogo puslapis ---------- */

.pk-head { margin-bottom: 20px; }
.pk-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.pk-head__count { margin: 0; color: var(--pk-muted); }
.pk-head__desc { max-width: 72ch; margin-top: 12px; line-height: 1.6; }

.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pk-chips a {
	padding: 7px 14px;
	border: 1px solid var(--pk-line);
	border-radius: 999px;
	color: var(--pk-ink) !important;
	text-decoration: none;
	font-size: .92rem;
}
.pk-chips a:hover { border-color: var(--pk-accent); }

.pk-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.pk-filters { position: sticky; top: 16px; }
.pk-filters summary { display: none; }
.pk-filters fieldset { border: 0; border-top: 1px solid var(--pk-line); margin: 0; padding: 14px 0; }
.pk-filters legend { font-weight: 700; padding: 0 0 8px; }
.pk-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pk-range input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #c7ced5;
	border-radius: 6px;
	font: inherit;
}
.pk-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .95rem; cursor: pointer; }
.pk-check span { margin-left: auto; color: var(--pk-muted); font-size: .85rem; }
.pk-filters .pk-btn { width: 100%; margin-top: 8px; }
.pk-reset { display: block; margin-top: 10px; font-size: .9rem; text-align: center; }

.pk-sort { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 14px; font-size: .95rem; }
.pk-sort select { padding: 7px 10px; border: 1px solid #c7ced5; border-radius: 6px; font: inherit; background: #fff; }

.pk-pages { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pk-pages .page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--pk-line);
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
}
.pk-pages .current { background: var(--pk-ink); border-color: var(--pk-ink); color: #fff; }

.pk-empty { padding: 40px 20px; text-align: center; background: var(--pk-surface); border-radius: var(--pk-radius); }

/* ---------- Prekės puslapis ---------- */

.pk-crumbs { font-size: .9rem; color: var(--pk-muted); margin-bottom: 18px; }
.pk-crumbs a { color: var(--pk-muted) !important; }

.pk-product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.pk-product__img {
	margin: 0;
	aspect-ratio: 1 / 1;
	background: var(--pk-surface);
	border-radius: var(--pk-radius);
	overflow: hidden;
}
.pk-product__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pk-product__brand { margin: 0 0 6px; color: var(--pk-muted); font-weight: 500; }
.pk-product__title { margin: 0 0 20px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.pk-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--pk-surface); }
.pk-note--good { background: #e7f4ec; color: var(--pk-good); font-weight: 500; }
.pk-meta { margin: 12px 0 0; font-size: .85rem; color: var(--pk-muted); }

.pk-compare, .pk-desc, .pk-related { margin-top: 48px; }
.pk-compare h2, .pk-desc h2, .pk-related h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; }
.pk-compare table { width: 100%; border-collapse: collapse; }
.pk-compare th, .pk-compare td { padding: 12px 10px; border-bottom: 1px solid var(--pk-line); text-align: left; }
.pk-compare th { font-weight: 500; }
.pk-compare td:last-child { text-align: right; }
.pk-compare__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-compare .is-best .pk-compare__price { color: var(--pk-good); }
.pk-best { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e7f4ec; color: var(--pk-good); font-size: .8rem; font-weight: 700; }

.pk-desc { max-width: 72ch; line-height: 1.65; }

.pk-disclosure { margin-top: 48px; font-size: .85rem; color: var(--pk-muted); max-width: 72ch; }

/* ---------- Mobilus ---------- */

@media (max-width: 860px) {
	.pk-layout { grid-template-columns: 1fr; gap: 12px; }
	.pk-filters { position: static; border: 1px solid var(--pk-line); border-radius: var(--pk-radius); padding: 0 14px; }
	.pk-filters summary { display: block; padding: 12px 0; font-weight: 700; cursor: pointer; }
	.pk-sort { justify-content: flex-start; }
	.pk-product { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
	.pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pk-card__body { padding: 10px; }
	.pk-card__title { font-size: .88rem; }
	.pk-card__foot .pk-btn--small { width: 100%; }
	.pk-search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.pk * { transition: none !important; }
}
