/* Beban Bottom Bar Styles */

/* Main Container */
.beban-bottom-nav {
    display: none;
    position: fixed;
    left: 15px;
    right: 15px;
    height: 65px;
    z-index: 998;
    bottom: 15px;
    border-radius: 14px;
    background: #FFFFFF;
    padding: 7px 25px;
    box-shadow: 5px 2px 31px rgb(0 0 0 / 8%);
}

/* Navigation List */
.beban-nav-list {
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

/* Navigation Items */
.beban-nav-item {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Regular Navigation Links */
.beban-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    min-width: 50px;
    gap: 4px;
}

.beban-nav-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* Navigation Icons */
.beban-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beban-nav-icon svg {
    width: 100%;
    height: 100%;
}

/* Navigation Labels */
.beban-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    color: inherit;
}

/* Center Floating Button */
.beban-center-item {
    position: relative;
}

.beban-center-button {

}

.beban-center-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 80px rgb(210 210 224 / 35%), 0 6px 100px rgb(210 210 224 / 10%);
}

.beban-center-button .beban-nav-icon {
    font-size: 30px;
    top: -63px;
    right: -33px;
    padding: 6px 17px;
    position: absolute;
    border-radius: 19px;
    line-height: initial;
    background-color: #ffffff;
    box-shadow: 0 4px 66px rgb(210 210 224 / 25%), 0 4px 89px rgb(210 210 224 / 5%);
    display: flex
;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s 
ease;
    min-width: 65px;
    height: 65px;
    flex-direction: column;
}

.beban-center-button .beban-nav-label {
    font-size: 8px;
    margin-top: 2px;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .beban-bottom-nav {
        display: block;
    }
}




 
/* Animation Classes */
.beban-bottom-nav.fade-in {
    animation: bebanFadeIn 0.3s ease-out;
}

.beban-bottom-nav.fade-out {
    animation: bebanFadeOut 0.3s ease-out;
}

@keyframes bebanFadeIn {
    from {
        opacity: 0;
        transform: translateY(100px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes bebanFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px) translateZ(0);
    }
}


/* Cart Count Badge */
.beban-cart-count {
    right: 14px;
    bottom: -15px;
    padding: 0 9px;
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
    position: absolute;
    border-radius: 6px;
    display: inline-block;
    background: #3EB580;
    color: #fff;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 0 0 4px #3eb58020;
    font-family: 'IRANYekanXFNum';
    max-width: 35px;
    width: 35px;
    justify-content: center;
    align-items: center;
    display: flex;
}

/* Cart Count Animation */
.beban-cart-count.beban-updated {
    transform: scale(1.2);
    background: #28a745;
    animation: beban-bounce 0.6s ease;
}

@keyframes beban-bounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Cart Count with items */
.beban-cart-count.beban-has-items {
    background: #3EB580;
}

/* Cart Count Bounce Animation for updates */
.beban-cart-count.beban-bounce {
    animation: beban-cart-bounce-update 0.6s ease-in-out;
}

@keyframes beban-cart-bounce-update {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Show cart count even when empty - display 0 instead of hiding */
.beban-cart-count:empty {
    display: flex !important;
}

.beban-cart-count:empty::before {
    content: "0";
}

/* ========================================
   Mini Cart Styles
   ======================================== */

.beban-mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.beban-mini-cart.active {
    visibility: visible;
    opacity: 1;
}

.beban-mini-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.beban-mini-cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.beban-mini-cart.active .beban-mini-cart-content {
    transform: translateX(0);
}

/* Mini Cart Header */
.beban-mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eded;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 73px;
}

.beban-mini-cart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.beban-mini-cart-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beban-mini-cart-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Mini Cart Body */
.beban-mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    transition: opacity 0.3s ease;
}

.beban-mini-cart-body.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty Cart State */
.beban-mini-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    min-height: 300px;
}

/* Loading state for empty cart */
.beban-mini-cart-empty.loading {
    position: relative;
}

/* مخفی کردن محتوای empty cart هنگام loading */
.beban-mini-cart-empty.loading .beban-empty-cart-icon,
.beban-mini-cart-empty.loading .beban-empty-message,
.beban-mini-cart-empty.loading .beban-continue-shopping {
    opacity: 0;
    visibility: hidden;
}

