.rg-modern-sidebar {
    --rg-accent: var(--color-brand, #ff6b35);
    --rg-accent-rgb: var(--color-brand-rgb, 255, 107, 53);
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%) !important;
    border: 1px solid #e7ebf2;
    border-radius: 18px !important;
    box-shadow: 0 10px 34px rgba(24, 39, 75, .07);
    margin-bottom: 22px !important;
    overflow: hidden;
    padding: 18px !important;
    position: relative;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.rg-modern-sidebar::before {
    background: linear-gradient(90deg, var(--rg-accent), rgba(var(--rg-accent-rgb), .18) 62%, transparent);
    content: "";
    height: 3px;
    left: 18px;
    position: absolute;
    right: 18px;
    top: 0;
}

.rg-modern-sidebar:hover {
    border-color: rgba(var(--rg-accent-rgb), .28);
    box-shadow: 0 16px 42px rgba(24, 39, 75, .11);
    transform: translateY(-2px);
}

.rg-modern-sidebar .widget-header {
    align-items: center;
    display: flex;
    margin-bottom: 14px !important;
    min-height: 28px;
    padding: 0 0 12px !important;
}

.rg-modern-sidebar .widget-header::before {
    background: rgba(var(--rg-accent-rgb), .1);
    border: 1px solid rgba(var(--rg-accent-rgb), .14);
    border-radius: 8px;
    content: "";
    height: 26px;
    margin-right: 9px;
    width: 5px;
}

.rg-modern-sidebar .widget-header::after {
    background: linear-gradient(90deg, var(--rg-accent), rgba(var(--rg-accent-rgb), .2));
    border-radius: 99px;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 100%;
}

.rg-modern-sidebar .widget-header .bt-1 {
    display: none !important;
}

.rg-modern-sidebar .widget-title {
    color: #172033;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.3;
    margin: 0 !important;
    text-transform: uppercase;
}

.rg-category-widget .custome-checkbox {
    margin: 0 !important;
    max-height: 350px !important;
    padding-right: 7px;
}

.rg-category-widget .ps-list--categories {
    display: grid;
    gap: 4px;
}

.rg-category-widget .ps-list--categories > li {
    border: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.rg-category-widget .ps-list--categories > li > a {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #3a455a;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 9px;
    line-height: 1.35;
    min-height: 36px;
    padding: 7px 28px 7px 7px;
    position: relative;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.rg-category-widget .ps-list--categories > li > a::before {
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--rg-accent-rgb), .15), rgba(var(--rg-accent-rgb), .06));
    border: 1px solid rgba(var(--rg-accent-rgb), .14);
    border-radius: 8px;
    color: var(--rg-accent);
    content: "›";
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 17px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    line-height: 1;
    min-width: 24px;
    position: static !important;
    width: 24px;
}

.rg-category-widget .ps-list--categories > li > a:hover,
.rg-category-widget .ps-list--categories > li.current-menu-item > a {
    background: #fff7f3;
    border-color: rgba(var(--rg-accent-rgb), .22);
    color: var(--rg-accent);
    transform: translateX(2px);
}

.rg-category-widget .ps-list--categories > li.menu-item-has-children > a::after {
    content: none;
    display: none;
}

.rg-category-widget .ps-list--categories > li > .sub-toggle {
    align-items: center;
    background: #f4f6f9;
    border: 1px solid #e7ebf1;
    border-radius: 7px;
    color: #8e98a8;
    display: flex;
    font-size: 0;
    height: 23px;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 7px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    width: 23px;
    z-index: 2;
}

