/*
Theme Name: Používané kolesá
Description: Vlastná téma pre pouzivanekolesa.sk — bazár diskov a pneumatík.
             Bez frameworku, bez buildera, bez build stepu. Logika je v plugine pk-core.
Author: FúúDobre
Version: 0.9.6
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pk
*/

/* Manrope — hostované lokálne.
   Zámerne NIE z fonts.googleapis.com: to posiela IP adresu návštevníka
   Googlu do USA, čo je spracovanie osobných údajov bez súhlasu.
   Lokálne je to aj rýchlejšie — odpadne DNS lookup a TLS handshake
   na cudziu doménu. Stiahnuté sú len latin a latin-ext (slovenčina). */

/* latin-ext */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonty/manrope-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonty/manrope-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonty/manrope-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonty/manrope-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonty/manrope-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonty/manrope-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('assets/fonty/manrope-800-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('assets/fonty/manrope-800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* pouzivanekolesa.sk — prototyp
   Systém: tmavá hlavička/päta, svetlý obsah, signálna oranžová na ceny a CTA.
   Fotky diskov sú sivé a tmavé, preto svetlé pozadie — inak mriežka splynie. */

:root {
	--tmava:        #15181C;
	--tmava-2:      #1E2228;
	--tmava-3:      #2A2F37;
	--pozadie:      #F4F5F7;
	--karta:        #FFFFFF;
	--text:         #15181C;
	--text-slaby:   #6B7280;
	--text-slabsi:  #9CA3AF;
	--ciara:        #E5E7EB;
	--akcent:       #FF6A00;
	--akcent-tmava: #E05A00;
	--zelena:       #16A34A;

	--r:     14px;
	--r-mal:  9px;
	--tien:     0 1px 2px rgba(21, 24, 28, .05);
	--tien-hover: 0 8px 24px rgba(21, 24, 28, .10);
	--sirka: 1320px;
	--medzera: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text);
	background: var(--pozadie);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }

