/* ==========================================================
   Kategorie v2 (2026-11) - lista produktow i landing, bez sidebara
   ========================================================== */
.cv2 {
	--cv2-ink: #1f1f1f;
	--cv2-muted: #757575;
	--cv2-line: #eaeaea;
	--cv2-soft: #f7f4ef;
	--cv2-gold: #b08d57;
	--cv2-accent: #327d45;
	--cv2-red: #c0392b;
	--cv2-serif: Georgia, "Times New Roman", serif;
	color: var(--cv2-ink);
	padding-bottom: 40px;
}
.cv2 *, .cv2 *:before, .cv2 *:after { box-sizing: border-box; }
.cv2 a { text-decoration: none; }

/* ---------- naglowek ---------- */
.cv2-head { padding: 18px 0 6px; }
.cv2 .localizer { font-size: 13px; color: var(--cv2-muted); margin: 0 0 14px; padding: 0; background: none; border: 0; }
.cv2 .localizer a { color: var(--cv2-muted); }
.cv2 .localizer a:hover { color: var(--cv2-accent); }
.cv2 .localizer div, .cv2 .localizer span { display: inline; }
.cv2 .cv2-head h1 {
	font-family: var(--cv2-serif); font-weight: normal;
	font-size: 40px; line-height: 1.12; letter-spacing: -.01em;
	color: var(--cv2-ink); background: none; text-transform: none;
	margin: 0 0 16px; padding: 0; text-align: left;
}
.cv2 .admin-link { display: inline-block; margin: 0 0 12px; }

/* pigulki podkategorii */
.cv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.cv2 .cv2-chip {
	display: inline-block; padding: 9px 16px; border-radius: 999px;
	border: 1px solid var(--cv2-line); background: #fff;
	font-size: 14px; line-height: 1.2; color: var(--cv2-ink);
	transition: border-color .2s, color .2s, background .2s;
}
.cv2 a.cv2-chip:hover { border-color: var(--cv2-ink); }
.cv2 .cv2-chip.is-active { background: var(--cv2-ink); border-color: var(--cv2-ink); color: #fff; }
.cv2 .cv2-chip-back { color: var(--cv2-muted); }

/* opis nad lista */
.cv2-intro { max-width: 860px; margin: 10px 0 4px; }
.cv2 .cv2-intro, .cv2 .cv2-intro p { font-size: 15.5px; line-height: 1.65; color: #4d4d4d; margin: 0 0 8px; text-align: left; }
.cv2 .cv2-intro a { color: var(--cv2-accent); text-decoration: underline; text-underline-offset: 2px; }

.cv2-banner { margin: 16px 0 0; }
.cv2-banner img { display: block; max-width: 100%; height: auto; border-radius: 14px; }

/* ---------- pasek narzedzi ---------- */
.cv2 .cv2-toolbar { margin: 22px 0 22px; border: 0; background: none; padding: 0; }
.cv2 .cv2-toolbar .category-toolbar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
	border-top: 1px solid var(--cv2-line); border-bottom: 1px solid var(--cv2-line);
	padding: 14px 0; background: none; height: auto;
}
.cv2 .filters-wrapper, .cv2 .pager-wrapper { float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; }
.cv2 .filters { border: 0; padding: 0; margin: 0; background: none; }
.cv2 .filters ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cv2 .filters li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; float: none; font-size: 13.5px; color: var(--cv2-muted); background: none; }
.cv2 .filters select, .cv2 .filters input {
	height: 38px; border: 1px solid var(--cv2-line); border-radius: 8px; background: #fff;
	font-size: 14px; color: var(--cv2-ink); padding: 0 10px; width: auto !important; min-width: 0; box-shadow: none;
}
.cv2 .filters select { padding-right: 28px; max-width: 190px; }
.cv2 .filters input { width: 82px !important; }
.cv2 .filters select:focus, .cv2 .filters input:focus { outline: none; border-color: var(--cv2-ink); }

