/* ==========================================================================
   Restaurant Menu Tabs – Public Stylesheet
   Uses CSS custom properties injected per-shortcode instance.
   Compatible with Elementor Nested Tabs markup.
   ========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.rmt-wrapper {
    font-family: inherit;
    width: 100%;
}

/* ── Tab Navigation ───────────────────────────────────────────────────────── */
.rmt-wrapper .e-n-tabs-heading,
.rmt-wrapper .rmt-tabs-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0 0 0 0;
    padding: 0;
    background: var(--rmt-tab-bg, #1a1a1a);
    border-radius: 6px 6px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rmt-wrapper .e-n-tab-title,
.rmt-wrapper .rmt-tab-title {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--rmt-tab-text, #aaaaaa);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.rmt-wrapper .e-n-tab-title:hover,
.rmt-wrapper .rmt-tab-title:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.rmt-wrapper .e-n-tab-title[aria-selected="true"],
.rmt-wrapper .rmt-tab-title.rmt-active {
    background: var(--rmt-tab-active-bg, #c8922a);
    color: var(--rmt-tab-active-text, #ffffff);
    border-bottom-color: var(--rmt-tab-active-bg, #c8922a);
}

/* ── Tab Panels ───────────────────────────────────────────────────────────── */
.rmt-tabs-panels {
    border: 1px solid var(--rmt-card-border, #e8e8e8);
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #fafafa;
}

.rmt-tab-panel {
    display: none;
    padding: 24px;
    animation: rmtFadeIn 0.25s ease;
}

.rmt-tab-panel.rmt-active {
    display: block;
}

@keyframes rmtFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Items Grid ───────────────────────────────────────────────────────────── */
.rmt-items-grid {
    display: grid;
    gap: var(--rmt-card-gap, 16px);
    grid-template-columns: repeat(var(--rmt-columns, 1), 1fr);
}

/* ── Menu Item Card ───────────────────────────────────────────────────────── */
.rmt-item.menu-item {
    background: var(--rmt-card-bg, #ffffff);
    border: 1px solid var(--rmt-card-border, #e8e8e8);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rmt-item.menu-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ── Item Image ───────────────────────────────────────────────────────────── */
.rmt-item-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.rmt-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rmt-item.menu-item:hover .rmt-item-image img {
    transform: scale(1.04);
}

/* ── Item Body ────────────────────────────────────────────────────────────── */
.rmt-item-body {
    padding: var(--rmt-card-padding, 20px);
}

/* Single-column: side-by-side layout matching original markup */
.rmt-items-grid.rmt-cols-1 .rmt-item-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: space-between;
}

/* Multi-column: stacked layout */
.rmt-items-grid.rmt-cols-2 .rmt-item-body,
.rmt-items-grid.rmt-cols-3 .rmt-item-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Left: title + desc ───────────────────────────────────────────────────── */
.rmt-item .menu-left {
    flex: 1;
}

.rmt-item .menu-title,
.rmt-item .rmt-title {
    font-size: var(--rmt-title-size, 18px);
    font-weight: 700;
    color: var(--rmt-title-color, #111111);
    margin: 0 0 6px 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rmt-item .menu-desc,
.rmt-item .rmt-desc {
    font-size: var(--rmt-desc-size, 14px);
    color: var(--rmt-desc-color, #555555);
    margin: 0;
    line-height: 1.6;
}

/* ── Right: prices ────────────────────────────────────────────────────────── */
.rmt-item .menu-right,
.rmt-item .rmt-prices {
    text-align: right;
    flex-shrink: 0;
    max-width: 240px;
}

.rmt-items-grid.rmt-cols-2 .rmt-item .menu-right,
.rmt-items-grid.rmt-cols-3 .rmt-item .menu-right {
    text-align: left;
    max-width: 100%;
}

.rmt-item .price,
.rmt-item .rmt-price-row {
    font-size: var(--rmt-price-size, 13px);
    color: var(--rmt-price-color, #c8922a);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.rmt-badge {
    display: inline-block;
    background: var(--rmt-tab-active-bg, #c8922a);
    color: var(--rmt-tab-active-text, #ffffff);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.rmt-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rmt-items-grid {
        grid-template-columns: 1fr !important;
    }

    .rmt-items-grid.rmt-cols-1 .rmt-item-body {
        flex-direction: column;
    }

    .rmt-item .menu-right,
    .rmt-item .rmt-prices {
        text-align: left;
        max-width: 100%;
    }

    .rmt-wrapper .e-n-tab-title,
    .rmt-wrapper .rmt-tab-title {
        padding: 10px 14px;
        font-size: 12px;
    }

    .rmt-tab-panel {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .rmt-wrapper .rmt-tabs-heading {
        border-radius: 4px 4px 0 0;
    }
}
