/* ==========================================================================
   1. GENEL AYARLAR
========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfaf6;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. HEADER VE LOGO
========================================================================== */
.main-header {
    background-color: #ffffff;
    border-b: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    background-color: #f1f3f9;
    border: none;
    padding: 10px 16px 10px 38px;
    border-radius: 50px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: 0.2s;
}

.search-box input:focus {
    background-color: #f8fafc;
    box-shadow: 0 0 0 2px #e3c485;
}

/* ==========================================================================
   3. KATEGORİ BUTONLARI
========================================================================== */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.categories-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 32px;
    scroll-snap-type: x mandatory;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.category-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px; 
    height: 130px; 
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.category-icon-bg {
    width: 64px;
    height: 64px;
    background-color: #fef3c7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: 0.3s;
}

.category-icon-bg img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.category-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.category-btn.active { background-color: #faedcd; border: 2px solid #e3c485; }
.category-btn.active .category-icon-bg { background-color: #e3a63b; }
.category-btn.active .category-title { color: #6e410f; }

/* ==========================================================================
   4. FİLTRELER VE BAŞLIK
========================================================================== */
.filter-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.badge-btn {
    background-color: #eef2f6;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #b0946d;
}

/* GÖRÜNÜM BUTONLARI (IZGARA/LİSTE) */
.view-toggle {
    display: flex;
    gap: 12px;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-btn:hover { color: #d97706; }
.toggle-btn.active { color: #f59e0b; }

/* ==========================================================================
   5. YEMEK KARTLARI (IZGARA VE LİSTE YAPISI)
========================================================================== */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* VARSAYILAN: YAN YANA 3 KART */
    gap: 24px;
    transition: all 0.3s ease;
}

/* LİSTE GÖRÜNÜMÜ AKTİF OLDUĞUNDA ÇALIŞACAK KODLAR */
.products-container.list-view {
    grid-template-columns: 1fr; /* YAN YANA 1 KART (Yani alt alta) */
    max-width: 800px; /* Liste görünümünde ekranı çok kaplamaması için daraltıyoruz */
    margin: 0 auto; /* Daralan alanı ortalar */
}

/* Liste Görünümündeyken Resim Oranlarını Ayarlama */
.products-container.list-view .product-img-wrapper {
    width: 25%; /* Resim yatayda çok uzamasın diye biraz küçülttük */
}

.products-container.list-view .product-info {
    width: 75%;
}

/* Tek Bir Kartın İç Yapısı */
.product-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex; 
    height: 144px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    transition: 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.product-img-wrapper {
    width: 35%;
    position: relative;
    background-color: #f8fafc;
    transition: width 0.3s ease; /* Liste moduna geçerken resim animasyonlu küçülsün */
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    width: 65%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s ease;
}

.product-header {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.info-btn:hover { color: #b0946d; }

.product-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   6. BİLGİ POPUP (MODAL)
========================================================================== */
.tasaroman-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(6, 8, 12, 0.6); backdrop-filter: blur(4px);
    z-index: 100000000 !important; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.tasaroman-popup-overlay.popup-active { opacity: 1; visibility: visible; }
.tasaroman-popup-card {
    background-color: #fcfaf6; width: 100%; max-width: 420px; padding: 30px 24px;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.95) translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; margin: 20px;
}
.tasaroman-popup-overlay.popup-active .tasaroman-popup-card { transform: scale(1) translateY(0); }
.close-popup-btn {
    position: absolute; top: 15px; right: 15px; background: #f1f5f9; border: none;
    width: 32px; height: 32px; border-radius: 50%; color: #64748b; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.close-popup-btn:hover { background: #e2e8f0; color: #0f172a; }
.popup-title { font-size: 20px; font-weight: 700; color: #b0946d; margin-bottom: 20px; padding-right: 20px; text-transform: uppercase; }
.popup-details-box { background: #ffffff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 16px; }
.detail-row { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 12px; font-weight: 700; color: #64748b; display: flex; align-items: center; gap: 6px; }
.detail-value { font-size: 14px; color: #334155; line-height: 1.5; }
.detail-divider { height: 1px; background: #f1f5f9; margin: 12px 0; }

/* ==========================================================================
   7. MOBİL UYUMLULUK
========================================================================== */
@media (max-width: 1024px) {
    .products-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; }
    .search-box { width: 100%; }
    
    /* Mobilde zaten tek sütun olur, liste görünümüne geçişe gerek kalmaz */
    .products-container { grid-template-columns: repeat(1, 1fr); }
    .products-container.list-view .product-img-wrapper { width: 35%; }
    .products-container.list-view .product-info { width: 65%; }
    
    .category-btn { width: 110px; height: 120px; }
}


/* ========================================== */
/*               FOOTER ALANI                 */
/* ========================================== */
.main-footer {
    background-color: #cca466; /* Görseldeki altın/hardal tonu */
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 40px;
    border-bottom: 8px solid #2c2c2c; /* Görselin en altındaki koyu şerit */
}

.main-footer p {
    margin: 0;
    letter-spacing: 0.5px;
}



