/* Restaurant Menu Manager — Frontend Styles */

:root {
    --rmm-primary:       #c0392b;
    --rmm-primary-light: #e74c3c;
    --rmm-price-color:   #27ae60;
    --rmm-text:          #2c3e50;
    --rmm-text-light:    #6b7280;
    --rmm-border:        #e5e7eb;
    --rmm-bg-item:       #ffffff;
    --rmm-bg-category:   #fafafa;
    --rmm-radius:        8px;
    --rmm-shadow:        0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Wrapper ── */
.rmm-menu {
    font-family: inherit;
    color: var(--rmm-text);
    max-width: 900px;
}

/* ── Category ── */
.rmm-category {
    margin-bottom: 3rem;
}

.rmm-category__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rmm-cat-title-color);
    border-bottom: 2px solid var(--rmm-cat-title-color);
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
}

.rmm-category__description {
    color: var(--rmm-text-light);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* ── Item list ── */
.rmm-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Grid layout ── */
.rmm-menu--grid .rmm-item-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .rmm-menu--grid .rmm-item-list { grid-template-columns: 1fr; }
}

/* ── Single item ── */
.rmm-item {
    display: flex;
    gap: 1rem;
    background: var(--rmm-bg-item);
    border: 1px solid var(--rmm-border);
    border-radius: var(--rmm-radius);
    padding: 1rem;
    box-shadow: var(--rmm-shadow);
    transition: box-shadow 0.15s ease;
}

.rmm-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ── Item image ── */
.rmm-item__image {
    flex: 0 0 100px;
}

.rmm-item__img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: calc(var(--rmm-radius) - 2px);
    display: block;
}

/* ── Item body ── */
.rmm-item__body {
    flex: 1;
    min-width: 0;
}

.rmm-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.rmm-item__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--rmm-text);
    line-height: 1.3;
}

.rmm-item__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmm-price-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.rmm-item__description {
    font-size: 0.875rem;
    color: var(--rmm-text-light);
    margin: 0 0 0.4rem;
    line-height: 1.5;
}

.rmm-item__allergens {
    font-size: 0.8rem;
    color: var(--rmm-text-light);
    margin: 0;
}

.rmm-allergen-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* ── Empty state ── */
.rmm-empty {
    color: var(--rmm-text-light);
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .rmm-item {
        flex-direction: column;
    }

    .rmm-item__image {
        flex: none;
    }

    .rmm-item__img {
        width: 100%;
        height: 160px;
    }

    .rmm-category__name {
        font-size: 1.25rem;
    }
}
