@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    /* Jeśli nie załaduje się natychmiast, zostań przy fallbacku, by uniknąć CLS */
    src: url('../fonts/raleway-regular.woff2') format('woff2');
}


/* 2. Definicja czcionki lokalnej - Bold 700 */

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('../fonts/raleway-700.woff2') format('woff2');
}

@font-face {
    font-family: "Raleway-Fallback-Win";
    src: local("Arial");
    size-adjust: 105%;
    ascent-override: 95%;
    line-gap-override: 0%;
}


/* 2. Poprawka dla Androida (Roboto) */

@font-face {
    font-family: "Raleway-Fallback-Android";
    src: local("Roboto");
    size-adjust: 99%;
    /* Roboto jest szersze od Ariala, wymaga innej korekty */
    ascent-override: 96%;
}


/* 3. Poprawka dla iPhone (Helvetica) */

@font-face {
    font-family: "Raleway-Fallback-iOS";
    src: local("Helvetica");
    size-adjust: 102%;
}

.flex-row {
    display: flex;
    flex-direction: column !important;
    margin-top: 50px 0;
}

.flex-row-rev {
    display: flex;
    flex-direction: column-reverse !important;
    margin: 60px 0;
}

.product-description {
    font-size: 14px;
}

.product-description iframe {
    max-width: 100%;
}

.product-description p {
    margin-bottom: 16px !important;
}

.product-description h2 {
    font-size: 16px;
}

.text-xs-center {
    text-align: center !important;
}

.flex-col {
    flex: 1 1 0%;
    margin: 0 25px;
}

.flex-col img {
    max-width: 100%;
    max-height: 100%;
    min-height: 440px;
    display: flex;
    margin: auto;
}

@media (max-width: 1600px) {
    .flex-col img {
        min-height: 390px;
        max-height: 540px;
    }
    .thumbnail-container .product-image img {
        min-height: 220px;
    }
}

@media (max-width: 1400px) {
    .thumbnail-container .product-image img {
        min-height: 270px;
    }
}

@media (max-width: 1199px) {
    .flex-col img {
        min-height: 460px;
        max-height: 640px;
    }
    .thumbnail-container .product-image img {
        min-height: 320px;
    }
}

@media (max-width: 991px) {
    .flex-col img {
        min-height: 400px;
        max-height: 560px;
    }
    .thumbnail-container .product-image img {
        min-height: 370px;
    }
}

@media (max-width: 767px) {
    .flex-col img {
        min-height: 300px;
        max-height: 440px;
    }
    .thumbnail-container .product-image img {
        min-height: 230px;
    }
}

@media (max-width: 480px) {
    .flex-col img {
        min-height: 210px;
        max-height: 360px;
    }
}

.flex-col h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 15px;
}

.no-top-margin h4 {
    margin-top: 0px !important;
}

@media (min-width:1200px) {
    .product-description h2 {
        font-size: 20px
    }
    .flex-col h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .flex-row,
    .flex-row-rev {
        display: flex;
        flex-direction: row !important;
        align-items: center;
    }
    .product-description {
        font-size: 15px;
        line-height: 1.6em;
    }
}

.header-top {
    padding: 10px 0 !important;
}

#desktop-header {
    box-shadow: none !important;
}

#desktop_logo {
    width: 190px;
    margin-left: 40px;
}

#product-infos-tabs {
    position: sticky;
    top: 0;
    background: #fff;
    /* Tło musi być nieprzezroczyste */
    padding-top: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 99;
    /* Opcjonalnie: lekki cień po przyklejeniu */
    isolation: isolate;
    width: 100%;
}

#product-infos-tabs .nav-link {
    opacity: 1;
    color: #777;
    font-size: 18px;
}


/* Podświetlenie aktywnego linku */

#product-infos-tabs .nav-link:focus {
    text-decoration: none !important;
    border: none;
}

#product-infos-tabs .nav-link.active {
    color: #003d7d;
    border-bottom: solid 2px #003d7d;
}

