/* ========== KARUZELA KATEGORII — AEC DESIGN (Swiper) ========== */

.aec-karuzela{
    position: relative;
}

.aec-swiper{
    overflow: hidden;
    padding: 14px 14px 28px;
}

.aec-karuzela ul.products{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.aec-karuzela ul.products::before,
.aec-karuzela ul.products::after{
    content: none !important;
}

.aec-karuzela ul.products li.product{
    flex-shrink: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: auto;
    height: auto;
    float: none !important;
    clear: none !important;
}

.aec-swiper:not(.swiper-initialized) ul.products{
    gap: 24px;
    overflow: hidden;
}

/* ---------- Strzałki (desktop) ---------- */

.aec-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -7px;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #C7164847;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aec-prev{ left: 4px; }
.aec-next{ right: 4px; }

/* ---------- Kwadraty (mobile) ---------- */

.aec-bar{
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.aec-dot{
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aec-dot::before{
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #C7164847;
}

.aec-dot-on::before{
    background: #C71648;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px){
    .aec-nav{ display: none; }
    .aec-bar{
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 12px;
        z-index: 6;
        margin: 0;
    }
    .aec-swiper{ padding: 8px 10px 8px; }
}

/* ---------- Podgląd w edytorze Elementora ---------- */

body.elementor-editor-active .aec-karuzela ul.products{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 24px;
    overflow: visible;
}

body.elementor-editor-active .aec-karuzela ul.products li.product{
    width: auto !important;
}