/*-----------------------------------------------------------
  FacetWP – tlačidlo "Filter" + bočný panel s filtrami
  Dizajn prevzatý z tvojpar.guru-cloud.sk, akcent zladený
  s ružovou témou (#eb9fa2).
-----------------------------------------------------------*/

/* --- tlačidlo, ktoré otvára panel --- */
.filter-header {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 8px 18px;
	border-radius: 10px;
	background: #fbecec;
	color: #222;
	font-weight: 800;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease;
}

.filter-header:hover {
	background: #f6dede;
}

.filter-mobile-svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: currentColor;
}

/* --- vysúvací panel --- */
.filter-content {
	position: fixed;
	top: 0;
	left: 0;
	width: 30%;
	max-width: 400px;
	height: 100%;
	background: #eb9fa2;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 100000;
	overflow-y: auto;
	padding: 20px;
	box-sizing: border-box;
}

.filter-content.open {
	transform: translateX(0);
}

@media (max-width: 767px) {
	.filter-content {
		width: 85%;
		max-width: 340px;
	}
}

.filter-content-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter-content-head p {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	text-transform: uppercase;
	color: #222;
}

.close-filter {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
	fill: white;
}

.filter-group-title {
	margin: 18px 0 10px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: white;
}

.filter-group-title:first-of-type {
	margin-top: 0;
}

/* --- spoločné pre facety --- */
.filter-content .facetwp-facet {
	margin-bottom: 0 !important;
}

.filter-content .facetwp-counter {
	display: none;
}

/* zrušenie predvoleného checkbox obrázka FacetWP */
.filter-content .facetwp-checkbox {
	background-image: none !important;
	padding-left: 0;
}

/* --- kategórie: pilulky --- */
.facetwp-facet-kategrie {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.facetwp-facet-kategrie .facetwp-checkbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid #E0E3EB;
	border-radius: 30px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
}

.facetwp-facet-kategrie .facetwp-checkbox:hover {
	border-color: #eb9fa2;
}

.facetwp-facet-kategrie .facetwp-checkbox.checked {
	background: #eb9fa2;
	border-color: #eb9fa2;
	color: #fff;
}

/* --- veľkosť: mriežka --- */
.facetwp-facet-vekos {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 10px;
}

.facetwp-facet-vekos .facetwp-checkbox {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 8px;
	border: 1px solid #E0E3EB;
	border-radius: 8px;
	background: #FbF6F6;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.facetwp-facet-vekos .facetwp-checkbox:hover {
	border-color: #eb9fa2;
}

.facetwp-facet-vekos .facetwp-checkbox.checked {
	background: #fbecec;
	border-color: #eb9fa2;
	color: #d1686d;
}

/* --- tlačidlo "Zobraziť výsledky" v päte panela --- */
.filter-content-foot {
	margin-top: 24px;
}

.filter-content-foot .close-filter3 {
	display: block;
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 10px;
	background: #eb9fa2;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid white;
}

.filter-content-foot .close-filter3:hover {
	background: #df8b8f;
}

/* --- zablokovanie skrolovania pozadia keď je panel otvorený --- */
body.filter-open {
	overflow: hidden;
}
