@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --red: #c9151e;
    --red-dark: #a90f17;
    --red-light: #e21b23;
    --black: #070707;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --white: #ffffff;
    --text: #e0e0e0;
    --muted: #888888;
    --muted-dark: #555555;
    --border: rgba(255, 255, 255, 0.07);
    --radius: 12px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* page scroll handled internally */
    background: var(--black);
    color: var(--text);
    font-family: 'Montserrat', 'Cairo', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}


/* ============================================================
   PAGE  —  fixed header + footer, scrollable middle
   Background = your storefront photo with dark overlay
============================================================ */

.menu-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* UPDATE the url() to wherever you placed the uploaded image */
    background-image: linear-gradient(rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.92)), url('/images/station-bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}


/* ============================================================
   HEADER
============================================================ */

.menu-header {
    flex-shrink: 0;
    background: rgba(7, 7, 7, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.header-inner {
    width: min(1100px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* ============================================================
   BRAND  —  STATION + MCB in one row
============================================================ */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: white;
}

.brand-logo {
    width: 130px;
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 7px;
}

.brand-station {
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2.2px;
    white-space: nowrap;
}

.brand-mcb {
    color: var(--red);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2.2px;
    white-space: nowrap;
}


/* ============================================================
   TOP ACTIONS
============================================================ */

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


/* ============================================================
   LANGUAGE SWITCHER
============================================================ */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 3px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .10);
}

    .language-switcher a {
        min-width: 31px;
        height: 28px;
        padding: 0 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        color: #888;
        font-family: 'Montserrat', 'Cairo', Arial, sans-serif;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }

        .language-switcher a:hover {
            color: #ffffff;
        }

        .language-switcher a.active {
            background: var(--red);
            color: #ffffff;
            box-shadow: 0 3px 10px rgba(201, 21, 30, .28);
        }

        .language-switcher a:last-child {
            font-family: 'Cairo', Arial, sans-serif;
            font-size: 11px;
        }


/* ============================================================
   BRANCH
============================================================ */

.branch-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 6px 4px 11px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .10);
}

    .branch-badge span {
        color: #8d8d8d;
        font-family: 'Cairo', Arial, sans-serif;
        font-size: 9px;
        white-space: nowrap;
    }

    .branch-badge strong {
        min-width: 31px;
        height: 28px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        background: var(--red);
        color: white;
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 3px 10px rgba(201, 21, 30, .20);
    }


/* ============================================================
   MAIN  —  this is the only scrollable area
============================================================ */

.menu-container {
    flex: 1;
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

    /* hide scrollbar for webkit */
    .menu-container::-webkit-scrollbar {
        width: 6px;
    }

    .menu-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .menu-container::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.08);
        border-radius: 10px;
    }


/* ============================================================
   HERO
============================================================ */

.menu-hero {
    position: relative;
    padding: 44px 0 32px;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 12px 0 0;
    color: #ffffff;
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.6px;
}

    .hero-content h1 span {
        color: var(--red);
        font-weight: 600;
        font-style: italic;
    }

.hero-content p {
    margin: 16px 0 0;
    color: #888;
    font-family: 'Cairo', 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.8;
}


/* ============================================================
   SEARCH
============================================================ */

.search-section {
    margin-bottom: 20px;
}

.menu-search {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .menu-search:focus-within {
        border-color: rgba(201, 21, 30, 0.5);
        box-shadow: 0 0 0 3px rgba(201, 21, 30, .12);
    }

.search-symbol {
    flex: 0 0 auto;
    margin-right: 10px;
    color: var(--red);
    font-size: 24px;
    line-height: 1;
}

.menu-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: 13px;
}

    .menu-search input::placeholder {
        color: #555;
        opacity: 1;
    }

.clear-search {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #777;
    font-size: 18px;
    line-height: 1;
    transition: background .18s ease, color .18s ease;
}

    .clear-search:hover {
        background: var(--red);
        color: #ffffff;
    }


/* ============================================================
   SUBGROUPS
============================================================ */

.category-section {
    margin-bottom: 24px;
}

.category-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

.category-pill {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .03);
    color: #bbbbbb;
    font-family: 'Cairo', 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

    .category-pill:hover {
        border-color: var(--red);
        background: rgba(201, 21, 30, .08);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .category-pill.active {
        background: var(--red);
        border-color: var(--red);
        color: #ffffff;
        box-shadow: 0 5px 17px rgba(201, 21, 30, .27);
    }


/* ============================================================
   RESULT BAR
============================================================ */

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

    .result-bar strong {
        color: #ffffff;
        font-family: 'Montserrat', 'Cairo', sans-serif;
        font-size: 12px;
        font-weight: 700;
    }

    .result-bar span {
        color: #666;
        font-family: 'Cairo', 'Montserrat', sans-serif;
        font-size: 10px;
        font-weight: 500;
    }


/* ============================================================
   PRODUCT LIST
============================================================ */

.product-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


/* ============================================================
   PRODUCT ITEM  (no image)
============================================================ */

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 100px;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s ease, padding .2s ease;
}

    .menu-item:hover {
        background: rgba(255, 255, 255, .025);
        padding-left: 16px;
        padding-right: 16px;
    }

.item-content {
    flex: 1;
    min-width: 0;
}


/* ============================================================
   PRODUCT HEADER
============================================================ */

.item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.item-category {
    color: var(--red);
    font-family: 'Cairo', 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.discount-badge {
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--red);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 3px 8px rgba(201, 21, 30, .20);
}


/* ============================================================
   PRODUCT TITLE
============================================================ */

