/* =========================
   GENEL AYARLAR
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff7f0;
    color: #333;
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
    background-color: #8B0000; /* koyu mat kırmızı */
    color: #fff;               /* yazılar beyaz */
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin-top: 5px;
    font-style: italic;
}

/* =========================
   BANNER SLIDER
========================= */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slider .slide.active {
    opacity: 1;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   KATEGORİ BANNER
========================= */
.category-banner {
    display: none;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* =========================
   MENÜ NAV
========================= */
.menu-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

.menu-nav a {
    padding: 8px 14px;
    background: #c0392b;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.menu-nav a.active {
    background: #000;
}

/* =========================
   MENÜ
========================= */
.menu {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.menu-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-item h3 {
    margin: 10px 0 5px;
    color: #b71c1c;
}

.menu-item p {
    margin-bottom: 12px;
    font-weight: bold;
    color: #e63946;
}

/* =========================
   POPUP / MODAL
========================= */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow-y: auto;
}

.modal-content img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 26px;
    cursor: pointer;
    color: #1ebe57; /* biraz koyu yeşil */
    font-weight: 900;      /* ekstra kalın */
}

/* =========================
   POPUP BUTON
========================= */
.popup-whatsapp {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* =========================
   İLETİŞİM
========================= */
section {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
}

section h2 {
    color: #b71c1c;
}

/* =========================
   SABİT BUTONLAR
========================= */
.whatsapp-button,
.call-button,
.instagram-button {
    position: fixed;
    right: 20px;
    padding: 12px 16px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-button {
    bottom: 20px;
    background: #25D366;
}

.call-button {
    bottom: 80px;
    background: #3498db;
}

.instagram-button {
    bottom: 140px;
    background: #e1306c;
}

/* =========================
   MOBİL
========================= */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .menu {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .banner-slider {
        height: 250px;
    }
}
/* WhatsApp Sepet Butonu Her Ekran için */
#whatsappCartBtn {
    background-color: #25D366 !important; /* WhatsApp yeşili */
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    margin-top: 10px !important;
}/* =========================
   MOBİL SABİT BUTONLAR KÜÇÜLTME
========================= */
@media (max-width: 768px) {
    .whatsapp-button,
    .call-button,
    .instagram-button {
        padding: 5px 8px;   /* Buton boyutunu küçülttük */
        font-size: 12px;      /* Yazıyı küçülttük */
        right: 8px;          /* Sağdan biraz daha içe kaydırdık */
    }

    .whatsapp-button { bottom: 15px; }
    .call-button { bottom: 45px; }
    .instagram-button { bottom: 75px; }
}
/* -----------------------
   Popup Sepete Ekle Butonu Renkleri
------------------------ */
.popup-add-to-cart {
    background-color: #888;  /* Başlangıçta gri */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: not-allowed;     /* Aktif değilken tıklenemez */
    font-weight: bold;
    transition: background 0.3s;
}

.popup-add-to-cart:enabled {
    background-color: #25D366;  /* Aktif olunca yeşil */
    cursor: pointer;             /* Aktif olunca tıklanabilir */
}

/* Popup içindeki WhatsApp butonunu gizle */
#productModal #whatsappCartBtn {
    display: none !important;
}

/* Popup içindeki Sepete Ekle ve Not alanını alt alta yapmak */
.product-modal .modal-content textarea,
.product-modal .modal-content .popup-add-to-cart {
    display: block;
    width: 100%;
    margin-top: 10px; /* araya boşluk bırak */
}

/* Gramaj butonları varsayılan */
#gramajContainer button {
    background-color: #f0f0f0; /* açık gri */
    border: 1px solid #ccc;
    padding: 8px 12px;
    margin: 5px 5px 0 0;
    cursor: pointer;
    border-radius: 5px;
}

/* Gramaj butonu seçildiğinde */
#gramajContainer button.active {
    background-color: #FFD700; /* sarı */
    color: black;
    font-weight: bold;
}
/* Kategori banner'ını tamamen kapat */
.category-banner {
    display: none !important;
}/* Kampanya dahil tüm menü ürünlerinde resim boyutunu zorla sabitle */
.menu .menu-item img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block;
}
/* Popup içinde WhatsApp Sepet Butonunu gizle */
.product-modal #whatsappCartBtn {
    display: none !important;
}
.menu-nav a {
    background-color: #ffffff; /* kategori arka plan rengi */
    color: #b71c1c;            /* yazı rengi */
}
/* -----------------------
   Sepetiniz Sabit Üstte
------------------------ */
#cartContainer {
    position: sticky; /* sayfa kaydırıldığında sabit kalır */
    top: 0;           /* ekranın en üstü */
    background-color: #fff7f0; /* arka plan, mevcut site rengine uyumlu */
    z-index: 999;     /* diğer içeriklerin üstünde */
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* hafif gölge ile öne çıksın */
}