﻿.custom-dropdown-wrapper {
    position: relative;
    width: 120px; /* dilediğin genişlik */
    margin-left: auto;
}

.custom-dropdown {
    background-color: transparent; /* Şeffaf ya da koyu band üzerine oturuyor */
    color: white;
    font-weight: bold;
    padding: 10px 12px;
    width: 100%;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .selected-item img {
        width: 24px;
        height: 16px;
    }

.dropdown-list {
    position: absolute;
    top: 100%; /* tam altına */
    left: 0; /* parent'a göre hizalanır */
    width: 100%;
    background-color: #2c2c2c; /* antrasit gri */
    border: 1px solid #444;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
}


.dropdown-item {
    padding: 10px 12px;
    color: white;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer; /* 🖱️ El imleci */
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

    .dropdown-item:hover {
        background-color: #555; /* daha koyu gri */
        color: #fff;
    }

    .dropdown-item img {
        width: 24px;
        height: 16px;
    }



    .dropdown-item:active {
        background-color: #666;
    }

body {
    margin: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    padding-top: 60px; /* top-bar'ın yüksekliği kadar padding */
}

.top-bar {
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 8px 0px 8px 8px;
    position: fixed; /* sticky yerine fixed kullanarak daha güvenilir yapışkan davranış */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Daha yüksek z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Gölge efekti */
    transition: all 0.3s ease; /* Yumuşak geçiş efekti */
}

.top-left .logo {
    margin-top : 5px;
    height: 32px;
}

.top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Tüm öğeleri sağa yaslar */
    gap: 6px;
}

/* Dil seçeneği yoksa menüyü daha sağa yanaştır */
.top-right.no-language .corporate-dropdown-wrapper {
    margin-right: 6px;
}

/* Dil seçeneği yoksa açılır menünün sağ sınırını ayarla */
.top-right.no-language .corporate-dropdown-list {
    right: 6px;
    left: auto;
}

.language-selector {
    padding: 4px;
}

.menu-item a {
    color: white;
    text-decoration: none;
    gap:8px;
}



.accordion-container {
    margin: 10px 20px 20px 20px; /* Üst margin'i azalttım */
}

.accordion-header {
    position: relative;
    height: 150px;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
}

    .accordion-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0,0,0,0));
        z-index: 1;
    }

    .accordion-header .category-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        opacity: 0.9;
        top: 0;
        left: 0;
    }

.accordion-header {
    display: flex;
    align-items: center; /* 👈 Dikey ortalama */
    justify-content: start; /* 👈 Yatay ortalama (isteğe bağlı) */
}

.category-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-left : 15px;
    z-index :  2;
}


.accordion-body {
    padding: 16px;
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    justify-content: center; /* Yatayda ortalama */
    align-items: stretch; /* Kartları aynı yüksekliğe zorla */
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Grid hücresinin tüm yüksekliğini kapla */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 8px;
    text-align: center;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 500px; /* opsiyonel, genişlik sınırı */
min-width : 200px;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

/* Yeni yardımcı sınıflar */
.product-content-top {
    /* img, name, narration burada olacak */
}

.product-content-bottom {
    margin-top: auto; /* Alt içeriği dibe iter */
}


.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /*border-radius: 4px;*/
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.product-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 20px; /* İsteğe bağlı */
    margin-top: 8px;
}
.product-narration {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300; /* Medium */
    font-weight: normal; /* Kalın değil */
    color: #333333; /* Koyu gri */
    line-height: 1.5; /* Okunabilirlik için */
    margin-top: 6px; /* Üst boşluk (isteğe bağlı) */
    font-size: 13px;
    font-weight: normal;
}

.product-price {
    margin-top: 8px;
    color: green;
    font-size: 20px;
    font-weight: 500; /* orta kalınlık */
    font-family: 'Exo 2', sans-serif;
}

.product-icons span {
    margin: 2px;
}

.footer-bar {
    background-color: #2e2e2e;
    color: white;
    padding: 16px;
    text-align: center;
}

.footer-links a {
    color: #ccc;
    margin: 0 8px;
    text-decoration: none;
}





@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 250 yerine 220 daha güvenli */
    gap: 16px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ingredient-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease, z-index 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    overflow: hidden;
    width: 100%; /* yeni: konteyner kadar genişlik */
    max-width: 100%; /* yeni: taşmayı engeller */
    height: 250px;
}

.ingredient-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; /* Sabit bir yükseklik */
    overflow: hidden;
}

    .ingredient-img-wrapper img {
        max-height: 100%;
        width: auto; /* Genişlik içeriğe göre ayarlansın */
        height: auto; /* Oranı koruyarak küçülsün */
        object-fit: contain; /* Taşma engellensin */
    }

.ingredient-title {
    margin-top: 12px;
    font-weight: 600;
    word-wrap: break-word; /* Uzun başlıklar için */
    color:black;
}



/* Büyük resim overlay sistemi */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.expanded-image-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.expanded-image-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.expanded-image-title {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.expanded-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.expanded-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}


    .ingredient-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }



@media (max-width: 768px) {
    .expanded-image-container {
        padding: 15px;
        margin: auto;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .expanded-image-container img {
        max-height: 60vh;
        margin: 0 auto;
    }
    
    .expanded-image-title {
        font-size: 16px;
        margin-top: 10px;
        text-align: center;
    }
    
    .expanded-close-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .expanded-image-container {
        padding: 10px;
        margin: auto;
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .expanded-image-container img {
        max-height: 50vh;
        margin: 0 auto;
    }
    
    /* Mobil cihazlarda top-bar için ek ayarlar */
    .top-bar {
        padding: 6px 0px 6px 6px; /* Daha az padding */
    }
    
    body {
        padding-top: 50px; /* Mobilde daha az padding */
    }
    
    .carousel {
        height: 300px; /* Mobilde daha küçük carousel */
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.simgemodal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 6px;
    width: 90vw;
    max-width: 900px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.custom-page-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 6px;
    width: 90vw;
    max-width: 800px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.close-btn {
    float: right;
    background: transparent;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* Yeni modallar için stiller */
.announcements-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
}

.announcement-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.announcement-item small {
    color: #999;
    font-style: italic;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-section h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.about-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.about-section ul {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 6px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-section h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.contact-info p,
.working-hours p,
.reservation-info p,
.location-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-info a,
.reservation-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover,
.reservation-info a:hover {
    text-decoration: underline;
}

.reservation-info ul {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
    margin-bottom: 12px;
}

.reservation-info li {
    margin-bottom: 6px;
}


.loading-spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0; /* Gri arka plan */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2em;
    color: #333;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.carousel {
    position: relative;
    width: 100vw;
    height: 400px;
    margin: 0; /* margin'i kaldırdım çünkü body'de zaten padding var */
    overflow: hidden;
    cursor: grab; /* Kaydırma için cursor */
    user-select: none; /* Metin seçimini engelle */
}

.carousel:active {
    cursor: grabbing; /* Kaydırma sırasında cursor */
}

.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.carousel-slide {
    min-width: 100vw;
    height: 100%;
    user-select: none;
}

    .carousel-slide img {
        width: 100vw;
        height: 100%;
        object-fit: cover;
    }

.carousel-slide2 {
    width: 100vw;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .carousel-slide2 img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    user-select: none;
}

.indicator-line {
    height: 4px;
    width: 40px;
    background-color: #ccc;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .indicator-line.active {
        background-color: #007bff;
    }



.selected-attribute-btn {
    display: inline-flex; /* Yatayda yan yana, dikeyde ortalı */
    align-items: center; /* Dikey ortalama */
    padding: 4px 8px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: default;
}

.attribute-name {
    margin-right: 6px; /* Sağdaki x ile arada boşluk */
    white-space: nowrap; /* Yazı tek satırda kalsın */
}

.remove-x {
    font-size: 12px; /* X küçültüldü */
    color: #888;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.attribute-item img {
    border-radius: 4px;
    user-select: none;
}









.attribute-icons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap; /* işte bu! satırdan taşarsa alt satıra geç */
    gap: 4px;
    max-width: 100%; /* kutu dışına taşmasın */
    min-height:35px;
    justify-content: center; /* 🔥 Ortalamak için eklendi */
    
}

.attribute-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease;
}


    .attribute-icon:hover {
        transform: scale(1.1);
    }

.carousel img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.corporate-dropdown-wrapper {
    position: relative;
    margin-right: 12px;
}
.corporate-dropdown-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Desktop ve mobil için görünürlük kuralları */
.desktop-text {
    display: inline;
}

.mobile-icon {
    display: none;
}

/* Mobil ekranlarda hamburger menü ikonu */
@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    
    .mobile-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 16px;
        position: relative;
    }
    
    .mobile-icon::before,
    .mobile-icon::after,
    .mobile-icon span {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background-color: white;
        margin: 2px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-icon span {
        background-color: white;
    }
    
    .corporate-dropdown-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    /* Menü açıkken animasyon */
    .corporate-dropdown-wrapper.show .mobile-icon::before {
        transform: rotate(45deg) translate(0, 6px);
    }
    
    .corporate-dropdown-wrapper.show .mobile-icon span {
        opacity: 0;
    }
    
    .corporate-dropdown-wrapper.show .mobile-icon::after {
        transform: rotate(-45deg) translate(0, -6px);
    }
}
.corporate-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #222;
    border: 1px solid #444;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    margin-top: 2px;
}
.corporate-dropdown-item {
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}
.corporate-dropdown-item:last-child {
    border-bottom: none;
}
.corporate-dropdown-item:hover {
    background: #444;
}


/* Modal Overlay */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    overflow: hidden !important;
}

/* Modal Content */
.modal-content {
    background-color: white !important;
    padding: 24px !important;
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 90% !important;
    position: relative !important;
    animation: fadeIn 0.3s ease-in-out !important;
    z-index: 10001 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transform: none !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Modal Header */
.modal-header {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* X Close Button */
.modal-close-x {
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

    .modal-close-x:hover {
        background: rgba(0, 0, 0, 0.9) !important;
    }

/* İçerik Başlıkları */
.modal-content h7 {
    margin-top: 3px;
    font-size: 13px;
    font-weight: normal;
}

.modal-content h3 {
    margin-top: 8px;
    color: green;
    font-size: 20px;
    font-weight: 500;
}

/* Görseller ve Iconlar */
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.modal-icons span {
    font-size: 24px;
    margin: 0 8px;
}