.rg-category-widget .ps-list--categories > li > .sub-toggle::before {
    content: "+";
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.rg-category-widget .ps-list--categories > li > .sub-toggle i {
    display: none;
}

.rg-category-widget .ps-list--categories > li:hover > .sub-toggle {
    background: rgba(var(--rg-accent-rgb), .1);
    border-color: rgba(var(--rg-accent-rgb), .18);
    color: var(--rg-accent);
}

.rg-modern-sidebar .ps-scrollbar-y-rail {
    background: #f0f2f6 !important;
    border-radius: 99px;
    opacity: 1 !important;
    right: 0 !important;
    width: 4px !important;
}

.rg-modern-sidebar .ps-scrollbar-y {
    background: linear-gradient(180deg, var(--rg-accent), rgba(var(--rg-accent-rgb), .48)) !important;
    border-radius: 99px;
    right: 0 !important;
    width: 4px !important;
}

.rg-featured-widget .single-post {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 13px;
    display: flex;
    gap: 11px;
    margin: 0 0 9px;
    min-height: 78px;
    padding: 8px 25px 8px 8px;
    position: relative;
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.rg-featured-widget .single-post::after {
    color: #b5bdc9;
    content: "›";
    font-size: 20px;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    transition: color .2s ease, transform .2s ease;
}

.rg-featured-widget .single-post:hover {
    background: #fff;
    border-color: rgba(var(--rg-accent-rgb), .24);
    box-shadow: 0 8px 20px rgba(24, 39, 75, .08);
    transform: translateY(-2px);
}

.rg-featured-widget .single-post:hover::after {
    color: var(--rg-accent);
    transform: translate(2px, -50%);
}

.rg-featured-widget .single-post:last-child {
    margin-bottom: 0;
}

.rg-featured-widget .single-post .image {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(24, 39, 75, .1);
    flex: 0 0 58px;
    height: 58px;
    margin: 0;
    overflow: hidden;
    width: 58px;
}

.rg-featured-widget .single-post .image a {
    display: block;
    height: 100%;
}

.rg-featured-widget .single-post .image img {
    border-radius: 10px;
    height: 58px;
    object-fit: cover;
    transition: transform .3s ease;
    width: 58px;
}

.rg-featured-widget .single-post:hover .image img {
    transform: scale(1.08);
}

.rg-featured-widget .single-post .content {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
}

.rg-featured-widget .single-post h5 {
    display: -webkit-box;
    font-size: 11px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    margin: 0 0 4px;
    overflow: hidden;
}

.rg-featured-widget .single-post h5 a {
    color: #253047;
}

.rg-featured-widget .single-post h5 a:hover {
    color: var(--rg-accent);
}

.rg-featured-widget .price {
    align-items: baseline;
    color: var(--rg-accent);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 800;
    gap: 4px;
    line-height: 1.2;
    margin: 0 !important;
}

.rg-featured-widget .old-price {
    color: #a5adba !important;
    font-size: 9px !important;
    font-weight: 500 !important;
}

.rg-featured-widget .rating_wrap {
    line-height: 1;
    margin-top: 3px;
}

.rg-featured-widget .rating {
    transform: scale(.78);
    transform-origin: left center;
}

.rg-brand-widget .categor-list {
    display: grid;
    gap: 6px;
}

.rg-brand-widget .categor-list li {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    color: #7d8798 !important;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin: 0;
    min-height: 37px;
    padding: 7px 8px 7px 11px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rg-brand-widget .categor-list li:hover {
    background: #fff;
    border-color: rgba(var(--rg-accent-rgb), .24);
    box-shadow: 0 6px 16px rgba(24, 39, 75, .07);
    transform: translateX(2px);
}

.rg-brand-widget .categor-list li a {
    color: #374258;
    flex: 1;
    font-size: 12px;
    font-weight: 650;
}

.rg-brand-widget .categor-list li:hover a {
    color: var(--rg-accent);
}

.rg-brand-widget .rg-brand-count {
    align-items: center;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 99px;
    color: #8b95a6;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 23px;
    justify-content: center;
    min-width: 28px;
    padding: 0 7px;
}

.rg-brand-widget .categor-list li:hover .rg-brand-count {
    background: rgba(var(--rg-accent-rgb), .09);
    border-color: rgba(var(--rg-accent-rgb), .15);
    color: var(--rg-accent);
}

@media (max-width: 1199px) {
    .rg-modern-sidebar {
        padding: 15px !important;
    }

    .rg-modern-sidebar::before {
        left: 15px;
        right: 15px;
    }

    .rg-featured-widget .single-post {
        gap: 8px;
        padding-left: 7px;
    }

    .rg-featured-widget .single-post .image,
    .rg-featured-widget .single-post .image img {
        flex-basis: 52px;
        height: 52px;
        width: 52px;
    }
}

@media (max-width: 991px) {
    .rg-modern-sidebar {
        border-radius: 15px !important;
        padding: 16px !important;
    }

    .rg-category-widget .custome-checkbox {
        max-height: 300px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-modern-sidebar,
    .rg-modern-sidebar *,
    .rg-modern-sidebar *::before,
    .rg-modern-sidebar *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
