/* iQ Mobile Menu */
.iqmm-nav {
    --iqmm-active: #2F9946;
    --iqmm-bg: #fff;
    --iqmm-text: #6b7280;
    --iqmm-height: 64px;
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: var(--iqmm-height);
    background: var(--iqmm-bg);
    border-top: 1px solid rgba(0,0,0,.08);
    box-sizing: border-box;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    font-family: inherit;
    display: none;
}

.iqmm-inner {
    width: 100%;
    max-width: 680px;
    min-height: var(--iqmm-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.iqmm-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-decoration: none !important;
    color: var(--iqmm-text) !important;
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, color .15s ease;
}

.iqmm-item:active { transform: scale(.94); }

.iqmm-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    line-height: 1;
}

.iqmm-label {
    max-width: 100%;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iqmm-item.iqmm-active,
.iqmm-item.iqmm-active .iqmm-label {
    color: var(--iqmm-active) !important;
}

.iqmm-item.iqmm-active .iqmm-icon {
    font-weight: 700;
}

.iqmm-cart-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--iqmm-active);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-sizing: border-box;
}

.iqmm-cart-count.iqmm-empty { display: none; }

@media (max-width: 767px) {
    .iqmm-nav { display: block; }
    body { padding-bottom: calc(var(--iqmm-height) + env(safe-area-inset-bottom)) !important; }
}

@media (min-width: 768px) {
    .iqmm-nav.iqmm-show-desktop { display: block; }
    body:has(.iqmm-nav.iqmm-show-desktop) { padding-bottom: calc(var(--iqmm-height) + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 360px) {
    .iqmm-label { font-size: 10px; }
    .iqmm-icon { font-size: 21px; }
}