/* نمایش spinner هنگام loading در empty cart */
.beban-mini-cart-empty.loading::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: 50%;
    margin: -16px 0 0 -16px;
    border: 3px solid #3EB580;
    border-radius: 50%;
    border-top-color: transparent;
    animation: beban-spinner 0.8s linear infinite;
}

.beban-empty-cart-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.beban-empty-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.beban-continue-shopping {
    background: #e80545;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.beban-continue-shopping:hover {
    background: #e80545;
    text-decoration: none;
    color: white !important;
}

/* Cart Items */
.beban-mini-cart-items {
    padding: 0;
}

.beban-mini-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background-color 0.2s ease;
}

.beban-mini-cart-item:hover {
    background: #f8f9fa;
}

.beban-item-image {
    width: 60px;
    height: 60px;
    margin-left: 15px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.beban-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.beban-item-details {
    flex: 1;
    min-width: 0;
}

.beban-item-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.beban-item-name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beban-item-name a:hover {
    color: #007BFF;
}

.beban-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.beban-item-quantity {
    font-weight: 400;
    font-family: 'IRANYekanXFNum';
}

.beban-item-price {
    font-weight: 600;
    color: #3EB580;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'IRANYekanXFNum';
}

.beban-item-price .beban-toman-icon {
    width: 13px;
    height: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.beban-remove-item {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-right: 10px;
    opacity: 0.6;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex
    ;
        justify-content: center;
        align-items: center;
}

.beban-remove-item:hover {
    background: rgba(255, 68, 68, 0.1);
    opacity: 1;
}

.beban-remove-item.loading {
    opacity: 1;
    pointer-events: none;
    position: relative;
}

/* مخفی کردن SVG هنگام loading */
.beban-remove-item.loading svg {
    opacity: 0;
    visibility: hidden;
}

.beban-remove-item.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -7px;
    border: 2px solid #ff4444;
    border-radius: 50%;
    border-top-color: transparent;
    animation: beban-spinner 0.6s linear infinite;
}

@keyframes beban-spinner {
    to { transform: rotate(360deg); }
}

/* Mini Cart Footer */
.beban-mini-cart-footer {
    border-top: 1px solid #ededed;
    padding: 20px;
    margin-top: auto;
    flex-shrink: 0;
}

.beban-cart-total {
    margin-bottom: 20px;
    font-family: 'IRANYekanXFNum';
}

.beban-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.beban-total-amount {
    color: #3EB580;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'IRANYekanXFNum';
    position: relative;
}

/* Loading state for total amount */
.beban-total-amount.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* مخفی کردن محتوای جمع کل هنگام loading */
.beban-total-amount.loading .beban-toman-icon,
.beban-total-amount.loading > * {
    opacity: 0;
    visibility: hidden;
}

/* نمایش spinner هنگام loading */
.beban-total-amount.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #3EB580;
    border-radius: 50%;
    border-top-color: transparent;
    animation: beban-spinner 0.6s linear infinite;
}
 
#beban-mini-cart .beban-cart-attributes{
    display: none !important;
}

