/*
 Theme Name:   Storefront Child
 Theme URI:    https://qbi.pl/
 Description:  Motyw potomny Storefront
 Author:       Twoje Imię
 Author URI:   https://qbi.pl/
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-child
*/

/* Tu możesz dopisywać swoje style */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
    font-size: 10px;
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2rem;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
    /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* 1 */
    font-size: 100%;
    /* 1 */
    line-height: 1.15;
    /* 1 */
    margin: 0;
    /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
    /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box;
    /* 1 */
    color: inherit;
    /* 2 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    padding: 0;
    /* 3 */
    white-space: normal;
    /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield;
    /* 1 */
    outline-offset: -2px;
    /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}

* {
    box-sizing: border-box;
}


/* ----------------------------------------- */

/*
#wpadminbar {
    bottom: 0;
    top: unset;
    position: fixed;
}
*/

@media screen {
    html {
        margin-top: 0px !important;
    }
}

:root {
    --white: #fff;
    --red: #DE2434;
    --primary: #F8F9FC;
    --dark: #353535;
    --dark-red: #760514;
    --secondary: #efefef;
    --gray: #595E60;
    --paragraph: #191919;
    --light-gray: #D9D9D9;
    --red-opacity-10: #FCE9EB;
    --grayblue: #EBF3F6;



}

a, a:visited, a:active {
    color: var(--red);
}

a:hover {
    color: var(--red);
    text-decoration: none;
}

p {
    color: var(--paragraph);
}

::placeholder {
    color: var(--light-gray);
    font-size: 1.5rem;
    /* Kolor tekstu placeholder */

}

img {
    max-width: 100% !important;
    height: auto !important;
    display: inline !important;
    border-radius: unset !important;
}



* {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-size: 1.6rem;
    line-height: 1.5;

}

.container {
    max-width: 1440px;
    position: relative;
    margin: 0 auto;
    padding-left: 4rem;
    padding-right: 4rem;
}





.main-header {
    position: relative;
}

.main-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #DE2434 0%, #FFFFFF 100%);
}

.main-header .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 110px;
}

.search-form {
    position: relative;
    width: 300px;
    margin-bottom: 0;

}

.search-form input[type="search"],
.search-form input[type="text"] {
    width: 100%;
    height: 36px;
    border: 1px solid var(--dark);
    background-color: var(--white);
    padding-right: 5rem;
    position: relative;
    border-radius: 50px;
    padding-left: 3rem;
}

.search-form input[type="text"]:focus {
    outline: none;
    border: 1px solid var(--light-gray);
}

.search-form button {
    width: 36px;
    height: 36px;
    border: none;
    background-color: var(--red);
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50%;
    text-indent: -9999px;
    padding: 0;
}

.search-form button:hover {
    background-color: var(--red);
}

.logo {
    text-align: left;
}

.logo a img {
    display: inline-block !important;
    height: 75px !important;
}

.user-menu {
    display: flex;
    justify-content: flex-end;
    align-content: center;
}

.user-menu img {
    height: 24px !important;
    max-width: unset !important;
}



.user-menu a.user-account,
.user-menu a.user-wishlist,
.user-menu a.user-cart,
.user-menu .user-cart {
    display: flex;
    margin-left: 3rem;
    align-items: center;
}

.user-menu .user-cart {
    margin-left: 1.5rem;
}

.user-menu .user-cart span.cart-items-count {
    background-color: var(--primary);
    height: 25px;
    min-width: 25px;
    display: inline-block;
    color: var(--white);
    border-radius: 5rem;
    text-align: center;
    margin-left: .5rem;
    padding: 0 .8rem;
    margin-right: 1rem;
}

.user-menu a.user-wishlist {
    border-left: 1px solid var(--dark);
    margin-right: 3rem;
    padding-left: 3rem;
}






.access nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}



.access nav ul li a {
    color: var(--black);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: 1.5rem 0;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.access a {
    color: var(--black);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: 1.5rem 0;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.access ul li {
    position: relative;
}

.access ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
    top: 54px;
    width: 100%;
    z-index: 99999;
    background-color: #fff;
    overflow: hidden;
    padding-bottom: .5rem;
    left: 0;
    width: 250px;
}

.access ul ul ul {
    left: 100%;
    top: 0;
}

.access ul li ul li a {
    background-color: #fff;
    height: auto;
    text-transform: none;
    font-size: 1.4rem;
    display: block;
    padding: 1rem;
}

.access ul li:hover>ul {
    display: block;
    padding-top: 2rem;
    max-width: 300px;
}

.access ul li:hover>ul>li {
    padding-left: 1rem;
    padding-right: 1rem;
    border-right: 1px solid #ddd;
}

/* usuń border z ostatniej kolumny */
.access ul li:hover>ul>li:nth-child(4n) {
    border-right: none;
}

.access a {
    position: relative;
}


.access a::before,
.access ul li.current_page_item a::before {
    background-color: currentColor;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
    visibility: hidden;
    width: 100%;
}

/* Hover */
.access a:hover::before {
    transform: scaleX(1);
    visibility: visible;
}

/* Aktywny link */
.access ul li.current-menu-item a::before {
    transform: scaleX(1);
    visibility: visible;
}


/*MAIN*/


.slider-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.slider-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 21px;
    background: url(img/pattern.png) repeat-x;
}

