/* =====================================================================
   Seyr-et Et Lokantası — QR Menü (statik sürüm)
   Bootstrap yok; ihtiyaç duyulan her şey burada.
   ===================================================================== */

:root {
    --kirmizi: #de1b1e;
    --koyu: #1a1817;
    --metin: #2b2726;
    --soluk: #6f6866;
    --kart: #fffdfb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--koyu);
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--metin);
    -webkit-font-smoothing: antialiased;
}

/* Arka plan sabit bir katman. background-attachment:fixed mobilde
   kaydırırken titreme yaptığı için kullanılmıyor. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url(images/seyret-bg.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

@media screen and (min-width: 992px) {
    body::before {
        background-image: url(images/seyret-bg-genis.jpg);
        background-position: center center;
    }
}

/* ---- Üst bar ---------------------------------------------------- */
.ustbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(18, 16, 15, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.6rem 0;
}

.ustbar__ic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

.marka {
    display: block;
    /* PHP sürümündeki üst bar 70px'di; arka plandaki tabelanın kartlara
       göre konumu ona göre ayarlandığı için aynı yükseklik korunuyor. */
    padding: 5px 0;
}

.marka img {
    display: block;
    max-height: 40px;
    width: auto;
}

/* ---- Dil seçici -------------------------------------------------- */
.dil-sec {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 7px 26px 7px 10px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M3.2 5.6 8 10.4l4.8-4.8 1.2 1.2L8 12.8 2 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 11px;
}

.dil-sec:focus {
    outline: none;
    border-color: var(--kirmizi);
}

.dil-sec option {
    color: #222;
    background: #fff;
}

/* ---- Google Çeviri: motoru arkada, arayüzü gizli ------------------ */
body {
    top: 0 !important;
}

.goog-te-banner-frame,
#goog-gt-tt,
.skiptranslate>iframe {
    display: none !important;
}

#google_translate_element {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Menü alanı -------------------------------------------------- */
.menu-alani {
    /* Üstteki boşluk arka plandaki giriş tabelası görünsün diye */
    padding: 118px 0 0;
    display: flex;
    justify-content: center;
}

.menu-sutun {
    width: 84%;
    max-width: 680px;
}

/* ---- Yükleniyor yer tutucusu -------------------------------------- */
/* Tablo gelene kadar basılır. Fiyat göstermiyor: eski bir fiyatı yarım
   saniye bile göstermek, biraz beklemekten kötü. Kategori kartıyla aynı
   ölçüde ki menü gelince sayfa zıplamasın. */
.iskelet {
    height: 148px;
    margin-bottom: 12px;
    border-radius: 12px;
    background-color: #2a2422;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.iskelet::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            transparent 20%,
            rgba(255, 255, 255, 0.07) 50%,
            transparent 80%);
    transform: translateX(-100%);
    animation: iskelet-parla 1.4s ease-in-out infinite;
}

@keyframes iskelet-parla {
    to {
        transform: translateX(100%);
    }
}

/* Hareketi rahatsız edici bulan ya da kapatmış kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    .iskelet::after {
        animation: none;
        transform: none;
        background: rgba(255, 255, 255, 0.04);
    }
}

.menu-hata {
    margin: 0;
    padding: 2rem 1.35rem;
    border-radius: 12px;
    background-color: var(--kart);
    color: var(--soluk);
    font-size: 16px;
    text-align: center;
}

/* ---- Kategoriler -------------------------------------------------- */
.kategori {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    /* Kartlar fotoğraflı arka planın üzerinde; ayrım koyulukla değil
       gölge ve ince kenarlıkla da sağlanıyor. */
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.07);
}

.kategori__baslik {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: 148px;
    margin: 0;
    padding: 1.25rem 1.35rem;
    border: 0;
    font-family: inherit;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: left;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    background-color: #2a2422;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.kategori__ok {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    transition: transform 0.25s ease;
}

.kategori--acik .kategori__ok {
    transform: rotate(180deg);
}

.kategori__govde {
    display: none;
    background-color: var(--kart);
    padding: 1.1rem 1.25rem 1.35rem;
}

.kategori--acik .kategori__govde {
    display: block;
}

/* ---- Ürünler ------------------------------------------------------ */
.urun {
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.urun+.urun {
    margin-top: 0.7rem;
}

.urun:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.urun__ust {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.15rem;
}

.urun__ad {
    flex: 1 1 auto;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    color: var(--metin);
}

.urun__fiyat {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--kirmizi);
}

.urun__aciklama {
    font-style: italic;
    font-size: 13px;
    line-height: 1.45;
    color: var(--soluk);
}

/* ---- Alt bilgi ---------------------------------------------------- */
.altbilgi {
    padding: 2rem 12px 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.altbilgi__not {
    margin: 0 0 0.9rem;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.2px;
}

.altbilgi__sosyal {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.altbilgi__sosyal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.altbilgi__sosyal a:hover {
    background-color: var(--kirmizi);
    border-color: var(--kirmizi);
}

.altbilgi__sosyal svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.altbilgi__telif {
    margin: 1rem 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---- Yukarı çık --------------------------------------------------- */
.yukari {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 30;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--kirmizi);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.yukari--gorunur {
    display: flex;
}

.yukari svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* ---- Mobil -------------------------------------------------------- */
@media screen and (max-width: 770px) {
    .kategori__baslik {
        height: 118px;
        font-size: 20px;
        padding: 1rem 1.1rem;
    }

    .kategori__govde {
        padding: 0.9rem 1rem 1.1rem;
    }

    .urun__ad {
        font-size: 15px;
    }

    .urun__fiyat {
        font-size: 14px;
    }
}
