:root {
    --main-font-family: 'Inter';
    --Text-Main: #000000;
    --Brand-color-Primary: #000000;
    --Text-paragraph: #575766;
    --CTA-color: #000000;
    --Gray-Background: #ECEFF4;
    --Text-light: #94A0B1;
    --wp--preset--shadow--outlined: 1px solid black;
}

/* Małe Telefony */
@media (max-width: 768px) {
    /* Stylizacja dla małych telefonów */

    .container {
        padding: 0 24px;
    }

    /*HEADER */

    header .header-contact {
        display: none;
        opacity: 0;
    }

    header .account-icons .icon-wrapper.wishlist-icon {}

    header .custom-logo {
        max-width: 130px;
    }

    header .container {
        padding: 16px 24px;
    }

    .sub-menu {
        display: none;



    }

    .sub-menu li a {
        font-size: 18px !important;

    }


    .sub-menu.expanded {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        position: static;
        visibility: visible;
        opacity: 1;
        margin: 32px 0 0 0;
        padding: 0;
        list-style: none;
    }

    nav.mobile-navigation li {
        width: 100%;
        text-align: center;
    }

    nav.mobile-navigation li.current_page_item a {
        color: var(--CTA-color);
    }

    .woocommerce-MyAccount-navigation {
        margin-bottom: 24px;
    }

    .grecaptcha-badge {
        display: none !important;
    }

    #before-advantages .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .mobile-menu-contact-wrapper {
        display: none;
        position: fixed;
        bottom: 16px;
        right: 16px;
        flex-direction: column;
        gap: 16px;
        z-index: 600;
        transition: bottom 0.3s ease-in-out;

    }

    .mobile-menu-contact-wrapper a {
        width: 48px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--CTA-color);
        border-radius: 16px;
        box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    input {
        font-size: 13px !important;
    }

    textarea {
        font-size: 13px !important;
    }

    #indyvidual-ask {
        width: 100%;
    }

    #indyvidual-ask .wpcf7-select {
        font-size: 16px;
    }


    .error-404 .container {
        padding-top: 40px;
        flex-direction: column;
        gap: 40px;
    }


    .error-404 .container .left-col {
        align-items: center;
        text-align: center;
    }

    .error-404 .container .right-col {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #after-swiper .cat-wrapper {
        display: flex;
        flex-direction: column;
    }

    #front-products .section-wrapper {
        flex-direction: column;
    }

    #front-products .product-wrapper {
        flex-direction: column;
    }

    #contact-baner .container {
        flex-direction: column;
        padding-top: 62px;
        gap: 62px;
    }

    #contact-baner .container .right-col .text-wrapper {
        text-align: center;
    }

    #contact-baner .container .right-col .icons-wrapper {
        grid-template-columns: 1fr;
        padding-left: 36px;
        padding-right: 36px;
        text-align: center;
    }

    #text-section .container {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    #contact-baner .container .left-col h2 {
        font-size: 32px;
        font-weight: 400;
        text-align: center;
    }

    #contact-baner {
        border-radius: 0;
    }

    #contact-baner .container .left-col .main-button {
        width: 100%;
    }

    #icons-baner .container .icons-wrapper {
        flex-direction: column;
        display: flex;
        text-align: center;
    }

    #zaufanie .card-wrapper {
        display: flex;
        width: 100%;
    }

    #zaufanie .section-header h2 {
        font-size: 32px;

    }

    #zaufanie .section-header {
        margin-top: 33px;
        margin-bottom: 55px;
    }

    footer .footer-menu-wrapper {
        flex-direction: column;
    }

    footer .footer-menu-wrapper .col {
        flex-direction: column;
    }

    #menu-menu-footer {
        flex-direction: column;
    }

    #company-hero .container {
        flex-direction: column;
    }

    #company-hero .hero-numbers {
        position: static;
        width: 100%;
    }

    #front-slider .text-container .left-col h2 {
        font-size: 36px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-align: center;
    }

    #front-slider .text-container .right-col .buttons-wrapper {
        flex-direction: column;
    }

    #front-slider .text-container .right-col .buttons-wrapper a {
        width: 100%;
    }

    #front-slider .text-container .right-col p {
        text-align: center;
    }

    #front-slider .text-container {
        flex-direction: column;
        padding-left: 24px;
        padding-right: 24px;
        gap: 52px;
    }

    #after-swiper {
        margin-top: -50px;
    }

    #front-slider {
        padding-top: 50px;
    }

    #front-slider .container {
        padding-left: 0;
        padding-right: 0;
    }

    #front-slider .image-container img {
        height: 370px;
        object-fit: cover;
    }

    #after-swiper .container {
        padding-top: 73px;
        padding-bottom: 73px;
    }

    #front-products .container {
        padding-top: 68px;
    }

    #after-swiper .cat-wrapper .front-cat {
        align-items: center;
        text-align: center;
    }

    #front-products .container .section-header h1 {
        font-size: 32px;
        font-weight: 400;
    }

    #zaufanie {
        margin-top: 0;
        border-radius: 0;
    }

    #archive-header .container .shop-header {
        flex-direction: column;
        gap: 22px;
    }

    .woocommerce .products ul,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products[class*=columns-] li.product,
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100%;
    }

    #archive-header {
        margin: 16px;
        border-radius: 24px;
        width: auto;
    }

    #archive-header .container {
        padding-top: 36px;
        padding-bottom: 42px;
    }

    #archive-header .container .shop-header h1 {
        text-align: center;
        font-size: 36px;
    }

    #archive-header .container .header-text {
        text-align: center;
    }

    #contact-baner .container .left-col {
        min-width: unset;
    }

    .product-item .product-card {
        border-radius: 16px;
    }

    #product-page {
        margin-bottom: 0;
    }

    #single-product .product-basic-info {
        flex-direction: column;
        gap: 52px;
    }

    #single-product {
        margin-top: 52px;
    }

    #single-product .product-basic-info .product-info-wrapper,
    #single-product .product-basic-info .product-image-wrapper,
    #single-product .product-basic-info .product-info-wrapper {
        max-width: unset;
    }

    .product-info-wrapper .zastosowanie-wrapper .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-info-wrapper .zastosowanie-wrapper .cards-wrapper .single-zastosowanie {
        aspect-ratio: unset;
        height: 105px;
    }

    .product-info-wrapper .product-info-desc .product-attributes {
        margin-top: 60px;
    }

    .mobile-product-title {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-product-title h2 {
        color: #000;
        text-align: center;
        font-size: 36px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .product-info-wrapper .product-title {
        display: none;
    }

    #zalety {
        border-radius: 0;
    }

    #zalety .container {
        align-items: center;
    }

    #zalety .container .product-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    #zalety .section-header h3 {
        color: var(--Grays-900, #393941);
        font-family: Inter;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 16px;
        /* 100% */
    }

    #contact-baner .container .left-col .person-wrapper,
    #contact-baner .container .left-col .main-button {
        display: none;
    }

    #contact-baner .container .mobile-col {
        display: flex;
    }

    #faq .faq-wrapper .faq-item .faq-header h4,
    #faq .faq-wrapper .faq-item .faq-desc-inner {
        font-size: 13px;
    }

    #faq .faq-wrapper .faq-item .faq-desc-inner {
        line-height: 1.5;
    }

    #text-section .active-text span.word {
        font-size: 36px;
    }

    #kontakt-page .container {
        flex-direction: column;
        padding-top: 80px;
        align-items: center;
        text-align: center;
        gap: 68px;
    }

    #kontakt-page .container .kontakt-header,
    #kontakt-page .kontakt-phone,
    #kontakt-page .kontakt-mail {
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    #kontakt-page .container .kontakt-col.col-3 {
        margin-right: 0;
        margin-top: 30px;
    }

    #map {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
    }

    #map .container {
        padding: 0;
        border-radius: 0;
    }

    #map .info-wrapper {
        position: static;
        border-radius: 0;
        height: auto;
        transform: none;
        text-align: center;
        align-items: center;
    }

    #map #kontakt-map {
        min-height: 462px;
        border-radius: 0;
    }

    #contact-form {
        margin-top: 0;
        margin-bottom: 24px;
        border-radius: 0;
    }

    #contact-form .container {
        gap: 64px;
        align-items: center;
    }

    #contact-form .container .section-header h2 {
        max-width: 320px;
        text-align: center;
    }

    .forms-row input {
        height: 48px;
        font-size: 13px;
    }

    #dist-hero .container {
        padding-top: 52px;
    }

    #dist-hero .container h1 {
        font-size: 36px;
    }

    #dist-hero {
        background-image: none;
    }

    #why-us .container .cols-wrapper {
        flex-direction: column;
    }

    #why-us .container .logos .logo-wrapper {
        flex-direction: column;
    }

    #why-us .container .cols-wrapper .right-col {
        display: flex;
        flex-direction: column;

    }

    #dist-form .container {
        flex-direction: column;
    }

    #dist-form .wpcf7-form-control.wpcf7-radio {
        flex-direction: column;
    }

    #dist-form .wpcf7-list-item {
        width: 100%;
    }

    #dist-form .forms-row.form-order-size .wpcf7-form-control.wpcf7-radio {
        display: flex;
        flex-direction: column;
    }

    #why-us .section-image {
        left: 0;
        transform: none;
    }

    #why-us .section-image img {
        height: 310px;
        object-fit: cover;
        border-radius: 56px;
        object-fit: none;
    }

    #why-us .container {
        padding-top: 230px;
        text-align: center;
    }

    #why-us .container .cols-wrapper .left-col h2 {
        max-width: unset;
        font-size: 32px;
    }
}