/* Slick wrappery – zostawiamy domyślne, tylko porządkujemy overflow */
.slider {
    width: 100%;
}

.slider .slick-list {
    overflow: hidden;
}

.slider .slick-track {
    display: block;
}

/* nie flex przy aspect-ratio */
.slider.slick-slide {
    margin: 0 !important;
}

.slider.slick-list {
    margin: 0 !important;
}

/* === KRYTYCZNE ZMIANY NA .slide === */
.slide {
    /* USUŃ to z poprzedniej wersji: min-width:100%; transition: transform ... */
    position: relative;
    background: var(--bg) center/cover no-repeat;
    aspect-ratio: 3 / 1;
    min-height: 380px;
    /* safety net na niskich ekranach */
}

/* overlay z treścią */
.slide-content {
    position: absolute;
    inset: 0;
}

.slide-content .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Twój typograf – bez zmian */
.slide-content .container h2 {
    color: var(--white);
    font-size: 4.7rem;
    margin: 0 0 2rem 0;
    max-width: 520px;
    line-height: 1.2;
    font-weight: 900;
}

.slide-content .container h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin: 0 0 3rem 0;
    max-width: 520px;
    line-height: 1.2;
    font-weight: 500;
}

.gray-section {
    background: var(--primary)
}

/* Drobne UX dla strzałek i kropek */
.slick-dots {
    bottom: 16px;
    z-index: 4;
}

/* === CUSTOM STRZAŁKI SLIDERA === */
.slider .slick-prev,
.slider .slick-next {
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

.slider .slick-prev {
    left: 20px;
}

.slider .slick-next {
    right: 20px;
}

.slider .slick-prev:hover,
.slider .slick-next:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-50%) scale(1.08);
}

/* Ukryj domyślny znak slicka */
.slider .slick-prev::before,
.slider .slick-next::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 1;
}

.slider .slick-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.slider .slick-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

@media (max-width: 640px) {
    .slider .slick-prev,
    .slider .slick-next {
        width: 38px;
        height: 38px;
    }
    .slider .slick-prev {
        left: 8px;
    }
    .slider .slick-next {
        right: 8px;
    }
    .slider .slick-prev::before,
    .slider .slick-next::before {
        width: 9px;
        height: 9px;
    }
}

/* Responsywność */
@media (max-width: 992px) {
    .slide {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .slide {
        aspect-ratio: 16 / 10;
        min-height: 320px;
    }

    .slide-content .container h2 {
        font-size: 3.2rem;
    }

    .slide-content .container h3 {
        font-size: 1.9rem;
    }
}

/* Fallback dla przeglądarek bez aspect-ratio (rzadko, ale na wszelki) */
@supports not (aspect-ratio: 1 / 1) {
    .slide::before {
        content: "";
        display: block;
        padding-top: 33.333%;
    }
}



.section-title {
    font-size: 3.4rem !important;
    background: linear-gradient(180deg, var(--gray), var(--dark));
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    margin-top: 0;
}

.subpage-header {
    position: relative;
    background: url(img/subpage_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    padding: 4rem 0;
    text-align: center;
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='40' patternTransform='scale(5) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23353535ff'/><path d='M10-10V0l10 10V0L10-10zm0 10L0 10v10l10-10V0zm0 30v10l10 10V40L10 30z'  stroke-width='1' stroke='none' fill='%2300000009'/><path d='M10 10l10 10v10L10 20zm0 10L0 30v10l10-10z'  stroke-width='1' stroke='none' fill='%2300000009'/></pattern></defs><rect width='800%' height='800%' transform='translate(-150,-400)' fill='url(%23a)'/></svg>")
}

.subpage-header {
    color: var(--white);
}


.subpage-header h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--black);
}

.subpage-noheader {
    position: relative;
    background: #C2E0EB;
    height: 50px;
}

.subpage-columns {
    position: relative;
    border-bottom: 2px solid var(--red);
}

.wpforms-submit-spinner {
    display: none !important;
}

#wpforms-submit-219 {
    border-radius: 0 !important;
    background-color: var(--red) !important;
    color: var(--white) !important;
}

.category-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 5rem;
    margin: 4rem 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    margin: 4rem 0;
}


.category-grid .left-column ul.filters-list li {}

.category-grid .left-column ul.filters-list li a {
    position: relative;
    padding-left: 4.5rem;
    display: inline-block;
}

.category-grid .left-column ul.filters-list li a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--dark);
    border-radius: 3px;
}



.category-grid .left-column ul li.current-menu-item a {
    font-weight: bold;
}

.category-grid .left-column ul li:last-child {
    margin-bottom: 0;
}

.category-grid .left-column ul li a {
    color: var(--black);
}

.category-grid .left-column {
    display: flex;
    flex-direction: column;
}

/*.category-grid .left-column h3,*/
.wpfFilterTitle {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 0;
    padding-bottom: 1rem;
    position: relative;
    color: var(--black);
    margin-bottom: 2rem;
}

.wfpTitle {
    font-weight: 800 !important;
}

