/* ==========================================================================
   1. GENEL SIFIRLAMA & TEMEL AYARLAR
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fcfbfa;
    color: #2c2523;
    line-height: 1.6;
    padding: 20px 15px 40px 15px;
    max-width: 600px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   2. HEADER (BAŞLIK & LOGO) TASARIMI
   ========================================================================== */
header {
    text-align: center;
    padding: 30px 10px 20px 10px;
    border-bottom: 2px solid #eae5e1;
    margin-bottom: 30px;
}

.brand-logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8c7a6b;
    margin-bottom: 5px;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1512;
    margin-bottom: 2px;
}

header p {
    font-size: 14px;
    font-weight: 400;
    color: #6e6156;
    font-style: italic;
}

/* ==========================================================================
   3. MENÜ İÇERİK & KATEGORİ LİSTESİ
   ========================================================================== */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kategori Başlıkları (Örn: Sıcak İçecekler, Tatlılar) */
.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e2e;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1.5px solid #2c3e2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-title:first-of-type {
    margin-top: 0;
}

/* Alt Kategori Başlıkları (Örn: Espresso Bazlılar) */
.subcategory-title {
    font-size: 16px;
    font-weight: 600;
    color: #547958;
    margin-top: 15px;
    margin-bottom: 5px;
}

.subcategory-title.clickable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.subcategory-title.clickable:hover {
    color: #2c3e2e;
}

/* Tekil Ürün Kartı */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0ece9;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .menu-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
}

.item-details {
    flex: 1;
    padding-right: 15px;
}

.item-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1512;
    margin-bottom: 3px;
}

.item-details p {
    font-size: 12.5px;
    color: #7a6e65;
    line-height: 1.4;
}

.item-price {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e2e;
    white-space: nowrap;
}

/* ==========================================================================
   4. FOOTER & "AÇIM" BUTONU
   ========================================================================== */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 90px; /* Sabit buton ürünlerin üzerini kapatmasın diye alt boşluk */
    border-top: 1px solid #eae5e1;
}

/* "Açım" Butonu - Sağ Alta Sabit (Floating Button) */
.hungry-btn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 900;
    
    background: linear-gradient(135deg, #2c3e2e 0%, #3e5841 100%);
    color: #ffffff;
    border: none;
    padding: 13px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* Mobil cihazlardaki alt navigasyon çubuğu uyarısı için */
    margin-bottom: env(safe-area-inset-bottom);
}

.hungry-btn:active {
    transform: scale(0.94);
}

footer p {
    font-size: 12px;
    color: #9c8e82;
}
/* ==========================================================================
   5. AÇILIR PENCERE (MODAL & POPUP) TASARIMI
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Pop-up İçerik Kartı */
.modal-card {
    position: relative;
    background: #fff;
    width: 88%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: scale(0.85);
    transition: transform 0.3s ease;
    padding: 0;
    text-align: center;
}

.modal.show .modal-card {
    transform: scale(1);
}

/* Görsel Alanı Yerine Geçen Özel Kutu */
.modal-placeholder {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #2c3e2e 0%, #547958 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 25px 25px 25px;
    box-sizing: border-box;
}

.modal-placeholder p {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-style: italic;
    opacity: 0.95;
    margin: 0;
}

/* Rozet Kapsayıcısı (Sağ Üst Dikey Sıralama) */
.badge-container {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

/* Rozet Stil Tanımları */
.badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

/* Alerjen/İbare Renk Tonları */
.badge.gluten { background-color: rgba(211, 84, 0, 0.88); }   /* Turuncu */
.badge.laktoz { background-color: rgba(41, 128, 185, 0.88); }  /* Mavi */
.badge.vegan  { background-color: rgba(39, 174, 96, 0.88); }   /* Yeşil */
.badge.fistik { background-color: rgba(142, 68, 173, 0.88); }  /* Mor */

/* Ürün Başlığı */
#caption {
    font-size: 18px;
    font-weight: 600;
    color: #1a1512;
    padding: 16px;
}

/* Hikaye Metni (Sandviç Easter Egg) */
.history-text {
    display: none;
    padding: 0 24px 24px 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a3f35;
    text-align: justify;
    font-style: italic;
}

/* Kapatma (X) Butonu */
.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    z-index: 1000;
}