/* WebEdge Mobile Bottom Menu — style.css */

body.webedge-mm-noscroll {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}

#webedge-mm-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--mm-bg, #ffffff);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
    height: 60px;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 765px) {
    #webedge-mm-nav {
        display: flex;
    }
}

.webedge-mm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    text-decoration: none;
    color: var(--mm-inactive, #999999);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0 4px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.webedge-mm-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.webedge-mm-item span {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.webedge-mm-item.webedge-mm-active {
    color: #f5c518;
}

.webedge-mm-item.webedge-mm-active svg {
    transform: translateY(-2px);
}

.webedge-mm-item:active {
    transform: scale(0.92);
}

.webedge-mm-cart-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.webedge-mm-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--mm-accent, #e53935);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1.5px solid var(--mm-bg, #ffffff);
    transition: transform 0.2s ease;
}

.webedge-mm-badge.webedge-mm-hidden {
    display: none;
}

@keyframes mm-badge-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.webedge-mm-badge.webedge-mm-pop {
    animation: mm-badge-pop 0.3s ease;
}

/* =============================================
   CATEGORY DRAWER — শুধু mobile এ কাজ করবে
   Desktop এ drawer ও overlay সম্পূর্ণ hidden
   ============================================= */

#webedge-mm-cat-overlay {
    display: none;
}

#webedge-mm-cat-drawer {
    display: none;
}

@media (max-width: 765px) {
    #webedge-mm-cat-drawer {
        display: block;
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 99999;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #webedge-mm-cat-drawer.webedge-mm-drawer-open {
        transform: translateY(0);
    }

    #webedge-mm-cat-overlay.webedge-mm-overlay-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 99998;
    }
}

.webedge-mm-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.webedge-mm-drawer-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.webedge-mm-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.webedge-mm-cat-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 12px;
}

.webedge-mm-cat-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.webedge-mm-cat-list li:last-child a {
    border-bottom: none;
}

.webedge-mm-cat-list li a:hover,
.webedge-mm-cat-list li a:active {
    background: #fffbe6;
    color: #f5c518;
}

.webedge-mm-cat-list li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #f5c518;
}

.webedge-mm-cat-loading {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 13px;
}