.wpfTitleToggle {
    color: var(--black);
    padding-top: 10px !important;
}

/*
.category-grid .left-column h4 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    position: relative;
}
*/

/*.category-grid .left-column h3:after,*/
.wpfFilterTitle::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--dark);
}

.wpfFilterTitle::before {
    content: "";
    position: absolute;
    bottom: -1.3rem;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--red);
    z-index: 3;
}

.wpfFilterVerScroll li {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.wpfFilterVerScroll li ul {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.wpfFilterVerScroll li ul li {
    /*background-color: red !important;*/
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.5rem !important;
}



.wpfFilterButton {
    background-color: var(--red);
    color: var(--white);
}

.wpfCollapsible .fa.fa-plus {
    padding-top: 5px;
    color: var(--black);
}

.wpfFilterTaxNameWrapper {
    color: var(--black);
}

.wpfFilterContent {
    margin-top: 3rem;
}

.category-grid .right-column h2 {
    margin-top: 0;
    font-size: 2.8rem;
    font-weight: 900;
}

.category-header a {
    text-decoration: underline;
}

.results-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--dark);
    border-top: 1px solid var(--dark);
    padding: 1.5rem 2rem;
    font-size: 1.7rem;
}

.results-header span {
    color: var(--paragraph);
    padding-right: 2rem;

}

.woocommerce-ordering {
    border: 0 !important;
    padding: 0 !important;
    padding: 1.5rem !important;
    float: unset;
    margin-right: 0 !important;
    float: unset !important;
    color: var(--paragraph)
}

.results-count {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
}

.per-page-label {
    color: var(--paragraph);
}

.per-page-suffix {
    color: var(--paragraph);
    font-size: 1.3rem;
}

.per-page-btn {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--light-gray);
    border-radius: 3px;
    color: var(--paragraph);
    text-decoration: none;
    font-size: 1.3rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.per-page-btn:hover,
.per-page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff !important;
    text-decoration: none;
}

.results-header select {
    color: var(--paragraph);
    border: 0;
    font-size: 15px;
    background-color: transparent;
}

div.pagination {
    padding-top: 0;
    padding-bottom: 0;
}

div.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: flex-end;
    gap: 1rem;
}


.pagination ul li a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--black)
}

.pagination ul li a:hover {
    color: var(--red);
}

.pagination ul li.current a {
    background-color: var(--red);
    color: var(--white) !important;
    border-radius: 50%;
}

.color-boxes-section {
    padding-bottom: 6rem;
    margin-top: 4rem;
    border-bottom: 2px solid var(--dark);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.btn {
    display: inline-block;
    font-weight: 400;
    padding: .5rem 1.5rem;
    font-size: 1.5rem;
    width: fit-content;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-pink {
    border: 2px solid var(--red);
    background-color: var(--red);
    color: var(--white) !important;
}

.btn-pink:hover {
    border: 2px solid var(--red);
    background-color: var(--white);
    color: var(--red) !important;
}

.btn-blue {
    border: 2px solid var(--primary) !important;
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-blue:hover,
.btn-blue.is-active {
    border: 2px solid var(--primary) !important;
    background-color: var(--white) !important;
    color: var(--primary) !important;
}

.btn-orange {
    border: 2px solid var(--red-opacity-10);
    background-color: var(--red-opacity-10);
    color: var(--white) !important;
}

.btn-orange:hover {
    border: 2px solid var(--red-opacity-10);
    background-color: var(--white);
    color: var(--red-opacity-10) !important;
}

.mb-4 {
    margin-bottom: 4rem;
}

.product-details.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9rem;
    margin-bottom: 4rem;
}

.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    /* żeby elementy mogły się łamać */
    gap: 2rem;
}

.add-to-cart-form .stock {
    flex-basis: 100%;
    /* zajmuje cały rząd */
    /* albo width: 100%; */
    margin: 0;
}

.add-to-cart-form button {
    background-color: var(--red) !important;
    color: var(--white);
    border: none;
    padding: 0rem 6rem;
    font-size: 1.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

bdi {
    font-weight: 900;
}

.product-delivery-info {
    padding: 2rem;
    font-size: 1.4rem;
    max-width: 400px;
    margin-top: 2rem;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 4rem;
    background-color: var(--secondary);
}


.xoo-wsc-products:not(.xoo-wsc-pattern-card) .xoo-wsc-product{
    border-radius: 0;
}

.jz-content .product-meta p,
.jz-content .product-delivery-info p {
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
}

.jz-content .product-delivery-info p:last-child {
    margin-bottom: 0;
}

.jz-content .product-meta a {
    color: var(--black) !important;
}

.product-delivery-info strong {
    color: var(--dark-red)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.no-products-wrapper .woocommerce-no-products-found {
    grid-column: 1 / -1;
    /* jeśli kiedyś wstawisz z powrotem do grida */
    text-align: center;
    width: 100%;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.grid-4 .grid-item,
.grid-4 .grid-item {
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
    padding: 2.5rem;
}

.grid-item.no-padding {
    padding: 0;
}

.grid-item .media {
    position: relative;
}

.grid-item .wishlist-overlay {
    position: absolute;
    top: 0rem;
    left: .5rem;
    z-index: 3;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.grid-item .wishlist-overlay .yith-wcwl-add-button a.add_to_wishlist,
.grid-item .wishlist-container .yith-wcwl-add-button a.add_to_wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-indent: -9999px;
    /* ukryj tekst, jeśli chcesz samą ikonę */
    overflow: hidden;
}

.product-gallery__main {
    overflow: hidden;
    padding: 5rem;
    margin-bottom: 2rem;

    box-shadow:-1px 9px 26px -8px rgba(225, 225, 225, 1)
}


.product-gallery__small {
    border: 1px solid var(--dark);
    overflow: hidden;
    padding: 1rem;
}

.product-tabs-section {
    margin-bottom: 8rem;
}

.product-tabs-container {
    border-top: 2px solid var(--dark);
}

ul.product-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5rem;
    margin-top: 4rem;
}

ul.product-tabs li a {
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--black) !important;
    padding-bottom: .5rem;
    border-bottom: 2px solid transparent;
    display: inline-block;
    padding-bottom: 3rem;
    padding-right: 6rem;
}

ul.product-tabs li.selected a {
    font-weight: 800;
    border-bottom: 3px solid var(--red);
}

ul.product-tabs li a:hover {
    border-bottom: 3px solid var(--red);
}

.tab-panel {
    overflow: hidden;
    height: 0;
    /* animujemy height w JS */
    opacity: 0;
    /* płynne pojawianie */
    transition: height .35s ease, opacity .25s ease;
    will-change: height, opacity;
    padding-left: 2rem;
    padding-right: 2rem;
}

.tab-panel.is-active {
    /* height ustawiane dynamicznie w JS -> po animacji auto */
    opacity: 1;
}

/* Twój CSS bez zmian, DODAJ poniższe: */

/* wrapper, którego wysokość animujemy */
.tabs-viewport {
    position: relative;
    transition: height .35s ease;
}

/* panele nakładamy na siebie, znikające nie przesuwają layoutu */
.tab-panel {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    overflow: auto;
    /* przewijanie gdy treść wyższa */
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    height: auto !important;
    /* nadpisz poprzednie height:0 jeśli było */
}

/* aktywny panel jest widoczny i klikalny */
.tab-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}


/* Ogólne style tabeli specyfikacji */
.product-specifications table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    /* przerwa od góry/dołu */
    font-size: 1.6rem;
    /* dopasuj do reszty tekstu */
}

