/* 🎨 TASARIM PALETİ */
:root {
    --primary-red: #d90429;     
    --primary-red-light: #ef233c; 
    --secondary-dark: #2b2d42;  
    --background-light: #f8f9fa; 
    --card-bg: #ffffff;         
    --text-muted: #6c757d;    
    --border-light: #e0e0e0;   
}

/* GENEL STİL */
main { 
    background-color: var(--background-light); 
    padding-bottom: 50px;
}

/* HERO ALANI */
.products-hero {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; overflow: hidden;
    position: relative;
    z-index: 1;
}
.products-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); 
    z-index: 2;
}
.hero-content { 
    position: relative; z-index: 3;
    max-width: 800px; padding: 0 20px;
}
.hero-content h1 { 
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.hero-content p { 
    font-size: 1.2rem;
    opacity: 0.9;
}

/* FİLTRE MENÜSÜ */
.filter-menu {
    margin: -30px auto 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(224, 224, 224, 0.5);
}
.filter-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    color: var(--secondary-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.filter-btn:hover {
    color: var(--primary-red); 
}
.filter-btn.active {
    background: var(--primary-red); 
    color: white;
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.3);
    transform: translateY(-2px);
}

/* ÜRÜN KARTLARI KONTEYNERİ */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 0;
    padding-top: 20px;
}

.pro-card {
    background-color: var(--card-bg); 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative; /* Kritik: Linkin yayılması için referans */
    display: flex; 
    flex-direction: column; 
    cursor: pointer; /* Kartın her yerinde el imleci çıkar */
}

.pro-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
}

.pro-img-box {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f0f0f0; 
}
.pro-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pro-card:hover .pro-img-box img {
    transform: scale(1.05);
}

.badge-container {
    position: absolute;
    top: 15px; left: 15px; z-index: 5;
    display: flex; gap: 8px;
}
.badge {
    font-size: 0.8em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}
.badge-primary { background-color: var(--primary-red); color: white; } 
.badge-dark { background-color: var(--secondary-dark); color: white; } 

.pro-details { 
    padding: 25px;
    display: flex; flex-direction: column;
    flex-grow: 1;
}
.pro-cat { 
    font-size: 0.9em; font-weight: 600; 
    color: var(--primary-red); 
    margin-bottom: 5px;
}
.pro-title { 
    font-size: 1.4rem; font-weight: 700; 
    color: var(--secondary-dark);
    margin: 0 0 15px;
}

/* ÖZELLİK GRİDİ */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    padding: 15px 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
    margin-bottom: 20px;
    position: relative; /* İçeriklerin linkin altında kalmaması için gerekirse kullanılabilir */
}
.spec-item { font-size: 0.9em; }
.spec-item .label { 
    display: block; color: var(--text-muted);
    font-weight: 500; margin-bottom: 3px;
}
.spec-item strong { 
    display: flex; align-items: center; gap: 8px;
    color: var(--secondary-dark); font-weight: 600; 
}
.spec-item strong i { 
    color: var(--primary-red); font-size: 1em; 
}

/* ❌ ESKİ HALİ: position: relative; linki butona hapseder */
/* ✅ YENİ HALİ: position: static veya relative'i silin */
.btn-card {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light)); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 600; 
    display: inline-flex; align-items: center; justify-content: center; 
    gap: 10px; 
    margin-top: auto; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 15px rgba(217, 4, 41, 0.3);
    /* position: relative;  <-- BU SATIRI SİL VEYA YORUMA AL */
}
.btn-card::after {
    content: "";
    position: absolute;
    /* Inset 0 her yönden (top, left, right, bottom) 0 demektir */
    inset: 0; 
    z-index: 999; /* Kartın içindeki her şeyin üstünde olsun */
}

.btn-card:hover {
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.4); 
}

/* Rozet ve ikonların tıklama engelini kaldırmak için z-index ayarı */
.badge-container, .spec-item strong i {
    position: relative;
    z-index: 11;
}

/* CTA ALANI */
.bottom-cta {
    margin-top: 50px;
    background-color: var(--secondary-dark); 
    color: white;
    padding: 60px 0;
    text-align: center;
}
.bottom-cta h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.bottom-cta p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; }
.btn-white {
    background-color: white; 
    color: var(--secondary-dark); 
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-white:hover {
    background-color: #eee;
    transform: scale(1.05);
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .products-hero { height: 300px; }
    .filter-menu { margin-top: -30px; padding: 10px; gap: 10px; }
    .products-container { padding-top: 10px; }
}