﻿
/* =========================================
           2. YEDEK PARÇA ÖZEL CSS (DÜZELTİLMİŞ)
           ========================================= */

/* Banner & Arama */
.parts-hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
    background-color: var(--dark-blue);
}

    .parts-hero::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        /* Elektronik Kart / Devre Arka Planı */
        background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070');
        background-size: cover;
        background-position: center;
        filter: blur(2px); /* HAFİF BLUR - RESİM BELLİ */
        z-index: 1;
        opacity: 0.4;
    }

.parts-content {
    position: relative;
    z-index: 2;
}

.parts-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.parts-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Arama Kutusu (Geniş) */
.search-container {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    color: #333;
}

    .search-input::placeholder {
        color: #888;
        font-weight: 400;
    }

.search-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

    .search-btn:hover {
        background: #d9641e;
    }

/* SOL MENÜ (KATEGORİLER) */
.category-sidebar {
    background: white;
    border-radius: var(--card-radius);
    padding: 25px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.cat-list-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list-item {
    margin-bottom: 8px;
}

.cat-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

    .cat-list-link:hover, .cat-list-link.active {
        background-color: #fff5eb;
        color: var(--accent-orange);
        border-color: #ffecd9;
    }

    .cat-list-link i {
        width: 25px;
        text-align: center;
        margin-right: 10px;
        color: #9ca3af;
        transition: 0.2s;
    }

    .cat-list-link:hover i {
        color: var(--accent-orange);
    }

/* SAĞ TARAF (ÜRÜNLER) */
.section-padding {
    padding: 80px 0;
}

.part-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .part-item:hover {
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        border-color: var(--accent-orange);
        transform: translateY(-5px);
    }

.part-img-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
}

    .part-img-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: 0.3s;
    }

    .part-img-box:hover img {
        transform: scale(1.05);
    }

.part-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.part-brand-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.part-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.btn-part {
    background: var(--primary-blue);
    color: white;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    display: block;
    transition: 0.3s;
}

    .btn-part:hover {
        background: var(--accent-orange);
        color: white;
    }

/* FOTOĞRAF GÖNDER BANDI */
.photo-cta-section {
    background: var(--dark-blue);
    padding: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 60px 0;
}

    .photo-cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30%;
        height: 100%;
        background: var(--accent-orange);
        clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
        opacity: 0.9;
    }

.cta-content-wrapper {
    position: relative;
    z-index: 2;
}

.btn-white-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-white-outline:hover {
        background: white;
        color: var(--dark-blue);
    }

/* MARKALAR (GRID) */
.brands-grid-section {
    padding-bottom: 80px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.brand-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    color: #94a3b8;
}

    .brand-box:hover {
        border-color: var(--accent-orange);
        color: var(--dark-blue);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-3px);
    }

    .brand-box i {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .brand-box span {
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

@media (max-width: 991px) {
    .parts-hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        padding: 10px;
        border-radius: 20px;
    }

    .search-input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .search-btn {
        width: 100%;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .photo-cta-section::before {
        width: 100%;
        height: 100%;
        clip-path: none;
        opacity: 0.1;
    }

    .photo-cta-section {
        text-align: center;
    }

    .btn-white-outline {
        display: block;
        width: 100%;
        margin-top: 20px;
    }
}
