/* Mobile Bottom Navigation styles */

@media screen and (min-width: 768px) {
    #mbn-mobile-nav,
    #mbn-categories-overlay {
        display: none !important;
    }
}

#mbn-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    background: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

#mbn-mobile-nav .mbn-nav-item {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    border: none;
    background: transparent;
}

#mbn-mobile-nav .mbn-nav-item:focus {
    outline: none;
}

/* Dashicons replaced by Font Awesome – ensure <i> elements scale */
.mbn-icon i{
    font-size: 24px;
}

.mbn-icon{
    margin-bottom:2px;
}

.mbn-cart-count {
    display: inline-block;
    background: #e00048;
    color: #fff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 10px;
    margin-left: 4px;
}

/* === Overlay backdrop === */
#mbn-categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* semi-transparent backdrop */

    display: flex;           /* allow inner panel to sit left */
    justify-content: flex-start;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10000;
    overflow: hidden;        /* prevent whole page scrolling */
}

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

/* === Sidebar panel === */
.mbn-categories-inner {
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    padding: 60px 20px 20px;
    overflow-y: auto;

    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#mbn-categories-overlay.active .mbn-categories-inner {
    transform: translateX(0);
}

/* move close button inside panel */
.mbn-overlay-close {
    position: absolute;
    top: 8px;
    right: 10px;
}

.mbn-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mbn-cat-list li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.mbn-cat-list li:last-child {
    border-bottom: none;
}

.mbn-cat-list a {
    display: block;
    font-size: 17px;
    color: #000;
    text-decoration: none;
    padding: 1px !important;
}

.fw-bold{
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

body {
    /* Ensure content is not hidden behind the nav */
    padding-bottom: 60px;
} 