/**
 * Karuzela produktów - style
 */

.sako-product-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sako-swiper {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.sako-product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

.sako-product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.sako-product-card .product-image a {
    display: block;
    position: relative;
    padding-bottom: 100%;
}

.sako-product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sako-product-card:hover .product-image img {
    transform: scale(1.05);
}

.sako-product-card .product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sako-product-card .product-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.sako-product-card .product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sako-product-card .product-title a:hover {
    color: var(--primary-color, #007bff);
}

.sako-product-card .product-price {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #007bff);
}

.sako-product-card .product-price del {
    opacity: 0.6;
    font-size: 14px;
    margin-right: 8px;
}

.sako-product-card .product-button {
    margin-top: auto;
}

.sako-product-card .product-button .button,
.sako-product-card .product-button .add_to_cart_button {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background: var(--primary-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sako-product-card .product-button .button:hover,
.sako-product-card .product-button .add_to_cart_button:hover {
    background: var(--primary-color-hover, #0056b3);
}

/* Nawigacja */
.sako-product-carousel-wrapper .sako-swiper-prev,
.sako-product-carousel-wrapper .sako-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sako-product-carousel-wrapper .sako-swiper-prev:hover,
.sako-product-carousel-wrapper .sako-swiper-next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sako-product-carousel-wrapper .sako-swiper-prev {
    left: -22px;
}

.sako-product-carousel-wrapper .sako-swiper-next {
    right: -22px;
}

.sako-product-carousel-wrapper .sako-swiper-prev::after,
.sako-product-carousel-wrapper .sako-swiper-next::after {
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.sako-product-carousel-wrapper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Paginacja */
.sako-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sako-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.sako-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color, #007bff);
    width: 24px;
    border-radius: 5px;
}

/* Pusta karuzela */
.sako-carousel-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* Responsywność */
@media (max-width: 768px) {
    .sako-product-carousel-wrapper .sako-swiper-prev {
        left: 0;
    }
    
    .sako-product-carousel-wrapper .sako-swiper-next {
        right: 0;
    }
    
    .sako-product-card .product-title {
        font-size: 14px;
    }
    
    .sako-product-card .product-price {
        font-size: 16px;
    }
}

/* Integracja z szablonem Elementor Loop */
.sako-product-card .elementor-loop-container {
    width: 100%;
    height: 100%;
}

.sako-product-card .elementor-element {
    width: 100%;
}
