/* --- Genel Sayfa Stilleri --- */
body {
    background-color: #f9fafb;
}
.main-content {
    padding-top: 118px; 
}

.page-header .container,
.products-section .container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Sayfa Başlığı Alanı --- */
.page-header {
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    position: relative;
    background: url('../uploads/kompresorurunler.png') no-repeat center center;
    background-size: cover;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 38, 59, 0.6);
    z-index: 1;
}
.page-header h1, .page-header .breadcrumb {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.breadcrumb {
    font-size: 1rem;
    color: #e5e7eb;
}

/* --- Ürünler Bölümü --- */
.products-section {
    padding: 4rem 0;
}

/* --- Kategori Sekmeleri --- */
.category-tabs-container {
    position: relative;
    margin-bottom: 2rem; 
}
.category-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}
.category-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    white-space: nowrap;
}
.tab-item { padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; color: #4b5563; text-decoration: none; border-radius: 999px; background-color: #f3f4f6; border: 1px solid #e5e7eb; transition: all 0.2s ease-in-out; }
.tab-item:hover { background-color: #e5e7eb; color: #1f2937; }
.tab-item.active { background-color: #f97116; color: #fff; border-color: #f97116; box-shadow: 0 4px 14px rgba(249, 113, 22, 0.25); }
.category-nav-arrow { display: none; position: absolute; top: calc(50% - 1rem); transform: translateY(-50%); background-color: #ffffff; border: 1px solid #d1d5db; border-radius: 50%; width: 40px; height: 40px; font-size: 24px; color: #374151; cursor: pointer; z-index: 5; box-shadow: 0 2px 5px rgba(0,0,0,0.1); align-items: center; justify-content: center; transition: all 0.2s ease; }
.category-nav-arrow:hover { background-color: #f3f4f6; border-color: #9ca3af; }
.category-nav-arrow.prev { left: -20px; }
.category-nav-arrow.next { right: -20px; }


/* Teknik Özellikler Butonu */
.tech-specs-button-container {
    text-align: center;
    margin-bottom: 3rem;
}
.tech-specs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    background-color: #1f2937;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.2);
    text-decoration: none;
}
.tech-specs-btn:hover {
    background-color: #374151;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(31, 41, 55, 0.3);
}
.tech-specs-btn svg {
    width: 20px;
    height: 20px;
}

/* Ürün Grid ve Kart Stilleri */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.no-products-message { grid-column: 1 / -1; text-align: center; padding: 3rem; background-color: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.product-card { background-color: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.product-image-container { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.product-image-container img { width: 100%; height: 100%; object-fit: cover; }
.product-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-title-link { text-decoration: none; }
.product-title { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 0.75rem; line-height: 1.4; transition: color 0.2s ease; }
.product-title-link:hover .product-title { color: #f97116; }
.product-description { font-size: 0.95rem; color: #6b7280; line-height: 1.6; flex-grow: 1; margin-bottom: 1.5rem; }
.product-inspect-btn { position: absolute; bottom: 1rem; right: 1rem; background-color: #f97116; color: #fff; padding: 0.6rem 1.2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; z-index: 2; }
.product-inspect-btn .arrow { margin-left: 0.5rem; }
.product-inspect-btn:hover { background-color: #fb923c; }


/* --- Responsive Ayarlar --- */
@media screen and (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (min-width: 768px) { .category-tabs { justify-content: center; } }
@media screen and (max-width: 1023px) { .category-nav-arrow { display: flex; } .category-tabs-wrapper { padding: 0 20px; } }
@media screen and (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media screen and (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* MOBİL GÖRÜNÜM GÜNCELLEMESİ */
@media screen and (max-width: 767px) {
    .page-header {
        padding: 2.5rem 0; /* Boşluğu azalt */
    }
    .page-header h1 {
        font-size: 2rem; /* Başlık yazısını küçült */
    }
    .breadcrumb {
        font-size: 0.9rem;
    }

    .products-section {
        padding: 2.5rem 0;
    }

    /* Kategori menüsünü dikey hale getir */
    .category-tabs-container {
        margin-bottom: 2rem;
    }
    .category-tabs-wrapper {
        overflow-x: visible; /* Yatay kaydırmayı kaldır */
        border-bottom: none;
    }
    .category-tabs {
        flex-direction: column; /* Öğeleri alt alta sırala */
        align-items: stretch; /* Öğeleri tam genişliğe yay */
        gap: 0.5rem; /* Aradaki boşluğu ayarla */
        border-bottom: none; /* Alt çizgiyi kaldır */
        padding-bottom: 0;
    }
    .tab-item {
        text-align: center; /* Yazıyı ortala */
        padding: 0.8rem 1rem;
    }

    /* Yatay kaydırma oklarını mobilde tamamen gizle */
    .category-nav-arrow {
        display: none !important;
    }
    
    .tech-specs-button-container {
        margin-bottom: 2rem;
    }
}

