/* فقط برای مرورگرهای Webkit (Chrome, Safari, Edge) */
.category-left::-webkit-scrollbar,
.category-right::-webkit-scrollbar {
    width: 6px;  /* عرض اسکرول بار */
}

.category-left::-webkit-scrollbar-track,
.category-right::-webkit-scrollbar-track {
    background: #f1f1f1;  /* پس‌زمینه مسیر اسکرول */
    border-radius: 3px;
}

.category-left::-webkit-scrollbar-thumb,
.category-right::-webkit-scrollbar-thumb {
    background: #888;       /* رنگ خود اسکرول */
    border-radius: 3px;
}

.category-left::-webkit-scrollbar-thumb:hover,
.category-right::-webkit-scrollbar-thumb:hover {
    background: #555;       /* وقتی موس روی اسکرول است */
}

/* برای Firefox */
.category-left,
.category-right {
    scrollbar-width: thin;       /* نازک شدن اسکرول */
    scrollbar-color: #888 #f1f1f1;  /* رنگ thumb و track */
}

.nav-botton{
    width: 100%;
    height:60px ;
    position: fixed;
    bottom: 0px;
    z-index: 99;
}
.nav-botton a:before {
    font-size: 1.5rem;
}
.sticky-badge{
    position: absolute;
    top: 15%;
}
.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.subcategory-item {
    width: 30%; /* دو ستون در ردیف */
    text-align: center;
}

.subcategory-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.category-left img {
    width: 100%;
    border-radius: 6px;
}

.category-left p {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subcategory-item a {
    display: block;
    text-align: center;
    white-space: nowrap;       
    overflow: hidden;          
    text-overflow: ellipsis;  
}

.subcategory-item p {
    margin: 0;
    font-size: 14px;
}

.category-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
}
/* ستون راست */
.category-right {
    width: 30%;
    background: #f8f9fa;
    border-left: 1px solid #ddd;
    height: 100%;
    overflow-y: auto; /* فقط این ستون اسکرول میشه */
}

/* ستون چپ */
.category-left {
    width: 70%;
    padding: 15px;
    height: 100%;
    overflow-y: auto; /* فقط این ستون اسکرول میشه */
}


/* دکمه بستن */
.close-slider {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1060;
}

/* وقتی باز شد */
.category-slider.open {
    right: 0;
}

/* محتوای داخل */
.categories-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ستون راست */


.category-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-right li {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

/* فلش کنار دسته‌ها */
.ruby-dropdown-toggle {
    position: absolute;
    right: 10px;
}

/* ستون چپ */


/* اوورلی */
.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}
.category-overlay.show {
    display: block;
}
.category-right li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    text-align: center;
}

.category-right li img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 5px;
}

.category-right li.active {
    background-color: #f0f0f0; /* رنگ انتخاب شده */
    border-left: 4px solid #6db52c; /* یک خط کنار برای تاکید */
}

