.theme-slider {
    position: relative;
    user-select: none;
}

.theme-slider-viewport {
    overflow: hidden;
}

.theme-slider--marquee .theme-slider-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.theme-slider-track {
    display: flex;
    gap: var(--gap, 24px);
    will-change: transform;
}

.theme-slider-item {
    flex: 0 0 calc((100% - (var(--items, 1) - 1) * var(--gap, 24px)) / var(--items, 1));
    box-sizing: border-box;
}

/* Marquee variant */
.theme-slider--marquee { cursor: grab; }
.theme-slider--marquee.theme-slider--dragging { cursor: grabbing; }
.theme-slider--marquee .theme-slider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.theme-slider--marquee .theme-slider-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}
.theme-slider--marquee:hover .theme-slider-item img {
    filter: grayscale(0%) opacity(1);
}

/* Carousel variant */
.theme-slider--carousel .theme-slider-track { cursor: grab; }
.theme-slider--carousel.theme-slider--dragging .theme-slider-track { cursor: grabbing; }

.theme-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.theme-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}
.theme-slider-dot.active {
    background: var(--theme-color, #f3b41b);
    width: 24px;
    border-radius: 5px;
}

.theme-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease;
}
.theme-slider-arrow:hover {
    background: var(--theme-color, #f3b41b);
    color: #fff;
}
.theme-slider-arrow.prev { left: -21px; }
.theme-slider-arrow.next { right: -21px; }

@media (max-width: 767px) {
    .theme-slider-arrow { display: none; }
}