.obal {
	width: 100%;
	max-width: var(--sirka);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- Hlavička ---------- */

.hlavicka {
	background: var(--tmava);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}

.hlavicka__riadok {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 66px;
}


.logo {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -.03em;
}
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo b { color: var(--akcent); font-weight: 800; }
.logo span { display: none; }

/* Vyhľadávanie */
.hladanie {
	flex: 1;
	position: relative;
	min-width: 0;
}
.hladanie input {
	width: 100%;
	height: 42px;
	border: 0;
	border-radius: 100px;
	background: var(--tmava-3);
	color: #fff;
	font: inherit;
	padding: 0 16px 0 42px;
	outline: 2px solid transparent;
	transition: outline-color .15s, background .15s;
}
.hladanie input::placeholder { color: var(--text-slabsi); }
.hladanie input:focus {
	background: var(--tmava-2);
	outline-color: var(--akcent);
}
.hladanie svg {
	position: absolute;
	left: 14px; top: 50%;
	transform: translateY(-50%);
	width: 18px; height: 18px;
	color: var(--text-slabsi);
	pointer-events: none;
}

/* Vyhľadávanie má strop 460 px, takže zvyšok riadku ostával prázdny za telefónom
   a hlavička sa vpravo nezarovnala s obsahom (152 px diera). `auto` odtlačí
   menu aj telefón k pravému okraju obalu. */
.menu { display: none; gap: 4px; margin-left: auto; }
.menu a {
	padding: 8px 13px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 14px;
	color: #D6D9DE;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.menu a:hover { background: var(--tmava-3); color: #fff; }
.menu a[aria-current] { color: #fff; background: var(--tmava-3); }

.tel {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--akcent);
	color: #fff;
	font-weight: 700;
	padding: 0 18px;
	height: 42px;
	border-radius: 100px;
	flex-shrink: 0;
	white-space: nowrap;
	transition: background .15s;
}
.tel:hover { background: var(--akcent-tmava); }
.tel svg { width: 17px; height: 17px; }
.tel span { display: none; }
.tel--ikona { padding: 0; width: 42px; justify-content: center; }

.hamburger {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border: 0;
	border-radius: 100px;
	background: var(--tmava-3);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}
.hamburger svg { width: 20px; height: 20px; }

/* Mobilné menu */
.menu-mobil {
	display: none;
	border-top: 1px solid var(--tmava-3);
	padding: 8px 0 14px;
}
.menu-mobil.je-otvorene { display: block; }
.menu-mobil a {
	display: block;
	padding: 11px 4px;
	font-weight: 600;
	color: #D6D9DE;
	border-bottom: 1px solid var(--tmava-2);
}

/* Pod 768 px ide vyhľadávanie do vlastného riadku: v jednom riadku s logom
   a telefónom by sa doň nezmestil ani placeholder. */
@media (max-width: 767px) {
	.hlavicka__riadok {
		flex-wrap: wrap;
		height: auto;
		padding: 12px 0;
		row-gap: 10px;
	}
	.logo { margin-right: auto; font-size: 15.5px; }
	.logo span { display: inline; }
	.hladanie { order: 10; flex: 0 0 100%; }
}

/* Na 320 px sa celý názov domény do riadku nezmestí a hamburger padne pod logo.
   Pod 360 px preto ostane len ikona kolesa. */
@media (max-width: 359px) {
	.hlavicka__riadok { gap: 10px; }
	.logo span { display: none; }
}

/* ---------- Slider ---------- */

.slider {
	position: relative;
	margin-top: var(--medzera);
	border-radius: var(--r);
	overflow: hidden;
	background: var(--tmava-2);
}
.slide {
	display: none;
	position: relative;
	/* 300 px nestačilo: text zaberá 230 px a s paddingom ostávali 2 px vôle,
	   takže slide pôsobil natlačene. Dvojriadkový nadpis je na mobile bežný. */
	min-height: 380px;
	padding: 34px 22px;
	color: #fff;
	background-size: cover;
	background-position: center;
	align-items: center;
}
.slide.je-aktivny { display: flex; }
.slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(10,12,15,.92) 0%, rgba(10,12,15,.72) 52%, rgba(10,12,15,.3) 100%);
}
.slide__text { position: relative; z-index: 1; max-width: 560px; }
.slide__stitok {
	display: inline-block;
	background: var(--akcent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 100px;
	margin-bottom: 14px;
}
.slide h2 { font-size: 27px; margin-bottom: 10px; }
.slide p { margin: 0 0 20px; color: #C8CCD2; font-size: 15px; }

.slider__body {
	position: absolute;
	/* Tlačidlá majú 44 px, bodka ostáva vizuálne 8 px. Odsadenie je dopočítané tak,
	   aby stred bodky sedel tam, kde pri 24 px tlačidlách (28 px zdola, 34 px zľava). */
	bottom: 6px; left: 12px;
	display: flex;
	gap: 0;
	z-index: 2;
}
/* Bodka je vizuálne 8 px, ale klikať sa do nej musí dať aj palcom — dotykovú
   plochu preto robí samotné tlačidlo a bodku kreslí ::after.
   44 px je odporúčanie Apple aj Google; 24 px je len holé minimum WCAG 2.2 AA. */
.slider__body button {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.slider__body button::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .35);
	transition: width .2s, background .2s;
}
.slider__body button[aria-current]::after { width: 24px; background: var(--akcent); }

/* ---------- Tlačidlá ---------- */

.tl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 100px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.tl--akcent { background: var(--akcent); color: #fff; }
.tl--akcent:hover { background: var(--akcent-tmava); }
.tl--biele { background: #fff; color: var(--text); }
.tl--biele:hover { background: #ECEEF1; }
.tl--obrys {
	background: transparent;
	color: var(--text);
	box-shadow: inset 0 0 0 1.5px var(--ciara);
}
.tl--obrys:hover { box-shadow: inset 0 0 0 1.5px var(--text-slaby); }
.tl svg { width: 18px; height: 18px; }
.tl--siroke { width: 100%; }

/* ---------- Sekcie ---------- */

.sekcia { margin-top: 38px; }
.sekcia__hlava {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}
.sekcia__hlava p { margin: 4px 0 0; color: var(--text-slaby); font-size: 14px; }
.odkaz-viac {
	display: inline-flex;
	align-items: center;
	/* Samostatné CTA, nie odkaz v texte — musí sa doň dať trafiť palcom. */
	min-height: 40px;
	color: var(--akcent);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.odkaz-viac:hover { text-decoration: underline; }

/* ---------- Dlaždice kategórií ---------- */

.kategorie {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.kat {
	background: var(--karta);
	border-radius: var(--r);
	padding: 16px;
	box-shadow: var(--tien);
	transition: box-shadow .18s, transform .18s;
}
.kat:hover { box-shadow: var(--tien-hover); transform: translateY(-2px); }
.kat svg { width: 40px; height: 40px; color: var(--tmava); margin-bottom: 10px; }
.kat b { display: block; font-size: 15px; font-weight: 800; }
.kat span { color: var(--text-slaby); font-size: 13px; }

/* ---------- Mriežka inzerátov ---------- */

.mriezka {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.inzerat {
	background: var(--karta);
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: var(--tien);
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s, transform .18s;
}
.inzerat:hover { box-shadow: var(--tien-hover); transform: translateY(-2px); }

.inzerat__foto {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #E8EAED;
	overflow: hidden;
}
.inzerat__foto img { width: 100%; height: 100%; object-fit: cover; }

.stitok {
	position: absolute;
	top: 9px; left: 9px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(21,24,28,.82);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 100px;
}
.stitok--predane { background: rgba(107,114,128,.94); }
.stitok--pocet { background: rgba(255,106,0,.94); }

.inzerat__telo {
	padding: 12px 13px 13px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 5px;
}
.inzerat__nazov {
	min-height: 25px;
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.32;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.inzerat__popis {
	color: var(--text-slaby);
	font-size: 13px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.inzerat__meta {
	color: var(--text-slabsi);
	font-size: 12px;
	margin-top: auto;
	padding-top: 8px;
}
.inzerat__spodok {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid var(--ciara);
	padding-top: 10px;
	margin-top: 4px;
}
.cena { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.cena--predane { color: var(--text-slabsi); text-decoration: line-through; font-size: 16px; }

.volat-mini {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 100px;
	background: #FFF1E8;
	color: var(--akcent);
	flex-shrink: 0;
	transition: background .15s, color .15s;
}
.volat-mini:hover { background: var(--akcent); color: #fff; }
.volat-mini svg { width: 16px; height: 16px; }

/* ---------- Pás „ako to funguje" ---------- */

.postup {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	background: var(--karta);
	border-radius: var(--r);
	padding: 22px 18px;
	box-shadow: var(--tien);
}
.krok { display: flex; gap: 13px; align-items: flex-start; }
.krok__cislo {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	flex-shrink: 0;
	border-radius: 100px;
	background: var(--tmava);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}
.krok b { display: block; font-size: 15px; }
.krok span { color: var(--text-slaby); font-size: 13.5px; }

/* ---------- Kontaktný pruh ---------- */

.pruh {
	margin-top: 38px;
	background: var(--tmava);
	color: #fff;
	border-radius: var(--r);
	padding: 28px 22px;
	text-align: center;
}
.pruh h2 { font-size: 22px; margin-bottom: 8px; }
.pruh p { color: #A8ADB5; margin: 0 0 20px; font-size: 14.5px; }
.pruh__tlacidla { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Výpis: filtre ---------- */

.vypis {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin-top: var(--medzera);
	align-items: start;
}

.filtre-prepinac {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 100px;
	background: var(--karta);
	box-shadow: var(--tien);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.filtre-prepinac svg { width: 18px; height: 18px; }
.filtre-prepinac b {
	background: var(--akcent);
	color: #fff;
	font-size: 12px;
	border-radius: 100px;
	padding: 1px 8px;
}

.filtre {
	display: none;
	background: var(--karta);
	border-radius: var(--r);
	padding: 6px 16px 16px;
	box-shadow: var(--tien);
}
.filtre.je-otvorene { display: block; }

.filter { border-bottom: 1px solid var(--ciara); padding: 14px 0; }
.filter:last-child { border-bottom: 0; }
.filter > b {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--text-slaby);
	margin-bottom: 11px;
}

.volby { display: flex; flex-wrap: wrap; gap: 7px; }
.volba {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 100px;
	background: var(--pozadie);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: background .15s, color .15s;
}
.volba:hover { background: #E7E9EC; }
.volba input { position: absolute; opacity: 0; pointer-events: none; }
.volba:has(input:checked) { background: var(--tmava); color: #fff; }
.volba i { font-style: normal; color: var(--text-slabsi); font-size: 12px; }
.volba:has(input:checked) i { color: #9CA3AF; }

.vypis__hlava {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.vypis__pocet { color: var(--text-slaby); font-size: 14px; }
.vypis__pocet b { color: var(--text); }
.radenie {
	height: 40px;
	border: 0;
	border-radius: 100px;
	background: var(--karta);
	box-shadow: var(--tien);
	font: inherit;
	font-weight: 600;
	padding: 0 34px 0 15px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	background-size: 15px;
}

.aktivne-filtre { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.cip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--tmava);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 8px 6px 13px;
	border-radius: 100px;
}
.cip button {
	display: grid;
	place-items: center;
	width: 18px; height: 18px;
	border: 0;
	border-radius: 100px;
	background: rgba(255,255,255,.16);
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	padding: 0;
}
.cip button:hover { background: var(--akcent); }
.cip--zrusit { background: transparent; color: var(--akcent); padding: 6px 4px; }
.cip--zrusit:hover { text-decoration: underline; }

/* ---------- Stránkovanie ---------- */

.strankovanie {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 26px;
}
.strankovanie a {
	display: grid;
	place-items: center;
	min-width: 40px; height: 40px;
	padding: 0 12px;
	border-radius: 100px;
	background: var(--karta);
	box-shadow: var(--tien);
	font-weight: 700;
	font-size: 14px;
}
.strankovanie a[aria-current] { background: var(--tmava); color: #fff; }
.strankovanie a:hover:not([aria-current]) { background: #E7E9EC; }

/* ---------- Detail inzerátu ---------- */

.omrvinky {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	color: var(--text-slaby);
	font-size: 13px;
	padding: var(--medzera) 0 0;
}
/* Aj omrvinky sú dotykový cieľ — 20 px riadok je pod hranicou WCAG 2.2. */
.omrvinky a {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
}
.omrvinky a:hover { color: var(--akcent); }
.omrvinky span { color: var(--text-slabsi); }

.detail {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 14px;
	align-items: start;
}

.galeria__hlavna {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	aspect-ratio: 4 / 3;
	background: #E8EAED;
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: var(--tien);
	cursor: zoom-in;
	font: inherit;
}
.galeria__pocet {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(21, 24, 28, .78);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 100px;
	pointer-events: none;
}
/* `contain`, nie `cover`: klient fotí mobilom, takže väčšina fotiek je na výšku.
   V ráme 4:3 z nich `cover` odrezal 44 % — hore aj dole. Radšej pruhy po stranách
   než chýbajúci kus kolesa, kupujúci musí vidieť celý tovar. */
.galeria__hlavna img { width: 100%; height: 100%; object-fit: contain; }
.galeria__nahlady {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin-top: 8px;
}
.nahlad {
	aspect-ratio: 1;
	border: 0;
	padding: 0;
	border-radius: var(--r-mal);
	overflow: hidden;
	background: #E8EAED;
	cursor: pointer;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color .15s;
}
.nahlad[aria-current] { outline-color: var(--akcent); }
.nahlad img { width: 100%; height: 100%; object-fit: cover; }

.panel {
	background: var(--karta);
	border-radius: var(--r);
	padding: 20px 18px;
	box-shadow: var(--tien);
}
.panel + .panel { margin-top: 14px; }

.detail__kod {
	display: inline-block;
	background: var(--pozadie);
	color: var(--text-slaby);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.detail h1 { margin-bottom: 10px; }
.panel .detail__cena {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 14px 0;
}
.panel .detail__cena small {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-slaby);
	letter-spacing: 0;
}
.detail__cta { display: flex; flex-direction: column; gap: 9px; }
.panel .detail__pozn {
	margin: 14px 0 0;
	color: var(--text-slaby);
	font-size: 13px;
	text-align: center;
}

.parametre { width: 100%; border-collapse: collapse; font-size: 14px; }
.parametre th, .parametre td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--ciara); }
.parametre th { color: var(--text-slaby); font-weight: 600; width: 46%; }
.parametre td { font-weight: 700; }
.parametre tr:last-child th, .parametre tr:last-child td { border-bottom: 0; }

.panel h2 { font-size: 17px; margin-bottom: 12px; }
.panel p { margin: 0 0 10px; font-size: 14.5px; color: #3A4048; }
.panel p:last-child { margin-bottom: 0; }

/* Kotvy musia skočiť pod sticky hlavičku, inak hlásenie o odoslaní
   skončí schované za menu. */
#dopyt, #dopyt-odoslany, [id] { scroll-margin-top: 90px; }

/* ---------- Formulár ---------- */

.pole { margin-bottom: 12px; }
.pole label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 5px;
}
.pole input, .pole textarea {
	width: 100%;
	border: 1.5px solid var(--ciara);
	border-radius: var(--r-mal);
	background: #fff;
	font: inherit;
	padding: 11px 13px;
	transition: border-color .15s;
}
.pole input:focus, .pole textarea:focus { outline: 0; border-color: var(--akcent); }
.pole textarea { min-height: 96px; resize: vertical; }
.pole--suhlas {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12.5px;
	color: var(--text-slaby);
	line-height: 1.45;
}
.pole--suhlas input { width: auto; margin-top: 2px; flex-shrink: 0; }
.pole--suhlas a { color: var(--akcent); text-decoration: underline; }
/* Skryté pre oko, čitateľné pre čítačku obrazovky (h1 na titulke) a vyplniteľné
   botom (honeypot). Zámerne NIE `left: -9999px` — to presahuje viewport. */
.med {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Kontakt ---------- */

.kontakt-karty {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 14px;
}
.kontakt-karta {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--karta);
	border-radius: var(--r);
	padding: 18px;
	box-shadow: var(--tien);
}
.kontakt-karta__ikona {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	flex-shrink: 0;
	border-radius: 100px;
	background: #FFF1E8;
	color: var(--akcent);
}
.kontakt-karta__ikona svg { width: 19px; height: 19px; }
.kontakt-karta b { display: block; font-size: 13px; color: var(--text-slaby); font-weight: 700; }
.kontakt-karta a, .kontakt-karta span { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.kontakt-karta a:hover { color: var(--akcent); }
.kontakt-karta small { display: block; color: var(--text-slaby); font-size: 13px; font-weight: 500; }

/* ---------- Päta ---------- */

.pata {
	margin-top: 48px;
	background: var(--tmava);
	color: #A8ADB5;
	padding: 34px 0 22px;
	font-size: 14px;
}
.pata__mriezka {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}
.pata h3 {
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 12px;
}
.pata a:hover { color: var(--akcent); }
/* WCAG 2.2 (2.5.8) žiada dotykový cieľ aspoň 24×24 px. Samotný riadok textu
   má 20 px, preto odkazy dostanú výplň — inak sa do nich na mobile ťažko trafí. */
.pata ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* 40 px na mobile, aby sa do odkazov v päte dalo trafiť palcom.
   Na desktope sa myšou trafí aj do 26 px a ušetrí to výšku päty. */
.pata ul li { display: flex; align-items: center; min-height: 40px; }
.pata ul a { display: inline-flex; align-items: center; min-height: 40px; }
.pata__logo { margin-bottom: 12px; }
.pata__popis { max-width: 330px; line-height: 1.6; }
.pata__spodok {
	border-top: 1px solid var(--tmava-3);
	margin-top: 26px;
	padding-top: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	justify-content: space-between;
	color: var(--text-slabsi);
	font-size: 13px;
}

/* Podpis autora. Logo je logotyp s pomerom ~6,4:1, preto sa riadi výškou a šírku
   si dopočíta samo — inak by pri zúžení päty pretieklo. Tlmená biela, nie akcent:
   podpis nemá súperiť s logom webu. */
.pata__autor {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}
.pata__autor-odkaz {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	flex-shrink: 0;
	color: #fff;
	opacity: .62;
	transition: opacity .15s ease;
}
.pata__autor-odkaz:hover,
.pata__autor-odkaz:focus-visible { color: #fff; opacity: 1; }
/* Výška v `em`, nie v px: komu prehliadač zväčší písmo, tomu by logo v pevných px
   ostalo malé a riadok by pretiekol na dva. 1em = presne veľkosť textu vedľa. */
.pata__autor-odkaz svg { display: block; height: 1em; width: auto; }

/* ---------- Responzívne ---------- */

@media (min-width: 560px) {
	.mriezka, .kategorie { grid-template-columns: repeat(3, 1fr); }
	.logo span { display: inline; }
	.pruh__tlacidla { flex-direction: row; justify-content: center; }
	.detail__cta { flex-direction: row; }
	.detail__cta .tl { flex: 1; }
	.kontakt-karty { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
	body { font-size: 16px; }
	h1 { font-size: 34px; }
	h2 { font-size: 26px; }
	.obal { padding: 0 24px; }
	.hlavicka__riadok { height: 76px; gap: 20px; }
	.hladanie { max-width: 460px; }
	.tel span { display: inline; }
	.slide { min-height: 380px; padding: 48px 44px; }
	.slide h2 { font-size: 38px; }
	.postup { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px; }
	.krok { flex-direction: column; gap: 10px; }
	.pruh { padding: 44px; }
	.pruh h2 { font-size: 28px; }
	.detail { grid-template-columns: 1.15fr .85fr; gap: 26px; }
	.pata__mriezka { grid-template-columns: 1.6fr 1fr 1fr; }
	.kontakt-karty { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
	.mriezka, .kategorie { grid-template-columns: repeat(4, 1fr); }
	.menu { display: flex; }
	.hamburger { display: none; }
	.vypis { grid-template-columns: 274px 1fr; gap: 24px; }
	.vypis--bez-filtrov { grid-template-columns: 1fr; }
	.filtre { display: block; position: sticky; top: 92px; }
	.filtre-prepinac { display: none; }
	.pata ul li, .pata ul a { min-height: 26px; }
	.slide { min-height: 420px; }
	.slide h2 { font-size: 44px; }
	.detail { grid-template-columns: 1.25fr .75fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ---------- Lightbox ----------
   Vlastný, bez pluginu. Otvára sa z hlavnej fotky, listuje sa šípkami,
   klávesnicou aj potiahnutím prsta. */

.lb {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	background: rgba(10, 12, 15, .94);
	touch-action: none;
}
.lb.je-otvoreny { display: block; }

.lb__obrazok {
	position: absolute;
	inset: 56px 16px 74px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lb__obrazok img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	user-select: none;
	-webkit-user-drag: none;
}

.lb__zavri,
.lb__sipka {
	position: absolute;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 100px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background .15s;
	-webkit-tap-highlight-color: transparent;
}
.lb__zavri:hover,
.lb__sipka:hover { background: var(--akcent); }
.lb__zavri:focus-visible,
.lb__sipka:focus-visible { outline: 2px solid var(--akcent); outline-offset: 3px; }

.lb__zavri {
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	font-size: 22px;
	line-height: 1;
}
.lb__sipka {
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
}
.lb__sipka svg { width: 22px; height: 22px; }
.lb__sipka--vlavo  { left: 10px; }
.lb__sipka--vpravo { right: 10px; }
.lb__sipka[hidden] { display: none; }

.lb__pocitadlo {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	background: rgba(255, 255, 255, .12);
	padding: 7px 16px;
	border-radius: 100px;
}

.lb__nahlady {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	display: none;
	gap: 7px;
	max-width: calc(100% - 32px);
	overflow-x: auto;
	padding: 4px;
}
.lb__nahlady button {
	width: 54px;
	height: 42px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #2A2F37;
	cursor: pointer;
	opacity: .5;
	outline: 2px solid transparent;
	transition: opacity .15s, outline-color .15s;
}
.lb__nahlady button[aria-current] { opacity: 1; outline-color: var(--akcent); }
.lb__nahlady img { width: 100%; height: 100%; object-fit: cover; }

body.lb-otvoreny { overflow: hidden; }

@media (min-width: 768px) {
	.lb__obrazok { inset: 64px 76px 84px; }
	.lb__sipka { width: 54px; height: 54px; left: 14px; }
	.lb__sipka--vpravo { left: auto; right: 14px; }
	.lb__pocitadlo { display: none; }
	.lb__nahlady { display: flex; }
}

/* ---------- Našepkávač vo vyhľadávaní ---------- */

.napoveda {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
	background: var(--karta);
	border-radius: var(--r);
	box-shadow: 0 12px 34px rgba(10, 12, 15, .28);
	overflow: hidden;
	max-height: 70vh;
	overflow-y: auto;
	color: var(--text);
}
.napoveda.je-otvorena { display: block; }

.napoveda__polozka {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 13px;
	border-bottom: 1px solid var(--ciara);
	transition: background .12s;
}
.napoveda__polozka:last-of-type { border-bottom: 0; }
.napoveda__polozka:hover,
.napoveda__polozka.je-vybrata { background: var(--pozadie); }

.napoveda__polozka img,
.napoveda__bezfotky {
	width: 52px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 7px;
	object-fit: cover;
	background: #E8EAED;
}

.napoveda__text { flex: 1; min-width: 0; }
.napoveda__text b {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.napoveda__text small { color: var(--text-slabsi); font-size: 12px; }

.napoveda__cena {
	font-weight: 800;
	font-size: 15px;
	white-space: nowrap;
	flex-shrink: 0;
}
.napoveda__cena.je-predane {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-slabsi);
	background: var(--pozadie);
	padding: 4px 9px;
	border-radius: 100px;
}

.napoveda__vsetky {
	display: block;
	padding: 12px 13px;
	background: var(--pozadie);
	color: var(--akcent);
	font-weight: 700;
	font-size: 14px;
	text-align: center;
}
.napoveda__vsetky:hover,
.napoveda__vsetky.je-vybrata { background: #E7E9EC; }

.napoveda__prazdne {
	margin: 0;
	padding: 20px 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}
.napoveda__prazdne span {
	display: block;
	margin-top: 4px;
	font-weight: 500;
	color: var(--text-slaby);
	font-size: 13px;
}

/* ---------- Kontaktný blok (mailto, nie formulár) ---------- */

.kontakt-cta { display: grid; gap: 10px; }
.kontakt-cta__mail {
	margin: 4px 0 0;
	text-align: center;
	font-size: 13.5px;
	color: var(--text-slaby);
}
.kontakt-cta__mail a {
	color: var(--akcent);
	font-weight: 700;
	overflow-wrap: anywhere;
}
.kontakt-cta__mail a:hover { text-decoration: underline; }

/* Jedna šírka pre textové bloky pod kartami na stránke — inak sa ich pravé hrany
   odsadzujú jedna od druhej a pôsobí to ako schodisko. */
.stlpec-text { max-width: 720px; }

/* ---------- Pätička drží dole aj na krátkej stránke ----------
   Pri výpise s jedným inzerátom skončila pätička v polovici okna a pod ňou
   ostala prázdna plocha. Rastie `main`, nie `margin-top: auto` na pätičke —
   tá si tak ponechá svojich 48 px odstupu aj na dlhých stránkach. */

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > main { flex: 1 0 auto; }

/* Prihlásený vidí nad stránkou lištu WordPressu. Bez tejto korekcie by 100vh
   presiahlo okno a pribudol by posuvník, ktorý návštevník nikdy neuvidí. */
body.admin-bar { min-height: calc(100vh - 32px); }

@media screen and (max-width: 782px) {
	body.admin-bar { min-height: calc(100vh - 46px); }
}

/* ---------- Tabuľka v obsahu stránky ----------
   Zásady cookies obsahujú tabuľku a bez `table-layout: fixed` si ju prehliadač
   rozšíri podľa najdlhšieho slova — na 390 px potom pretekala o 30 px a robila
   horizontálny scroll celej stránky. Názvy cookies sú dlhé reťazce bez medzier,
   preto `overflow-wrap`. */

.panel table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 6px 0 2px;
	font-size: 14px;
}

.panel table th,
.panel table td {
	text-align: left;
	vertical-align: top;
	padding: 9px 10px 9px 0;
	border-bottom: 1px solid var(--ciara);
	overflow-wrap: anywhere;
}

.panel table th {
	font-weight: 700;
	color: var(--text);
}

.panel table tr:last-child td { border-bottom: 0; }

.panel table code {
	font-size: 12.5px;
	background: var(--pozadie);
	padding: 1px 5px;
	border-radius: 4px;
	overflow-wrap: anywhere;
}

/* ---------- Dokumentové stránky (zásady, ochrana údajov) ----------
   `.panel h2` má štýl pre panel s jedným nadpisom na detaile inzerátu: žiadny
   horný margin a 17 px. V dokumente so siedmimi sekciami sa tým nadpisy zlepia
   s predošlým odsekom a text 14,5 px sa dlho číta ťažko. */

.dokument { padding: 28px 26px; }
.dokument > :first-child { margin-top: 0; }
.dokument > :last-child { margin-bottom: 0; }

.dokument h2 {
	font-size: 19px;
	line-height: 1.3;
	margin: 30px 0 10px;
	padding-top: 22px;
	border-top: 1px solid var(--ciara);
}
.dokument h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.dokument p {
	font-size: 15.5px;
	line-height: 1.68;
	margin: 0 0 13px;
	color: #3A4048;
}
.dokument a { color: var(--akcent); font-weight: 600; }
.dokument a:hover { text-decoration: underline; }

/* Jeden súbor cookie ako karta — čitateľnejšie než tabuľka a bez problémov
   na úzkom displeji. */
.cookie-karta {
	background: var(--pozadie);
	border-radius: var(--r-mal);
	padding: 14px 16px;
	margin: 0 0 10px;
}
.cookie-karta h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.cookie-karta p { font-size: 14.5px; margin: 0 0 8px; }
.cookie-karta p:last-child { margin-bottom: 0; }
.cookie-karta__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	color: var(--text-slaby);
}
.cookie-karta__meta b { color: var(--text); font-weight: 700; }

@media (min-width: 700px) {
	.dokument { padding: 34px 34px; }
}

/* Dokumentová stránka zužuje celý obal, nie len panel — inak nadpis a omrvinky
   idú cez plnú šírku, panel je 720 px vľavo a polovica stránky ostane prázdna. */
.obal--dokument { max-width: 860px; }