.product-specifications table td {
    padding: 1rem 1.5rem;
    /* przestrzeń wewnątrz komórek */
    vertical-align: top;
    border-bottom: 1px solid var(--light-gray);
    /* linie oddzielające wiersze */
}

.product-specifications table tr:last-child td {
    border-bottom: none;
    /* usuń ostatnią linię, jeśli nie chcesz dolnej ramki */
}

/* Pierwsza kolumna (nazwa cechy) */
.product-specifications table td:first-child {
    font-weight: 700;
    color: var(--black);
    width: 40%;
    /* mniej więcej, by nazwa cechy nie była za szeroka */
}

/* Druga kolumna (wartość specyfikacji) */
.product-specifications table td:last-child {
    color: var(--black);
}

.product-specifications table tr:nth-child(odd) td {
    background-color: var(--dark) !important;
}

#panel-opis * {
    color: var(--black) !important;
}

#panel-opis ul,
#panel-opis ol {
    margin-left: 0 !important;
    padding: 0 !important;
    color: var(--black) !important;
    margin-left: 2rem !important;
}


.jz-content h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.jz-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.jz-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.jz-content p {
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.jz-content ul,
.jz-content ol {
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-left: 1.8rem;
}

.jz-content a {
    color: var(--red);
    text-decoration: underline;
}


.jz-content a:hover {
    color: var(--red);
    text-decoration: none;
}

.jz-content p.price {
    color: var(--red);
    font-size: 2.4rem;
    font-weight: 900;
}




.color-boxes-section .grid-item {
    height: 200px;
    position: relative;
}

.color-boxes-section .grid-4 .grid-item h3 {
    margin-top: 0;
    margin-bottom: 3rem;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--white);
}

.color-boxes-section .grid-4 .grid-item h3 a {
    font-weight: 800;
    text-decoration: none;
}

.color-boxes-section .grid-4 .grid-item.grid-item__gray h3 a {
    color: var(--red-opacity-10);
}

.color-boxes-section .grid-4 .grid-item.grid-item__yellow h3 a {
    color: var(--white);
}

.color-boxes-section .grid-4 .grid-item.grid-item__blue h3 a {
    color: var(--white);
}

.color-boxes-section .grid-4 .grid-item.grid-item__pink h3 a {
    color: var(--white);
}



.color-boxes-section .grid-4 .grid-item h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer !important;
    display: flex;
    z-index: 1;
}




.grid-4 .grid-item span {
    font-size: 1.7rem;
    font-weight: 800;
    border-bottom: 2px solid currentColor;
}

.grid-item.grid-item__gray {
    background: var(--bg) right 2rem bottom 2rem no-repeat, var(--gray);
    color: var(--red-opacity-10);
}

