/* Menu sayfasinin ustte sabit urun gruplari ve alta sabit arama cubugu (menu-navigation.js). Gruplar cerceveli rozet, secili grup koyu dolgulu;
   mobilde tek satir ve yana kaydirmali (masaustunde fareyle yana kaydirma fark edilmedigi icin satir sarar). */

/* Grup seridi asagi inince ustte kalir. main.css .body'ye overflow: hidden veriyor (kaydirma kabi olur, sticky calismaz); clip
   tasmayi yine keser ama kap olmaz. clip'i bilmeyen eski tarayicida serit yalniz sabit kalmaz. */
.body {
    overflow: clip;
}

.menu-tags-bar {
    position: sticky;
    top: 0;
    z-index: 500;
    margin-bottom: 30px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.97);
}

.menu-tags,
.menu-tags2,
.menu-tags3,
.menu-tags4 {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    line-height: normal;
}

.menu-tags span,
.menu-tags2 span,
.menu-tags3 span,
.menu-tags4 span {
    flex: none;
    margin: 0;
    padding: 7px 16px;
    border: 1px solid #e2ddd3;
    border-radius: 18px;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    color: #6b6965;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-tags span:hover,
.menu-tags2 span:hover,
.menu-tags3 span:hover,
.menu-tags4 span:hover {
    border-color: #f9c56a;
}

.menu-tags .tagsort-active,
.menu-tags2 .tagsort2-active,
.menu-tags3 .tagsort3-active,
.menu-tags4 .tagsort4-active,
.menu-tags .tagsort-active:hover,
.menu-tags2 .tagsort2-active:hover,
.menu-tags3 .tagsort3-active:hover,
.menu-tags4 .tagsort4-active:hover {
    border: 1px solid #4b4741;
    background: #4b4741;
    color: #fff;
    box-shadow: 0 2px 6px rgba(75, 71, 65, 0.35);
}

/* Kaydirma takibi: Tumu seciliyken sabit seridin altindaki urunun grubu (menu-navigation.js). Acik sari dolgu: yalniz kenarlik
   rengiyle fark edilmiyordu; filtre secimi (koyu dolgu) kadar baskin degil. */
.menu-tags .menu-tag-current,
.menu-tags2 .menu-tag-current,
.menu-tags3 .menu-tag-current,
.menu-tags4 .menu-tag-current {
    border-color: #d9a441;
    background: #fbe3b0;
    color: #4b4741;
}

@media (max-width: 767px) {
    .menu-tags,
    .menu-tags2,
    .menu-tags3,
    .menu-tags4 {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -15px;
        padding: 4px 15px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .menu-tags::-webkit-scrollbar,
    .menu-tags2::-webkit-scrollbar,
    .menu-tags3::-webkit-scrollbar,
    .menu-tags4::-webkit-scrollbar {
        display: none;
    }

    .menu-tags span,
    .menu-tags2 span,
    .menu-tags3 span,
    .menu-tags4 span {
        margin: 0;
        font-size: 13px;
        scroll-snap-align: center;
    }
}

/* Arama sonucu: urun kaydirma bittikten sonra 2 sn cercevelenir. Halka urun listesinin ustunde ayri katman (menu-navigation.js
   konumlar): urunun gorunen iceriginin 8 px disi, sutun boslugunda. Urunun icinde olsaydi liste temalarinda overflow: hidden ust kenari
   kesiyor, disina golge olsaydi mobilde tam genislik satirda ekran disina tasiyordu. */
.menu-search-ring {
    position: absolute;
    z-index: 450;
    border: 4px solid #f9c56a;
    border-radius: 14px;
    box-shadow: 0 0 0 4px rgba(249, 197, 106, 0.35), 0 4px 18px rgba(249, 197, 106, 0.45);
    pointer-events: none;
    animation: menu-search-ring 2s ease-out forwards;
}

@keyframes menu-search-ring {
    0%,
    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Sabit cubugun altinda kalmasin diye sayfa sonunda bosluk. */
.menu-search-spacer {
    height: 84px;
}

.menu-search {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.menu-search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.menu-search-box .fa-search {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #828281;
    pointer-events: none;
}

/* iOS 16px altindaki yazi alaninda sayfayi yakinlastirir. */
.menu-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid #e2ddd3;
    border-radius: 22px;
    background: #fff;
    font: 16px "Raleway", sans-serif;
    color: #4b4741;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.menu-search-input:focus {
    border-color: #f9c56a;
    box-shadow: 0 0 0 3px rgba(249, 197, 106, 0.3);
}

.menu-search-results {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    max-height: 50vh;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #e2ddd3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.menu-search-results button {
    display: block;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font: 600 15px/1.3 "Raleway", sans-serif;
    color: #4b4741;
}

.menu-search-results button:hover,
.menu-search-results button:focus,
.menu-search-results .menu-search-current button {
    background: #f3f1ed;
    outline: 0;
}

.menu-search-group {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b6965;
}

.menu-search-empty {
    padding: 9px 16px;
    font-size: 14px;
    color: #6b6965;
}
