/* ============================================================
   RTR MENU — FRONT-END STYLES
   ============================================================ */

/* ---- Sticky tab bar ---- */
.rtr-tabs-outer {
    position: sticky;
    top: var(--rtr-header-offset, 0px);
    z-index: 148;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    /* JS will set the correct top offset via inline style */
}

/* Hide tab bar when mobile nav is open (theme adds .mobile-nav to body) */
body.mobile-nav .rtr-tabs-outer {
    z-index: 0;
    visibility: hidden;
}

.rtr-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
    gap: 0;
}

.rtr-tabs::-webkit-scrollbar { display: none; }

.rtr-tab {
    flex-shrink: 0;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 18px 13px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.rtr-tab:hover { color: #c9a96e; }
.rtr-tab.is-active {
    color: #c9a96e;
    border-bottom-color: #c9a96e;
}

/* ---- Sections ---- */
.rtr-sections { padding: 0; }

.rtr-section {
    display: none;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    animation: rtrFadeIn 0.25s ease;
}

.rtr-section.is-active { display: block; }

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

.rtr-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block !important;  /* ensure always visible inside active section */
}

.rtr-section-desc {
    text-align: center;
    color: #666;
    margin: 0 0 40px;
    font-style: italic;
}

/* Divider under section title */
.rtr-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a96e;
    margin: 12px auto 32px;
}

/* ---- Sub-section (child category) ---- */
.rtr-subsection {
    margin-top: 56px;
}

.rtr-subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block !important;
}

.rtr-subsection-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a96e;
    margin: 12px auto 32px;
}

/* ---- Items grid ---- */
.rtr-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}

@media (max-width: 680px) {
    .rtr-items-grid { grid-template-columns: 1fr; gap: 20px; }
    .rtr-section { padding: 32px 16px; }
    .rtr-tab { font-size: 0.72rem; padding: 14px 12px 11px; }
}

/* ---- Menu item card ---- */
.rtr-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rtr-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.rtr-item-body { flex: 1; }

.rtr-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

/* When no price, name takes full width */
.rtr-item-header:not(:has(.rtr-item-price)) .rtr-item-name {
    width: 100%;
}

.rtr-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.rtr-item-price {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c9a96e;
    white-space: nowrap;
}

.rtr-item-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   RTR CATEGORY CAROUSEL
   ============================================================ */

.rtr-carousel-wrap {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.rtr-carousel-track-outer {
    overflow: hidden;
    border-radius: 4px;
}

.rtr-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.rtr-slide {
    flex-shrink: 0;
    position: relative;
    display: block;
    height: 450px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s;
}

.rtr-slide:hover { transform: scale(1.02); }

.rtr-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    transition: background 0.3s;
}

.rtr-slide:hover .rtr-slide-overlay { background: rgba(0,0,0,0.3); }

.rtr-slide-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px;
}

/* Prev / Next buttons */
.rtr-carousel-prev,
.rtr-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rtr-carousel-prev { left: 12px; }
.rtr-carousel-next { right: 12px; }
.rtr-carousel-prev:hover,
.rtr-carousel-next:hover { background: #fff; }
.rtr-carousel-prev:disabled,
.rtr-carousel-next:disabled { opacity: 0.3; cursor: default; }

/* Dots */
.rtr-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}

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

.rtr-carousel-dots .rtr-dot.is-active {
    background: #c9a96e;
    transform: scale(1.3);
}

@media (max-width: 680px) {
    .rtr-slide { height: 320px; }
    .rtr-carousel-prev { left: 6px; }
    .rtr-carousel-next { right: 6px; }
}

/* ---- Disclaimer ---- */
.rtr-disclaimer {
    margin: 0 auto;
    padding: 24px 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.8rem;
    color: #888;
    text-align: center !important;
    line-height: 1.6;
    max-width: 700px;
}

.rtr-disclaimer p {
    text-align: center !important;
}

.rtr-disclaimer p {
    margin: 0 0 6px;
}

.rtr-disclaimer p:last-child {
    margin: 0;
}

/* ---- CTA button above disclaimer ---- */
.rtr-disclaimer-cta {
    text-align: center;
    margin-top: 56px;
    margin-bottom: 32px;
}

.rtr-cta-btn {
    display: inline-block;
    padding: 18px 56px;
    border: 1px solid #c9a96e;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity 0.2s;
    min-width: 220px;
    text-align: center;
}

.rtr-cta-btn:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ---- Allergen badges (inline with description) ---- */
.rtr-allergen-badges {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

.rtr-allergen-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* ---- Allergen key / legend ---- */
.rtr-allergen-key {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.rtr-allergen-key-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 20px;
}

.rtr-allergen-key-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    max-width: 900px;
    margin: 0 auto;
}

.rtr-allergen-key-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.rtr-allergen-key-item img {
    width: 36px;
    height: 36px;
}

/* ---- Price variants (e.g. wine measures) ---- */
.rtr-item-variants {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9a96e;
    margin: 2px 0 4px;
}