.grid-item.grid-item__yellow {
    background: var(--bg) right 2rem bottom 2rem no-repeat, var(--dark-red);
    color: var(--white);
}

.grid-item.grid-item__blue {
    background: var(--bg) right 2rem bottom 2rem no-repeat, var(--primary);
    color: var(--white);
}

.grid-item.grid-item__pink {
    background: var(--bg) right 2rem bottom 2rem no-repeat, var(--red);
    color: var(--white);
}




.product-carousel-section {
    padding-bottom: 6rem;
    padding-top: 4rem;
    border-bottom: 2px solid var(--dark);
}

.product-carousel-section .lead-container {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.product-carousel-section ul.filters {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.actions {
    text-align: center;
    margin-top: 4rem;
}

.products__list {
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 2rem;
    margin-top: 8rem;
    margin-bottom: 6rem;
}

.woocommerce a {
    color: var(--red);
}

.woocommerce .woocommerce-MyAccount-navigation ul,
nav.col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 5rem;
}

.woocommerce .woocommerce-MyAccount-navigation ul li,
nav.col ul li {
    margin-bottom: .1rem;
    padding: .5rem 1rem;
    background-color: var(--primary);
}

.jz-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(0deg, var(--paragraph) 0%, rgba(60, 60, 60, 0) 50%);
    transition: .4s;
}

.wc-block-components-product-name {
    color: var(--red);
}

.products__list .product-title a {
    color: var(--paragraph);
}

.products__list .grid-item {
    padding: 0;
}

.grid-item .media {
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid #e1e1e1;
    padding: 2rem;
    position: relative;
    box-shadow: -1px 9px 26px -8px rgba(225, 225, 225, 1);
}

.grid-item .media .yith-wcwl-add-to-wishlist-button__label,
.yith-wcwl-add-to-wishlist-button__label {
    display: none;
}


.add-to-cart-form .yith-add-to-wishlist-button-block--single {
    background: var(--white);
    padding: 3px;
    width: 46px;
    height: 46px;
    aspect-ratio: 1;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--red);
}



.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--single.yith-wcwl-add-to-wishlist-button--anchor {
    margin: auto;
}

.yith-add-to-wishlist-button-block {
    margin: 0 !important;
}

form.cart,
.add-to-cart-form {
    display: flex;
    gap: 2rem;
}


.grid-item .media .badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* wyrównanie do prawej */
    gap: .5rem;
    /* odstęp między badge’ami */
    z-index: 2;
}

.grid-item .media .badge {
    font-weight: 400;
    background-color: var(--dark-red);
    color: var(--white) !important;
    font-size: 1.2rem;
    padding: .5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;

}

.grid-item .media .badge.pink {
    background-color: var(--red);
}

.grid-item .media .badge.blue {
    background-color: var(--primary);
}




.grid-item__price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products__list .grid-item .grid-item__price-container span {
    border: 0;
}

.products__list .grid-item__price-container span.available,
.products__list .grid-item__price-container span.available span {
    font-weight: 400;
    font-size: 1.4rem;
    text-align: right;
}

span.available {
    text-align: right;
}

.products__list .grid-item__price-container span.available span {
    color: var(--red);
    font-weight: 800;
}

.add-to-cart-container a {
    display: inline-block;
    background: url(img/cart_add.svg) no-repeat left center;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
}

.add-to-cart-container a:hover {
    display: inline-block;
    background: url(img/cart_add_hover.svg) no-repeat left center;
    width: 40px;
    height: 40px;
}


.product-carousel-section.no-border {
    border-bottom: none;
}

section.available-soon {
    background-color: var(--primary);
    padding-bottom: 4rem;
}





.why-us-section {
    padding: 4rem 0;
    background-color: var(--gray);
    /*jjack*/
    position: relative;
}


.why-us-section h2.section-title {
    color: var(--white) !important;
    background: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--white) !important;
}

.why-us-section .lead-container {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    text-align: center;
    color: var(--white)
}

.why-us-section .lead-container * {
    color: var(--white);
}

.wheel {
    background-color: var(--red);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    margin: auto
}


.why-us-section .grid-item h3 {
    margin: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
}

.why-us-section .grid-item h4,
.why-us-section .grid-item p {
    text-align: center;
    color: var(--white);
    font-size: 1.6rem;
    margin-top: 4rem;
}


section.bonus-section {
    padding: 4rem 0 3rem 0;
    background-color: var(--dark);
}

section.bonus-section .grid-4 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}


section.bonus-section .grid-item {
    padding: 0;
}


section.bonus-section p {
    background-size: 20px;
    background-image: var(--img);
    background-repeat: no-repeat;
    padding-left: 4rem;
    color: var(--white);
}

section.bonus-section p strong {
    display: block;
    font-weight: 700;
}






footer {
    margin-top: 2rem;
    padding-top: 2rem;
    background-color: var(--primary);
    position: relative;
}

footer .grid-4 {
    margin-bottom: 0;
}

footer .grid-4 .grid-item h3,
footer .grid-4 .grid-item h3 a {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--black);
}



footer .grid-4 .grid-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .grid-4 .grid-item ul li {
    margin-bottom: 1rem;
}


