:root {
    /* Gündüz (Light) Mod Renkleri */
    --marjin-yesili: #223a28;
    --marjin-gold: #D4AF37;
    --arkaplan-krem: #FCFbf9;
    --koyu-yazi: #2c2c2c;
    --gri-yazi: #717171;
    --kart-arkaplan: #ffffff;
    --genel-arkaplan: #eeeeee;
    --border-renk: rgba(0,0,0,0.03);
    --input-yazi: #2c2c2c;
}

/* Karanlık (Dark) Mod Renkleri Sınıfı */
body.dark-theme {
    --marjin-yesili: #1a2c1e;
    --marjin-gold: #D4AF37;
    --arkaplan-krem: #181818;
    --koyu-yazi: #f5f5f5;
    --gri-yazi: #a0a0a0;
    --kart-arkaplan: #242424;
    --genel-arkaplan: #0a0a0a;
    --border-renk: rgba(255,255,255,0.05);
    --input-yazi: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--genel-arkaplan);
    color: var(--koyu-yazi);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--arkaplan-krem);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    transition: background-color 0.4s ease;
}

.hidden {
    display: none !important;
}

/* =========================================
   YENİ: SAĞ ÜST KONTROL BUTONLARI
========================================= */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn i {
    width: 20px;
    height: 20px;
}

.lang-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

/* =========================================
   ÜST BİLGİ (HEADER) VE LOGO
========================================= */
.main-header {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-header-container {
    position: relative;
    min-height: 280px;
    padding: 30px 20px 50px 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(34, 58, 40, 0.4) 0%, 
        rgba(34, 58, 40, 0.9) 100%
    );
}

.brand-logo {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--marjin-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    object-fit: cover;
    background-color: var(--marjin-yesili);
}

.brand-logo-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--marjin-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    object-fit: cover;
    background-color: var(--marjin-yesili);
}

.sub-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.sub-header-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    text-align: center;
}

.btn-menuye-don {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--marjin-gold);
    color: #ffffff;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-menuye-don:active {
    background: rgba(212, 175, 55, 0.4);
}

/* =========================================
   ARAMA ÇUBUĞU TASARIMI
========================================= */
.search-container {
    position: relative;
    margin: -25px 20px 10px 20px;
    z-index: 10;
    background: var(--kart-arkaplan);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    border-color: var(--marjin-gold);
}

.search-icon {
    color: var(--marjin-gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--input-yazi);
    background: transparent;
}

.search-input::placeholder {
    color: var(--gri-yazi);
}

