/* ==========================================================================
   Multi Level Mobile Menu Widget - CSS Styles
   ========================================================================== */

.mlm-wrapper {
    position: relative;
    font-family: 'Arsenal';
    box-sizing: border-box;
    display: none;
}



.mlm-wrapper *,
.mlm-wrapper *::before,
.mlm-wrapper *::after {
    box-sizing: border-box;
}

/* Trigger Button */
.mlm-trigger-wrapper {
    display: block;
    width: 100%;
}

.mlm-trigger-wrapper .mlm-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0px;
    background-color: #ffffff;
    color: #1f2937;
    border: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    line-height: 1.2;
}

.mlm-trigger-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.mlm-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Mobile Drawer Overlay */
.mlm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Backdrop Tint */
.mlm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

/* Panel Drawer */
.mlm-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mlm-overlay.mlm-active .mlm-panel {
    transform: translateX(0);
}

/* Header Area */
.mlm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px 24px;
    background: transparent;
    z-index: 10;
}

.mlm-back-btn,
.mlm-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #111827;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    padding: 0;
    outline: none;
}

.mlm-back-btn:hover,
.mlm-close-btn:hover {
    background-color: #e5e7eb;
}

.mlm-back-btn:active,
.mlm-close-btn:active {
    transform: scale(0.95);
}

.mlm-header-spacer {
    flex: 1;
}

/* Breadcrumbs Bar */
.mlm-breadcrumbs-bar {
    padding: 8px 24px 20px 24px;
    z-index: 10;
}

.mlm-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mlm-breadcrumb-item {
    color: #e06d00;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
}

.mlm-breadcrumb-item:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.mlm-breadcrumb-item.mlm-current {
    cursor: default;
    opacity: 1;
}

.mlm-breadcrumb-item.mlm-current:hover {
    text-decoration: none;
}

.mlm-breadcrumb-sep {
    color: #9ca3af;
    font-weight: 500;
    margin: 0 2px;
}

/* Panel Body & Slider */
.mlm-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mlm-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Panel Slides */
.mlm-panel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 24px 32px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.35s;
    background: transparent;
}

.mlm-panel-slide.mlm-panel-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    position: relative;
}

.mlm-panel-slide.mlm-panel-parent {
    transform: translateX(-30%);
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

/* Custom Scrollbar for Panel Slides */
.mlm-panel-slide::-webkit-scrollbar {
    width: 6px;
}

.mlm-panel-slide::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.mlm-panel-slide::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Item List */
.mlm-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mlm-item {
    margin: 0;
    padding: 0;
    border: none;
}

.mlm-slider-container .mlm-panel-slide .mlm-item-list .mlm-item .mlm-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: transparent;
    border: none;
    border-radius: 12px;
    text-align: left;
    text-decoration: none;
    color: #111827;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    outline: none;
}

.mlm-item-btn:hover {
    background-color: #f9fafb;
    border:none !important;
}

.mlm-item-btn:active {
    transform: scale(0.99);
}

.mlm-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.mlm-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mlm-item-icon img,
.mlm-item-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mlm-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    white-space: normal;
    word-break: break-word;
    font-family: 'Arsenal';
}

.mlm-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 12px;
    color: #000;
    transition: transform 0.2s ease;
}

.mlm-item-btn:hover .mlm-arrow-icon {
    transform: translateX(3px);
}

.mlm-item-btn:hover .mlm-arrow-icon svg{
    stroke: #000 !important;
}

/* Prevent body scrolling when menu modal is active */
body.mlm-body-locked {
    overflow: hidden !important;
}

@media (max-width: 767px){
    .mlm-wrapper {
        display: block;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mlm-panel {
        max-width: 100%;
    }

    .mlm-header {
        padding: 16px 16px 8px 16px;
    }

    .mlm-breadcrumbs-bar {
        padding: 8px 16px 16px 16px;
    }

    .mlm-panel-slide {
        padding: 0 16px 24px 16px;
    }
}