/* مخفی کردن واحد پولی در مینی کارت و جایگزینی با آیکون */
#beban-mini-cart .woocommerce-Price-currencySymbol {
    display: inline-block;
    width: 13px;
    height: 12px;
    font-size: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="12" viewBox="0 0 13 12" fill="none"><path d="M2.32002 6.11782C2.63548 5.96391 2.87208 5.81 3.10867 5.57913C3.2664 5.34826 3.42413 5.11739 3.58186 4.88652C3.66073 4.57869 3.73959 4.27087 3.73959 3.96304H11.2318C11.705 3.96304 12.0993 3.80913 12.4147 3.57826C12.6513 3.27043 12.8091 2.88565 12.8091 2.34696V0.5H11.7838V2.27C11.7838 2.65478 11.5472 2.88565 11.1529 2.88565H3.73959V2.50087C3.73959 2.11609 3.66073 1.88522 3.58186 1.57739C3.58186 1.34652 3.42413 1.11565 3.2664 0.961739C3.10867 0.807826 2.95094 0.730869 2.79321 0.653913C2.55662 0.576956 2.32002 0.5 2.16229 0.5C1.84683 0.5 1.61024 0.576956 1.37364 0.653913C1.21591 0.807826 0.979316 0.884782 0.900451 1.11565C0.742721 1.26956 0.584991 1.42348 0.584991 1.65435C0.506126 1.88522 0.427261 2.11609 0.427261 2.34696C0.427261 2.57782 0.427261 2.80869 0.506126 3.03956C0.584991 3.27043 0.663856 3.42435 0.742721 3.57826C0.900451 3.65521 1.05818 3.80913 1.29478 3.88608C1.53137 3.96304 1.76797 3.96304 2.16229 3.96304H2.79321C2.79321 4.11695 2.71435 4.27087 2.71435 4.42478C2.63548 4.57869 2.47775 4.7326 2.39889 4.88652C2.32002 4.96347 2.16229 5.04043 1.9257 5.11739C1.76797 5.19434 1.53137 5.2713 1.29478 5.2713H0.269531V6.34869H1.29478C1.6891 6.27173 2.00456 6.19478 2.32002 6.11782ZM2.16229 2.88565C1.84683 2.88565 1.6891 2.88565 1.53137 2.73174C1.45251 2.65478 1.37364 2.50087 1.37364 2.27C1.37364 2.03913 1.45251 1.80826 1.53137 1.7313C1.6891 1.65435 1.84683 1.57739 2.08343 1.57739C2.32002 1.57739 2.47775 1.65435 2.63548 1.80826C2.79321 1.96217 2.79321 2.19304 2.79321 2.50087V2.96261H2.16229V2.88565Z" fill="%233EB580"/><path d="M10.4422 0.5H7.44531V1.42348H10.4422V0.5Z" fill="%233EB580"/><path d="M12.7298 8.50383C12.6509 8.27296 12.5721 8.11905 12.4143 7.96514C12.2566 7.81122 12.0989 7.65731 11.8623 7.58035C11.7046 7.5034 11.468 7.42644 11.2314 7.42644C10.9948 7.42644 10.7582 7.5034 10.5216 7.58035C10.285 7.65731 10.1273 7.81122 9.96953 7.96514C9.8118 8.11905 9.73293 8.27296 9.65407 8.50383C9.5752 8.7347 9.5752 8.96557 9.5752 9.19644V9.42731C9.5752 9.65818 9.49634 9.73513 9.41747 9.88905C9.25974 9.966 9.10201 10.043 8.86542 10.043H8.54996C8.39223 10.043 8.2345 9.966 8.15563 9.88905C8.07677 9.73513 7.9979 9.58122 7.9979 9.42731V5.7334H6.97266V9.58122C6.97266 9.88905 6.97266 10.1199 7.05152 10.2738C7.13039 10.4277 7.20925 10.5817 7.36698 10.7356C7.52471 10.8125 7.60358 10.9664 7.84017 10.9664C7.9979 11.0434 8.15563 11.0434 8.39223 11.0434H8.94428C9.10201 11.0434 9.33861 10.9664 9.49634 10.8895C9.65407 10.8125 9.89066 10.6586 9.96953 10.4277C10.1273 10.6586 10.285 10.8125 10.5216 10.8895C10.7582 10.9664 10.9948 11.0434 11.3102 11.0434C11.7834 11.0434 12.2566 10.8895 12.4932 10.5817C12.8087 10.2738 12.9664 9.81209 12.9664 9.2734C12.8875 8.96557 12.8087 8.7347 12.7298 8.50383ZM11.2314 9.966C10.9948 9.966 10.837 9.88905 10.7582 9.81209C10.5216 9.65818 10.5216 9.50427 10.5216 9.2734C10.5216 9.04253 10.6004 8.88861 10.6793 8.7347C10.7582 8.58079 10.9948 8.50383 11.2314 8.50383C11.468 8.50383 11.7046 8.58079 11.7834 8.7347C11.8623 8.88861 11.9412 9.04253 11.9412 9.2734C11.8623 9.73513 11.6257 9.966 11.2314 9.966Z" fill="%233EB580"/><path d="M4.92256 8.50364C4.92256 8.73451 4.92256 8.88842 4.8437 9.11929C4.76484 9.2732 4.68597 9.42712 4.60711 9.58103C4.44938 9.73494 4.29165 9.8119 4.13392 9.88886C3.97619 9.96581 3.73959 10.0428 3.42413 10.0428H2.71435C2.47775 10.0428 2.24116 10.0428 2.00456 9.96581C1.84683 9.8119 1.6891 9.73494 1.61024 9.58103C1.53137 9.42712 1.37364 9.2732 1.37364 9.11929C1.29478 8.96538 1.29478 8.73451 1.29478 8.50364V7.65712H0.269531V8.5806C0.269531 9.35016 0.506126 9.96581 0.900451 10.4276C1.29478 10.8893 1.84683 11.1202 2.63548 11.1202H3.42413C3.81846 11.1202 4.13392 11.0432 4.44938 10.8893C4.76484 10.7354 5.00143 10.5815 5.23803 10.3506C5.47462 10.1197 5.63235 9.8119 5.71122 9.50407C5.79008 9.19625 5.86894 8.88842 5.86894 8.50364V5.73321L4.8437 5.65625L4.92256 8.50364Z" fill="%233EB580"/><path d="M3.73962 7.42578H2.55664V8.50317H3.73962V7.42578Z" fill="%233EB580"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
    margin-right: 2px;
}

