/* --- GENEL AYARLAR --- */
:root {
    --primary-yellow: #ffc107;
    --text-dark: #333;
    --whatsapp-green: #25D366;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
    color: var(--text-dark);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* --- HEADER --- */
header { border-bottom: 4px solid #eee; padding-bottom: 0; }
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.main-logo { height: 100px; } /* Logona göre ayarla */

.search-area {
    flex: 1; margin: 0 40px; position: relative;
    border: 1px solid #000; border-radius: 50px;
    padding: 8px 20px; display: flex; align-items: center;
}
.search-input { border: none; outline: none; width: 100%; font-size: 1rem; }
.btn-siparis {
    background: var(--primary-yellow); border: none;
    padding: 10px 30px; border-radius: 50px;
    font-weight: bold; cursor: pointer; font-size: 1rem;
}

.main-nav { border-top: 1px solid #ddd; margin-top: 10px; }
.main-nav ul { display: flex; justify-content: center; gap: 80px;  margin: 0; padding: 15px 0; }
.main-nav a { font-weight: 700; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: #f39c12; }

/* --- ÜRÜN DETAY --- */
.breadcrumb { color: var(--primary-yellow); margin: 20px 0; font-size: 0.9rem; }

.product-detail {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-bottom: 60px;
}

/* Slider */
.slider-wrapper { position: relative; border-radius: 15px; overflow: hidden; }
.slider-wrapper img { width: 100%; height: 350px; object-fit: cover; display: block; }
.slider-controls {
    position: absolute; bottom: 15px; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 15px;
}
.prev, .next { cursor: pointer; font-size: 1.5rem; color: #333; user-select: none; }
.dot { width: 8px; height: 8px; background: #aaa; border-radius: 50%; }
.dot.active { background: #f39c12; }

/* Bilgiler */
.product-info h1 { color: #f39c12; font-size: 1.6rem; margin: 0 0 10px; }
.product-info .desc { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }
.price { font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; color: #f39c12; }
.price span { font-size: 1.rem; font-weight: 400; color: #000; }
.note { margin-bottom: 20px; font-size: 0.9rem; }

.btn-whatsapp-big {
    background: var(--whatsapp-green); color: white;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 40px; border-radius: 50px; font-weight: bold; font-size: 1.2rem;
}
.btn-whatsapp-big img { height: 24px; filter: brightness(0) invert(1); } /* İkonu beyaz yap */

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-detail, .features, .footer-grid, .top-header {
        grid-template-columns: 1fr; flex-direction: column; text-align: center;
    }
    .main-nav ul { flex-wrap: wrap; gap: 15px; }
    .search-area { width: 100%; margin: 15px 0; }
    .footer-right { align-items: center; margin-top: 30px; }
}

/* --- FEATURES & FOOTER STİLLERİ --- */

/* Features */
.features { margin: 60px 0; padding-top: 40px; border-top: 1px solid #eee; }
.featureGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.fIconImg { height: 50px; margin-bottom: 15px; }
.featureItem h4 { color: #e0a800; margin-bottom: 5px; font-size: 1.1rem; }
.featureItem p { font-size: 0.9rem; color: #666; }

/* Footer */
.footerContact {
    background: #000000;
    padding: 50px 0 85px;
    border-top: 5px solid #eee;
    margin-top: 60px;
}
.footerGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}
.fBrand { display: flex; align-items: center; gap: 15px; }
.fLogo { width: 60px; }
.fTitle { font-family: '', cursive; font-size: 1.8rem; color: #ffc107; margin: 0; }
.fHead { margin-bottom: 15px; font-size: 1.1rem; color: #fff; font-weight: bold; }

.fRow {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; text-decoration: none; color: #fff;
    transition: 0.2s;
}
.fRow:hover { color: #e0a800; }
.fRow img { width: 20px; }

.fBottom {
    text-align: left; border-top: 1px solid #ddd;
    padding-top: 20px; font-size: 0.9rem; color: #888;
}

/* Responsive (Mobil) */
@media (max-width: 768px) {
    .featureGrid, .footerGrid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .fBrand, .fRow { justify-content: center; }
}


/* =========================================
   KATEGORİ (LİSTELEME) SAYFASI STİLLERİ
   ========================================= */

.category-page {
    margin: 50px auto 80px; /* Üstten ve alttan boşluk */
}

/* 4'lü Izgara Sistemi */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Yan yana 4 tane */
    gap: 30px; /* Kartlar arası boşluk */
    justify-content: center
}

/* Kartın Dış Kutusu */
.cat-item-card {
    width: 300px;
    background-color: #f0f0f0; /* Tasarımdaki açık gri arka plan */
    border-radius: 20px; /* Yumuşak köşeler */
    overflow: hidden; /* Resmin köşeden taşmasını engeller */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Üzerine gelince (Hover) hafif yukarı kalkıp gölge versin */
    .cat-item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* Üstteki Resim */
.cat-item-img {
    width: 100%;
    height: 250px; /* Resimlerin hepsini aynı boyda tutar */
    object-fit: cover;
    background-color: #ffc107; /* Eğer resim yüklenmezse tasarımdaki sarı rengi gösterir */
}

/* Altındaki Yazı Alanı */
.cat-item-info {
    padding: 20px;
    text-align: left; /* Tasarımdaki gibi yazılar sola yaslı */
}

.cat-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.cat-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f39c12;
    margin: 0;
}

/* --- TELEFON VE TABLET İÇİN UYUM (RESPONSIVE) --- */
@media (max-width: 1024px) {
    /* Tablette yan yana 3 tane olsun */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Yatay telefonda yan yana 2 tane olsun */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat-item-img {
        height: 200px;
    }
    /* Mobilde resim biraz küçülsün */
}

@media (max-width: 480px) {
    /* Dik telefonda tek sıra olsun */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .cat-item-img {
        height: 250px;
    }
}