.search-clear {
    background: none;
    border: none;
    color: var(--gri-yazi);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-results-container {
    padding: 10px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-no-result {
    text-align: center;
    padding: 30px 15px;
    color: var(--gri-yazi);
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   KATEGORİ KARTLARI
========================================= */
.category-list {
    padding: 10px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card {
    position: relative;
    height: 125px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    z-index: 2;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 18, 0.5);
}

.category-card:hover, 
.category-card:active {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.category-card span {
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    text-align: center;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   HIZLI ATLA ÇUBUĞU (QUICK JUMP BAR)
========================================= */
.quick-jump-wrapper {
    background: var(--arkaplan-krem);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    margin-top: -25px;
    position: relative;
    z-index: 15;
    padding: 20px 20px 0 20px;
    transition: background-color 0.4s ease;
}

.quick-jump-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

.quick-jump-scroll::-webkit-scrollbar {
    display: none;
}

.quick-jump-btn {
    background: var(--kart-arkaplan);
    border: 1px solid var(--border-renk);
    color: var(--gri-yazi);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.quick-jump-btn.active {
    background: var(--marjin-gold);
    color: var(--marjin-yesili);
    border-color: var(--marjin-gold);
}

/* =========================================
   ÜRÜN LİSTESİ VE FAVORİ BUTONU
========================================= */
.product-list-container {
    padding: 25px 20px 40px 20px;
    background: var(--arkaplan-krem);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    margin-top: -25px;
    position: relative;
    z-index: 5;
    min-height: 50vh;
    transition: background-color 0.4s ease;
}

.product-list-container.has-quick-jump {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 10px;
}

.product-item {
    display: flex;
    background: var(--kart-arkaplan);
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-renk);
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.product-item:hover, 
.product-item:active {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
}

.product-title-wrapper {
    display: flex;
    flex: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--koyu-yazi);
    line-height: 1.3;
}

.product-price {
    font-size: 12px;
    font-weight: 700;
    background-color: var(--marjin-gold);
    color: var(--marjin-yesili);
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.product-desc {
    font-size: 12px;
    color: var(--gri-yazi);
    line-height: 1.4;
}

.favorite-btn {
    background: var(--kart-arkaplan);
    border: 1px solid var(--border-renk);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gri-yazi);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    margin-top: -2px;
}

.favorite-btn svg {
    width: 16px;
    height: 16px;
    transition: fill 0.3s;
}

.favorite-btn:active {
    transform: scale(0.85);
}

.favorite-btn.active {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.favorite-btn.active svg {
    fill: #e74c3c;
}

/* =========================================
   HİZALAMA KONTROLLERİ
========================================= */
.tasarim-yan-yana .product-title-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tasarim-alt-alta .product-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* =========================================
   PARLAMA (SHIMMER) EFEKTİ
========================================= */
.shimmer-box {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 10;
    pointer-events: none;
}

.category-card:hover .shimmer-box,
.category-card:active .shimmer-box,
.product-item:hover .shimmer-box,
.product-item:active .shimmer-box {
    animation: parlamaAnimasyonu 0.7s ease-out;
}

@keyframes parlamaAnimasyonu {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* =========================================
   ANİMASYONLAR VE DİĞER
========================================= */
@keyframes suzulerekGel {
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: suzulerekGel 0.5s ease-out forwards;
}

.info-note {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--marjin-gold);
    color: var(--marjin-gold);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--gri-yazi);
    font-size: 12px;
}
/* =========================================
   GÜNÜN KONSEPTİ (SPLASH SCREEN / POPUP)
========================================= */
#konsept-ekrani {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s;
}

#konsept-ekrani.aktif {
    opacity: 1;
    visibility: visible;
}

/* BİLGİSAYAR GÖRÜNÜMÜ (Sabit Çerçeveli Pop-up) */
.konsept-icerik {
    position: relative;
    width: 800px;         /* Sabit bir genişlik (İstediğin gibi ayarlayabilirsin, örn: 60vw) */
    max-width: 90vw;      /* Küçük ekranlarda taşmasını önler */
    height: 600px;        /* Sabit bir yükseklik (İstediğin gibi ayarlayabilirsin, örn: 70vh) */
    max-height: 85vh;     /* Ekrandan dışarı taşmayı önler */
    background: transparent; 
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#konsept-ekrani.aktif .konsept-icerik {
    transform: scale(1);
}

.konsept-resim-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden; /* Köşelerin oval kalmasını sağlar */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0, 0.5); /* Resim tam oturtulmadığında arkada görünecek renk */
}

.konsept-resim {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px; /* SİHİRLİ DOKUNUŞ: Bilgisayarda oval köşeler */
}

/* Bilgisayar Kapatma Butonu (Köşeye Sabit) */
.konsept-kapat-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 10;
    transition: all 0.2s;
}

.konsept-kapat-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Bilgisayarda Alt Yazı Konumu */
.konsept-alt-yazi {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
    100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
}


/* =========================================
   MOBİL GÖRÜNÜM (TAM EKRAN AFİŞ)
========================================= */
@media (max-width: 768px) {
    .konsept-icerik {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .konsept-resim-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background-color: transparent; 
    }

    .konsept-resim {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        border-radius: 16px; /* SİHİRLİ DOKUNUŞ: Mobilde oval köşeler */
    }

    .konsept-kapat-btn {
        top: 20px;
        right: 20px;
        background: rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.3);
        width: 40px;
        height: 40px;
    }

    .konsept-alt-yazi {
        bottom: 50px;
        background: rgba(0,0,0,0.6);
        padding: 10px 25px;
        border-radius: 25px;
        color: white;
    }
}