/* ── Slider wrapper ─────────────────────────────────────────────────────── */
.category-slider {
    width: 100%;
}

/* ── Clip box ────────────────────────────────────────────────────────────── */
.slider-clip {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.slider-clip.is-dragging {
    cursor: grabbing;
}

/* ── Track ───────────────────────────────────────────────────────────────── */
.slider-track {
    display: flex;
    gap: 10px;
    /* No will-change here — browser promotes to GPU layer only during
       the transition, which is the correct behaviour */
}

/* ── Slide ───────────────────────────────────────────────────────────────── */
.slide {
    flex: 0 0 130px;
    min-width: 130px;
}

.slide-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.slide-image {
    width: 130px;
    height: 186px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    line-height: normal;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
}

.slide-text span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    line-height: 1.3;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.slider-nav {
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.slider-prev,
.slider-next {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 18px;
    transition: opacity 0.15s;
}

.slider-prev:hover,
.slider-next:hover { opacity: 0.5; }

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.2;
    cursor: default;
}

.slider-prev svg,
.slider-next svg {
    display: block;
    width: 10px;
    height: 18px;
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .slider-track { gap: 20px; }
    .slide        { flex: 0 0 245px; min-width: 245px; }
    .slide-link   { line-height: 0; }
    .slide-image  { width: 245px; height: 350px; }
    .slide-text   { padding: 20px; }
    .slide-text span { font-size: 18px; }
    .slider-nav   { display: flex; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track { transition: none !important; }
}
