/* --- KATEGORİ SAYFASI STİLLERİ --- */

/* 1. KATEGORİ BANNER */
.category-banner-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px; /* Sabit yükseklik */
    background: #eee;
}

.cat-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner-wrapper:hover .cat-banner-img {
    transform: scale(1.05);
}

.cat-banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

.cat-banner-title {
    position: absolute;
    bottom: 30px; left: 30px;
    color: #fff;
    z-index: 2;
}

.cat-banner-title h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Banner Yoksa Basit Başlık */
.cat-simple-title {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
}
.cat-divider {
    width: 60px; height: 3px; background: var(--accent);
    margin: 10px auto; border-radius: 2px;
}

/* 2. FİLTRE BARI */
.filter-bar {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.product-count {
    font-size: 0.9rem;
}

.sort-wrapper select {
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* 3. ÖZELLİKLER (Top Section) */
.features-wrapper {
    display: flex;
    justify-content: space-between;
    padding-left: 15px;
}
.feature-item { text-align: center; }
.feature-icon { 
    font-size: 1.2rem; color: var(--primary); margin-bottom: 5px; 
    background: #ecfdf5; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 5px;
}
.feature-title { font-size: 0.7rem; font-weight: 600; line-height: 1.2; }

/* 4. FIRSAT WIDGET (HOME.CSS ile Aynı Yapı) */
.firsat-widget {
    position: fixed; bottom: 20px; right: 20px;
    background: #fff; width: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9990;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0,0,0,0.05);
}
.firsat-widget.active { transform: translateY(0); }

.fp-inner { display: flex; padding: 12px; gap: 15px; }
.fp-img-holder {
    width: 90px; height: 90px; border-radius: 8px;
    overflow: hidden; position: relative; flex-shrink: 0;
}
.fp-img-holder img { width: 100%; height: 100%; object-fit: cover; }
.fp-tag {
    position: absolute; top: 0; left: 0; width: 100%;
    background: var(--accent); color: #fff;
    font-size: 0.55rem; font-weight: 800; text-align: center; padding: 2px 0;
}
.fp-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.fp-title {
    font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
    margin: 0 0 5px 0; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fp-timer-box {
    font-size: 0.7rem; color: #dc3545; background: #FFF1F2;
    padding: 2px 6px; border-radius: 4px; display: inline-block; font-weight: 600; width: fit-content;
}
.fp-price { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.fp-btn-go {
    background: var(--text-dark); color: #fff;
    font-size: 0.75rem; padding: 5px 12px; border-radius: 20px;
    text-decoration: none; font-weight: 600; transition: 0.2s;
}
.fp-btn-go:hover { background: var(--primary); color: #fff; }
.fp-close {
    position: absolute; top: -10px; right: -10px;
    width: 24px; height: 24px; background: #fff;
    border: 1px solid #ddd; border-radius: 50%;
    color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .category-banner-wrapper { height: 180px; }
    .cat-banner-title h1 { font-size: 1.5rem; }
    .features-wrapper { display: none; } /* Mobilde üst kısmı sadeleştir */
    .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .sort-wrapper { width: 100%; justify-content: space-between; }
    .firsat-widget { width: 94%; left: 3%; right: 3%; bottom: 80px; }
}