/*==================================================
    PSK Category Bottom Sheet
    باتم‌شیت دسته‌بندی — باز شدن از پایین به بالا
==================================================*/

.psk-category-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,13,38,.55);
    opacity:0;
    visibility:hidden;
    transition:opacity .35s ease;
    z-index:90;
}
.psk-category-overlay.is-open{
    opacity:1;
    visibility:visible;
}

.psk-category-sheet {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 91;
    background: #fff;
    border-radius: 0;
    max-height: 78vh;
    display: flex
;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .45s cubic-bezier(.22,.9,.32,1);
    box-shadow: none;
}
.psk-category-sheet.is-open{
    transform:translateY(0);
}

.psk-category-sheet-handle{
    width:44px;
    height:5px;
    border-radius:3px;
    background:var(--line,#e3e8f2);
    margin:12px auto 4px;
    flex-shrink:0;
}

.psk-category-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 20px 14px;
    border-bottom:1px solid var(--line,#e3e8f2);
    flex-shrink:0;
}
.psk-category-sheet-head h3{
    margin:0;
    font-size:16px;
    font-weight:800;
    color:var(--navy,#001a43);
}
.psk-category-sheet-close{
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--paper,#f3f6fb);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--navy,#001a43);
    border:none;
    cursor:pointer;
}
.psk-category-sheet-close .psk-icon{ width:16px; height:16px; }
.psk-category-sheet-close:hover{ background:var(--amber,#ff7a1a); color:#fff; }

.psk-category-sheet-body{
    overflow-y:auto;
    padding:6px 0 30px;
    text-align:right; /* منو سمت راست */
}

/* لیست fallback / wp_nav_menu */
.psk-category-sheet-menu{ list-style:none; margin:0; padding:0; }
.psk-category-sheet-menu li a{
    display:flex;
    align-items:center;
    justify-content:flex-end; /* راست‌چین */
    gap:8px;
    padding:14px 22px;
    font-size:14.5px;
    font-weight:700;
    color:var(--ink,#111d33);
    border-bottom:1px solid #f0f2f7;
    text-align:right;
}
.psk-category-sheet-menu li a:hover{
    background:var(--paper,#f3f6fb);
    color:var(--amber,#ff7a1a);
}
.psk-category-sheet-menu .sub-menu{
    padding-inline-end:18px;
    background:var(--paper,#f3f6fb);
}

/* ===== اورراید یوبرمنو داخل شیت — راست‌چین و تک‌ستونه ===== */
.psk-category-sheet-body .ubermenu-nav{
    text-align:right !important;
    width:100% !important;
}
.psk-category-sheet-body .ubermenu-nav > .ubermenu-item {
    float: none !important;
    width: 100% !important;
    display: block !important;
    border-bottom: 1px solid #ccccccd9;
}
.psk-category-sheet-body .ubermenu-target{
    justify-content:flex-end !important;
    flex-direction:row-reverse !important;
    text-align:right !important;
    width:100% !important;
}
.psk-category-sheet-body .ubermenu-submenu{
    position:static !important;
    box-shadow:none !important;
    width:100% !important;
}
span.ubermenu-target-title.ubermenu-target-text {
    display: block !important;
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 10px !important;
}
/* قفل اسکرول پس‌زمینه وقتی شیت باز است */
body.psk-sheet-open{ overflow:hidden; }

/* روی دسکتاپ، پنل به‌جای تمام‌عرض، به سمت راست تراز شود */
@media(min-width:860px){
    .psk-category-sheet {
        max-width: 450px;
        right: 100px;
        left: auto;
        bottom: 10px;
        border-radius: 22px;
        max-height: 94vh;
    }
}
