/* =====================================================
   Mama's Menu Manager — Frontend Styles
   ===================================================== */

.mmm-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Card ──────────────────────────────────────────── */
.mmm-item-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 20px 20px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.mmm-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ── Icon Column ───────────────────────────────────── */
.mmm-item-icon-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    min-width: 36px;
}

.mmm-type-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmm-type-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mmm-type-empty svg {
    color: #c8d4b0;
}

/* ── Content Column ────────────────────────────────── */
.mmm-item-content {
    flex: 1;
    min-width: 0;
}

.mmm-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.mmm-item-description {
    font-size: 0.82rem;
    color: #555;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.mmm-item-description-extra {
    font-size: 0.8rem;
    color: #7a9a4a;
    font-style: italic;
    margin: 4px 0 0 0;
}

.mmm-type-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.mmm-type-label {
    font-size: 0.72rem;
    background: #f0f5e8;
    color: #5a7a30;
    border-radius: 3px;
    padding: 2px 7px;
    font-weight: 500;
}

/* ── Image / Slider Column ─────────────────────────── */
.mmm-item-image-col {
    flex-shrink: 0;
    width: 260px;
    order: 3; /* content → slider → price */
}

.mmm-slider {
    position: relative;
    width: 260px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    user-select: none;
}

.mmm-slides {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.mmm-slide {
    flex: 0 0 260px;
    width: 260px;
}

.mmm-slide img {
    width: 260px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ── Arrows ─────────────────────────────────────────── */
.mmm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.38);
    transition: background 0.2s;
}
.mmm-arrow:hover {
    background: rgba(0, 0, 0, 0.62);
}
.mmm-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.mmm-arrow-prev { left: 7px; }
.mmm-arrow-next { right: 7px; }

/* ── Dots ───────────────────────────────────────────── */
.mmm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.mmm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.mmm-dot.active {
    background: #7a9a4a;
}

/* ── Price Column ──────────────────────────────────── */
.mmm-item-price-col {
    flex-shrink: 0;
    text-align: right;
    min-width: 110px;
    padding-top: 4px;
    order: 4;
}

/* Each price row block */
.mmm-price-row-block {
    text-align: right;
}

.mmm-price-first-row {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Only show separator when there's more than one price */
.mmm-price-first-row:only-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mmm-price-other-row {
    margin-top: 8px;
}

.mmm-price-size-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
}

.mmm-price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    line-height: 1.2;
}

.mmm-price-value--large {
    font-size: 1.35rem;
    font-weight: 700;
}

.mmm-price-desc {
    display: block;
    font-size: 0.72rem;
    color: #999;
    margin-top: 2px;
}

/* ── No items ──────────────────────────────────────── */
.mmm-no-items {
    color: #888;
    font-style: italic;
    padding: 16px 0;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 700px) {
    .mmm-item-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mmm-item-image-col {
        width: 100%;
        order: 1;
    }

    .mmm-slider,
    .mmm-slide {
        width: 100%;
        flex: 0 0 100%;
    }

    .mmm-slide img {
        width: 100%;
        height: 200px;
    }

    .mmm-item-price-col {
        text-align: left;
        width: 100%;
        order: 5;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .mmm-price-row-block {
        text-align: left;
    }
}
