/* ═══════════════════════════════════════════
   GOLDIKA CATEGORY CAROUSEL - RTL Native
═══════════════════════════════════════════ */
.gk-catcar {
    --gk-cc-bg: #232832;
    --gk-cc-card-bg: #2c3140;
    --gk-cc-card-border: rgba(255, 255, 255, 0.12);
    --gk-cc-card-hover-bg: #353b4a;
    --gk-cc-text: rgba(255, 255, 255, 0.85);
    --gk-cc-text-muted: rgba(255, 255, 255, 0.5);
    --gk-cc-active-bg: #faaf00;
    --gk-cc-active-text: #1a1d24;
    --gk-cc-thumb-bg: rgba(255, 255, 255, 0.06);
    --gk-cc-active-thumb-bg: rgba(0, 0, 0, 0.12);
    --gk-cc-arrow-bg: #30353e;
    --gk-cc-arrow-color: rgba(255, 255, 255, 0.85);
    --gk-cc-arrow-hover: #faaf00;
    --gk-cc-arrow-disabled: rgba(255, 255, 255, 0.25);

    position: relative;
    width: 100%;
    padding: 16px 0;
    color: var(--gk-cc-text);
}

.gk-catcar *,
.gk-catcar *::before,
.gk-catcar *::after {
    box-sizing: border-box;
}

/* ── Nav Arrows ── */
.gk-catcar__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0;
    flex-direction: row-reverse;
}

.gk-catcar__arrow-wrap {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--body-950);
    padding: 8px;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.gk-catcar__arrow-wrap.is-disabled {
    opacity: 0;
    pointer-events: none;
}

.gk-catcar__arrow {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    background: var(--gk-cc-arrow-bg);
    border: none;
    border-radius: 50%;
    color: var(--gk-cc-arrow-color);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gk-catcar__arrow:hover:not(:disabled) {
    background: var(--gk-cc-arrow-hover);
    color: #1a1d24;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 175, 0, 0.3);
}

.gk-catcar__arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.gk-catcar__arrow:disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

/* ── Window ── */
.gk-catcar__window {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 ;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gk-catcar__window.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.gk-catcar__window::-webkit-scrollbar {
    display: none;
}

/* ── Track ── */
.gk-catcar__track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 4px 0;
    width: fit-content;
}

/* ── Slide ── */
.gk-catcar__slide {
    flex: 0 0 auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ── Label card ── */
.gk-catcar__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 12px;
    border: 1.5px solid var(--gk-cc-card-border);
    border-radius: 16px;
    background: var(--gk-cc-card-bg);
    color: var(--gk-cc-text);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
    min-width: 88px;
    text-align: center;
}

.gk-catcar__slide:hover .gk-catcar__label {
    background-color: var(--gk-cc-card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Thumbnail ── */
.gk-catcar__thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gk-cc-thumb-bg);
    flex-shrink: 0;
}

.gk-catcar__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Name ── */
.gk-catcar__name {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

/* ── Count ── */
.gk-catcar__count {
    font-size: 0.8em;
    opacity: 0.5;
    margin-inline-start: 2px;
}

/* ── Active State ── */
.gk-catcar__slide.is-active .gk-catcar__label {
    background-color: var(--gk-cc-active-bg);
    border-color: var(--gk-cc-active-bg);
    color: var(--gk-cc-active-text);
    box-shadow: 0 4px 16px rgba(250, 175, 0, 0.25);
}

.gk-catcar__slide.is-active .gk-catcar__thumb-wrap {
    background: var(--gk-cc-active-thumb-bg);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .gk-catcar__window {
        margin: 0 4px;
    }

    .gk-catcar__arrow {
        width: 32px;
        height: 32px;
    }

    .gk-catcar__label {
        padding: 8px 10px 10px;
        min-width: 72px;
        border-radius: 12px;
        gap: 6px;
    }

    .gk-catcar__thumb-wrap {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .gk-catcar__name {
        font-size: 11.5px;
    }

    .gk-catcar__track {
        gap: 8px;
    }
}
