@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&family=Barlow+Condensed:wght@400&family=Barlow+Semi+Condensed:wght@600;700&display=swap');

:root {
    --dark-green-brand: #175547;
    --light-gray-text: #A5A5A5;
    --danger-red: #F00;
    --light-bg: #F4F4F4;
    --dark-green: #0E3F33;
    --brand-cream: #FFEFCA;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    padding-bottom: 50px;
}

/* Preloader Ana Konteyner */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-green); /* Koyu Gri */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Her şeyin üstünde olması için */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* İçerik ve Animasyon */
.preloader-content {
    text-align: center;
    animation: pulse 2s infinite ease-in-out; /* Logoya hafif nefes alma efekti */
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Küçük Yükleme Çizgisi */
.loader-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 239, 202, 0.2);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FFEFCA; /* Logo renginde yükleme çubuğu */
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Preloader kapandığında kullanılacak sınıf */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Header Tasarımı */
.header {
    background-color: var(--dark-green);
    height: 70px;
    z-index: 1050;
    position: relative;
}

.header.header-white {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Beyazken belirginleşmesi için hafif gölge */
}
.menu-logo-container {
    display: flex;
    justify-content: center; /* Yatayda ortalar */
    align-items: center;     /* Dikeyde ortalar */
    padding-top: 40px;       /* Üstten görseldeki gibi boşluk bırakır[cite: 5, 6] */
    width: 100%;             /* Sidebar genişliğine yayılır */
}

/* Logonun kendisi */
.menu-logo-container img {
    display: block;
    max-width: 100%;         /* Taşmaları engeller */
    height: auto;
}

/* Burger Menü Butonu ve Animasyonu */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 26px;
    padding: 0;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #4B8074;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Yataydan Dikey Çizgiye Geçiş (X işareti yerine dikey paraleller) */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(90deg) translate(12px, 6px);
}
.menu-toggle.active .bar:nth-child(2) {
    transform: rotate(90deg) translate(0px, -5px);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(90deg) translate(-11px, -16px);
    width: 100%;
}

.back-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

/* Yan Menü (Sidebar) */
.side-menu {
    position: fixed;
    top: 0;
    left: -290px; /* Başlangıçta gizli */
    width: 290px;
    height: 100%;
    background-color: var(--dark-green);
    z-index: 1060;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 12px 12px 0;
}

.side-menu.open {
    left: 0;
}

.side-menu .nav-link {
    color: #fff;
    font-family: "Barlow Semi Condensed";
    font-size: 20px;
    padding: 15px 30px;
    line-height: 30px;
    font-weight: 400;
}

.side-menu .nav-link i{
    color: var(--brand-cream);
    font-size: 26px;
    padding-top: 4px;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(256,256,256,0.7);
    display: none;
    z-index: 1040;
}

.menu-overlay.show {
    display: block;
}

.category-header {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Barlow', sans-serif;
    padding: 20px 20px;
    color: #FFEFCA;
    font-weight: bold;
    background-size: cover;
    background-position: center;
}

/* Üzerindeki siyah karartma katmanı */
.category-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, #0E3F33 100%); 
    z-index: 1;
}

.category-header i {
    -webkit-text-stroke: 1.5px; /* Çizgi kalınlığı ekler */
    font-weight: bold !important;
    font-size: 1.2rem; /* Boyutunu da biraz büyütebilirsin */
}

.category-header span, .category-header i {
    position: relative;
    z-index: 2; /* Yazı ve ok karartmanın üstünde kalsın */
}

/* Ok İkonu Animasyonu */
.category-header i {
    transition: transform 0.3s ease;
}

/* Menü açıkken oku döndür */
.category-header[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.modal-backdrop.show {
    opacity: 0.8;
}


.modal-close {
    background-color: var(--dark-green);
    color: #ffffff;            /* Beyaz yazı/ikon rengi */
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;        /* Tam yuvarlak */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1051;             /* Resmin üstünde kalması için */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Derinlik hissi için gölge */
}

.menuitems {
  display: none;
}

.food-card {
    border-radius: 12px;
    background: #FFF;
    padding: 12px;
    position: relative;
    border: none;
    text-decoration: none;
    display: block;
}

.food-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover; /* CSS background-position yerine img etiketi için en sağlıklı yöntem */
    /* background: url(<path-to-image>) lightgray -35.731px -31.586px / 212% 141.333% no-repeat; */
}

