.owl-carousel .owl-item img {
    width: 100%;
}

@media (max-width: 535px) {
    .owl-carousel .owl-item img {
        width: 100%;
    }
}

.slider_box a {
    width: 100%
}

.owl-nav {
    display: none;
}

.owl-dots {
    text-align: center;
    padding: 10px 0 !important;
}

.owl-dot {
    display: inline-block;
    margin: 0 5px !important;
}

.slide_box {
    display: flex !important;
    justify-content: center !important;
}

.owl-dot span {
    display: block;
    width: 40px !important;
    height: 5px !important;
    background: var(--primary-color) !important;
    opacity: 0.5;
    margin: 5px 0px!important;
    transition: all 0.3s ease !important;
}

.owl-dot.active span {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    opacity: 1;
}

.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    border-radius: 0px !important;
}

/* ========================================== */

.custom-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.custom-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.custom-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-navigation button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.pagination {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 5px;
    width: 60px;
    margin: 0 5px;
    background: #FFF4B0;
    display: inline-block;
}

.slider-image {
    display: block;
    max-width: 1450px;
    height: auto;
    max-height: 509px;
    object-fit: contain;
    background-size: 100% auto !important;
}

/* Owl ukrywa karuzelę do czasu inicjalizacji JS (display:none bez .owl-loaded),
   przez co hero — element LCP — czekał na jQuery+owl. Pokazujemy pierwszy slajd od razu. */
.custom-slider-container:not(.owl-loaded) {
    display: block;
}

.custom-slider-container:not(.owl-loaded) .item:not(:first-child) {
    display: none;
}

.slider-image-desktop {
    display: none !important;
}

.slider-image-mobile {
    display: block !important;
}

@media(min-width: 490px){
    .owl-dot span {
        width: 60px !important;
    }
}

@media (min-width: 768px) {
    .slider-image-desktop {
        display: block !important;
    }
    .slider-image-mobile {
        display: none !important;
    }
}