body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 70px; }
.m-header { background: var(--primary); padding: 15px; color: white; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.m-header a { color: white; text-decoration: none; font-size: 9px; }
.m-logo { font-weight: bold; font-size: 9px; }
.m-cart { position: relative; }
.m-badge { position: absolute; top: -8px; right: -8px; background: #dc3545; color: white; border-radius: 50%; padding: 2px 6px; font-size: 10px; }

/* Banner Mobile */
.m-banner {
    position: relative; /* Crucial for positioning the overlay */
    width: 100%;
    min-height: 180px; /* Ensure a minimum height for the banner area */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Fallback background */
}
.m-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire banner area */
    display: block;
}
.m-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    background: transparent; /* Overlay 100% transparente */
    color: white;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}
.m-banner-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.m-banner-btn {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.m-banner-btn:hover {
    opacity: 0.9;
}
.m-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666;
    font-size: 18px;
    font-weight: bold;
}

/* Grid Menu */
.m-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}
.m-item {
    background: var(--white);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.m-item:active {
    transform: scale(0.95);
}
.m-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

/* Sections and Products */
.m-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 5px 15px;
    font-weight: bold;
    font-size: 16px;
}
.m-link-sm {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.m-products {
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.m-product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.m-p-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #f9f9f9;
    text-decoration: none;
}
.m-p-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.m-p-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.m-p-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
}
.m-p-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 10px;
}
.m-p-actions {
    display: flex;
    gap: 8px;
}
.m-p-btn, .m-p-btn-cart {
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--primary);
}
.m-p-btn {
    flex-grow: 1;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}
.m-p-btn-cart {
    background: var(--white);
    color: var(--primary);
}

/* Bottom Navigation */
.m-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
.m-nav-item { 
    position: relative;
    text-decoration: none;
    color: #999;
    text-align: center;
    font-size: 10px;
    flex: 1;
}
.m-nav-item.active {
    color: var(--primary);
}
.m-nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 3px;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.nav-notification-dot { 
    position: absolute; 
    top: 5px; 
    left: 50%; 
    margin-left: 5px; 
    width: 8px; 
    height: 8px; 
    background-color: #dc3545; 
    border-radius: 50%; 
    border: 1px solid white; 
    animation: pulse 2s infinite; 
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}
.toast.show {
    visibility: visible;
    opacity: 1;
}
.toast i {
    margin-right: 8px;
    color: #28a745;
}