@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --su-yesili: #20c997;
    --su-yesili-hover: #17a589;
    --koyu-gri: #1a252f;
    --arka-plan: #f8fafb;
}

body {
    background-color: var(--arka-plan);
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}


/* --- NAVBAR & NAV LİNKLERİ --- */
.navbar-custom {
    background-color: var(--koyu-gri) !important;
    padding: 12px 0;
    border-bottom: 3px solid var(--su-yesili);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

/* Hover ve Aktif Durumda Yazı Rengi */
.nav-link-custom:hover, 
.nav-link-custom.active {
    color: white !important;
}

/* ÇİZGİNİN BAŞLANGIÇ HALİ (Görünmez ve Genişliği 0) */
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0; /* Başlangıçta genişlik yok */
    height: 2px;
    background: var(--su-yesili);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out; /* Animasyon hızı ve tipi */
}

/* HOVER ANINDA VEYA AKTİFKEN: Çizgi %100 genişliğe ulaşır */
.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

/* Anasayfadayken: Tıklanamaz ve imleç değişmez */
.nav-link-custom.active {
    cursor: default !important;
    pointer-events: none;
}

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.8)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
}

/* --- ÜRÜN KARTLARI --- */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(32, 201, 151, 0.15);
}

.product-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 2px solid #f1f3f5;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--koyu-gri);
}

/* --- ÖZEL BUTON (Beyaz -> Yeşil Geçişli) --- */
.btn-home-custom {
    background-color: white !important;
    color: var(--su-yesili) !important;
    border: 2px solid var(--su-yesili) !important;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s all;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    position: relative;
    z-index: 5;
}

.btn-home-custom:hover {
    background-color: var(--su-yesili) !important;
    color: white !important;
    border-color: var(--su-yesili) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 20px;
        border-radius: 0 0 25px 25px;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .product-img-container {
        height: 200px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}