/* ==========================================================================
   MV Subcategory Pills for Elementor
   ========================================================================== */

.mv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Single-line scroll mode */
.mv-pills--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px; /* prevents shadow clipping */
}
.mv-pills--scroll::-webkit-scrollbar {
    height: 6px;
}
.mv-pills--scroll::-webkit-scrollbar-track {
    background: transparent;
}
.mv-pills--scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}
.mv-pills--scroll .mv-pill {
    flex-shrink: 0;
}

/* Pill base */
.mv-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: #222;
    background: transparent;
    border: 1px solid #222;
    border-radius: 50px;
    text-decoration: none !important;
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.mv-pill:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Active state — current page */
.mv-pill.is-active {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

/* Hover — only on non-active pills */
.mv-pill:not(.is-active):hover {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

/* Count */
.mv-pill__count {
    font-size: 0.9em;
    opacity: 0.85;
    color: #888;
}

/* Empty editor placeholder */
.mv-pills-empty {
    padding: 20px;
    text-align: center;
    background: #f7f7f5;
    border: 2px dashed #d0d0cc;
    border-radius: 12px;
    color: #777;
    font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mv-pill { transition: none !important; }
}

/* RTL */
body.rtl .mv-pills { direction: rtl; }
