/* ============================================================
   ACF Product Slider — Swiper
   ============================================================ */

.acf-product-slider {
    padding: 40px 0;
    overflow: hidden;
    background-color: #000;
}

/* Baner przed sliderem */
.acf-product-slider__baner-link {
    display: block;
    text-decoration: none;
    margin: 40px 0 80px 0;
}

.acf-product-slider__baner {
    display: block;
    width: 100%;
    line-height: 0; /* usuwa gap pod img */
}

.acf-product-slider__baner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Tytuł sekcji */
.acf-product-slider__title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}

/* Swiper wrapper */
.acf-product-swiper {
    padding: 0 40px 40px;
}

/* Pojedynczy slide */
.acf-product-slider__item {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.acf-product-slider__item:hover {
    box-shadow: 0 4px 22px rgba(255, 255, 255, 0.08);
    border-color: #444;
}

/* Zdjęcie */
.acf-product-slider__image-link {
    display: block;
    text-decoration: none;
}

.acf-product-slider__image {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 1 / 1;
}

.acf-product-slider__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Zdjęcie główne */
.acf-product-slider__image--main {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Zdjęcie z galerii — widoczne na hover */
.acf-product-slider__image--hover {
    opacity: 0;
    transform: scale(1.04);
    z-index: 2;
}

.acf-product-slider__item:hover .acf-product-slider__image--main {
    opacity: 0;
    transform: scale(1.04);
}

.acf-product-slider__item:hover .acf-product-slider__image--hover {
    opacity: 1;
    transform: scale(1);
}

/* Info (nazwa, cena, przycisk) */
.acf-product-slider__info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.acf-product-slider__name {
    text-decoration: none;
    color: inherit;
}

.acf-product-slider__name h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #fff;
    transition: color 0.2s;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    min-height: unset;

    /*@media (min-width: 968px) {*/
    /*    height: 40px;*/
    /*}*/
}

.acf-product-slider__name:hover h4 {
    color: #ccc;
}

.acf-product-slider__price {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
}

/* WooCommerce nadpisuje kolor ceny — wymuszamy biel */
.acf-product-slider__price .woocommerce-Price-amount,
.acf-product-slider__price .woocommerce-Price-currencySymbol {
    color: #fff;
}

/* Przycisk "Dodaj do koszyka" */
.acf-product-slider__cart {
    margin-top: auto;
}

.acf-product-slider__cart .button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.acf-product-slider__cart .button:hover {
    background-color: transparent;
    color: #fff;
}

/* Strzałki nawigacji */
.acf-product-swiper .swiper-button-prev,
.acf-product-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    color: #000;
    top: 40%;
}

.acf-product-swiper .swiper-button-prev::after,
.acf-product-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.acf-product-swiper .swiper-button-prev:hover,
.acf-product-swiper .swiper-button-next:hover {
    background-color: #ccc;
}

/* Pagination */
.acf-product-swiper .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
}

.acf-product-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Przycisk "Pokaż więcej" */
.acf-product-slider__more {
    text-align: center;
    margin-top: 28px;
}

.acf-product-slider__more-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid #fff;
}

.acf-product-slider__more-btn:hover {
    background-color: transparent;
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media ( max-width: 1199px ) {
    .acf-product-swiper {
        padding: 0 30px 40px;
    }
}

@media ( max-width: 767px ) {
    .acf-product-slider {
        padding: 28px 0;
    }

    .acf-product-slider__title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .acf-product-swiper {
        padding: 0 16px 36px;
    }

    .acf-product-swiper .swiper-button-prev,
    .acf-product-swiper .swiper-button-next {
        display: none;
    }
}
