/* Główny kontener */
.uwc-container {
    width: 100%;
    padding: 20px 0;
    margin: 0 auto;
    text-align: center;
}

/* Nagłówek sekcji */
.uwc-header {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Układ desktopowy - rząd produktów */
.uwc-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pojedynczy box produktu */
.uwc-column {
    flex: 0 1 calc(33.33% - 20px); /* 3 produkty w linii na desktopie */
    max-width: calc(33.33% - 20px);
    background: #fff;
    padding: 20px;
    border: 1px solid #e6e6e6; /* Ramka wokół boxa */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Obraz produktu */
.uwc-image {
    width: 70%;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px; /* Zaokrąglone rogi obrazka */
}

/* Nazwa produktu */
.uwc-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

/* Cena produktu */
.uwc-price {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

/* Guzik */
.uwc-button {
    display: inline-block;
    padding: 14px 40px; /* Padding: 14px góra/dół, 40px lewo/prawo */
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50; /* Zielone tło */
    text-decoration: none;
    border-radius: 25px; /* Styl kapsułki */
    transition: background-color 0.3s ease;
    margin: 0 auto;
    text-align: center;
}

.uwc-button:hover {
    background-color: #388E3C; /* Ciemniejszy kolor po najechaniu */
}

/* Styl slajdu dla SplideJS */
.splide__slide {
    text-align: center;
}

/* Układ mobilny */
@media (max-width: 767px) {
    .uwc-desktop {
        display: none; /* Ukryj wersję desktopową na mobilnych */
    }

    .uwc-mobile {
        display: block; /* Wyświetl wersję mobilną */
    }

    .splide__slide .uwc-image {
        max-width: 80%; /* Zmniejszenie obrazka na mobilnych */
    }
}

/* Układ desktopowy */
@media (min-width: 768px) {
    .uwc-mobile {
        display: none; /* Ukryj wersję mobilną na desktopie */
    }

    .uwc-desktop {
        display: block; /* Wyświetl wersję desktopową */
    }

    .uwc-row {
        display: flex;
        gap: 20px;
    }

    .uwc-box {
        flex: 0 1 calc(33.33% - 20px); /* 3 produkty w linii */
        max-width: calc(33.33% - 20px);
    }

    .splide__pagination,
    .splide__arrow {
        display: none !important; /* Ukryj paginację i strzałki na desktopie */
    }
}

/* Kontener strzałek */
.splide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Wyłączenie interakcji dla kontenera */
    z-index: 10;
}

/* Stylizacja strzałek */
.splide__arrow {
    pointer-events: all; /* Włącz interakcję dla samej strzałki */
    background-color: transparent; /* Przezroczyste tło */
    color: #dee1e2; /* Kolor strzałki */
    border: none; /* Bez obramowania */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Efekt hover dla strzałek */
.splide__arrow:hover {
    transform: scale(1.2); /* Powiększenie na hover */
}

/* Styl strzałki do lewej */
.splide__arrow--prev {
    left: 10px; /* Odstęp od lewej */
}

/* Styl strzałki do prawej */
.splide__arrow--next {
    right: 10px; /* Odstęp od prawej */
}

/* Ikony strzałek */
.splide__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* Kolor ikony zależny od koloru tekstu (ustawiony na #dee1e2) */
}


