/* --- FONTLAR VE GENEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

:root {
    /* Kurumsal Renkler */
    --dogusan-red: #e30613;
    --dogusan-navy: #00205b;
    --gray-bg: #f8f9fa;
}

html {
    scroll-behavior: smooth; /* Sayfa içi kaydırmayı yumuşatır */
}

body {
    font-family: 'Roboto', sans-serif; /* Yeni tasarıma uygun font */
    background-color: var(--gray-bg);
    color: #1f2937; /* Koyu gri (okunabilirlik için) */
}

/* --- NAVİGASYON --- */
.nav-link {
    color: var(--dogusan-navy);
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--dogusan-red);
}

/* Alt Çizgi Animasyonu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--dogusan-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- ANASAYFA (HERO ALANI) --- */
.hero-bg {
    /* Fabrika veya endüstriyel görsel */
    background-image: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)), 
                      url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax efekti */
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* --- KATALOG SAYFASI (FİLTRELER) --- */
.category-btn {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    
    /* YENİ EKLENENLER: Hizalama Ayarları */
    display: flex;              /* Esnek kutu yap */
    align-items: center;        /* Dikeyde ortala */
    justify-content: space-between; /* Yazı sola, ikon sağa */
    gap: 10px;                  /* Yazı ve ikon arası boşluk */
    white-space: normal;        /* Yazının alt satıra geçmesine izin ver */
    line-height: 1.2;           /* Satır aralığını biraz daralt */
    height: auto;               /* Yükseklik içeriğe göre uzasın */
    min-height: 3.5rem;         /* Ama en az bu kadar yüksek olsun */
}

/* Kategori İkonu Sabitleme */
.category-btn i {
    flex-shrink: 0; /* İkon asla sıkışıp küçülmesin */
}

/* Hover ve Aktif Durumlar (Aynen kalıyor, sadece kontrol et) */
.category-btn:hover {
    background-color: #f3f4f6;
    color: var(--dogusan-red);
    border-color: #e5e7eb;
    padding-left: 1rem;
}

.category-btn.active {
    background-color: var(--dogusan-red);
    color: white !important;
    border-color: var(--dogusan-red);
    padding-left: 1.5rem;
}

.category-btn.active:hover {
    background-color: var(--dogusan-navy);
    color: white !important;
}

.category-btn.active i, 
.category-btn.active:hover i {
    color: white;
    opacity: 1 !important;
}

/* --- ÜRÜN KARTLARI DÜZENİ --- */

/* 1. Ürün Başlıklarını Sınırla */
#product-list h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* En fazla 2 satır olsun */
    -webkit-box-orient: vertical;
    overflow: hidden;           /* Taşan kısmı gizle */
    text-overflow: ellipsis;    /* Sonuna ... koy */
    height: 3rem;               /* Başlık alanı hep sabit yükseklikte olsun */
    margin-bottom: 1rem;        /* Altına boşluk */
    line-height: 1.5rem;        /* Satır yüksekliği */
}

/* 2. Kartın Kendisi */
#product-list .group {
    height: 100%;               /* Kart bulunduğu alanı doldursun */
    display: flex;
    flex-direction: column;     /* İçerikleri alt alta diz */
}

/* 3. Kart İçeriği (Yazılar ve Butonlar) */
#product-list .p-6 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;               /* Kalan boşluğu doldur */
}

/* 4. Butonları En Alta İt */
#product-list .mt-auto {
    margin-top: auto;           /* Buton grubu her zaman en altta dursun */
}

/* --- TEKLİF AL BUTONU (Özel ve Dikkat Çekici) --- */
.btn-primary {
    background-color: var(--dogusan-red) !important; /* Kesinlikle Kırmızı */
    color: white !important;                         /* Yazı Beyaz */
    font-weight: 800;                                /* Kalın Yazı */
    text-transform: uppercase;                       /* BÜYÜK HARF */
    padding: 0.75rem 1.5rem;                         /* İç boşluk (Dolgun dursun) */
    border-radius: 0.5rem;                           /* Kenarları yuvarla */
    box-shadow: 0 4px 6px rgba(227, 6, 19, 0.3);     /* Kırmızı gölge */
    transition: all 0.3s ease;                       /* Yumuşak geçiş */
    border: 2px solid var(--dogusan-red);            /* Kırmızı çerçeve */
}

/* Üzerine Gelince (Hover) */
.btn-primary:hover {
    background-color: white !important;              /* Arka plan Beyaz olsun */
    color: var(--dogusan-red) !important;            /* Yazı Kırmızı olsun */
    transform: translateY(-2px);                     /* Hafif yukarı zıplasın */
    box-shadow: 0 6px 12px rgba(227, 6, 19, 0.4);    /* Gölge büyüsün */
}