/* --- HOME.CSS (YENİ MODERN & KOMPAKT TASARIM) --- */

/* 1. HERO BÖLÜMÜ - Premium Görüntü */
.hero-section {
    position: relative;
    /* BURAYA DİKKAT: Arka plana güzel bir kebap/sofra resmi koymalısınız.
       Şimdilik koyu bir renk/degrade var. Resim gelince url(...) içine yazın. */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/img/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a; /* Resim yoksa görünecek renk */
    height: 450px; /* Çok yüksek değil, kompakt */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0; /* Altındaki şeritle birleşsin */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.8rem; /* Daha makul boyut */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title .highlight {
    color: var(--primary-color); /* Ana renk vurgusu */
}

.hero-text {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-hero {
    padding: 0.8rem 2rem;
    border-radius: 6px; /* Yuvarlak değil, hafif kavisli modern buton */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-hero.primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-hero.primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-hero.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero.secondary:hover {
    background-color: #fff;
    color: #000;
}

/* 2. ÖZELLİKLER ŞERİDİ (Features Strip) */
.features-strip {
    background-color: var(--bg-card); /* Beyaz veya açık gri */
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.features-row {
    display: flex;
    justify-content: space-around; /* Eşit dağılım */
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 3. ÜRÜNLER ALANI */
.products-section {
    padding: 3rem 0 5rem 0; /* Üst boşluk azaltıldı */
    background-color: #f8f9fa; /* Hafif gri zemin */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem; /* Başlık ile ürünler arası boşluk azaldı */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.view-all-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* SIKI GRID YAPISI */
.products-grid {
    display: grid;
    /* Kartlar çok geniş olmasın, daha fazla ürün sığsın */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 1.5rem; /* Boşluklar daraltıldı (Önceki 2.5rem idi) */
}

/* 4. MODERN & KOMPAKT ÜRÜN KARTI */
.product-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.card-img-link {
    position: relative;
    display: block;
    aspect-ratio: 4/3; /* Biraz daha yatay, modern oran */
    overflow: hidden;
    background-color: #f3f4f6;
}

.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-cat {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-title {
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-bottom {
    margin-top: auto; /* Fiyatı en alta it */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-add-mini {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-add-mini:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.empty-products {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 4rem 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .features-row {
        justify-content: flex-start; /* Mobilde sola yaslı kaydırma hissi verilebilir */
        gap: 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr; /* Mobilde 2 kolonlu özellikler */
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr; /* Mobilde yan yana 2 ürün */
        gap: 1rem; /* Mobilde daha da sıkı */
    }
    
    .card-details {
        padding: 0.8rem;
    }
    
    .btn-add-mini {
        width: 28px;
        height: 28px;
    }
}