.hnojik-carousel {
    --hc-gap: 16px;
    --hc-desktop: 4;
    --hc-tablet: 2;
    --hc-mobile: 1;
    --hc-per-view: var(--hc-desktop);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.hnojik-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.hnojik-carousel__track {
    display: flex;
    gap: var(--hc-gap);
    will-change: transform;
    transition: transform 450ms cubic-bezier(.22,.61,.36,1);
    touch-action: pan-y;
}

.hnojik-carousel__track.is-dragging {
    transition: none;
}

.hnojik-carousel__slide {
    flex: 0 0 calc((100% - (var(--hc-per-view) - 1) * var(--hc-gap)) / var(--hc-per-view));
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hnojik-carousel__slide img,
.hnojik-carousel__link {
    display: block;
    width: 100%;
    height: auto;
}

.hnojik-carousel__link img {
    transition: transform .3s ease;
}
.hnojik-carousel__link:hover img {
    transform: scale(1.02);
}

/* Nav (arrows + dots inline below viewport) */
.hnojik-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Arrows - subtle */
.hnojik-carousel__arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: color .2s ease, background .2s ease;
}
.hnojik-carousel__arrow:hover {
    background: #f3f4f6;
    color: #4b5563;
}
.hnojik-carousel__arrow[disabled] {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}

/* Dots */
.hnojik-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}
.hnojik-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c9cdcf;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.hnojik-carousel__dot:hover { background: #9aa0a4; }
.hnojik-carousel__dot.is-active {
    background: #2f7a3a;
    transform: scale(1.2);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .hnojik-carousel { --hc-per-view: var(--hc-tablet); }
}
@media (max-width: 640px) {
    .hnojik-carousel { --hc-per-view: var(--hc-mobile); }
}

@media (prefers-reduced-motion: reduce) {
    .hnojik-carousel__track { transition: none; }
}