.item-title h2 {
    margin: 0;
    color: #ffffff;
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.item-arabic {
    margin-top: 3px;
    color: #888;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.item-english {
    margin-top: 3px;
    color: #777;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   PRODUCT DETAILS
============================================================ */

.item-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: #555;
    font-size: 9px;
    line-height: 1.4;
}

    .item-details span + span::before {
        content: "•";
        margin-right: 8px;
        color: #333;
    }


/* ============================================================
   PRICE
============================================================ */

.item-price {
    flex: 0 0 130px;
    text-align: right;
}

    .item-price del {
        display: block;
        margin-bottom: 3px;
        color: #444;
        font-size: 10px;
    }

.current-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
}

    .current-price strong {
        color: #ffffff;
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }

    .current-price small {
        color: var(--red);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .5px;
    }


/* ============================================================
   EMPTY STATE
============================================================ */

.empty-state {
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    color: var(--red);
    font-size: 26px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 24px;
    color: #666;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

.reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 20px;
    border-radius: 22px;
    background: var(--red);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: background .18s ease, transform .18s ease;
}

    .reset-button:hover {
        background: var(--red-light);
        color: #ffffff;
        transform: translateY(-1px);
    }


/* ============================================================
   FOOTER  —  fixed at bottom, never scrolls
============================================================ */

.menu-footer {
    flex-shrink: 0;
    background: rgba(7, 7, 7, 0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
}

.footer-inner {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width:130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .footer-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
    }

    .footer-logo span {
        color: #ffffff;
        font-size: 12px;
        font-weight: 800;
    }

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .footer-brand-text strong {
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.4px;
    }

    .footer-brand-text span {
        color: #444;
        font-family: 'Cairo', Arial, sans-serif;
        font-size: 8px;
    }


/* ----- Contact info ----- */

.footer-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    /* take remaining space to allow center placement */
    flex: 1 1 auto;
    justify-content: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    transition: color .2s ease;
}

    .contact-link:hover {
        color: var(--red);
    }

.contact-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    font-size: 13px;
    flex-shrink: 0;
}

.contact-link div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

/* Inline contact info (used for footer branch line) */
.contact-info-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-inline small {
    display: inline-block;
}

.contact-link small {
    color: #444;
    font-size: 8px;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-link strong {
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
}


/* ----- Copyright strip ----- */

.footer-copyright {
    width: min(1100px, calc(100% - 32px));
    margin: 10px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #333;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 8px;
}

    .footer-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
        color: #cfcfcf;
        font-size: 9px;
        font-weight: 600;
    }

    .footer-meta .design-by {
        color: #cfcfcf;
        text-decoration: none;
    }

    .footer-meta .design-by:hover {
        color: var(--red);
    }


/* ============================================================
   RTL
============================================================ */

[dir="rtl"] .search-symbol {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .menu-search input {
    text-align: right;
}

[dir="rtl"] .item-price {
    text-align: left;
}

[dir="rtl"] .current-price {
    justify-content: flex-start;
}

[dir="rtl"] .item-details span + span::before {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .footer-copyright,
[dir="rtl"] .footer-inner {
    direction: rtl;
}

[dir="rtl"] .menu-item:hover {
    padding-left: 10px;
    padding-right: 16px;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {
    .header-inner,
    .menu-container,
    .footer-inner,
    .footer-copyright {
        width: calc(100% - 28px);
    }

    .footer-contact {
        gap: 14px;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-station,
    .brand-mcb {
        font-size: 16px;
        letter-spacing: 1.4px;
    }

    .top-actions {
        gap: 6px;
    }

    .language-switcher {
        padding: 2px;
    }

        .language-switcher a {
            min-width: 27px;
            height: 26px;
            padding: 0 5px;
            font-size: 8px;
        }

            .language-switcher a:last-child {
                font-size: 10px;
            }

    .branch-badge {
        padding: 4px;
    }

        .branch-badge span {
            display: none;
        }

        .branch-badge strong {
            width: 26px;
            height: 26px;
            font-size: 9px;
        }

    .menu-hero {
        padding: 32px 0 24px;
    }

    .hero-label {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1.2px;
    }

    .hero-content p {
        margin-top: 12px;
        font-size: 11px;
    }

    .menu-search {
        min-height: 50px;
        padding: 0 14px;
    }

    .search-symbol {
        font-size: 22px;
    }

    .menu-search input {
        font-size: 12px;
    }

    .category-pill {
        min-height: 36px;
        padding: 6px 14px;
        font-size: 9px;
    }

    .menu-item {
        min-height: 90px;
        gap: 14px;
        padding: 16px 6px;
    }

        .menu-item:hover {
            padding-left: 10px;
            padding-right: 10px;
        }

    .item-title h2 {
        font-size: 14px;
    }

    .item-arabic {
        font-size: 11px;
    }

    .item-details {
        font-size: 8px;
        gap: 8px;
    }

    .item-price {
        flex: 0 0 95px;
    }

        .item-price del {
            font-size: 9px;
        }

    .current-price strong {
        font-size: 17px;
    }

    .current-price small {
        font-size: 7px;
    }

    /* Footer mobile */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-contact {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

        .footer-contact::-webkit-scrollbar {
            display: none;
        }

    .contact-link div {
        white-space: nowrap;
    }

    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}


/* ============================================================
   VERY SMALL PHONES
============================================================ */

@media (max-width: 390px) {

    .brand-station,
    .brand-mcb {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .top-actions {
        gap: 5px;
    }

    .language-switcher a {
        min-width: 26px;
        height: 25px;
    }

    .item-price {
        flex: 0 0 82px;
    }

    .current-price strong {
        font-size: 15px;
    }
}


/* ============================================================
   ACCESSIBILITY / REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
