:root { --accent-color: #666666; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    user-select: nonex;
    background-color: #f7f7f7;
}

/* ======================================================
   TAB ALANI (Tab bar, tab başlıkları ve arama alanı)
   ====================================================== */
.tabbar {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.09);
}
.tabbar-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 0; padding: 0 12px; width: 100%; box-sizing: border-box; }
.center-switch { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
.center-switch .tab-container { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 0; margin-left: 4px; scrollbar-width: none; }
.center-switch .tab-container::-webkit-scrollbar{ display: none; }
.center-switch .tab-search-input { display: none; flex: 1; height: 36px; border-radius: 8px; border: 1px solid #ddd; padding: 0 10px; font-family: 'Oswald', Arial, sans-serif; font-size: 14px; outline: none; box-shadow: none; color: #000; background: #fff; }
.center-switch .tab-search-input:focus { border-color: #c8c8c8; box-shadow: none; outline: none; }
.tabbar.searching .center-switch .tab-container { display: none; }
.tabbar.searching .center-switch .tab-search-input { display: block; }
.tabbar.searching #menuBtn { display: none; }
.tabbar.searching #closeSearchBtn { display: inline-flex; }

.tab-container::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: inline-flex;
    position: relative;
    min-width: max-content; /* İçerik kadar genişle, yatay scroll garanti */
}

.tab {
    flex: 0 0 auto;
    padding: 0 12px 0 0; /* sağ boşluk 20px, sol 0 */
    cursor: pointer;
    white-space: nowrap;
    height: 60px;
    font-family: 'Oswald', Arial, sans-serif;
    color: #242e30;
    display: flex;
    align-items: center;
  }
.tab + .tab { padding-left: 0px; }

.tab.active {
    font-weight: normal;
}

.tab .tab-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tab.active .tab-label {
    background-color: #666666;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* tab-indicator kaldırıldı */

/* Sabit sol/sağ ikon alanları ve şeffaf kenar geçişleri */
/* eski .tab-edge yapısı kaldırıldı */

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: rgba(255,255,255,0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto; /* Buton tıklanabilsin */
    position: relative;
    z-index: 40;
    flex-shrink: 0;
}
.icon-btn svg { width: 20px; height: 20px; fill: #333; }
#menuBtn svg { width: 18px; height: 18px; }
#closeSearchBtn svg { fill: none; stroke: #333; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; }
#searchBtn { margin-right: 12px; }
#menuBtn { margin-left: 12px; }
#closeSearchBtn { margin-left: 12px; }

/* Tab bar içi arama katmanı */
/* overlay kaldırıldı, merkez bölge içinde input gösterilecek */

/* Arama modunda kenar fade'lerini kapat, tam beyaz yap */
.tabbar.searching .tab-edge.left::after,
.tabbar.searching .tab-edge.right::after { background: linear-gradient(to right, #ffffff, #ffffff); }

/* Başa dön / ilk taba git butonu */
.to-top-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.to-top-btn.show { opacity: 1; pointer-events: auto; }
.to-top-btn svg { width: 22px; height: 22px; stroke: #333; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Sayfa en aşağıya inince 125px yukarıda konumlansın */
.to-top-btn.at-bottom { bottom: 125px; }

/* Orta menü (modal) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal.open { display: flex; }
.modal-content {
    background: #fff;
    width: min(90vw, 420px);
    max-width: 350px;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    overflow: hidden;
}
.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-family: 'Oswald', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-list {
    max-height: 60vh;
    overflow: auto;
    padding: 8px 0;
}
.menu-item {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 16px;
}
.menu-item:hover { background: #f5f5f5; }

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.close-btn svg { width: 16px; height: 16px; stroke: #333; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================
   DİĞER BİLEŞENLER
   - Alt arama çubuğu (kullanılmıyor olabilir)
   ===================================== */
.search-bar {
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 56px;
    box-sizing: border-box;
}
.search-bar.open { height: 56px; }
.search-bar .search-inner {
    padding: 12px 12px;
}
.search-bar input[type="text"] {
    width: 100%;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 14px;
}

/* =====================================
   ÜRÜN (Liste + Kart)
   ===================================== */
section {
    padding: 16px 16px 24px;
    border-bottom: 1px solid #eee;
    container-type: inline-size;
}

/* Arama boş durumu (Ürün alanında gösterilir) */
.empty-state {
    display: none;
    text-align: center;
    padding: 28px 16px;
    color: #666;
}
.empty-state .icon {
    width: 48px; height: 48px; margin: 0 auto 10px; display: block;
    stroke: #bbb; stroke-width: 2; fill: none;
}
.empty-state .title { font-family: 'Oswald', Arial, sans-serif; font-size: 18px; color: #333; }
.empty-state .desc { margin-top: 4px; font-size: 13px; }
.grid {
    display: grid;
    grid-template-columns: 1fr; /* default tek sütun */
    gap: 12px;
}

.card {
    display: grid;
    grid-template-columns: 1fr 120px;
    grid-template-areas: "info image";
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    align-items: start;
    position: relative;
    cursor: pointer;
    transition: box-shadow 120ms ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.card:not(:has(img)) {
    grid-template-columns: 1fr;
    grid-template-areas: "info";
}
.card:not(:has(img)) { padding-right: 68px; }
.card:not(:has(img)) .info {
    width: 100%;
    padding-right: 60px; /* add-btn alanı için nefes payı */
}
.card img {
    grid-area: image;
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    justify-self: end;
}
.card .info { grid-area: info; display: flex; flex-direction: column; gap: 6px; }
.card .title { font-family: 'Oswald'; font-size: 16px; }
.card .desc { font-family: 'Oswald'; font-size: 12px; color: #666; line-height: 1.35; }
.card .price { font-family: 'Oswald'; color: var(--primary-color); }
.add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.add-btn:hover { background: #ffffff; }
.add-btn i { color: var(--secondary-color) !important; font-size: 30px !important; line-height: 1; }
.add-btn svg { width: 22px; height: 22px; stroke: #ffcc33; stroke-width: 2.2; fill: none; }

/* Product attribute chips */
.product-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.product-badges .attribute-icon { width: 20px; height: 20px; display: inline-block; margin-right: 6px; }
.product-badges .chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 12px; border-radius: 16px; font-family: 'Oswald', Arial, sans-serif; font-size: 14px;
    border: none; color:#404040; background: transparent;
}

.chip.food-attribute-spicy { background-color:#ffe8ec; color: var(--primary-color); }
.chip.food-attribute-garlic { background-color:#ebdfff; color:#404040; }
.chip.food-attribute-onion { background-color:#fff3e0; color:#404040; }
.chip.food-attribute-vegetarian { background-color:#e8f5e9; color:#4fba6f; }
.chip.food-attribute-vegan { background-color:#e8f5e9; color:#4fba6f; }
.chip.food-attribute-halal { background-color:#e3f2fd; color:#629bc4; }

/* NEW badge near title */
.badge-new { display:inline-block; background: var(--secondary-color); color:#fff; font-size:12px; border-radius:8px; padding:4px 8px; margin-right:8px; line-height:1; font-family:'Oswald', Arial, sans-serif; }

/* Section başlığı + görsel */
.section-head { margin: 0 0 12px; }
.hero-slider { position: relative; width: 100%; aspect-ratio: 20 / 11; height: auto; border-radius: 10px; overflow: hidden; background: #000; }
@media (min-width: 1360px) { .hero-slider { height: auto; } }
.section-hero { margin: 0 0 10px; aspect-ratio: 20 / 6; height: auto; overflow: hidden; border-radius: 10px; }
.section-hero img { width: 100%; height: 100%; display: block; object-fit: cover;  }
.section-title { font-family: 'Oswald'; font-size: 24px; color:#333333; margin: 8px 0 4px; }
.section-desc { font-family: 'Oswald'; color: #333333; font-size: 14px; margin: 0 0 12px; line-height: 1.35; }

/* section genişliği >= 800px olduğunda 2 sütun */
@container (min-width: 600px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Arama sonuçlarında: sadece ürünleri tek liste gibi göster */
body.search-results section { padding: 8px 16px; border-bottom: 0; }
body.search-results .section-head { display: none !important; }
body.search-results .grid { margin: 0; }