.food-info {
}

.food-title {
    color: var(--dark-green-brand);
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
    margin-bottom: 0;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-qty {
    color: var(--light-gray-text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
}

.kcal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    border: 0.5px solid #FFE2A0;
    background: #FFF5DE;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    color: #d4a017;
}

.price-tag {
    color: var(--dark-green-brand);
    text-align: right;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.price-symbol {
    font-size: 16px;
    margin-left: 2px;
}

.contentslist-box span {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 7px;
    border: 0.5px solid #adb5bd;
    background: #fff;
    width: fit-content;
    font-size: 12px;
    font-weight: 600;
    color: #adb5bd;
}

.allergen-text {
    color: var(--danger-red);
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.food-card {
    transition: all 0.3s ease; /* Genel geçiş yumuşaklığı */
}


.detail-title {
    color: #175547;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 24px;
}

.detail-img-wrapper img {
    width: 100%;
    max-height: inherit;
    object-fit: cover;
    border-radius: 20px !important;
}

.allergen-label {
    color: #F00;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.allergen-list {
    color: #F00;
    margin-bottom: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.kcal-text {
    color: #0E3F33;
    font-family: Barlow;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 200% */
}

.kcal-badge-large {
    background: #FFF5DE;
    border: 0.5px solid #FFE2A0;
    border-radius: 12px;
    padding: 8px 15px;
    display: inline-block;                     
    color: #0E3F33;
    font-family: Barlow;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.kcal-badge-large .bi{
    color: #ff6000;
    font-size: 18px;
}

.product-description {
    color: #333;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Fiyat ve Porsiyon Listesi */
.price-item {
    width: 100%;
}

.portion-btn {
    background: #175547;
    color: #FFEFCA;
    padding: 10px 25px;
    border-radius: 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    min-width: 120px;
    text-align: center;
    font-size: 18px;
}

.price-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #DDD;
    margin: 0 15px;
    align-self: flex-end;
    margin-bottom: 8px;
}

.portion-price {
    color: #175547;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.portion-price span {
    font-size: 16px;
    margin-left: 2px;
}

/* Şubeler Sayfası Özel Stilleri */
.section-title {
    color: var(--dark-green-brand);
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-top: 20px;
}

.branch-card {
    height: 160px;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
}

.branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, #0E3F33 100%);  
}

.branch-name {
    font-family: 'Barlow', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #FFEFCA;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.branch-address {
    color: #FFF;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    opacity: 0.9;
    padding: 0 20px;
    text-align: center;
}

.branch-address i {
    font-size: 18px;
    color: #FFF;
}

.branch-card:hover .branch-overlay {
    background: linear-gradient(0deg, rgba(14, 63, 51, 0.95) 0%, rgba(14, 63, 51, 0.6) 100%);
}

/* İstek ve Şikayet Sayfası Özel Stilleri */
.form-label {
    color: #A5A5A5; /* Görseldeki açık gri tonu */
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.custom-input, .custom-textarea {
    border: none;
    background-color: #FFF;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.custom-input:focus, .custom-textarea:focus {
    background-color: #FFF;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: none;
}

/* Gönder Butonu */
.btn-submit {
    background-color: #0E3F33; /* Marka koyu yeşili */
    color: #FFF;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 12px 60px;
    border-radius: 12px;
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-submit:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-go-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--dark-green); /* Header ile aynı koyu yeşil */
    color: var(--brand-cream); /* Marka krem rengi[cite: 5] */
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    display: none; /* Başlangıçta gizli */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-go-top:hover {
    background-color: #175547; /* Hafif açık yeşil tonu[cite: 6] */
    transform: translateY(-5px);
}