/* =====================================================
   Top Categories slider  — বাম/ডান বাটন
   public/frontEnd/css/category-arrows.css
   ===================================================== */
.top-categories-panel,
.category-menu-slider{ position:relative; }

/* স্ক্রল-ভিত্তিক স্লাইডার (পুরনো transform স্টাইল বন্ধ) */
.category-menu-viewport{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -ms-overflow-style:none;
    -webkit-overflow-scrolling:touch;
    cursor:grab;
}
.category-menu-viewport::-webkit-scrollbar{ display:none; }
.category-menu-viewport.is-dragging{
    cursor:grabbing;
    scroll-behavior:auto;
    scroll-snap-type:none;
    user-select:none;
}
.category-menu-track{
    display:flex !important;
    width:max-content !important;
    min-width:100%;
    transform:none !important;
    transition:none !important;
    animation:none !important;
}
.category-menu-track .top-cat-item{ flex-shrink:0; scroll-snap-align:start; }
.category-menu-viewport img,
.category-menu-viewport a{ -webkit-user-drag:none; user-select:none; }

/* ---------- তীর বাটন ---------- */
.cat-arrow{
    position:absolute;
    top:50%;
    z-index:5;
    width:40px; height:40px;
    padding:0;
    display:inline-flex; align-items:center; justify-content:center;
    color:#111;
    background:#fff;
    border:1px solid rgba(0,0,0,.1);
    border-radius:50%;
    box-shadow:0 6px 18px rgba(0,0,0,.14);
    cursor:pointer;
    transform:translateY(-50%);
    transition:opacity .25s ease,background .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.cat-arrow--prev{ left:6px; }
.cat-arrow--next{ right:6px; }
.cat-arrow svg{ width:18px; height:18px; display:block; }
.cat-arrow:hover{ background:#111; color:#fff; transform:translateY(-50%) scale(1.08); }
.cat-arrow:active{ transform:translateY(-50%) scale(.95); }
.cat-arrow:disabled{ opacity:0; pointer-events:none; }
.category-menu-slider:not(.is-scrollable) .cat-arrow{ display:none; }

@media (max-width:767px){
    .cat-arrow{ width:32px; height:32px; }
    .cat-arrow svg{ width:15px; height:15px; }
    .cat-arrow--prev{ left:2px; }
    .cat-arrow--next{ right:2px; }
}
@media (prefers-reduced-motion:reduce){
    .category-menu-viewport{ scroll-behavior:auto; }
}