.beban-total-amount .beban-toman-icon {
    width: 13px;
    height: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.beban-cart-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.beban-view-cart-btn,
.beban-checkout-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.beban-view-cart-btn {
    background: #fff;
    border-style: solid;
    border-width: 1.5px 1.5px 1.5px 1.5px;
    border-color: #ededed;
    color: #333 !important;
}

.beban-view-cart-btn:hover,.beban-view-cart-btn:focus,.beban-view-cart-btn:active {
    background: #fff;
}

.beban-checkout-btn {
    background: #3EB580;
    color: #fff !important;
}

.beban-checkout-btn:hover,.beban-checkout-btn:focus,.beban-checkout-btn:active{
    background: #3EB580;
    color: #fff !important;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .beban-mini-cart-content,
    .beban-categories-overlay-content {
        max-width: 100%;
        width: 100%;
    }
    
    .beban-mini-cart-item {
        padding: 12px 15px;
    }
    
    .beban-item-image {
        width: 50px;
        height: 50px;
        margin-left: 12px;
    }
    
    .beban-mini-cart-header {
        padding: 15px;
    }
    
    .beban-mini-cart-footer {
        padding: 16px;
    }
}


/* جلوگیری از اسکرول صفحه وقتی overlay باز است */
body.beban-overlay-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Accessibility */
.beban-nav-link:focus,
.beban-center-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.beban-center-button.beban-cart-toggle,
.beban-center-button.beban-cart-toggle:hover,
.beban-center-button.beban-cart-toggle:focus,
.beban-center-button.beban-cart-toggle:active{
    border: none !important;
    padding: 0 !important;
    background-color: transparent !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .beban-bottom-nav {
        border: 2px solid #000;
    }
    
    .beban-nav-link {
        border: 1px solid transparent;
    }
    
    .beban-nav-link:hover,
    .beban-nav-link:focus {
        border-color: #000;
    }
}

@keyframes bebanSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bebanSlideRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Categories Overlay - مشابه Mini Cart */
.beban-categories-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.beban-categories-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Overlay background */
.beban-categories-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.beban-categories-overlay-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.beban-categories-overlay.active .beban-categories-overlay-content {
    transform: translateX(0);
}

.beban-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ededed;
}

.beban-categories-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.beban-categories-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.beban-categories-logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.beban-categories-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.beban-categories-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.beban-categories-close svg {
    width: 16px;
    height: 16px;
}

.beban-categories-close:hover svg path {
    stroke: #333;
}

/* Tab-based Categories Layout */
.beban-categories-tabs-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* Sidebar: Parent Categories Tabs (90px width) */
.beban-categories-sidebar {
    width: 90px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
}

.beban-categories-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.beban-category-tab {
    position: relative;
    list-style: none;
    width: 100%;
}

