/* ══════════════════════════════════
   Roso Category Bar — style.css
══════════════════════════════════ */
.rosocb-wrap * { box-sizing: border-box; }
.rosocb-wrap { direction: rtl; }

/* Container for alignment */
.rosocb-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* Outer: [חץ-שמאל] [viewport] [חץ-ימין] */
.rosocb-outer {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

/* Arrows */
.rosocb-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ddd !important;
    background: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555 !important;
    transition: all 0.2s;
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
    padding: 0 !important;
    z-index: 5;
}
.rosocb-arrow:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}
.rosocb-arrow svg { pointer-events: none; }
.rosocb-arrow:focus, .rosocb-arrow:active {
    outline: none !important;
    box-shadow: none !important;
}
.rosocb-arrow-disabled {
    opacity: 0.25 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Viewport — overflow hidden, JS sets width */
.rosocb-viewport {
    overflow: hidden;
    min-width: 0;
}

/* Track — always LTR so items flow right→left visually in RTL page */
.rosocb-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    direction: ltr;
    padding: 6px 2px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Item */
.rosocb-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    width: 110px;
}

/* Circle */
.rosocb-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rosocb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    transition: transform 0.3s;
}
.rosocb-item:hover .rosocb-img {
    border-color: #888;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.rosocb-item:hover .rosocb-img img { transform: scale(1.06); }
.rosocb-item.active .rosocb-img { border-color: #111; border-width: 2.5px; }
.rosocb-img-all { background: #f0f0f0; }

/* Label */
.rosocb-name {
    font-size: 13px;
    color: #444;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    transition: color 0.2s;
}
.rosocb-item.active .rosocb-name { color: #111; font-weight: 700; }
.rosocb-item:hover .rosocb-name  { color: #111; }

/* Mobile */
@media (max-width: 768px) {
    .rosocb-name  { font-size: 11px; }
    .rosocb-track { gap: 8px; }
    .rosocb-arrow { width: 28px; height: 28px; }
    .rosocb-outer { gap: 4px; }
}

/* ── Loading indicator when archive is filtering ── */
.rosoa-wrap.rosoa-filtering { opacity: 0.5; pointer-events: none; transition: opacity 0.2s; }
