/* Container for menu */
.muvt-menu-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    padding: 1rem;
}

.muvt-menu-section-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.muvt-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.muvt-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px dotted #ccc;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.muvt-menu-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.muvt-item-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    margin-right: 1rem;
    border-radius: 18px;
    overflow: hidden;
    background: #f3efe8;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.muvt-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.muvt-item-content {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.muvt-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.muvt-item-desc {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.muvt-labels {
    font-size: 0.8rem;
    background-color: #eee;
    color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
}

.muvt-item-price {
    font-weight: bold;
    font-size: 1.15rem;
    white-space: normal;
    text-align: right;
}

.muvt-price-line {
    display: block;
}

@media (max-width: 640px) {
    .muvt-menu-item {
        align-items: center;
    }

    .muvt-item-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 15px;
        margin-right: 0.85rem;
    }

    .muvt-item-content {
        padding-right: 1rem;
    }
}

/* Bottom Popup Styles */
.muvt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.muvt-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.muvt-popup-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Max width setup for larger screens but sticks to bottom */
    background: #fff;
    z-index: 99999;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Don't exceed screen height */
}

@media (min-width: 768px) {
    .muvt-popup-container {
        left: 50%;
        width: 100%;
        max-width: 600px; /* Limit width on desktop */
        margin-left: -300px; /* Center it */
    }
}

.muvt-popup-container.active {
    transform: translateY(0);
}

.muvt-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 2;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muvt-popup-image {
    position: relative;
    width: 100%;
    max-height: 40vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f1ece5;
}

.muvt-popup-image.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: muvt-popup-shimmer 1.2s infinite;
    z-index: 1;
}

.muvt-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.muvt-popup-image img.is-loading {
    opacity: 0;
}

@keyframes muvt-popup-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.muvt-popup-content {
    padding: 2rem;
    overflow-y: auto;
}

.muvt-popup-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.muvt-popup-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.muvt-popup-desc {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
