/* ============================================== */
/*         SADECE INDEX.PHP'YE ÖZEL STİLLER       */
/* ============================================== */

/* Ana Tanıtım Alanı */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section .text-part {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.hero-section .image-part {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    position: relative; 
    min-height: 450px; 
}

.hero-slide {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover; 
    border-radius: 8px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.slider-btn:hover {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prev-btn {
    left: 35px;
}

.next-btn {
    right: 35px;
}


.hero-section h2 {
    font-size: 2.5em;
    margin-top: 0;
    color: var(--primary-text);
}

/* Ürün Bölümleri ve Kartları */
.products-section {
    padding: 50px 40px;
    background-color: var(--light-gray-bg);
    border-top: 1px solid var(--border-color);
}

.products-section:first-of-type {
    background-color: transparent;
    border-top: none;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    text-align: left;
    transition: border-color 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-text);
}

.product-card img {
    width: 100%;
    height: 160px; 
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card .card-content {
    padding: 12px;
}

.product-card .category {
    font-size: 0.75em;
    color: var(--secondary-text);
    text-transform: uppercase;
    font-weight: 500;
}

.product-card h3 {
    margin: 5px 0 8px 0;
    font-size: 1.1em; 
}

.product-card .price {
    font-size: 1.2em; 
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.product-card .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px; 
    font-size: 0.9em;
    background-color: var(--primary-text);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.product-card .btn:hover {
    background-color: var(--secondary-text);
}

/* FİLTRELİ ÜRÜN BÖLÜMÜ STİLLERİ */
.filtered-products-section {
    padding: 50px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.category-filters {
    flex: 0 0 250px;
}

.category-filters h3 {
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.category-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filters a.category-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary-text);
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.category-filters a.category-link:hover {
    background-color: var(--light-gray-bg);
}

.category-filters a.category-link.active {
    background-color: var(--primary-text);
    color: white;
}

.filtered-product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px;
}