footer .grid-4 .grid-item ul li a {
    color: var(--black);
    font-weight: 400;
}

footer .container>div.dark {
    background: var(--dark);
    padding: 1.2rem 2rem;
}

footer a{
    color:#DE2434;
}


.ai-c {
    align-items: center;
}

.pr_2 {
    padding-right: 2rem;
}

.dflex {
    display: flex;
}

.dflex.plpr_2.ai-c {
    gap: 2rem;
}



.plpr_2 {
    padding-left: 2rem;
    padding-right: 2rem;
}

footer .dflex.plpr_2.ai-c.footer_column__2>img, footer .dflex.plpr_2.ai-c.footer_column__2>a>img {
    height: 55px !important;
    width: auto;
}

.jc-sb {
    justify-content: space-between;
}

.dflex.jc-sb.dark {
    background-color: var(--dark);
}

.social {
    width: 30px;
    height: 30px;
    border: 1px solid var(--red);
    padding: .6rem;
    display: flex;
    justify-content: center;
    aspect-ratio: 1;
}

footer .jackvision {
    margin: 0;
    padding-bottom: 2rem;
}

footer .jackvision a {
    color: var(--red);
    font-weight: 800;
    text-decoration: none;
}




.products__list .slick-slide {
    margin: 0 10px;
    /* przerwa 10px między slajdami */
}

.products__list .slick-list {
    margin: 0 -10px;
    /* tyle samo co margin na .slick-slide */
}

.slick-dots {
    margin-top: 4rem !important;
    top: 0;
    position: relative !important;
}

.slick-dots li button:before {
    font-size: 3.8rem !important;
}

.slick-dots li button:hover:before {
    color: var(--red) !important;
}


.slick-dots li.slick-active button:before {
    color: var(--red) !important;
    opacity: 1 !important;
}


/* nadgrywanie storefront */

input[type=text], input[type=number], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], textarea, .input-text {
    box-shadow: unset !important;
}


a:focus, button:focus, .button.alt:focus, input:focus, textarea:focus, input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus {
    outline: unset !important;
}

.section-title img {
    display: inline;
}

h2+h3, .beta+h3 {
    border: unset !important;

}

.storefront-full-width-content .content-area {
    float: unset !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

.storefront-breadcrumb {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: none;
}

.storefront-full-width-content .col-full {
    padding: 0 2rem !important;
    margin: 0 !important;
}

del *,
del {
    text-decoration: line-through;
}

.wc-block-components-button__text,
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn, .xoo-wsc-container .xoo-wsc-btn,
.wc-block-components-button:not(.is-link),
.wishlist_table .product-add-to-cart a.button,
.woocommerce-button.button,
.woocommerce-Button.button,
.wc-block-components-checkout-place-order-button__text {
    background-color: var(--red) !important;
    color: #ffffff !important;
    border: 2px solid var(--red) !important;
    padding: 5px 8px;
    font-size: 1.5rem;
}

.xoo-wsc-ft-totals span,
.xoo-wsc-footer .xoo-wsc-footer-txt {
    font-size: 1.5rem !important;
}

.woocommerce-button.button.woocommerce-form-login__submit {
    margin-top: 2rem;
}

#page>div.woocommerce {
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.wc-block-components-button:not(.is-link):disabled {
    background-color: unset !important;
    background-color: var(--red) !important;
}

.wc-block-components-button:not(.is-link):hover, .wc-block-components-button:not(.is-link):focus, .wc-block-components-button:not(.is-link):active {
    background-color: unset !important;
    background-color: var(--red) !important;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    padding: 0 !important;
}

.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor {
    background-color: var(--white);
    border-radius: 50%;
}

.storefront-sorting select {
    display: none;
}

.pagination .storefront-sorting {
    display: none;
}

.products-grid .product-title *,
.products-grid .grid-item__price-container * {
    color: var(--black) !important;
}

.storefront-sorting .woocommerce-ordering {
    display: none;
}

ul.pagination {
    padding: unset !important;
    border: unset !important;
}

.storefront-sorting {
    display: none;
    margin: 0;
}

.page-address {
    margin: 1rem 0;
    color: var(--black)
}


.subpage-header h1 {
    margin-top: 2rem !important;
}

.page-address span:first-child {
    font-weight: bold;
}

#main a,
.category-grid a,
.subpage-header a {
    color: var(--red);
}


.xoo-wsc-sc-cont .xoo-wsc-cart-trigger>* {
    margin-right: 10px;
}



/* <li> z loaderem ma zająć całą szerokość siatki i centrować zawartość */
.products__list .product--loading {
    grid-column: 1 / -1;
    /* span przez wszystkie kolumny gridu */
    display: grid;
    /* prosto: centrowanie przez grid */
    place-items: center;
    /* h+v center */
    min-height: 160px;
}

/* kontener loadera + ikona */
.products__list .product--loading .product__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    text-align: center;
}

.products__list .product--loading .product__loader img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}

.page-grid__one-column {
    gap: 0 !important;
}

.page-grid__one-column a{
    color:var(--red);
    text-decoration: underline;
}

