.nav-panel {
    background: white;
    padding: 15px;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#vSearch {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.mobile-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--s);
    font-weight: bold;
    font-size: 16px;
    background: #f0fdf4;
    display: none;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: white;
}

.app-grid {
    max-width: 1250px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 0;
}

.sidebar {
    background: white;
    border-radius: 12px;
    padding: 15px;
    height: 180vh;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.veg-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    border: 1px solid #f3f4f6;
    transition: 0.2s;
}

.veg-btn:hover {
    background: #ecfdf5;
    border-color: var(--s);
}

.veg-btn.active {
    background: var(--p);
    color: white;
}

.content {
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.content h1 {
    margin: 0;
    color: var(--p);
    font-size: 2.5rem;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pro-card {
    background: #f8fafc;
    border-left: 4px solid var(--a);
    padding: 15px;
    border-radius: 8px;
}

.pro-card i {
    color: var(--p);
    margin-right: 8px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.stat-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid var(--s);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--p);
    display: block;
    margin-bottom: 8px;
}

/* SOSYAL ETKİLEŞİM BAR (Görsel 2) */
.interaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-btn {
    background: #fff5f5;
    border: 1px solid #ff4d4d;
    padding: 5px 12px;
    border-radius: 20px;
    color: #ff4d4d;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-count {
    background: #ff4d4d;
    color: white;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
}

.share-btn {
    background: #707a8a;
    color: white;
    padding: 5px 24px;
    border-radius: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.view-stat {
    border: 1px solid #64748b;
    padding: 5px 12px;
    border-radius: 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-count {
    background: #475569;
    color: white;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
}

.save-btn {
    background: #1d4ed8;
    color: white;
    padding: 5px 24px;
    border-radius: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* results*/
.result-box {
    background: #e8f5e9;
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.result-value {
    font-size: 1.4rem;
    color: #1b5e20;
    font-weight: 800;
}

.expert-tips {
    margin-top: 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.image-section img {
    width: 100%;
    padding: 20px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 15px 0;
}

/* modal*/
#shareBtn {
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: none;
    background-color: #eee;
    color: #7d2ae8;
    border: none;
}

.modal {
    top: 20%;
}

.modal-title {
    font-size: 1rem;
    font-family: Century Gothic;
}

.btn-close {
    box-shadow: none;
    border: none;
    outline: none;
}

.modal-body .icons {
    margin: 15px 0px 20px 0px;
}

.modal-body .icons a {
    text-decoration: none;
    border: 1px solid transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 20px;
    transition: all 0.3s ease-in-out;
}

.modal-body .icons a:nth-child(1) {
    color: #1877F2;
    border-color: #B7D4FB;
}

.modal-body .icons a:nth-child(1):hover {
    background-color: #1877F2;
    color: #fff;
}

.modal-body .icons a:nth-child(2) {
    color: #000;
    border-color: #000;
}

.modal-body .icons a:nth-child(2):hover {
    background-color: #000;
    color: #fff;
}

.modal-body .icons a:nth-child(3) {
    color: #7360f2;
    border-color: #7360f2;
}

.modal-body .icons a:nth-child(3):hover {
    background-color: #7360f2;
    color: #fff;
}

.modal-body .icons a:nth-child(4) {
    color: #25d366;
    border-color: #bef4d2;
}

.modal-body .icons a:nth-child(4):hover {
    background-color: #25d366;
    color: #fff;
}


.modal-body .icons a:nth-child(5) {
    color: #0088cc;
    border-color: #b3e6ff;
}

.modal-body .icons a:nth-child(5):hover {
    background-color: #0088cc;
    color: #fff;
}

.modal-body .icons a:hover {
    border-color: transparent;
}

.modal-body .icons a span {
    transition: all 0.09s ease-in-out;
}

.modal-body .icons a:hover span {
    transform: scaleX(1.1);
}

.modal-body .field {
    margin: 15px 0px -5px 0px;
    height: 45px;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    padding: 0 5px;
}

.modal-body .field.active {
    border-color: #1955b0;
}

.field span {
    width: 50px;
    font-size: 1.1rem;
}

.field.active span {
    color: #1955b0;
}

.field input {
    border: none;
    outline: none;
    font-size: 0.89rem;
    width: 100%;
    height: 100%;
}

.field button {
    padding: 5px;
    color: #fff;
    background: #1955b0;
    border: 2px solid transparent;
    border-radius: 5px;
    font-weight: 500;
}

@media (max-width: 330px) {
    .modal-body .icons a {
        margin-right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .content h1 {
        font-size: 1.8rem !important;
    }

    #vSearch {
        display: none;
    }

    .app-grid {
        grid-template-columns: 3fr;
    }

    .sidebar {
        display: none;
    }

    .mobile-select {
        display: block;
    }

    .content {
        padding: 20px;
    }
}


.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Masaüstü: 2 sütun */
    gap: 15px;
    margin-bottom: 20px;
}

/* Masaüstü: Yan yana 4 tane */
.stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.stat-grid .stat-card {
    flex: 1;
    /* Masaüstünde alanı eşit paylaşırlar */
    min-width: 120px;
    /* Çok küçülmelerini engeller */
}

@media screen and (max-width: 768px) {
    .mobile-select-container {
        /*position: -webkit-sticky; 
        position: sticky;*/
        position: fixed;
        top: 70px !important;
        /* Değeri buradan milimetrik ayarla */
        left: 0;
        right: 0;
        /* Header yüksekliğin 75px ise tam altına yapışması için */

        /* Sayfa içindeki her şeyin (reklam, resim vb.) üstünde olması için */
        z-index: 2147483640 !important;

        background-color: #f8f9fa;
        /* Hafif bir gri veya beyaz */
        padding: 10px 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #eee;
    }

    .mobile-select {
        width: 100%;
        height: 45px;
        border: 2px solid #2ecc71;
        /* Belirgin bir renk */
        border-radius: 8px;
        font-size: 16px;
        background-color: white;
    }
}



/* Mobil Görünüm (768px altı) */
@media (max-width: 900px) {

    .content {
    width: 100% !important;

}
.sidebar {

    height: 290vh !important;;
}
    .responsive-grid,
    .stat-grid {
        grid-template-columns: 1fr !important;
        /* Mobil: Tek satır */
    }

    .pro-card,
    .stat-card {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobil: 768px ve altı ekranlarda 2'li düzen */
@media (max-width: 900px) {
    .stat-grid .stat-card {
        flex: 0 0 calc(50% - 5px);
        /* Ekranın tam yarısı (boşluğu düşerek) */
    }
    
}

/* Eğer hala reklamlar üste biniyorsa bu değeri yükseltin */
#myModel.show {
    z-index: 2147483647 !important;
}

.modal-backdrop.show {
    z-index: 2147483640 !important;
}
/* Gri ekranı modalın arkasına hapseden radikal çözüm */
.modal-backdrop {
    display: none !important;
    /* Gri ekranı tamamen kaldırır */
    z-index: 9999 !important;
}

/* Gri ekran yerine modalın kendisine yarı saydam bir arka plan verelim */
#myModel {
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.5);
    /* Modal açıldığında ekranı kendisi karartır */
}
/* Modal ve Arka Planı en tepeye, header'ın da üstüne zorla */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
    /* Eğer gri ekran hala aşağıda kalıyorsa bunu ekle: */
    top: 0 !important; 
    height: 100vh !important;
}

/* Modal açıkken header ve filtreleri arkaya it */
body.modal-open header, 
body.modal-open .header, 
body.modal-open .filters {
    z-index: 1 !important;
}

/* Ana içerik alanının dışarı taşmasını engelle */
.content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    /* İçerik taşarsa gizle veya aşağı kaydır */
    box-sizing: border-box !important;
}

/* Etkileşim barının (paylaşım butonu vb.) dışarı çıkmasını engelle */
.interaction-bar {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Sayfanın tamamında sağa kaymayı bitir */
body {
    overflow-x: hidden !important;
}


/* Seçili Butonun Yeni Hali */
.veg-btn.active {
    background-color: #e5f9e6 !important; /* Koyu Yeşil Arka Plan */
    color: #156315 !important;           /* Beyaz Yazı */
    border-left: 5px solid #1b5e20;     /* Sol tarafa daha koyu bir şerit */
    font-weight: bold;                   /* Yazıyı kalınlaştır */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Hafif gölge ile öne çıkar */
}

/* Seçili butonun içindeki ikonu ve kalın yazıyı da beyaz yapalım */
.veg-btn.active span, 
.veg-btn.active strong {
    color: #156315 !important;
}

/* Kategori Başlıklarını da biraz daha belirgin yapalım */
.sidebar-category-title {
    background-color: #31619d;
    color: #fafafa;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}
/* 1. Varsayılan Durum (Masaüstü) */
.mobile-select {
    display: none;
    /* Masaüstünde gizle */
}

.sidebar {
    display: block;
    /* Masaüstünde göster */
}

/* 2. Tablet ve Mobil Görünüm (768px ve altı) */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
        /* Kenar menüsünü tamamen kaldır */
    }

    .mobile-select {
        display: block;
        /* Mobil menüyü görünür yap */
        width: 100%;
        padding: 12px;
        //margin-bottom: 20px;
        border: 1px solid #4caf50;
        border-radius: 8px;
        font-size: 16px;
        /* Mobilde zoom yapmaması için ideal boyut */
    }
    .filters {
    margin-top:60px;
}
}


/* Loader */
#loader-wrapper {
    /* Konumu ekrana çivile */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    /* Boyutları zorla tam ekran yap */
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;

    /* Arka planı tamamen kapat */
    background-color: white !important;

    /* İçeriği merkeze zorla */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    /* En üstte tut */
    z-index: 9999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Halka ve Logo Kapsayıcısı */
.loader-container {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100px !important;
    height: 100px !important;
    transform: translateY(-100px) !important;
}

/* Dönen Mavi Halka */
.blue-ring {
    position: absolute !important;
    width: 175px !important;
    height:175px !important;
    border: 5px solid #f3f3f3 !important;
    border-top: 5px solid #1755a3 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

/* Sabit Logo */
.fixed-logo {
    width: 100px !important;
    height: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Animasyon */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

        /* Sebze Destek Kurulumu   */
        .destek-konteyner {
            display: flex;
            gap: 20px;
            margin-top: 10px;
            flex-direction: row;
            align-items: flex-start;
            width: 100%;
        }
    
        @media (max-width: 500px) {
            .destek-konteyner {
                flex-direction: column-reverse;
                /* Mobilde resim üste, metin alta */
            }
    
            .destek-sutun-metin,
            .destek-sutun-resim {
                width: 100% !important;
                /* Mobilde her şey tam genişlik */
            }
    
            .destek-sutun-resim img {
                width: 70% !important;
            }
        }