/* ========== pages.css ========== */
/* TÜM SAYFA BÖLÜMLERİ - Slider, Kategoriler, Ürünler, Markalar, Neden Biz, Newsletter */

.kategori-menu-item {
    position: relative;
}

.kategori-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 900px;
    max-width: 1100px;
    max-height: 80vh; /* Maksimum yükseklik ekranın %80'i */
    overflow-y: auto; /* Dikey kaydırma */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    padding: 25px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 1000;
    border-top: 3px solid #ff6b6b;
    scrollbar-width: thin; /* İnce scrollbar (Firefox) */
    scrollbar-color: #ff6b6b #f0f0f0; /* Scrollbar renkleri (Firefox) */
}

/* Webkit tarayıcılar için scrollbar stilleri (Chrome, Safari, Edge) */
.kategori-mega-menu::-webkit-scrollbar {
    width: 8px;
}

.kategori-mega-menu::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.kategori-mega-menu::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.kategori-mega-menu::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

.menu-item-has-children:hover .kategori-mega-menu {
    display: grid;
    animation: fadeInMenu 0.3s ease;
}

.kategori-menu-col {
    list-style: none;
    padding: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
    min-width: 0;
}

.kategori-menu-col:last-child {
    border-right: none;
    padding-right: 0;
}

.kategori-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 12px 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kategori-baslik:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.kategori-baslik i, 
.kategori-baslik img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.kategori-adi {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.kategori-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    font-weight: normal;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.alt-kategori-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alt-kategori-list li {
    margin-bottom: 8px;
}

.alt-kategori-list li a {
    display: block;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alt-kategori-list li a:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.alt-kategori-list li a:hover {
    color: #ff6b6b;
    padding-left: 20px;
}

.alt-kategori-list li a:hover:before {
    opacity: 1;
    left: 5px;
}

.alt-kategori-toggle-container {
    margin-top: 5px;
}

.alt-kategori-toggle-btn {
    background: transparent;
    border: 1px dashed #ddd;
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.alt-kategori-toggle-btn:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.alt-kategori-toggle-btn i {
    font-size: 10px;
}

.tum-alt-kategoriler {
    margin-top: 8px;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.no-data {
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 5px 0;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Kategori Menü */
@media (max-width: 1200px) {
    .kategori-mega-menu {
        min-width: 800px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .kategori-mega-menu {
        min-width: 100%;
        width: 100%;
        max-height: 60vh; /* Mobilde biraz daha küçük */
        grid-template-columns: repeat(2, 1fr);
        position: static;
        box-shadow: none;
        display: none;
        padding: 15px;
    }
    
    .menu-item-has-children.active .kategori-mega-menu {
        display: grid;
    }
    
    .kategori-menu-col {
        border-right: none;
        padding-right: 0;
    }
    
    .kategori-adi {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .kategori-mega-menu {
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .kategori-mega-menu {
        grid-template-columns: 1fr;
    }
}

/* ========== 1. SLIDER (slider.php) ========== */
/* Ana sayfa slider bölümü - Otomatik geçişli hero slider */

.hero-slider {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: slideUp 1s ease 0.2s both;
}

.slide-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    animation: slideUp 1s ease 0.4s both;
}

.slide-content .btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: #ff6b6b;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #ff6b6b;
    transform: scale(1.2);
}

/* ========== 2. KATEGORİ BÖLÜMÜ (kategoriler.php) ========== */
/* Ana sayfa kategori grid - Slider altında, sadece kategori başlıkları görünür */

.kategoriler-section {
    margin-bottom: 40px;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.kategori-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.2);
}

.kategori-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 20px 15px;
    text-align: center;
}

.kategori-image {
    height: 100px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 8px;
}

.kategori-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kategori-card:hover .kategori-image img {
    transform: scale(1.1);
}

.kategori-link h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kategori-card:hover .kategori-link h3 {
    color: #ff6b6b;
}

/* Kategori Toggle Butonu - Tüm kategorileri göster/gizle */
.kategori-toggle-container {
    text-align: center;
    margin-top: 30px;
}

.kategori-toggle-btn {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.kategori-toggle-btn:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.kategori-toggle-btn .kalan-sayisi {
    background: #ff6b6b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.kategori-toggle-btn:hover .kalan-sayisi {
    background: #fff;
    color: #ff6b6b;
}

/* Gizli kategoriler - Başlangıçta gizli, butonla açılır */
.kategori-gizli {
    display: none;
    margin-top: 30px;
}

.kategori-gizli.goster {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 3. ÜRÜN BÖLÜMLERİ (yeni_urunler.php, firsat_urunleri.php, cok_satanlar.php) ========== */
/* Ürün gridleri - Yeni ürünler, fırsat ürünleri, çok satanlar */

.urunler-section {
    margin-bottom: 40px;
}

.urunler-section.bg-light {
    background: #f9f9f9;
    padding: 40px 0;
}

.urun-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.urun-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.urun-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.urun-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
}

.urun-badge.yeni {
    background: #4caf50;
}

.urun-badge.populer {
    background: #ff9800;
}

.urun-badge.firsat {
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.urun-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.urun-image {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urun-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.urun-card:hover .urun-image img {
    transform: scale(1.1);
}

.urun-info {
    padding: 15px;
}

.urun-marka {
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.urun-info h3 {
    font-size: 15px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    line-height: 1.4;
}

.urun-stok-kodu {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.urun-fiyat {
    font-size: 14px;
    font-weight: bold;
    color: #ff6b6b;
}

.fiyat-sor {
    color: #ff9800;
    font-size: 14px;
    font-weight: 500;
}

.urun-actions {
    padding: 15px;
    border-top: 1px solid #e1e1e1;
}

.btn-sepete-ekle {
    width: 100%;
    padding: 10px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-sepete-ekle:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.btn-stok-yok {
    width: 100%;
    padding: 10px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ========== 4. MARKALAR (markalar.php) ========== */
/* Araç markaları bölümü - Marka logoları grid */

.markalar-section {
    padding: 40px 0;
}

.markalar-section.bg-light {
    background: #f9f9f9;
}

.marka-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.marka-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.marka-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.2);
}

.marka-card a {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    color: #333;
}

.marka-card img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.marka-card:hover img {
    filter: grayscale(0);
}

.marka-adi {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.marka-card:hover .marka-adi {
    color: #ff6b6b;
}

/* ========== 5. NEDEN BİZ (neden_biz.php) ========== */
/* Özellik kartları - Hızlı kargo, güvenli alışveriş vb. */

.ozellikler-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

.ozellik-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ozellik-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ozellik-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255,107,107,0.2);
}

.ozellik-card i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ozellik-card:hover i {
    transform: scale(1.1);
}

.ozellik-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.ozellik-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobilde 3 kart yan yana */
@media (max-width: 991px) {
    .ozellik-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kart yan yana */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ozellikler-section {
        padding: 40px 0;
    }
    
    .ozellik-grid {
        grid-template-columns: repeat(3, 1fr); /* Mobilde de 3 kart yan yana */
        gap: 15px;
    }
    
    .ozellik-card {
        padding: 20px 15px;
    }
    
    .ozellik-card i {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .ozellik-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .ozellik-card p {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .ozellik-grid {
        grid-template-columns: repeat(3, 1fr); /* Küçük mobilde de 3 kart yan yana */
        gap: 10px;
    }
    
    .ozellik-card {
        padding: 15px 10px;
    }
    
    .ozellik-card i {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .ozellik-card h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .ozellik-card p {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .ozellik-grid {
        grid-template-columns: repeat(3, 1fr); /* En küçük ekranda bile 3 kart */
        gap: 8px;
    }
    
    .ozellik-card {
        padding: 12px 8px;
    }
    
    .ozellik-card i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .ozellik-card h3 {
        font-size: 13px;
    }
    
    .ozellik-card p {
        font-size: 10px;
    }
}

/* ========== 6. NEWSLETTER (newsletter.php) ========== */
/* E-bülten abonelik formu */

.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.newsletter-form .btn-primary {
    padding: 15px 30px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.newsletter-form .btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

/* ========== 7. ORTAK BİLEŞENLER ========== */
/* Tüm bölümlerde ortak kullanılan stiller */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b6b;
}

.section-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 40px;
}

/* ========== 8. RESPONSIVE - TÜM BÖLÜMLER İÇİN ========== */
/* Mobil ve tablet uyumluluğu */

@media (max-width: 1199px) {
    .urun-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .marka-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .kategori-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ozellik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .urun-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .marka-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .ozellik-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn-primary {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .kategori-image {
        height: 120px;
    }
    
    .urun-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .urun-grid {
        grid-template-columns: 1fr;
    }
    
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .marka-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slide-content .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .kategori-image {
        height: 100px;
    }
    
    .kategori-link {
        padding: 15px 10px;
    }
    
    .kategori-link h3 {
        font-size: 13px;
    }
    
    .kategori-toggle-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
}