
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

:root {
    --clay-brown: #8e7355;      /* Ana Vurgu Rengi */
    --deep-charcoal: #2d2a26;  /* Koyu Mistik Renk */
    --soft-cream: #f9f6f0;     /* Arka Plan Rengi */
    --warm-sand: #e6dfd3;      /* Kartlar ve Butonlar İçin */
}

body {
    background-color: var(--soft-cream);
    color: var(--deep-charcoal);
    overflow-x: hidden;
}

/* --- MİSTİK GİRİŞ EKRANI (INTRO) --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-charcoal);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 1.2s ease forwards 3.5s; /* 3.5 sn sonra kaybolur */
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text {
    color: var(--soft-cream);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 6px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--clay-brown);
    display: inline-block;
    animation: blinkCursor 0.75s step-end infinite;
}

.intro-sub {
    color: #a8a297;
    margin-top: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--clay-brown); }
}

/* --- HEADER / NAVBAR --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--deep-charcoal);
}

.contact-top-btn {
    text-decoration: none;
    color: white;
    background-color: var(--clay-brown);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.contact-top-btn:hover {
    background-color: var(--deep-charcoal);
    transform: translateY(-2px);
}

/* --- KATEGORİ BUTONLARI --- */
.container {
    padding: 40px 8%;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--warm-sand);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    color: var(--deep-charcoal);
    transition: 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--clay-brown);
    color: white;
}

/* --- ÜRÜN KARTLARI (GRID) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(142, 115, 85, 0.1);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
}

/* --- POP-UP MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 30px;
    width: 90%;
    max-width: 750px;
    border-radius: 25px;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.close-modal:hover { color: var(--deep-charcoal); }

.modal-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 15px;
}

#modalImage {
    width: 100%;
    max-width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--deep-charcoal);
}

.modal-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clay-brown);
    margin-bottom: 25px;
}

.buy-btn {
    display: inline-block;
    padding: 15px;
    background-color: #25d366; /* WhatsApp Yeşili */
    color: white;
    text-decoration: none;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

.buy-btn:hover {
    background-color: #1cbd55;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
    padding: 40px 10px;
    text-align: center;
    background: white;
    margin-top: 80px;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    font-size: 1.6rem;
    color: #777;
    transition: 0.3s;
}

.social-links a:hover { transform: translateY(-5px); }
.social-links a.li:hover { color: #0077b5; }
.social-links a.gh:hover { color: #333; }
.social-links a.ig:hover { color: #e1306c; }




/* --- TAM MOBİL UYUMLULUK (Sihirli Dokunuşlar) --- */

/* Telefon Ekranları İçin (Genişlik 600px ve altı) */
@media (max-width: 600px) {
    
    /* 1. Kategori Butonları: Yana kaydırmalı akıcı ray */
    .filter-buttons {
        justify-content: flex-start; 
        overflow-x: auto;            
        white-space: nowrap;         
        padding: 0 15px 15px 15px;   
        margin-left: -5%;            
        margin-right: -5%;
        -webkit-overflow-scrolling: touch; 
    }

    .filter-btn {
        flex: 0 0 auto;              
        padding: 8px 16px;           
        font-size: 0.8rem;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }
.product-grid {
        grid-template-columns: repeat(2, 1fr); /* Telefonda yan yana tam 2 geniş ürün */
        gap: 12px; /* Kartların arası daha nefes alan, şık bir boşluk */
        margin-top: 15px;
    }

    /* 3. Mobil Çerçeveli Kare Kart Ayarları */
    .product-card {
        padding: 6px; /* İç boşluğu kart büyüdüğü için bir tık artırdık */
        border-radius: 14px; /* Köşeler biraz daha tatlı oval */
        border: 2px solid #e6dfd3; /* İstediğin o 2px asil çerçeve */
        
        /* Kartın bütünsel olarak tam bir kare formunda kalmasını sağlıyoruz */
        aspect-ratio: 1 / 1 !important; 
        
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
        overflow: hidden;
    }

    /* 4. Kart İçindeki Fotoğrafın Yeni Boyut Ayarı */
    .product-card img {
        width: 100%;
        /* Kart büyüdüğü için fotoğrafı %70 yapıp alt kısma yazılar için konforlu yer bırakıyoruz */
        height: 70% !important; 
        object-fit: cover;     
        border-radius: 10px;   
        aspect-ratio: auto !important; 
    }

    /* 5. Kartın Altındaki Yazı Alanı (Büyüyen Karta Göre Optimize Edildi) */
    .product-card div {
        margin-top: 4px !important; 
        padding: 0 4px !important;
        height: 25%; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
    }

    /* Yazı boyutlarını kart büyüdüğü için bir tık artırdık, tam Candle sitesindeki gibi okunaklı oldu */
    .product-card h3 {
        font-size: 0.8rem !important; /* Artık daha net okunuyor */
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;          
        overflow: hidden;             
        text-overflow: ellipsis; 
        color: var(--deep-charcoal);
    }
    
    .product-card p {
        font-size: 0.8rem !important; /* Fiyat alanı da başlıkla uyumlu büyüdü */
        margin-top: 2px !important;
        font-weight: 700;
        color: var(--clay-brown);
    }
    /* 6. Diğer Mobil Detaylar */
    .header {
        padding: 15px 5%;
        flex-direction: column;       
        gap: 12px;
    }

    .logo {
        font-size: 1.3rem;            
    }

    .intro-text {
        font-size: 1.8rem;            
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 92%;
    }
    
    .modal-body {
        flex-direction: column; 
        gap: 15px;
    }
    
    #modalImage { 
        max-width: 100%; 
        height: 220px; 
    }
}
