.mall-mobile {
    display: none;
    min-height: 100vh;
    background: #f5f6fa;
    color: #111827;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.mall-mobile__header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 100%);
}

.mall-mobile__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.mall-mobile__brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.mall-mobile__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mall-mobile__banner {
    margin: 0 12px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mall-mobile__banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.mall-mobile__banner-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background: #f8fafc;
    cursor: pointer;
}

.mall-mobile__banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-mobile__banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #4338ca;
    font-size: 22px;
    font-weight: 700;
}

.mall-mobile__banner-indicator {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
}

.mall-mobile__categories {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 14px 12px 0;
    padding: 12px 8px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.mall-mobile__category {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    padding: 0 8px 8px;
}

.mall-mobile__category-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.mall-mobile__category.is-active {
    color: #7c3aed;
    font-weight: 600;
}

.mall-mobile__category.is-active .mall-mobile__category-icon {
    background: rgba(124, 58, 237, 0.12);
}

.mall-mobile__category.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #7c3aed;
    transform: translateX(-50%);
}

.mall-mobile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 12px 24px;
}

.mall-mobile-card {
    position: relative;
    cursor: pointer;
    background: #fff;
    border-radius: 16px;
    padding: 14px 12px 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.mall-mobile-card__icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.mall-mobile-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mall-mobile-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-mobile-card__icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.mall-mobile-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.mall-mobile-card__desc {
    margin: 8px 0 0;
    min-height: 36px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mall-mobile-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 8px;
}

.mall-mobile-card__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #ef4444;
    font-weight: 700;
}

.mall-mobile-card__price-value {
    font-size: 22px;
    line-height: 1;
}

.mall-mobile-card__price-unit {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.mall-mobile-card__price-suffix {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.mall-mobile-card__add {
    border: none;
    background: transparent;
    color: #7c3aed;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.mall-mobile-card__add .el-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.mall-mobile-card__add .el-icon svg {
    width: 1em;
    height: 1em;
}

.mall-mobile__empty {
    grid-column: 1 / -1;
    padding: 48px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.mall-mobile__fab {
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 30;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #7c3aed;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    font-size: 22px;
}

.mall-mobile__tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eef2f7;
    backdrop-filter: blur(12px);
}

.mall-mobile__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 11px;
}

.mall-mobile__tab.is-active {
    color: #111827;
    font-weight: 600;
}

.mall-mobile__tab-icon {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .mall-desktop {
        display: none !important;
    }

    .mall-mobile {
        display: block;
    }
}

.mall-mobile-shell {
    display: none;
}

@media (max-width: 768px) {
    .mall-mobile-shell {
        display: block;
    }

    .mall-orders-page,
    .mall-profile-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 769px) {
    .mall-mobile {
        display: none !important;
    }
}
