/* ==========================================================
   Universal Slider — .soapkits-universal-slider
   Manual images / CPT cards / saved templates on Swiper.
   ========================================================== */

.soapkits-universal-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.soapkits-universal-slider__track {
    display: flex;
}

.soapkits-universal-slider__track .swiper-slide {
    height: auto;
    display: flex;
}

/* ---- Card ---- */
.soapkits-universal-slider__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--soapkits-white, #fff);
    border-radius: var(--soapkits-radius-md, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease;
}

.soapkits-universal-slider__card:hover {
    box-shadow: var(--soapkits-shadow-md, 0 4px 16px rgba(0,0,0,.12));
}

a.soapkits-universal-slider__card:focus-visible {
    outline: 3px solid var(--soapkits-accent, #ef4444);
    outline-offset: 2px;
}

/* ---- Media ---- */
.soapkits-universal-slider__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.soapkits-universal-slider__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.soapkits-universal-slider.has-zoom .soapkits-universal-slider__card:hover .soapkits-universal-slider__media img {
    transform: scale(1.06);
}

/* ---- Body ---- */
.soapkits-universal-slider__body {
    padding: 20px;
    text-align: left;
}

.soapkits-universal-slider__title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--soapkits-text, #111827);
}

.soapkits-universal-slider__subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--soapkits-text-muted, #6b7280);
}

.soapkits-universal-slider__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #65A30D;
    text-decoration: none;
}

a.soapkits-universal-slider__readmore:hover {
    text-decoration: underline;
}

.soapkits-universal-slider__readmore-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.soapkits-universal-slider__card:hover .soapkits-universal-slider__readmore-arrow {
    transform: translateX(3px);
}

/* ---- Template slides ---- */
.soapkits-universal-slider__card--template {
    display: block;
    overflow: visible;
}

.soapkits-universal-slider__card--template .elementor,
.soapkits-universal-slider__card--template .elementor-section,
.soapkits-universal-slider__card--template .elementor-container {
    width: 100%;
}

/* ---- Empty state ---- */
.soapkits-universal-slider__empty {
    color: var(--soapkits-text-muted, #6b7280);
}

/* ---- Arrows ---- */
.soapkits-universal-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--soapkits-white, #fff);
    color: var(--soapkits-text, #111827);
    box-shadow: var(--soapkits-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

button.soapkits-universal-slider__arrow {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: center;
}

button.soapkits-universal-slider__arrow:hover,
button.soapkits-universal-slider__arrow:focus {
    background: var(--soapkits-white, #fff);
    color: var(--soapkits-text, #111827);
    border: none;
}

button.soapkits-universal-slider__arrow:active {
    background: var(--soapkits-white, #fff);
}

.soapkits-universal-slider__arrow:hover {
    box-shadow: var(--soapkits-shadow-md, 0 4px 16px rgba(0,0,0,.12));
}

.soapkits-universal-slider__arrow--prev {
    left: -20px;
}

.soapkits-universal-slider__arrow--next {
    right: -20px;
}

.soapkits-universal-slider__arrow::after {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.soapkits-universal-slider__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---- Dots ---- */
.soapkits-universal-slider__dots {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 8px;
    bottom: auto !important;
}

.soapkits-universal-slider__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--soapkits-border, #e5e7eb);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

button.soapkits-universal-slider__dot:hover {
    transform: scale(1.2);
    background: var(--soapkits-border, #e5e7eb);
}

.soapkits-universal-slider__dot--active {
    background: var(--soapkits-primary, #111827);
    transform: scale(1);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .soapkits-universal-slider__arrow--prev {
        left: -14px;
    }
    .soapkits-universal-slider__arrow--next {
        right: -14px;
    }
    .soapkits-universal-slider__body {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .soapkits-universal-slider__arrow--prev {
        left: -10px;
    }
    .soapkits-universal-slider__arrow--next {
        right: -10px;
    }
    .soapkits-universal-slider__body {
        padding: 14px;
    }
    .soapkits-universal-slider__title {
        font-size: 1rem;
    }
}