.product-tab-section h4 {
    text-align: center;
    color: #777;
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.data-sheet {
    background: #fbfbfb;
    padding: 15px;
}

.data-sheet .name {
    text-align: right;
    padding-right: 20px;
}

.form-search-control {
    border-radius: 20px 20px 20px 20px !important
}

.grid-container .elementor-container .elementor-row .elementor-column {
    width: 100%;
}

.grid-container .elementor-container .elementor-row .elementor-column-wrap {
    padding: 0px;
}

.grid-container-40-20-20-20 .elementor-container .elementor-row {
    display: grid;
    grid-gap: 2px;
    grid-template-columns: 40% 20% 20% 20%;
    margin-bottom: 20px;
}

.grid-container-40-30-30 .elementor-container .elementor-row {
    display: grid;
    grid-gap: 2px;
    grid-template-columns: 40% 30% 30%;
    margin-bottom: 20px;
}

.grid-container-40-40-20 .elementor-container .elementor-row {
    display: grid;
    grid-gap: 2px;
    grid-template-columns: 40% 40% 20%;
    margin-bottom: 20px;
}

.grid-container-50-50 .elementor-container .elementor-row {
    display: grid;
    grid-gap: 2px;
    grid-template-columns: 50% 50%;
    margin-bottom: 20px;
}

.grid-main-column .elementor-container .elementor-row .elementor-column {
    grid-row: 1 / 3;
}

.grid-container-50-50 .elementor-column:not(.grid-main-column) .elementor-widget-wrap {
    display: flex;
    gap: 2px;
    flex-direction: column;
}

@media (max-width: 767px) {
    #left-column #facets_search_wrapper {
        display: block;
    }
    #left-column {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 80vw;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        /* Transformacja zamiast left dla płynności */
        transform: translateX(-101%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 20px;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        margin-top: 0px;
        /* Dodatkowe zabezpieczenie */
    }
    /* Klasa aktywująca wysunięcie */
    #left-column.active {
        transform: translateX(0);
    }
    /* Prz#left-column.yciemnienie tła */
    #mobile-filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent;
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    #mobile-filters-overlay.active {
        display: block;
        opacity: 1;
    }
    #left-column #search_filter_controls {
        margin-bottom: 20px;
    }
    #left-column #search_filter_controls button {
        width: 100%;
        margin: 0px;
    }
    #left-column .active-filter-title {
        font-size: 1rem;
        font-weight: 700;
        padding: 3px;
        color: #5d8eb3;
        border-bottom: solid 2px #5d8eb3;
        margin-bottom: 15px;
        display: flex;
    }
    #left-column .block-facets {
        border: 0;
        margin-top: 15px;
        margin-bottom: 15px;
        border-top: 2px solid #5d8eb3;
        padding: 0px;
    }
    #product-top-parent {
        position: sticky;
        top: 70px;
        z-index: 99;
        background: white;
    }
    .grid-container-40-20-20-20 .elementor-container .elementor-row .elementor-column {
        grid-row: 1;
        grid-column: 1 / 4;
    }
    .grid-container-40-30-30 .elementor-container .elementor-row .elementor-column,
    .grid-container-40-40-20 .elementor-container .elementor-row .elementor-column {
        grid-row: auto;
        grid-column: 1 / 3;
    }
    .grid-container-40-20-20-20 .elementor-container .elementor-row {
        grid-template-columns: 33.3% 33.3% 33.3%;
    }
    .grid-container-40-40-20 .elementor-container .elementor-row,
    .grid-container-40-30-30 .elementor-container .elementor-row {
        grid-template-columns: 50% 50%;
    }
    .grid-container-50-50 .elementor-container .elementor-row {
        grid-row: auto;
        grid-column: 1 / 2;
        grid-template-columns: 100%;
    }
    .baner-opacity .elementor-column:not(.grid-main-column) .elementor-widget-wrap {
        flex-direction: row;
        display: flex;
        flex-direction: row;
        gap: 2px;
    }
    .baner-opacity .elementor-column:not(.grid-main-column) .elementor-widget-wrap .elementor-element {
        flex: 1 0 0;
    }
    .baner-opacity .elementor-iqit-banner-title {
        font-size: 22px !important;
    }
    .baner-opacity .elementor-iqit-banner-description {
        font-size: 14px !important;
    }
    .baner-opacity .elementor-column:not(.grid-main-column) .elementor-iqit-banner-description {
        display: none !important;
    }
}

.tax-shipping-delivery-label #tm-widget-hornet {
    height: 26px;
}


/* #iqitmegamenu-wrapper .cbp-has-submeu.cbp-hropen:after {
    content: "";
    position: fixed;
    top: 50px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #34333329;
    z-index: -1;
    pointer-events: none;
    transition: background 0.2s ease;
} */

#footer_block_contact li {
    color: #fff;
    display: flex;
    align-items: center;
    line-height: 23px;
    margin-bottom: 15px;
    margin-left: 15px;
    font-size: 16px;
}

#footer_block_contact li i {
    margin-right: 15px;
}

.inpost-shipping-container {
    padding-left: 15px;
    padding-right: 15px;
}

.delivery-information {
    margin-top: 10px;
    color: #003d7d;
    font-weight: 700;
}

.product-quantity .add-to-cart:disabled {
    opacity: .35;
}

.baner-opacity .elementor-iqit-banner-content {
    background: #00000059;
}

.baner-opacity .elementor-iqit-banner-title {
    font-size: 26px;
}

.baner-opacity .elementor-iqit-banner-description {
    font-size: 16px;
}

#product-images-thumbs:not(.swiper-initialized) .swiper-wrapper {
    display: none;
}