.main-nav-elements {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}

.main-element-menu {
    padding: 10px 90px;
    cursor: pointer;
}

.main-element-menu:hover {
	font-weight: 600;
    background: #eeeeee;
    border-radius: 50px;
}

span.left-col-subnav {
    width: 30%;
    padding: 5px 10px 10px 10px;
    border-right: 1px solid #dedede;
}

span.right-col-subnav {
    width: 70%;
    padding: 10px;
}

.subnav-nav-elements {
    position: relative;
    display: flex;
}

.subcategory-nav-elements .child-element-menu {
    font-size: 18px;
    padding: 5px 15px;
}

.subcategory-nav-elements .child-element-menu:hover {
    font-weight: 600;
    background: #dedede;
    cursor: pointer;
}

.subsubcategory-nav-elements {display: grid;grid-template-columns: repeat(2, 1fr);grid-column-gap: 0px;grid-row-gap: 0px;}

.grandchild-element-menu {font-size: 18px;}

.active-filtr {
    font-weight: 600;
    background: #dedede;
    cursor: pointer;
}

/* Produkty */

.product-custom-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.product-custom {
    margin: 10px;
    width: 250px; /* Trzy produkty w rzędzie */
    text-align: center;
}

.product-custom .image-product {
    background-color: #8cb9d3;
    padding: 10px;
    display: inline-flex;
    border-radius: 50px;
    height: 250px;
    width: 250px;
}

.product-custom img {
    border-radius: 50px!important;
    border: 10px solid #f0f0f0 !important;
    height: 100%!important;
    overflow: hidden;
}

.product-custom h2 {
    font-size: 1.2em;
    margin: 0 0;
    color: #fff;
    font-weight: 5
        00 
}

.product-custom p {
    font-size: 1em;
    color: #fff;
    width: 100%;
    margin: 0;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

span.plate-info {
    background: #8cb9d3 !important;
    width: 100%;
    display: block;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 50px;
}

h2.nofound-product {
    padding: 10px 0px;
    text-align: center;
    margin: 20px 0 20px 0;
}

#page > .elementor {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 60vh;
}


@media (max-width: 768px) {
    /* Main Navigation Elements */
    .main-nav-elements {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-element-menu {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }

    /* Sub Navigation Elements */
    .subnav-nav-elements {
        flex-direction: column;
    }

    span.left-col-subnav,
    span.right-col-subnav {
        width: 100%;
        padding: 10px 0;
        border: none;
    }

    .subcategory-nav-elements .child-element-menu,
    .subsubcategory-nav-elements .grandchild-element-menu {
        padding: 5px 10px;
        font-size: 16px;
    }

    .subsubcategory-nav-elements {
        grid-template-columns: 1fr;
    }

    /* Product Container */
    .product-custom-container {
        grid-template-columns: 1fr;
    }

    .product-custom {
        width: 100%;
    }

    .product-custom .image-product {
        width: 100%;
        height: auto;
    }

    .product-custom img {
        height: auto;
        width: 100%;
    }

    .product-custom h2 {
        font-size: 1.2em;
    }

    .product-custom p {
        font-size: 1em;
    }

    .pagination {
        margin: 20px 0;
    }

    span.plate-info {
        width: 100%;
        padding: 10px 15px;
    }

    h2.nofound-product {
        padding: 10px 0;
        margin: 20px 0;
    }
    .product-custom-container {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 30px;
}
}

@media (max-width: 480px) {
    /* Main Navigation Elements */
    .main-element-menu {
        padding: 10px 15px;
    }

    /* Sub Navigation Elements */
    .subcategory-nav-elements .child-element-menu,
    .subsubcategory-nav-elements .grandchild-element-menu {
        font-size: 14px;
    }

    /* Product Container */
    .product-custom h2 {
        font-size: 1em;
    }

    .product-custom p {
        font-size: 0.9em;
    }
    .product-custom-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    align-items: center;
    justify-items: center;
}
}
