/* =========================================================
   PNW – SHOP FILTERS / SIDEBAR
   Sklep + kategorie produktów
   ========================================================= */


/* =========================================================
   DESKTOP – SIDEBAR
   ========================================================= */

body.archive-shop .page-sidebar {
	align-self: flex-start;

	z-index: 5;
}


@media (min-width: 1200px) {

	body.archive-shop .page-sidebar {
		position: sticky !important;

		top: 90px;
	}

}


/* =========================================================
   GŁÓWNA KARTA FILTRÓW
   ========================================================= */

body.archive-shop
.page-sidebar
.page-sidebar-content {

	padding: 18px !important;

	border: 1px solid #e3e7e4 !important;
	border-radius: 10px !important;

	background: #fff !important;

	box-shadow: none !important;
}


body.archive-shop
.page-sidebar
.archive-sidebar-filter {

	margin-top: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 0 !important;

	background: transparent !important;

	box-shadow: none !important;
}


/* =========================================================
   GŁÓWNY NAGŁÓWEK FILTRÓW
   ========================================================= */

body.archive-shop
.page-sidebar
.archive-sidebar-filter-heading {

	margin: 0 0 16px !important;
	padding: 0 0 13px !important;

	border-bottom: 1px solid #e7ebe8 !important;

	color: #111 !important;

	font-size: 16px !important;
	font-weight: 700 !important;

	line-height: 1.25 !important;
}


/* =========================================================
   POSZCZEGÓLNE SEKCJE
   ========================================================= */

body.archive-shop
.page-sidebar
.widget {

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;

	background: transparent !important;

	box-shadow: none !important;
}


body.archive-shop
.page-sidebar
.widget + .widget {

	margin-top: 16px !important;
	padding-top: 16px !important;

	border-top: 1px solid #edf0ee !important;
}


/* =========================================================
   TYTUŁ SEKCJI
   Kategorie / Kolor / Wymiary itd.
   ========================================================= */

body.archive-shop
.page-sidebar
.widget-title,

body.archive-shop
.page-sidebar
.widgettitle {

	position: relative;

	display: block;

	margin: 0 !important;
	padding: 0 25px 0 0 !important;

	color: #111 !important;

	font-size: 13px !important;
	font-weight: 700 !important;

	line-height: 24px !important;

	text-transform: none !important;
	letter-spacing: 0 !important;
}


/* ikonka + / - Minimoga */

body.archive-shop
.sidebar-widgets-collapsible
.m-widget-collapsible
.widget-title::after,

body.archive-shop
.sidebar-widgets-collapsible
.m-widget-collapsible
.widgettitle::after {

	right: 2px !important;
	top: 0 !important;

	color: #77817b !important;

	font-size: 13px !important;
}


/* odstęp po rozwinięciu */

body.archive-shop
.page-sidebar
.widget-content {

	padding-top: 10px !important;
}


/* =========================================================
   LISTY FILTRÓW
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
ul {

	margin: 0 !important;
	padding: 0 !important;
}


body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
ul.show-display-list {

	display: flex !important;

	flex-direction: column !important;

	gap: 2px !important;
}


body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
ul.show-display-list > li {

	display: block !important;

	width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;
}


/* =========================================================
   LINK KATEGORII / FILTRA
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.filter-link {

	display: flex !important;

	align-items: center !important;

	width: 100% !important;
	min-height: 32px;

	margin: 0 !important;
	padding: 6px 8px !important;

	border-radius: 6px;

	color: #555f59 !important;

	font-size: 13px !important;
	font-weight: 500 !important;

	line-height: 1.35 !important;

	text-decoration: none !important;

	transition:
		background .15s ease,
		color .15s ease;
}


body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.filter-link::after {

	display: none !important;
}


body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.filter-link:hover {

	background: #f5f8f6 !important;

	color: #111 !important;
}


/* =========================================================
   AKTYWNY FILTR
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
li.chosen > .filter-link {

	background: #edf8f0 !important;

	color: #159447 !important;

	font-weight: 700 !important;
}


/* standardowy widget kategorii – gdyby występował */

body.archive-shop
.page-sidebar
.current-cat > a {

	color: #159447 !important;

	font-weight: 700 !important;
}


/* =========================================================
   LICZNIK PRODUKTÓW
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.count {

	flex: 0 0 auto;

	margin: 0 0 0 auto !important;
	padding: 2px 6px !important;

	border-radius: 20px;

	background: #f1f4f2;

	color: #858e89 !important;

	font-size: 10px !important;
	font-weight: 600 !important;

	line-height: 16px !important;
}


/* aktywny */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.chosen
.count {

	background: #dff2e5;

	color: #159447 !important;
}


/* =========================================================
   PODKATEGORIE
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
ul.children {

	width: auto !important;

	margin: 4px 0 3px 10px !important;
	padding: 2px 0 2px 10px !important;

	border-left: 1px solid #dfe5e1;
}


body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
ul.children
.filter-link {

	min-height: 29px;

	padding-top: 5px !important;
	padding-bottom: 5px !important;

	font-size: 12px !important;
}


/* =========================================================
   KOLOR – nie psujemy miniaturek kolorów Minimoga
   ========================================================= */

