/* Tapis Custom: pasek „Filtruj + / Sortuj +” nad listą produktów i panel filtrów. Wszystko pod body.tapis-filtr. */

/* Pasek: bez dwóch linii i ramek, przyciski tekstowe na dwóch końcach. */
.tapis-filtr.woocommerce .oceanwp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	margin: 0 0 24px;
	border: 0;
	text-align: left;
	position: relative;
	z-index: 120; /* nad naklejkami „Nowość” (z-index 99) */
}

.tapis-filtr .tapis-filtr__btn,
.tapis-filtr.woocommerce .oceanwp-toolbar .oceanwp-off-canvas-filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	float: none;
	height: auto;
	margin: 0;
	padding: 8px 0;
	border: 0;
	background: none;
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
}

.tapis-filtr.woocommerce .oceanwp-toolbar .oceanwp-off-canvas-filter:hover,
.tapis-filtr .tapis-filtr__btn:hover,
.tapis-filtr .tapis-filtr__btn:focus {
	color: #000;
	background: none;
	border: 0;
}

.tapis-filtr .oceanwp-off-canvas-filter i {
	display: none;
}

.tapis-filtr__count {
	font-weight: 400;
	color: #747474;
}

/* „Filtruj +” wygląda dobrze od pierwszego wyświetlenia, bez czekania na skrypt: plusik z CSS. */
.tapis-filtr.woocommerce .oceanwp-toolbar .oceanwp-off-canvas-filter::after {
	content: "";
	width: 11px;
	height: 11px;
	flex: none;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

/* Plusik rysowany dwiema kreskami; po otwarciu pionowa znika i zostaje minus. */
.tapis-filtr__plus {
	position: relative;
	display: inline-block;
	width: 11px;
	height: 11px;
	flex: none;
}

.tapis-filtr__plus::before,
.tapis-filtr__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	margin-top: -0.75px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.tapis-filtr__plus::after {
	transform: rotate(90deg);
}

.tapis-sort.is-open .tapis-filtr__plus::after,
.tapis-panel__section.is-open .tapis-filtr__plus::after {
	transform: rotate(0deg);
}

/* Sortowanie: natywne pole zostaje w formularzu (wysyła wybór), ale go nie widać, także zanim skrypt doda „Sortuj +”. */
.tapis-filtr .oceanwp-toolbar .woocommerce-ordering {
	display: none;
}

.tapis-sort {
	position: relative;
	margin-left: auto;
}

.tapis-sort__list {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100;
	min-width: 260px;
	margin: 6px 0 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e3e3e3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.tapis-sort.is-open .tapis-sort__list {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.tapis-sort__list li {
	margin: 0;
}

.tapis-sort__option {
	display: block;
	width: 100%;
	padding: 9px 20px;
	border: 0;
	background: none;
	color: #333;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}

.tapis-sort__option:hover,
.tapis-sort__option:focus {
	background: #f5f5f5;
	color: #000;
}

.tapis-sort__option.is-active {
	color: #000;
	font-weight: 600;
}

/* Panel filtrów. */
.tapis-filtr #oceanwp-off-canvas-sidebar-wrap .oceanwp-off-canvas-sidebar {
	width: 400px;
	max-width: 100%;
	padding: 28px 32px 40px;
	box-shadow: none;
}

.tapis-filtr #oceanwp-off-canvas-sidebar-wrap .oceanwp-off-canvas-overlay {
	background-color: rgba(0, 0, 0, 0.35);
}

/* Waluta Przelewy24 i wyszukiwarka (FiboSearch na .pl, blok wyszukiwania na .eu) to nie filtry.
   Na .eu w panelu jest też blokowy „Product Filters” z samym nagłówkiem „Status” bez opcji: chowamy go. */
.tapis-filtr .oceanwp-off-canvas-sidebar > form:has(#p24-change-currency-widget),
.tapis-filtr .oceanwp-off-canvas-sidebar .dgwt-wcas-widget,
.tapis-filtr .oceanwp-off-canvas-sidebar .widget_search,
.tapis-filtr .oceanwp-off-canvas-sidebar .sidebar-box:has(.wp-block-woocommerce-product-filters) {
	display: none;
}

.tapis-panel__head {
	padding: 0 40px 20px 0;
	border-bottom: 1px solid #000;
}

.tapis-panel__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #000;
}

.tapis-filtr .oceanwp-off-canvas-close {
	top: 24px;
	right: 28px;
}

.tapis-filtr #oceanwp-off-canvas-sidebar-wrap .tapis-panel__section {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e3e3e3;
}

.tapis-filtr .tapis-panel__section .widget-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
}

.tapis-filtr .tapis-panel__section .widget-title::before,
.tapis-filtr .tapis-panel__section .widget-title::after {
	display: none;
}

.tapis-panel__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	border: 0;
	background: none;
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.tapis-panel__toggle:hover,
.tapis-panel__toggle:focus {
	background: none;
	color: #000;
}

.tapis-panel__body {
	display: none;
	padding: 0 0 20px;
}

.tapis-panel__section.is-open .tapis-panel__body {
	display: block;
}

/* Listy kategorii i rozmiarów: zwykłe linki, wybrany pogrubiony. */
.tapis-filtr .tapis-panel__body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tapis-filtr .tapis-panel__body ul ul {
	padding-left: 14px;
}

.tapis-filtr .tapis-panel__body li {
	margin: 0;
	padding: 6px 0;
	border: 0;
	font-size: 14px;
	line-height: 1.4;
}

.tapis-filtr .tapis-panel__body li li {
	padding-bottom: 0;
}

.tapis-filtr .tapis-panel__body li a {
	color: #333;
}

.tapis-filtr .tapis-panel__body li a:hover,
.tapis-filtr .tapis-panel__body li.current-cat > a,
.tapis-filtr .tapis-panel__body li.chosen > a {
	color: #000;
	font-weight: 600;
}

.tapis-filtr .tapis-panel__body li.chosen > a::before {
	content: "✓ ";
}

.tapis-filtr .tapis-panel__body .count {
	margin-left: 4px;
	color: #999;
	font-size: 12px;
}

/* Cena: dwa pola i czarny przycisk. */
.tapis-filtr .tapis-panel__body .price_slider {
	margin: 8px 7px 22px;
}

.tapis-filtr .tapis-panel__body .price_slider_amount {
	display: flex;
	height: auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tapis-filtr .tapis-panel__body .price_slider_amount input[type="text"] {
	display: block !important;
	width: calc(50% - 5px);
	height: 40px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
}

.tapis-filtr .tapis-panel__body .price_slider_amount .button {
	float: none;
	width: 100%;
	height: 42px;
	margin: 4px 0 0;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tapis-filtr .tapis-panel__body .price_label {
	width: 100%;
	font-size: 13px;
	color: #747474;
}

.tapis-panel__stock {
	display: block;
	padding: 20px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tapis-panel__stock:hover {
	color: #000;
}

.tapis-panel__foot {
	padding-top: 24px;
}

.tapis-panel__clear {
	font-size: 13px;
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.tapis-filtr.woocommerce .oceanwp-toolbar {
		margin-bottom: 16px;
	}

	.tapis-filtr #oceanwp-off-canvas-sidebar-wrap .oceanwp-off-canvas-sidebar {
		width: 88%;
		padding: 24px 22px 40px;
	}

	.tapis-filtr .oceanwp-off-canvas-close {
		right: 18px;
	}
}