.page-grid__one-column ul,
.page-grid__one-column ol {
    margin: 0;
    margin-left: 18px;
    margin-bottom: 2rem;
}

.page-grid__one-column * {
    color: var(--black);
}

.top-header {
    background-color: var(--dark);
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.top-header .container p {
    margin: 0;
    padding: 0;
    line-height: 2.2;
    color:var(--white);
}


/* --- HAMBURGER --- */
.mobile-toggle {
    position: absolute;
    right: 10px;
    top: 25px;
    width: 42px;
    height: 42px;
    display: none;
    /* desktop ukryty */
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 100002;
    /* nad overlayem menu */
}

.mobile-toggle span {
    position: absolute;
    width: 26px;
    height: 2px;
    left: 8px;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
    background: currentColor;
}

.mobile-toggle span:nth-child(1) {
    top: 13px;
}

.mobile-toggle span:nth-child(2) {
    top: 20px;
}

.mobile-toggle span:nth-child(3) {
    top: 27px;
}

.mobile-toggle.is-open span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.mobile-toggle:hover {
    background-color: unset !important;
}

.sub-menu, .sub-menu li {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* blokada scrolla gdy menu otwarte */
body.no-scroll {
    overflow: hidden;
}

/* --- DESKTOP zachowanie bez zmian --- */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}

/* --- MOBILE LAYOUT --- */
@media (max-width: 768px) {

    /* pokaż hamburger */
    .mobile-toggle {
        display: inline-flex;
    }

    /* overlay dla nav.access */
    .access.container {
        position: fixed;
        inset: 0;
        /* top:0; right:0; bottom:0; left:0 */
        background: #fff;
        z-index: 100001;
        transform: translateY(-100%);
        transition: transform .3s ease;
        padding: 80px 20px 20px;
        /* odstęp od góry, żeby nie kolidować z headerem */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .access.container.is-open {
        transform: translateY(0);
    }

    /* pionowa lista */
    .access nav ul {
        flex-direction: column;
        gap: 0;
    }

    .access nav ul li a,
    .access a {
        display: block;
        padding: 12px 0;
        font-size: 1.5rem;
        text-transform: none;
        border-bottom: 1px solid #eee;
    }

    /* wyłącz desktopowe hove rowe rozwijanie */
    .access ul li:hover>ul {
        display: none;
    }

    /* submenu jako akordeon */
    .access ul ul {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 0 0 8px 12px;
        display: none;
        /* start: schowane */
        top: auto;
        left: auto;
    }

    .access ul li.open>ul {
        display: block;
        padding-left: 1rem !important;
    }

    /* elementy submenu */
    .access ul li ul li a {
        font-size: 1.3rem;
        padding: 8px 0;
        border: 0;
    }

    /* strzałka/toggle dla elementów z dziećmi */
    .access li.menu-item-has-children>a {
        position: relative;
        padding-right: 28px;
    }

    .access li.menu-item-has-children>a::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-50%) rotate(45deg);
        transition: transform .2s ease;
    }

    .access li.open>a::after {
        transform: translateY(-50%) rotate(-135deg);
    }

    /* dekoracyjna kreska pod linkiem: wyłącz pseudo-elementy w mobile */
    .access a::before {
        display: none;
    }

    .subpage-header h1 {
        font-size: 2rem;
    }
}



/* Tablet pionowo */
@media (max-width: 1024px) {
    #wpadminbar {
        background: orange;
    }

    .btn {
        font-size: 1.4rem;
    }
}


/* Telefony poziomo (np. iPhone w poziomie) */
@media (max-width: 768px) {

    #wpadminbar {
        background: red;
    }


    .main-header {
        border: 0;
    }

    .main-header .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .main-header .container div.logo {
        order: 1;
    }

    .main-header .container div.user-menu {
        order: 2;
        justify-content: center;
    }

    .main-header .container form {
        order: 3;
        margin: auto;
    }

    .main-header .container {
        height: unset;
    }



    .category-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        padding: 1.5rem 0rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .product-specifications table,
    .product-specifications table tr,
    .product-specifications table td {
        display: block;
        width: 100%;
    }

    .product-specifications table tr {
        margin-bottom: 1.5rem;
    }

    .product-specifications table td:first-child {
        /* nazwa cechy nad wartością */
        font-weight: 700;
        padding-bottom: .5rem;
    }

    .product-specifications table td:last-child {
        /* wartość poniżej nazwy, mniejszy odstęp */
        padding-left: 0;
    }

    .color-boxes-section .grid-4,
    .why-us-section .grid-4,
    .bonus-section .grid-4,

    .product-details.grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-details .product-info {
        order: 1;
    }

    .product-details .product-gallery {
        order: 2;
    }

    footer .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }



}

/* Telefony pionowo (np. iPhone SE, Android) */
@media (max-width: 480px) {
    #wpadminbar {
        background: green;
    }

    .color-boxes-section .grid-4,
    .why-us-section .grid-4,
    .bonus-section .grid-4,
    footer .grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}

/* 404 */
.error404 footer {
    margin-top: 0;
}