.cv2 .pager-wrapper { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--cv2-muted); }
.cv2 .pager { display: inline-block; margin: 0; padding: 0; float: none; }
.cv2 .pager ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cv2 .pager li { margin: 0; padding: 0; float: none; background: none; border: 0; }
.cv2 .pager li a, .cv2 .pager li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%;
	font-size: 14px; color: var(--cv2-ink); background: none; border: 0;
}
.cv2 .pager li a:hover { background: var(--cv2-soft); color: var(--cv2-accent); }
.cv2 .pager li.current { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; background: var(--cv2-ink); color: #fff; font-size: 14px; font-weight: bold; }
.cv2 .pager li.current a, .cv2 .pager li.current span { color: #fff; background: none; }
.cv2 .cv2-toolbar-bottom { margin-top: 34px; }
.cv2 .cv2-toolbar-bottom .category-toolbar { justify-content: center; border-bottom: 0; }

/* ---------- siatka produktow ---------- */
.cv2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 34px 22px; }
.cv2-grid #temp-script, .cv2-grid #temp-pager { display: none; }
.cv2-card { display: flex; flex-direction: column; min-width: 0; }
.cv2 .cv2-card-img {
	position: relative; display: block; aspect-ratio: 1 / 1;
	background: #fff; border: 1px solid var(--cv2-line); border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.cv2-card-img img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: transform .5s ease; }
.cv2-card:hover .cv2-card-img img { transform: scale(1.05); }
.cv2-card:hover .cv2-card-img { border-color: #d9d4cc; }
.cv2-badge { position: absolute; top: 10px; left: 10px; background: var(--cv2-red); color: #fff; font-size: 12px; font-weight: bold; padding: 4px 9px; border-radius: 999px; }
.cv2-badge-muted { background: #8a8a8a; }
.cv2 .cv2-card-name {
	font-size: 14.5px; line-height: 1.4; color: var(--cv2-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.8em; margin-bottom: 6px;
}
.cv2 .cv2-card-name:hover { color: var(--cv2-accent); }
.cv2-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 16.5px; font-weight: bold; }
.cv2-price-promo { color: var(--cv2-red); }
.cv2-price-old { color: var(--cv2-muted); font-weight: normal; font-size: 13px; text-decoration: line-through; }
.cv2-omnibus { font-size: 11.5px; line-height: 1.35; color: var(--cv2-muted); margin-top: 4px; }
.cv2-card.is-unavailable .cv2-card-img img { opacity: .5; }
.cv2-empty { padding: 40px 0; text-align: center; color: var(--cv2-muted); font-size: 15px; }
.cv2 .loader-wrapper { text-align: center; padding: 20px 0; }

/* ---------- kafle podkategorii (landing) ---------- */
.cv2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; margin-top: 26px; }
.cv2 .cv2-tile {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #3a332c; text-align: center;
}
.cv2-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cv2-tile:after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); transition: background .3s ease; }
.cv2-tile:hover img { transform: scale(1.07); }
.cv2-tile:hover:after { background: rgba(0,0,0,.3); }
.cv2 .cv2-tile-name {
	position: relative; z-index: 2; padding: 0 14px;
	font-family: var(--cv2-serif); font-size: 22px; line-height: 1.2; color: #fff;
	text-shadow: 0 1px 12px rgba(0,0,0,.45);
}

/* ---------- opisy kategorii (dol strony) ---------- */
.cv2-seo { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--cv2-line); columns: 2; column-gap: 48px; }
.cv2-seo-block { break-inside: avoid; margin-bottom: 20px; }
.cv2 .cv2-seo, .cv2 .cv2-seo p, .cv2 .cv2-seo li { font-size: 14.5px; line-height: 1.7; color: #555; text-align: left !important; }
.cv2 .cv2-seo p { margin: 0 0 12px; }
.cv2 .cv2-seo h2, .cv2 .cv2-seo h3, .cv2 .cv2-seo h4 {
	font-family: var(--cv2-serif); font-weight: normal; color: var(--cv2-ink);
	font-size: 21px; line-height: 1.3; margin: 0 0 10px; padding: 0; background: none; text-transform: none; text-align: left;
}
.cv2 .cv2-seo a { color: var(--cv2-accent); text-decoration: underline; text-underline-offset: 2px; }
.cv2 .cv2-seo img { max-width: 100%; height: auto; border-radius: 10px; }
.cv2 .cv2-seo ul { margin: 0 0 12px; padding-left: 1.2em; }

/* ---------- responsywnosc ---------- */
@media (max-width: 1024px) {
	.cv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cv2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.cv2 { padding-left: 2px; padding-right: 2px; }
	.cv2 .cv2-head h1 { font-size: 28px; }
	.cv2-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
	.cv2-chips::-webkit-scrollbar { display: none; }
	.cv2 .cv2-chip { white-space: nowrap; }
	.cv2 .filters ul { gap: 10px; }
	.cv2 .filters li.projection { display: none; }
	.cv2 .cv2-toolbar .category-toolbar { flex-direction: column; align-items: stretch; }
	.cv2 .pager-wrapper { justify-content: space-between; }
	.cv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 26px 12px; }
	.cv2 .cv2-card-name { font-size: 13.5px; }
	.cv2-card-price { font-size: 15px; }
	.cv2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 10px; }
	.cv2 .cv2-tile-name { font-size: 18px; }
	.cv2-seo { columns: 1; }
}