/* Tablety */
@media (min-width: 769px) and (max-width: 1320px) {

    .additional-info .tabs.wc-tabs {
        gap: 26px;
        flex-wrap: nowrap;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* Stylizacja dla tabletów */
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hamburger-menu {
        display: flex;
        width: 218px;
        justify-content: flex-end;

    }

    #front-page-application .application-card {
        width: -webkit-fill-available;
    }

    .mobile-menu-contact-wrapper {
        display: none;
        position: fixed;
        bottom: 16px;
        right: 16px;
        flex-direction: column;
        gap: 16px;
        z-index: 600;
        transition: bottom 0.3s ease-in-out;
    }

    .mobile-menu-contact-wrapper a {
        width: 48px;
        height: 48px;
        display: none;
        justify-content: center;
        align-items: center;
        background-color: var(--CTA-color);
        border-radius: 16px;
        box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .menu-item-has-children {
        position: relative;
        text-align: center;
    }

    .mobile-menu li.menu-item-has-children.submenu-open ul.sub-menu {
        position: static;
    }

    .mobile-menu li.menu-item-has-children.submenu-open ul.sub-menu li a {
        font-size: 24px;
    }

    .mobile-menu-modal .modal-content {
        max-width: none;
    }

    #site-navigation {
        display: none;
    }

    header {
        height: 76px;
        display: flex;
        align-items: center;
    }

    header #primary-menu {
        display: none;
    }

    header .header-contact {
        display: none;
    }

    #front-page-slider .slide-overlay-left {
        background: none;
    }

    #front-page-products .product-tile {
        padding: 24px;
    }

    #product-list.grid-view ul.products li {
        padding: 24px;
    }

    #front-page-application .wrapper-application {
        grid-template-columns: repeat(2, 1fr);
    }

    #product-list.grid-view ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    header.woocommerce-products-header {
        height: auto;
    }

    .product-info-additional {
        position: relative;
    }

    #cart {
        padding-bottom: 80px;
    }

    #add-to-cart-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        height: fit-content;
        background: var(--Gray-Background-2, #FCFCFD);
        box-shadow: 0px 2px 8px 0px rgba(99, 99, 99, 0.20);
        z-index: 200;
    }

    .mobile-add-to-cart-button {
        display: block;
    }

    #single-product .cart-wrapper {
        display: none;
    }

    .product-button {
        width: 100%;
        height: 56px;
    }

    .related-products.swiper-container {
        overflow: hidden;
    }

    .product-info-additional {
        margin-bottom: 0;
        padding-bottom: 82px;
    }

    #breadcrumbs .container {
        padding: 24px;
    }

    #realizacje .realizacje-wrapper {
        flex-direction: column;
    }

    .navigation-list {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .navigation-list li a {
        gap: 24px;
    }

    #posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    #related-posts .swiper-container {
        overflow: hidden;
    }

    #related-posts .swiper-wrapper {
        display: flex !important;
        gap: 0;
    }

    .blog-card .card-details {
        width: auto;
    }

    #related-products .custom-swiper-wrapper-blog {

        gap: 0;
    }

    #related-products {
        position: relative;
        padding-bottom: 50px;

    }

    #related-products .custom-swiper-pagination-blog {
        position: absolute;
        bottom: 24px;
        display: flex;
        justify-content: center;
    }

    #ask-me {
        padding: 0 0 24px 0;
    }

    #related-posts .container {
        padding-bottom: 67px;
        position: relative;
    }

    #related-posts .swiper-pagination {
        bottom: 24px;
    }

    #o-firmie .o-firmie-hero {
        flex-direction: column;
        align-items: center;
    }

    #o-firmie .o-firmie-hero .col-2 {
        padding: 0;
    }

    #o-firmie .gallery-row.row-1 {
        flex-direction: column;
    }

    #o-firmie .gallery-row.row-2 {
        flex-direction: column;
    }

    .gallery-row-1.col-1 .o-firmie-small-block.powierzchnie,
    .o-firmie-small-block.doswiadczenie,
    .o-firmie-small-block.klienci {
        position: static;
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
    }

    .gallery-row-1.col-1 .o-firmie-small-block.powierzchnie,
    .gallery-row-1.col-1 .o-firmie-large-image {
        aspect-ratio: 1;

    }

    .gallery-row-2.col-1 .o-firmie-small-block:first-of-type,
    .gallery-row-2.col-1 .o-firmie-small-block:last-of-type {
        position: static;
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
    }

    .gallery-row-2.col-2 .o-firmie-large-image {
        display: none;
    }

    .variations_form.cart p {
        font-size: 13px;
        font-weight: 600;
        text-align: center;
    }

    .variations_form .product-quantity-label {
        margin: 0;
    }

    .woocommerce-variation-add-to-cart {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
    }

    .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .single_add_to_cart_button span {
        font-size: 13px;
    }

    .woocommerce-variation-price .price {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        color: var(--Brand-color-Primary) !important;
        padding: 12px 0;
    }

    .main-button.ask-price.ask-price-btn {
        margin: 0;
        height: 56px;
    }

    .woocommerce-variation-price .price .woocommerce-Price-amount bdi {
        font-size: 36px;
        font-weight: 600;
    }

    .woocommerce-price-suffix .woocommerce-Price-amount bdi {
        font-size: 13px !important;
    }

    .woocommerce-price-suffix {
        font-weight: 600;
    }

    .cart_variants .variations tbody {
        display: flex;
        gap: 24px;

    }

    .cart_variants .variations tbody tr {
        width: 100%;
    }

    #front-page-application .container {
        padding-right: 24px;
        padding-left: 24px;
    }

    #front-page-products .col-products .custom-swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    #front-page-products .col-text {
        min-width: 25%;
    }

    #front-page-products .col-products.row.custom-swiper-container {
        overflow: hidden;
        position: relative;
        padding-bottom: 40px;
    }

    #front-page-products .container {
        padding: 50px 24px;
    }

    .woocommerce #payment #place_order,
    .woocommerce-page #payment #place_order {
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    #front-page-slider .swiper-slide {


        background-size: 50%;
        background-position-y: bottom;
        background-repeat: no-repeat;
    }

    .slide-overlay {
        width: 50%;
        background-position-y: bottom;
        background-repeat: no-repeat;
    }

    .custom-swiper-pagination {
        display: block;
    }

    .related-products-container {
        overflow: hidden;
    }
}



@media (min-width: 768px) {
    #shop-filters-container {
        display: block;
        position: static;
        height: max-content;
        overflow: visible;
    }

    #shop-filters-container .close-modal-button {
        display: none;
        /* Ukryj przycisk zamknięcia na desktopie */
    }

    #related-posts .swiper-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    #related-posts .swiper-wrapper {
        /* display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px; */
        box-sizing: border-box;
    }
}

#cart-modal-mobile .woocommerce-variation-add-to-cart button {
    margin: 0;
}

#cart-modal-mobile .woocommerce-variation-price .vat-info {
    font-size: 13px;
}

#cart-modal-mobile .woocommerce-variation-price .vat-info bdi,
#cart-modal-mobile .woocommerce-variation-price .vat-info .woocommerce-Price-amount.amount {
    font-size: 13px;
    font-weight: 400;
    color: var(--Text-Main);
    line-height: 14px;
}