body.archive-shop
.page-sidebar
.minimog-wp-widget-filter
.list-style-color {

	gap: 8px !important;
}


/* =========================================================
   PUSTY FILTR
   klasa dodawana przez shop-filters.js
   ========================================================= */

body.archive-shop
.page-sidebar
.widget.pnw-filter-empty {

	display: none !important;
}


/* =========================================================
   BUTTON FILTRY
   Tablet + mobile
   ========================================================= */

.pnw-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 9px 15px;

    border: 1px solid #cce8d5;
    border-radius: 9px;

    background: #edf8f0;
    color: #087c37;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.pnw-filter-toggle:hover,
.pnw-filter-toggle:focus-visible {
    background: #e0f2e6;
    border-color: #9fd7b1;
    color: #076a30;
}


/* =========================================================
   MOBILE HEADER SIDEBARA
   ========================================================= */

.pnw-filter-mobile-head {

	display: none;

	align-items: center;
	justify-content: space-between;

	padding: 16px 18px;

	border-bottom: 1px solid #e6eae7;
}


.pnw-filter-mobile-title {

	color: #111;

	font-size: 17px;
	font-weight: 700;
}


.pnw-filter-close {

	display: flex;

	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #f3f5f4;

	color: #111;

	font-size: 24px;
	font-weight: 400;

	line-height: 1;

	cursor: pointer;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.pnw-filter-overlay {

	position: fixed;

	inset: 0;

	z-index: 99998;

	background: rgba(0, 0, 0, .35);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity .2s ease,
		visibility .2s ease;
}


/* =========================================================
   TABLET + MOBILE – OFF CANVAS
   ========================================================= */

@media (max-width: 1199px) {

	.pnw-filter-toggle {

		display: inline-flex;
	}


	body.archive-shop
	.page-main-content {

		flex: 0 0 100% !important;

		width: 100% !important;
		max-width: 100% !important;
	}


	body.archive-shop
	.page-sidebar.pnw-shop-filter-sidebar {

		position: fixed !important;

		top: 0;
		left: 0;
		bottom: 0;

		z-index: 99999;

		width: 340px !important;
		max-width: calc(100vw - 42px) !important;
		height: 100vh !important;

		margin: 0 !important;
		padding: 0 !important;

		overflow-y: auto;

		background: #fff;

		transform: translateX(-105%);

		transition: transform .25s ease;
	}


	body.pnw-filters-open
	.page-sidebar.pnw-shop-filter-sidebar {

		transform: translateX(0);
	}


	body.pnw-filters-open
	.pnw-filter-overlay {

		opacity: 1;
		visibility: visible;
	}


	body.pnw-filters-open {

		overflow: hidden;
	}


	.pnw-filter-mobile-head {

		display: flex;
	}


	body.archive-shop
	.page-sidebar
	.page-sidebar-content {

		padding: 16px 18px 25px !important;

		border: 0 !important;
		border-radius: 0 !important;
	}

}



/* =========================================================
   PNW – MOBILNY PASEK SKLEPU
   Licznik | Filtry | Sortowanie
   ========================================================= */

@media (max-width: 767px) {

    body.archive-shop
    #archive-shop-actions .row-flex {
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
grid-template-areas: "filters count sorting";
        align-items: center !important;
        column-gap: 12px !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 16px !important;
        box-sizing: border-box;
    }

    /* Liczba produktów */

    body.archive-shop
    #archive-shop-actions
    .shop-actions-toolbar-left {
        order: 0;
        grid-area: count;
justify-self: start;
align-self: center;
        width: auto !important;
        min-width: 0;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.archive-shop
    #archive-shop-actions
    .woocommerce-result-count {
        margin: 0 !important;
        color: #59635d !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        white-space: nowrap;
    }

    body.archive-shop
    #archive-shop-actions
    .woocommerce-result-count p {
        margin: 0 !important;
    }

    /* Filtry */

    body.archive-shop
    #archive-shop-actions
    .pnw-filter-toggle {
        order: 1;
        grid-area: filters;
justify-self: start;
align-self: center;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;

        min-height: 40px;
        margin: 0 !important;
        padding: 6px 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;

        color: #087c37 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4;
        white-space: nowrap;

        -webkit-tap-highlight-color: transparent;
    }

    body.archive-shop
    #archive-shop-actions
    .pnw-filter-toggle::after {
        content: "";
        width: 6px;
        height: 6px;
        margin-top: -3px;

        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    body.archive-shop
    #archive-shop-actions
    .pnw-filter-toggle[aria-expanded="true"]::after {
        transform: translateY(3px) rotate(225deg);
    }

    body.archive-shop
    #archive-shop-actions
    .pnw-filter-toggle:focus-visible {
        outline: 2px solid #9fd7b1;
        outline-offset: 3px;
    }

    /* Sortowanie */

    body.archive-shop
    #archive-shop-actions
    .shop-actions-toolbar-right {
        order: 2;
        grid-area: sorting;
justify-self: end;
align-self: center;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
top: 5px;
    }

    body.archive-shop
    #archive-shop-actions
    .minimog-nice-select-current {
        display: flex;
        align-items: center;
        min-height: 40px;
        color: #087c37 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap;
    }

    body.archive-shop
    #archive-shop-actions
    .minimog-nice-select-current .value {
        color: inherit !important;
    }

    /* Mobilne pozycje w panelu filtrów */

    body.archive-shop
    .page-sidebar
    .minimog-wp-widget-filter
    .filter-link {
        min-height: 35px;
        font-size: 13px !important;
    }
}

/* Wąskie telefony: drugi wiersz zamiast ściskania */

@media (max-width: 359px) {

    body.archive-shop
    #archive-shop-actions .row-flex {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "count count"
            "filters sorting";
        gap: 4px 8px !important;
    }

    body.archive-shop
    #archive-shop-actions
    .woocommerce-result-count,

    body.archive-shop
    #archive-shop-actions
    .pnw-filter-toggle,

    body.archive-shop
    #archive-shop-actions
    .minimog-nice-select-current {
        font-size: 12px !important;
    }
}



/* =========================================================
   PNW – DYNAMICZNA NAWIGACJA KATEGORII
   Desktop + mobile
   ========================================================= */

.pnw-catnav {
    width: 100%;
    padding: 0;
}

/* Nagłówek */
.pnw-catnav .pnw-catnav__title {
    margin: 0 0 16px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #171c19 !important;
}

/* Powrót do kategorii nadrzędnej */
.pnw-catnav .pnw-catnav__back {
    display: block;
    margin-bottom: 12px;
    padding: 8px 10px;
    color: #118c42 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 7px;
    background: #f0f8f2;
}

/* Lista */
.pnw-catnav .pnw-catnav__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pnw-catnav .pnw-catnav__item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Linki do podkategorii */
.pnw-catnav .pnw-catnav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #414a44 !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}

.pnw-catnav .pnw-catnav__link:hover {
    background: #f0f8f2;
    color: #118c42 !important;
}

/* Aktualnie wybrana kategoria */
.pnw-catnav .pnw-catnav__link.is-current {
    background: #e8f6ec;
    color: #118c42 !important;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 767px) {

    .pnw-catnav .pnw-catnav__title {
        font-size: 18px !important;
    }

    .pnw-catnav .pnw-catnav__link {
        font-size: 15px !important;
        padding: 12px 10px;
    }

    .pnw-catnav .pnw-catnav__back {
        font-size: 14px;
    }
}
/* PNW – liczba produktów obok kategorii */

.pnw-catnav .pnw-catnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pnw-catnav .pnw-catnav__name {
    min-width: 0;
}

.pnw-catnav .pnw-catnav__count {
    flex-shrink: 0;
    color: #829087;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

/* PNW – ukrywanie nieaktywnych poziomów nawigacji */

.pnw-catnav .pnw-catnav__panel[hidden] {
    display: none !important;
}


/* =========================================================
   PNW – RESPONSYWNA LISTA SORTOWANIA
   ========================================================= */

@media (max-width: 1199px) {

    body.archive-shop
    #archive-shop-actions
    .minimog-nice-select-wrap {
        position: relative;
        max-width: 100%;
    }

    body.archive-shop
    #archive-shop-actions
    ul.minimog-nice-select {
        position: absolute !important;
        left: auto !important;
        right: 0 !important;

        width: 190px !important;
        min-width: 0 !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        max-height: 60vh !important;

        padding: 6px !important;
        overflow-y: auto !important;

        border: 1px solid #e1e9e4 !important;
        border-radius: 10px !important;

        background: #fff !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .12) !important;

        box-sizing: border-box;
        z-index: 1000;
    }

    /* Poszczególne pozycje */

    body.archive-shop
    #archive-shop-actions
    ul.minimog-nice-select > li.item {
        display: block;
        width: 100%;
        min-height: 0 !important;
        height: auto !important;

        margin: 0 !important;
        padding: 11px 12px !important;

        border-radius: 6px;

        background: transparent !important;
        color: #27332c !important;

        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        white-space: nowrap;

        box-sizing: border-box;
    }

    /* Aktualnie wybrana opcja */

    body.archive-shop
    #archive-shop-actions
    ul.minimog-nice-select > li.item.selected {
        background: #e8f6ec !important;
        color: #087c37 !important;
        font-weight: 700 !important;
    }
}

/* Efekt hover wyłącznie dla urządzeń z myszką */

@media (hover: hover) and (pointer: fine) {

    body.archive-shop
    #archive-shop-actions
    ul.minimog-nice-select > li.item:hover:not(.selected) {
        background: #f3f8f5 !important;
        color: #087c37 !important;
    }
}