.mza-404 {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 8rem;
    background:
        radial-gradient(circle at top right, rgba(222, 36, 52, 0.18), transparent 28%),
        linear-gradient(135deg, #f8f9fc 0%, #eef3f6 45%, #ffffff 100%);
    border-bottom: 2px solid var(--red);
}

.mza-404::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(53, 53, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 53, 53, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.mza-404 .container {
    position: relative;
    z-index: 1;
}

.mza-404__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 5rem;
    align-items: center;
}

.mza-404__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    background-color: rgba(53, 53, 53, 0.08);
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mza-404__eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--red);
    box-shadow: 0 0 0 6px rgba(222, 36, 52, 0.12);
}

.mza-404__title {
    margin: 2.4rem 0 1.6rem;
    font-size: clamp(3.2rem, 4.8vw, 5.4rem);
    line-height: 1.02;
    font-weight: 900;
    color: var(--dark);
    max-width: 11ch;
}

.mza-404__lead {
    max-width: 620px;
    margin: 0 0 3rem;
    font-size: 1.9rem;
    line-height: 1.7;
    color: var(--gray);
}

.mza-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.mza-404__button {
    min-width: 180px;
    padding: 1.2rem 2rem;
    text-align: center;
    font-weight: 700;
}

.mza-404__button--ghost {
    border: 2px solid var(--dark);
    color: var(--dark) !important;
    background-color: transparent;
}

.mza-404__button--ghost:hover {
    background-color: var(--dark);
    color: var(--white) !important;
}

.mza-404__stops {
    margin-top: .6rem;
}

.mza-404__stops-label {
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray);
}

.mza-404__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mza-404__chips a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .9rem 1.5rem;
    border-radius: 999px;
    background-color: var(--white);
    color: var(--dark) !important;
    border: 1px solid rgba(53, 53, 53, 0.12);
    box-shadow: 0 10px 24px rgba(53, 53, 53, 0.06);
    transition: transform .25s ease, border-color .25s ease, color .25s ease;
}

.mza-404__chips a:hover {
    transform: translateY(-2px);
    border-color: rgba(222, 36, 52, 0.4);
    color: var(--red) !important;
}

.mza-404__visual {
    position: relative;
    padding: 2.4rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #353535 0%, #1f2021 100%);
    box-shadow: 0 18px 48px rgba(25, 25, 25, 0.16);
}

.mza-404__route-card {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    width: min(100%, 280px);
    margin-bottom: 1.8rem;
    padding: 1.6rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 239, 239, 0.98) 100%);
}

.mza-404__route-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mza-404__route-head p,
.mza-404__route-body p {
    margin: 0;
}

.mza-404__route-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 44px;
    padding: .6rem 1.2rem;
    border-radius: 12px;
    background-color: var(--red);
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.mza-404__route-head p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mza-404__route-stop {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
}

.mza-404__route-meta {
    font-size: 1.4rem;
    color: var(--gray);
}

.mza-404__bus {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 184px;
    margin: 0 auto;
    border-radius: 26px 26px 18px 18px;
    background: linear-gradient(180deg, #de2434 0%, #b51624 100%);
    border: 6px solid #f0f0f0;
}

.mza-404__bus::before {
    content: "";
    position: absolute;
    inset: 24px 18px auto;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.mza-404__bus-sign {
    position: absolute;
    top: 24px;
    left: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 12px;
    background: #111;
    color: #f7d44a;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.mza-404__bus-windshield {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 42px;
    height: 66px;
    border-radius: 16px 16px 10px 10px;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.9) 49%, rgba(255, 255, 255, 0.9) 51%, transparent 51%),
        linear-gradient(180deg, #d9edf6 0%, #9fc5d5 100%);
}

.mza-404__bus-lights {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
}

.mza-404__bus-lights span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffe2a8;
    box-shadow: 0 0 18px rgba(255, 226, 168, 0.35);
}

.mza-404__bus-wheels {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: -20px;
    display: flex;
    justify-content: space-between;
}

.mza-404__bus-wheels span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #7b7b7b 0 28%, #111 29% 58%, #2a2a2a 59% 100%);
    border: 5px solid #d7d7d7;
}

.mza-404__info-list {
    display: grid;
    gap: 1rem;
    margin-top: 2.8rem;
}

.mza-404__info-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mza-404__info-list a:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

.mza-404__info-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: var(--white);
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 900;
}

.mza-404__info-list strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

@media (max-width: 1024px) {
    .mza-404 {
        padding: 5rem 0 6rem;
    }

    .mza-404__grid {
        grid-template-columns: 1fr;
    }

    .mza-404__title {
        max-width: 11ch;
    }

    .mza-404__visual {
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .mza-404 .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .mza-404__title {
        font-size: 3.8rem;
    }

    .mza-404__lead {
        font-size: 1.7rem;
    }

    .mza-404__visual {
        padding: 1.8rem;
        border-radius: 22px;
    }

    .mza-404__bus {
        height: 164px;
    }

    .mza-404__bus-sign {
        height: 40px;
        font-size: 2.4rem;
    }

    .mza-404__bus-windshield {
        height: 58px;
    }

    .mza-404__bus-wheels {
        left: 32px;
        right: 32px;
    }

    .mza-404__bus-wheels span {
        width: 40px;
        height: 40px;
    }
}
