/* ========================================
   1. PANEL MOBILNEGO MENU
   ======================================== */

#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgb(0 0 0 / 45%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 88vw;
    height: 100%;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#mobile-menu-overlay.active #mobile-menu-panel {
    transform: translateX(0);
}


/* ========================================
   2. NAGŁÓWEK MENU
   ======================================== */

.mobile-menu-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    padding: 15px;
    box-sizing: border-box;
}

.mobile-menu-header .logo_canvas {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #222;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}


/* ========================================
   3. POZIOMY MENU
   ======================================== */

#mobile-menu-panel > .drilldown-menu {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

#mobile-menu-panel .menu-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
}

#mobile-menu-panel .menu-screen.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu-panel .menu-screen.to-left {
    transform: translateX(-100%);
    visibility: visible;
    pointer-events: none;
}


/* ========================================
   4. POZYCJE MENU
   ======================================== */

#mobile-menu-panel .menu-screen ul {
    width: 100%;
    margin: 0;
    padding: 0 15px 15px;
    box-sizing: border-box;
    list-style: none;
}

#mobile-menu-panel .menu-screen li {
    margin: 0;
    padding: 0;
    border: 0;
}

#mobile-menu-panel .menu-screen li > a,
#mobile-menu-panel .menu-screen li > .menu-open {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 53px;
    padding: 12px 24px 12px 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #252525;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

#mobile-menu-panel .menu-screen li > a:hover,
#mobile-menu-panel .menu-screen li > .menu-open:hover {
    color: #777;
}

/* Strzałka przy pozycjach z podmenu */

#mobile-menu-panel .menu-screen li > .menu-open::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #888;
    border-right: 1.5px solid #888;
    transform: translateY(-50%) rotate(45deg);
}


/* ========================================
   5. PRZYCISK POWROTU
   ======================================== */

#mobile-menu-panel .menu-back {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 20px 12px 38px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    color: #252525;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

#mobile-menu-panel .menu-back::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 7px;
    height: 7px;
    border-left: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: translateY(-50%) rotate(45deg);
}


/* ========================================
   6. DOLNE PRZYCISKI MENU
   ======================================== */

#mobile-menu-panel .mobile-menu-footer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
    padding: 16px 10px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    background: #fff;
}

#mobile-menu-panel .mobile-menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#mobile-menu-panel .mobile-menu-btn img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

#mobile-menu-panel .mobile-menu-btn:hover {
    border-color: #c9c9c9;
    background: #fafafa;
}

/* Licznik koszyka w dolnym przycisku */

#mobile-menu-panel .mobile-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 27px;
    margin-left: auto;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 50px;
    background: #df5353;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}


/* ========================================
   7. PRZYCISKI HAMBURGERA I WYSZUKIWARKI
   ======================================== */

.mobile-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: max-content;
}

.mobile-header-actions > button {
    display: flex !important;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 4px;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.mobile-header-actions > button img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}


/* ========================================
   8. IKONY ULUBIONYCH I KONTA
   ======================================== */

.mobile-header-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
}
.mobile-header-links .sol-wishlist-count {
	top: -5px!important;
	right: -10px!important;
}

.mobile-header-links > a,
.mobile-header-links .sol-wishlist-header {
    display: flex !important;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 !important;
    padding: 4px;
    box-sizing: border-box;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none;
}

.mobile-header-links img {
    display: block;
    width: 23px;
    height: 23px;
    margin: 0 !important;
    object-fit: contain;
}


/* ========================================
   9. KOSZYK KADENCE – IKONA I LICZNIK
   ======================================== */

.site-header .header-cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 4px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* Ukrycie oryginalnej ikony SVG */

.site-header .header-cart-button .kadence-svg-iconset {
    display: none !important;
}

/* Własna ikona koszyka */

.site-header .header-cart-button::before {
    content: "";
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: url("/wp-content/uploads/2026/10/shopping-cart.webp") center / contain no-repeat;
}

/* Badge koszyka */

.site-header .header-cart-button .header-cart-total {
    position: absolute;
    top: -8px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #d9534f;
    color: #fff !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
}

.site-header .header-cart-button .header-cart-total::before,
.site-header .header-cart-button .header-cart-total::after {
    display: none !important;
}


/* ========================================
   10. POPUP WYSZUKIWARKI MOBILNEJ
   ======================================== */

.mobile-search-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 20px;
    box-sizing: border-box;
    background: rgb(0 0 0 / 45%);
}

.mobile-search-popup.active {
    display: flex;
}

.mobile-search-popup-inner {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    background: #fff;
}

.mobile-search-popup-inner form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.mobile-search-popup-inner input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.mobile-search-popup-inner form button {
    flex-shrink: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.mobile-search-close {
    position: absolute;
    top: -14px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .kadence-column111_74da54-93,
    .kt-row-column-wrap {
        z-index: auto !important;
    }
	.wc-block-product-filters__overlay-footer {
		display: none;
	}
	.wc-block-product-filters.is-mobile-overlay .sol-filter-button-wrap {
    position: sticky;
    bottom: 0;
    z-index: 20;
    flex-shrink: 0;
    background: #fff;
    padding-bottom: 15px;
}
}


.filtry .wc-block-product-filter-checkbox-list__text {
	font-size: 14px!important;
}
.filtry .wc-block-product-filter-checkbox-list__input {
	height: 0.8em!important;
	width: 0.8em!important;
	margin-top: 2px!important;
}
.filtry .wc-block-product-filter-checkbox-list__label {
	gap: 8px;
}
.filtry .wc-block-product-filter-price-slider .text input[type=text] {
	padding: 0 5px!important;
	max-width: 100px;
	text-align: center;
}
