/* ===== Polecane Produkty ===== */

/* --- SIATKA (≤3 produkty) --- */
.pp-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* --- KARUZELA (>3 produkty) --- */
.pp-swiper-wrap {
    position: relative;
    margin: 20px 0;
    /* miejsce na strzałki po bokach */
    padding: 0 50px;
    box-sizing: border-box;
}

.pp-swiper {
    overflow: hidden;
    width: 100%;
}

.pp-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.pp-swiper .swiper-slide {
    box-sizing: border-box;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* --- Karta produktu --- */
.pp-product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.pp-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1;
}

.pp-product-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 0 1em;
    border: 2px solid var(--e-global-color-bfdeb0b, #f0c000) !important;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Tytuł: stała wysokość 3 linii, BEZ rozwijania na hover */
.pp-product-title {
    font-family: "Century Gothic Bold", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--e-global-color-5fc67c5, #000) !important;
    padding: .5em 0 !important;
    margin: 0 0 10px !important;
    /* stała wysokość = 3 linie */
    height: 4.8em !important;
    line-height: 1.6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis !important;
    /* flex-grow popycha cenę i przycisk na dół */
    flex-grow: 1;
}

/* Wyłącz rozwijanie na hover – nadpisuje globalny styl motywu */
.pp-product-card:hover .pp-product-title,
.pp-product-card:hover .pp-product-title * {
    height: 4.8em !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

.pp-product-price {
    display: block !important;
    font-family: "Century Gothic Bold", Sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--e-global-color-5fc67c5, #958e09) !important;
    background-color: var(--e-global-color-bfdeb0b, #f5e642);
    text-align: center;
    margin-bottom: .5em;
    padding: 2px 6px;
}

.pp-product-card .button {
    display: inline-block;
    margin-top: auto;
    padding-top: 1em;
    font-size: 100%;
    font-weight: 700;
    padding: .618em 1em;
    border-radius: 3px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff !important;
    background-color: #000000 !important;
    line-height: 1;
}

.pp-product-card .button:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* --- Nawigacja slidera – strzałki NA ZEWNĄTRZ slidera --- */
.pp-btn-prev,
.pp-btn-next {
    position: absolute;
    top: 30%; /* środek mniej więcej na poziomie zdjęcia */
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    --swiper-navigation-size: 20px;
    color: #000 !important;
    /* wyłącz domyślne pozycjonowanie Swipera */
    margin-top: 0 !important;
}

.pp-btn-prev { left: 4px !important; }
.pp-btn-next { right: 4px !important; }

.pp-btn-prev::after,
.pp-btn-next::after {
    font-size: 20px !important;
    font-weight: 900;
    color: #000;
}

.pp-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 14px;
    text-align: center;
}

.pp-pagination .swiper-pagination-bullet-active {
    background: #000 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pp-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pp-grid-wrap {
        grid-template-columns: 1fr;
    }
    .pp-swiper-wrap {
        padding: 0 34px;
    }
}
