﻿/* ============================
   BASE
============================ */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fafafa;
    margin: 0;
}

/* ============================
   HEADER
============================ */
.menu-header {
    height: 56px;
    font-weight: 500;
    background: linear-gradient(90deg,#1b7f2a,#2fa84f);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ============================
   TOUCH BUTTONS
============================ */
.menu-touch-area {
    width: 44px;
    height: 44px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    transition: background .2s;
}

    .menu-touch-area:active {
        background: rgba(255,255,255,0.25);
    }

#backButton {
    font-size: 20px;
    font-weight: 600;
}

/* ============================
   OVERLAY
============================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 2000;
}

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

/* ============================
   DRAWER PANEL
============================ */
.menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100svh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: .35s cubic-bezier(.4,0,.2,1);
    z-index: 2001;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

/* ============================
   DRAWER HEADER
============================ */
.menu-panel-header {
    height: 56px;
    flex-shrink: 0;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
    font-weight: 600;
}

/* ============================
   DRAWER SCROLL AREA
============================ */
.menu-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================
   DRAWER LINKS
============================ */
.menu-links a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
}

    .menu-links a:hover {
        background: #f7f7f7;
    }

/* ============================
   DRAWER FOOTER
============================ */
.menu-footer {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Cafe info */
.menu-info {
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================
   GREEN BAR
============================ */
.menu-bottom {
    display: flex;
}

    .menu-bottom button {
        flex: 1;
        border: none;
        color: white;
        padding: 12px;
        font-weight: 700;
        font-size: 14px;
    }

        /* left = calm */
        .menu-bottom button:first-child {
            background: #1b7f2a;
        }

        /* right = action */
        .menu-bottom button:last-child {
            background: #2fa84f;
        }


/* ============================
   CATEGORY GRID
============================ */
.category-card-ui {
    height: 140px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

    .category-card-ui::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25));
        z-index: 1;
    }

    .category-card-ui span {
        position: relative;
        z-index: 2;
        text-shadow: 0 2px 6px rgba(0,0,0,.6);
    }

/* ============================
   MENU ITEM
============================ */
.menu-item {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #111;
}

    .menu-item img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
        margin-right: 12px;
    }

/* ============================
   FULL CATEGORIES
============================ */
.page-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

    .category-list a:last-child {
        border-bottom: none;
    }

.category-list .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-arrow {
    color: #777;
}

/* ============================
   PRODUCT HERO
============================ */
.product-hero {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* ============================
   CONTACT
============================ */
.contact-block {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
}

.contact-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .contact-row:last-child {
        border-bottom: none;
    }

    .contact-row span {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

.contact-link {
    color: #1b7f2a;
    font-weight: 600;
    text-decoration: none;
}

/* ============================
   SECTION TITLES
============================ */
.section-title {
    font-size: 12px;
    letter-spacing: .5px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
}

/* ============================
   POPPINS OVERRIDE (✨ yeni)
============================ */
.menu-header,
.category-card-ui span,
.category-list a,
.section-title {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .2px;
}

.menu-panel-header strong,
.menu-bottom button {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .2px;
    font-weight: 500;
}

/* ============================
   HEADER – TEK SATIR (TEMİZ)
============================ */
/*.menu-title-single {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    white-space: nowrap;
}*/

.menu-title-single {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100vw - 120px); /*  KRİTİK */
    overflow: hidden;
    white-space: nowrap;
}


/* Breadcrumb kısmı (sessiz ama okunur) */
.menu-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.85; /* 0.75 → 0.85 */
    font-weight: 400;
    flex-shrink: 0;
}

    /* Ayraç */
    .menu-breadcrumb .separator {
        margin: 0 4px;
        opacity: 0.65; /* 0.6 → 0.65 */
    }

/* Asıl başlık */
.menu-current {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Ana sayfa header: mekan adı + Menü (sessiz) */
.menu-root-label {
    font-size: 0.8rem; /* biraz daha küçük */
    opacity: 0.65; /* silik ama okunur */
    margin-left: 3px;
    font-weight: 400;
}