/* poprawki paska narzedzi i opisu (nadpisanie starego frontend.css) */
.cv2 .cv2-toolbar .filters-wrapper { flex: 1 1 auto; min-width: 0; }
.cv2 .filters li { flex-shrink: 0; white-space: nowrap; width: auto !important; }
.cv2 .cv2-toolbar .pager-wrapper { flex: 0 0 auto; white-space: nowrap; line-height: 34px; height: auto; position: static; }
.cv2 .cv2-toolbar .pager { margin: 0 !important; position: static !important; top: auto; right: auto; }
.cv2-seo-block { break-inside: auto; }
.cv2 .cv2-seo h2, .cv2 .cv2-seo h3, .cv2 .cv2-seo h4 { break-after: avoid; }
@media (max-width: 767px) {
	.cv2 .filters li { flex-shrink: 1; }
	.cv2 .cv2-toolbar .pager-wrapper { white-space: normal; }
}
.cv2-seo { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-gap: 10px 48px; }
.cv2-seo-block:only-child { max-width: 860px; }
@media (max-width: 767px) { .cv2-seo { grid-template-columns: 1fr; } }

/* pola ceny = ten sam wyglad co selecty obok */
.cv2 .category-toolbar .filters li.price-select input,
.cv2 .category-toolbar .filters input#price_from,
.cv2 .category-toolbar .filters input#price_to {
	box-sizing: border-box !important;
	height: 38px !important;
	line-height: 36px !important;
	width: 82px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	border: 1px solid var(--cv2-line) !important;
	border-radius: 8px !important;
	background: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	color: var(--cv2-ink) !important;
	box-shadow: none !important;
	-webkit-appearance: none; appearance: none;
}
.cv2 .category-toolbar .filters li.price-select input::placeholder { color: var(--cv2-muted); font-size: 14px; opacity: 1; }
.cv2 .category-toolbar .filters li.price-select input:focus { border-color: var(--cv2-ink) !important; outline: none; }
.cv2 .category-toolbar .filters select {
	height: 38px !important; border-radius: 8px !important; font-size: 14px !important; font-family: inherit !important;
}

/* bez zbednych linii nad i pod lista produktow */
.cv2 .page-wrapper.cv2-grid { border: 0 !important; padding-top: 0; }
.cv2 .cv2-toolbar .category-toolbar { border-bottom: 0; }
.cv2 .cv2-toolbar-bottom .category-toolbar { border-top: 0; }

