#menu-category {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9998 !important;
    display: none !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    justify-content: unset !important;
    align-items: unset !important;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 !important;
}

#menu-category.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

#menu-category .content.category-content {
    max-width: 100% !important;
    margin: 0 auto !important;
}

#btn-menu-category {
    cursor: pointer !important;
}

@media (max-width: 1000px) {
    #btn-menu-category {
        display: none !important;
    }
    #btn-menu-mob {
        display: flex !important;
    }
}

@media (min-width: 1001px) {
    #btn-menu-category {
        display: flex !important;
    }
    #btn-menu-mob {
        display: none !important;
    }
}

.categoty-menu-list-item {
    cursor: pointer !important;
}

@media (min-width: 1001px) {
    #menu-category.active {
        position: fixed !important;
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    #menu-category .content.category-content {
        padding-top: 24px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 24px !important;
        max-height: calc(9 * 64px + 32px + 48px) !important;
        height: auto !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        position: relative !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    .categoty-menu-list-wrapper {
        max-height: calc(9 * 64px) !important;
        height: calc(9 * 64px) !important;
        overflow-y: auto !important;
        flex-shrink: 0;
    }

    .top-menu-categ-data-wrap {
        max-height: calc(9 * 64px) !important;
        height: calc(9 * 64px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1;
    }

    .top-menu-categ-data-items-wrap {
        max-height: calc(9 * 64px) !important;
        height: 100% !important;
        overflow-y: auto !important;
    }

    #menu-category .content.category-content {
        position: relative !important;
    }

    .menu-category-close-btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        margin: 0 !important;
    }
}

@media (max-width: 1000px) {
    #menu-category {
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        position: fixed !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #menu-category.active {
        z-index: 10000 !important;
    }

    #menu-category .content.category-content {
        padding-top: 0 !important;
        padding-bottom: 24px;
        padding-left: 0;
        padding-right: 0;
        height: 100vh;
        overflow-y: auto;
        margin: 0 !important;
    }
    
    #menu-category .cat-mob-menu {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

body:has(#menu-category.active) > .main:not(#menu-category),
body:has(#menu-category.active) .main > *:not(#menu-category),
body:has(#menu-category.active) .header-menu-fixed:not(#menu-category),
body:has(#menu-category.active) .container:not(#menu-category),
body:has(#menu-category.active) .content:not(#menu-category) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

body:has(#menu-category.active)::before,
body:has(#menu-category.active)::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.categoty-menu-list-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.categoty-menu-list-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.categoty-menu-list-wrapper::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.categoty-menu-list-wrapper::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.top-menu-categ-data-items-wrap {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.top-menu-categ-data-items-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.top-menu-categ-data-items-wrap::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.top-menu-categ-data-items-wrap::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

@media (min-width: 1001px) {
    .content.category-content {
        overflow: hidden;
    }
}

.content.category-content > * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content.category-content > *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.content.category-content > *::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.content.category-content > *::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.sub-panel-group {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sub-panel-group::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.sub-panel-group::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.sub-panel-group::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.top-menu-categ-data-wrap {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-menu-categ-data-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.top-menu-categ-data-wrap::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.top-menu-categ-data-wrap::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

/* Desktop megamenu: hint that the right subpanel can be scrolled down */
@media (min-width: 1001px) {
    .top-menu-categ-data-wrap.category-sub-panel.active {
        position: relative;
    }

    .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint::before {
        content: "";
        position: sticky;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: 100%;
        height: 38px;
        margin-top: -38px;
        pointer-events: none;
        z-index: 4;
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--bg-menu, #fff) 80%);
    }

    .dark .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint::before,
    [data-theme="dark"] .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint::before {
        background: linear-gradient(180deg, rgba(31,31,31,0) 0%, var(--bg-menu, #242424) 80%);
    }

    .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 10px;
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--style-color-main, #dc35ff);
        border-bottom: 2px solid var(--style-color-main, #dc35ff);
        transform: translateX(-50%) rotate(45deg);
        pointer-events: none;
        z-index: 5;
        opacity: 0.95;
        animation: menu-scroll-hint-bounce 1.2s ease-in-out infinite;
    }

    .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint.scroll-end::before,
    .top-menu-categ-data-wrap.category-sub-panel.active.has-scroll-hint.scroll-end::after {
        opacity: 0;
        visibility: hidden;
        animation: none;
    }
}

@keyframes menu-scroll-hint-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    50% {
        transform: translateX(-50%) translateY(5px) rotate(45deg);
    }
}

.menu-category-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    transition: opacity 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.menu-category-close-btn:hover {
    opacity: 0.7 !important;
}

.menu-category-close-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2 !important;
}

.accordion-body .fcs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

.top-menu-categ-data-item.accordion-item {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    align-self: flex-start !important;
}

@media (min-width: 1001px) {
    .top-menu-categ-data-items-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 48px !important;
        align-content: flex-start !important;
    }
    
    .top-menu-categ-data-item.accordion-item {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
}

.accordion-body .top-menu-sub-third {
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}

.sub-menu-title.accordion-title {
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

.sub-menu-title.accordion-title a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 18px !important;
    max-height: 18px !important;
}

@media (min-width: 1001px) {
    .accordion-body {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 16px !important;
        width: 100% !important;
        align-content: flex-start !important;
    }
    
    .accordion-body .fcs {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .accordion-body .top-menu-sub-third {
        max-width: 200px !important;
        width: 200px !important;
    }
    
    .accordion-body .top-menu-product-item {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
}

.top-menu-product-item {
    padding: 4px 0;
}

.top-menu-product-name {
    font-size: 14px;
    line-height: 1.4;
    color: inherit;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
    max-width: 100%;
}

.top-menu-product-name:hover {
    color: var(--style-color-main, #DC35FF);
}

.top-menu-all-products-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 1001px) {
    .top-menu-product-item {
        max-width: 200px;
    }
    
    .sub-menu-title.accordion-title {
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }
}
