@font-face {
    font-family: 'Kastroo';
    src: url('fonts/Kastroo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rossten';
    src: url('fonts/Rossten.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Okaluera';
    src: url('fonts/Okaluera.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mikalea';
    src: url('fonts/Mikalea.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lamoric';
    src: url('fonts/Lamoric.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ginger';
    src: url('fonts/GingerBrand.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dream';
    src: url('fonts/Dream.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DreamBd';
    src: url('fonts/DreamBd.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cronder';
    src: url('fonts/Cronder.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akeila';
    src: url('fonts/Akeila.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



* {
    box-sizing: border-box;
    
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #D5D3CC; /* Light beige background */

    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Yatay scroll'u engelle */
}



header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f5f5dc; /* Beige background */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: 0.6s;
    padding: 30px 100px;
    z-index: 1000;
    margin: 0;
    box-sizing: border-box;
}

header.sticky {
    padding: 15px 100px;
    background: #19350C; /* Phthalo Green */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

header ul li a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 1px;
    font-family: 'Mikalea';
    transition: color 0.3s ease;
}
header.sticky ul li a { color: #fff; }
header ul li a:hover { color: #687D31; } /* Mustard Green */

.container {
    display: flex;
    margin-top: 120px; /* Resimler navbar'ın daha aşağısında olsun */
    position: relative;
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    
}

.sidebar {
    width: 220px;
    background: linear-gradient(180deg, #19350C 0%, #1a3a0f 100%); /* Phthalo Green with gradient */
    color: #fff;
    padding: 30px 20px 20px 20px; /* Alt padding azaltıldı */
    position: fixed; /* Fixed position to move it to the left edge */
    top: 120px; /* Container ile aynı hizada */
    left: 0; /* Align to the very left */
    height: fit-content; /* İçeriğe göre yükseklik */
    max-height: calc(100vh - 120px); /* Maksimum yükseklik */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    border-radius: 0 20px 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    font-family: 'cronder';
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar li {
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar li:last-child {
    margin-bottom: 0; /* Son elemanın alt boşluğunu kaldır */
}

.sidebar li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(104,125,49,0.3);
    transition: width 0.3s ease;
    z-index: 0;
}

.sidebar li:hover::before {
    width: 100%;
}

.sidebar li:hover {
    transform: translateX(8px);
    background: rgba(255,255,255,0.08);
}

.sidebar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 25px;
    padding: 16px 22px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    z-index: 1;
}

.sidebar a:hover {
    color: #e8f5e8;
    border-left: 4px solid #687D31;
    padding-left: 28px;
    font-weight: 600;
}

.main-content {
    margin-left: 270px; /* Sidebar width + spacing */
    padding: 30px 30px 0 30px; /* Remove bottom padding completely */
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: calc(100% - 270px);
    min-height: calc(100vh - 120px);
    margin-top: 70px;
    margin-bottom: 100px;
}

.urun-kart {
    width: calc(33.333% - 17px);
    box-shadow: 0px rgba(0,0,0,0.12);
    border-radius: 16px;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    margin-bottom: 25px; /* Only gap between cards */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    
}

.urun-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.urun:hover::before {
    opacity: 1;
}

.urun-kart:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
}

.urun-kart img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
}

.urun-kart:hover img {
    transform: scale(1.08);
}

.urun-kart p {
    text-align: center;
    font-weight: 600;
    padding: 12px 15px;
    margin: 0;
    background: linear-gradient(135deg, #8B7355 0%, #6B5D4F 100%); /* Bej/kahverengi tonları */
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: 0 0 16px 16px; /* Card border radius ile uyumlu */
    position: relative;
    z-index: 2;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #19350C 0%, #687D31 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #687D31 0%, #19350C 100%);
}

.back-to-top i {
    font-size: 18px;
}



/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.footer{
    width: 100%;
    min-height: 150px;
    padding: 40px 80px;
    margin: 0;
    background: linear-gradient(135deg, #406768 0%, #19350C 100%); 
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
/* ========================
   WHATSAPP CANLI DESTEK BUTONU
   ======================== */
.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px; /* Alttan boşluk */
    right: 30px;  /* Sağdan boşluk */
    background-color: #25D366; /* WhatsApp Yeşili */
    color: #FFF;
    border-radius: 50%; /* Tamamen yuvarlak yapar */
    
    display: flex; /* İkonu ortalamak için */
    align-items: center;
    justify-content: center;
    
    font-size: 28px; /* İkonu büyütür */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Yukarı Çık butonundan (1000) bir tık üstte */
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Üzerine gelince hafifçe büyüsün */
}

/* ==============================================
   ÜRÜNLER SAYFASI (Responsive)
   ============================================== */
@media (max-width: 768px) {

    /* Ana yerleşim konteyneri */
    .container {
        /* Yerleşimi dikey (alt alta) yap */
        flex-direction: column; 
        /* Header'ın yeni boyutu için boşluğu ayarla */
        margin-top: 100px; 
    }

    /* Sol Menü (Sidebar) */
    .sidebar {
        position: static; /* Sabit (fixed) pozisyondan normale çevir */
        width: 100%; /* Tam genişlik kapla */
        height: auto;
        max-height: none;
        border-radius: 0; /* Köşe yuvarlaklığını kaldır */
        top: auto;
        left: auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .sidebar ul {
        display: flex; /* Menüleri yan yana diz */
        flex-wrap: wrap; /* Sığmazsa alta indir */
        justify-content: center; /* Ortala */
        padding: 10px 0;
    }
    .sidebar li {
        margin-bottom: 5px;
    }
    .sidebar a {
        font-size: 14px;
        padding: 10px 15px;
    }
    /* Hover efektindeki kaymayı düzelt */
    .sidebar a:hover {
        padding-left: 15px; 
    }

    /* Sağ İçerik Alanı (Ürünler) */
    .main-content {
        margin-left: 0; /* Sol menü boşluğunu sıfırla */
        width: 100%;
        padding: 20px; /* Kenar boşluklarını ayarla */
    }

    /* Ürün Kartları */
    .urun-kart {
        /* 3'lü sütun yerine tekli sütun yap */
        width: 100%; 
        max-width: 350px; /* Çok geniş olmasın */
        margin-left: auto; /* Kartları ortala */
        margin-right: auto;
    }
}