/* stronicowanie: wylaczenie starego pozycjonowania z frontend.css */
.cv2 .pager-wrapper { padding: 0 !important; position: static !important; font-size: 13.5px; }
.cv2 .pager-wrapper ul { position: static !important; display: flex !important; align-items: center; gap: 4px; top: auto; right: auto; clear: none; }
.cv2 .pager-wrapper ul li { float: none !important; width: auto !important; padding: 0 !important; line-height: 1 !important; text-align: center; }
.cv2 .pager-wrapper ul li a { width: auto !important; height: 34px !important; }
.cv2 .category-toolbar-wrapper.bottom { border-top: 0 !important; }
.cv2 .filters-wrapper { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* linki w opisach kategorii w kolorze akcentu (jak "Wszystkie nowosci →" na stronie glownej) */
.cv2 .cv2-intro a, .cv2 .cv2-intro a strong, .cv2 .cv2-intro a b,
.cv2 .cv2-seo a, .cv2 .cv2-seo a strong, .cv2 .cv2-seo a b { color: var(--cv2-accent) !important; }
.cv2 .cv2-intro a:hover, .cv2 .cv2-seo a:hover { color: var(--cv2-ink) !important; }
/* odwiedzone linki w tym samym kolorze (stary frontend.css nadaje im inny zielony) */
.cv2 .cv2-intro a:visited, .cv2 .cv2-seo a:visited { color: var(--cv2-accent) !important; }

/* linki w opisach kategorii jak "Wszystkie style →" na stronie glownej: zielone, pogrubione, bez podkreslenia */
.cv2 .cv2-intro a, .cv2 .cv2-intro a:visited,
.cv2 .cv2-seo a, .cv2 .cv2-seo a:visited { color: #327d45 !important; font-weight: bold; text-decoration: none !important; }
.cv2 .cv2-intro a:hover, .cv2 .cv2-seo a:hover { color: #327d45 !important; text-decoration: underline !important; }

/* mini-galeria inspiracji zamiast embedu Pinteresta (2026-11) */
.cv2-insp { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--cv2-line); }
.cv2 .cv2-insp-title { font-family: var(--cv2-serif); font-weight: normal; font-size: 26px; line-height: 1.25; color: var(--cv2-ink); margin: 0 0 20px; padding: 0; background: none; border: 0; text-transform: none; text-align: left; }
.cv2-insp-board { columns: 5; column-gap: 10px; }
.cv2 .cv2-insp-pin { position: relative; display: block; margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: var(--cv2-soft); break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.cv2-insp-pin img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.cv2-insp-pin:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); opacity: 0; transition: opacity .25s ease; }
.cv2 .cv2-insp-name { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.cv2-insp-pin:hover img { transform: scale(1.04); }
.cv2-insp-pin:hover:after, .cv2-insp-pin:hover .cv2-insp-name { opacity: 1; transform: none; }
@media (max-width: 1000px) { .cv2-insp-board { columns: 4; } }
@media (max-width: 760px) { .cv2-insp-board { columns: 3; column-gap: 8px; } .cv2 .cv2-insp-pin { margin-bottom: 8px; border-radius: 10px; } .cv2 .cv2-insp-title { font-size: 21px; } }
@media (max-width: 480px) { .cv2-insp-board { columns: 2; } }

/* landing: pierwszy blok opisu na cala szerokosc, pozostale po dwa w kolejnym wierszu (2026-11) */
.cv2-landing .cv2-seo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cv2-landing .cv2-seo-block:first-child { grid-column: 1 / -1; max-width: none; }
@media (max-width: 767px) { .cv2-landing .cv2-seo { grid-template-columns: 1fr; } }
/* telefon: licznik produktow w jednej linii, numery stron pod nim */
@media (max-width: 767px) {
	.cv2 .cv2-toolbar .pager-wrapper { display: block !important; white-space: nowrap !important; line-height: 1.4 !important; }
	.cv2 .cv2-toolbar .pager { display: block !important; margin-top: 10px !important; }
	.cv2 .pager-wrapper ul { flex-wrap: wrap; }
}
