/* ==========================================================================
   Mobile Dual-Pane Menu (Shopee/Lazada Style)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.mega-mobile__body {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 120px);
    /* Adjust based on header/search height */
    overflow: hidden;
    background: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Left Sidebar (Navigation Tabs)
   -------------------------------------------------------------------------- */
.mega-mobile__sidebar {
    width: 32%;
    /* Fixed width for tabs */
    min-width: 100px;
    max-width: 140px;
    background: #fff;
    overflow-y: auto;
    border-right: 1px solid #eee;
    padding-bottom: 20px;
}

.mega-mobile__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    height: 80px;
    /* Fixed height for uniformity */
}

.mega-mobile__tab--active {
    background: #fff;
    color: var(--mh-red);
    font-weight: 600;
}

.mega-mobile__tab--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mh-red);
}

.mega-mobile__tab-icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: inherit;
}

.mega-mobile__tab-text {
    font-size: 11px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Right Content Area (Panes)
   -------------------------------------------------------------------------- */
.mega-mobile__content {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    position: relative;
    padding: 0;
}

.mega-mobile__pane {
    display: none;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

.mega-mobile__pane--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Pane Content Styling
   -------------------------------------------------------------------------- */
.mega-mobile__pane-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-mobile__pane-link-all {
    font-size: 12px;
    color: var(--mh-red);
    font-weight: 600;
}

/* List Items (for Categories/Stores) */
.mega-mobile__list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    -webkit-tap-highlight-color: rgba(236, 32, 40, 0.2);
    tap-highlight-color: rgba(236, 32, 40, 0.2);
}

.mega-mobile__list-item:active,
.mega-mobile__list-item:focus {
    color: var(--mh-red, #EC2028);
}

.mega-mobile__list-item:active .mega-mobile__list-icon,
.mega-mobile__list-item:active img.mega-mobile__list-icon,
.mega-mobile__list-item:active i.mega-mobile__list-icon,
.mega-mobile__list-item:focus .mega-mobile__list-icon,
.mega-mobile__list-item:focus img.mega-mobile__list-icon,
.mega-mobile__list-item:focus i.mega-mobile__list-icon {
    color: var(--mh-red, #EC2028);
}

.mega-mobile__list-item:active .mega-mobile__list-icon-ph,
.mega-mobile__list-item:focus .mega-mobile__list-icon-ph {
    color: var(--mh-red, #EC2028);
}

.mega-mobile__list-item:last-child {
    border-bottom: none;
}

.mega-mobile__list-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 4px;
}

/* FontAwesome category icons - match All Stores Phosphor size */
i.mega-mobile__list-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mega-mobile__list-icon-ph {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    color: #999;
}

.mega-mobile__list-icon-ph--transparent {
    background: transparent;
    color: #444;
    /* Darker grey to match other icons */
}

.mega-mobile__list-icon-ph--transparent i {
    font-size: 16px;
}

/* Grid Items (for Groceries/Campaigns) */
.mega-mobile__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 15px;
}

.mega-mobile__grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    transition: box-shadow 0.2s;
}

.mega-mobile__grid-item:active {
    background: #f9f9f9;
}

.mega-mobile__grid-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f5f5f5;
}

.mega-mobile__grid-text {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
    height: 32px;
    /* Limit to 2 lines approx */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Account/User Section (Special Styling) */
.mega-mobile__user-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mega-mobile__user-avatar {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--mh-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mega-mobile__user-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.mega-mobile__user-email {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.mega-mobile__user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-mobile__user-btn {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.mega-mobile__user-btn--highlight {
    background: var(--mh-red);
    color: #fff;
    border-color: var(--mh-red);
}

.mega-mobile__user-btn i {
    margin-right: 6px;
}