.beban-category-tab .beban-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
    min-height: 80px;
    border-radius: 0 !important;
}

.beban-category-tab.active .beban-tab-link {
    background: #ffffff;
    color: #e80545;
    border-right: 3px solid #e80545;
}

.beban-category-tab .beban-tab-link:hover {
    background: #fafafa;
    color: #333;
}

.beban-category-tab.active .beban-tab-link:hover {
    background: #ffffff;
    color: #e80545;
}

.beban-tab-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.beban-tab-icon img{
    width: 20px !important;
    height: 20px !important;
    opacity: 0.5;
}

.beban-tab-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.beban-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beban-tab-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: inherit;
}

/* Main Content: Subcategories (remaining width) */
.beban-categories-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    position: relative;
}

.beban-category-content-panel {
    display: none;
    padding: 20px 16px;
    animation: bebanFadeIn 0.3s ease;
}

.beban-category-content-panel.active {
    display: block;
}

/* Breadcrumb */
.beban-category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.beban-breadcrumb-link {
    font-size: 11px !important;
    color: #008eb2 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.beban-breadcrumb-link:hover {
    color: #e80545;
}

.beban-category-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: #999;
}

.beban-category-breadcrumb svg path {
    stroke: #008eb2 !important;
}

/* Category Title */
.beban-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

/* Subcategories List */
.beban-subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beban-subcategory-item {
    margin: 0;
    padding: 0;
}

.beban-subcategory-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.beban-subcategory-link:hover {
    color: #e80545;
    padding-right: 8px;
}

.beban-subcategory-link svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.beban-subcategory-link:hover svg {
    color: #e80545;
}

.beban-subcategory-link span {
    flex: 1;
}

/* No Subcategories */
.beban-no-subcategories {
    padding: 40px 0;
    text-align: center;
}

.beban-view-category-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #e80545;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.beban-view-category-btn:hover {
    background: #c8043a;
    color: #ffffff !important;
    text-decoration: none;
}

/* Accordion for Subcategories with Children */
.beban-subcategory-item.beban-has-sub-subcategories {
    border-bottom: 1px solid #f5f5f5;
}

.beban-subcategory-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beban-subcategory-accordion-header:hover {
    color: #e80545;
}

.beban-subcategory-accordion-header .beban-subcategory-name {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    flex: 1;
}

.beban-subcategory-accordion-header:hover .beban-subcategory-name {
    color: #e80545;
}

.beban-accordion-arrow {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
    /* SVG به صورت پیش‌فرض به سمت چپ است */
}

.beban-subcategory-item.beban-expanded .beban-accordion-arrow {
    transform: rotate(90deg); /* وقتی باز شد 90 درجه بچرخد تا به سمت پایین برود */
    color: #e80545;
}

.beban-subcategory-item.beban-expanded .beban-subcategory-accordion-header .beban-subcategory-name {
    color: #e80545;
}

/* Sub-subcategories Grid */
.beban-sub-subcategories-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
    padding: 16px 0 20px 0;
    animation: bebanSlideDown 0.3s ease;
}

.beban-subcategory-item.beban-expanded .beban-sub-subcategories-grid {
    display: grid;
}

/* Sub-subcategory Card */
.beban-sub-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.beban-sub-subcategory-card:hover {
    transform: translateY(-2px);
}

.beban-sub-subcategory-image-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.beban-sub-subcategory-card:hover .beban-sub-subcategory-image-wrapper {
    transform: scale(1.05);
    border-color: #e80545;
}

.beban-sub-subcategory-image {
    width: 60%;
    height: 60%;
}

.beban-sub-subcategory-name {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    text-align: center;
    line-height: 1.3;
    max-width: 64px;
    transition: color 0.2s ease;
}

.beban-sub-subcategory-card:hover .beban-sub-subcategory-name {
    color: #e80545;
}

/* Animation for accordion */
@keyframes bebanSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

/* Responsive adjustments for grid */
@media (max-width: 400px) {
    .beban-sub-subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
    }
    
    .beban-sub-subcategory-image-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .beban-sub-subcategory-name {
        font-size: 11px;
        max-width: 64px;
    }
}

