﻿/* --- TEMEL & RTL DÜZELTMELERİ --- */
/* Bootstrap RTL (Arapça) yönlendirmelerinde margin kaymalarını önler */
[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        /* Arka plana şık bir tekstil/kumaş görseli koyarsan burayı aktif edebilirsin */
        background: url('/images/hero-bg.jpg') center / cover no-repeat;
        opacity: 0.2;
    }

    .hero-section > div {
        position: relative;
        z-index: 1;
    }

/* --- KATEGORİ KARTLARI --- */
.category-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

    .category-card:hover {
        transform: translateY(-5px);
        border-color: #ffc107 !important; /* Warning / Sarı Rengi */
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    }

/* --- ÜRÜN KARTLARI (KAYMALARI ÖNLEYEN ANA YAPI) --- */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Görsellerin yüksekliklerini sabitlemek layout shift'i (kaymayı) tamamen keser */
.product-thumb {
    height: 350px; /* Modellerin daha net görünmesi için 350px idealdir */
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Resim yüklenene kadar veya resim yoksa yer tutucu */
.product-thumb-placeholder {
    height: 350px;
    width: 100%;
}

/* Ürün detay sayfası ana görseli */
.product-detail-img {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
}

/* Resmin üzerine gelince (hover) hafif büyümesi ve gölge efekti */
.product-card:hover .product-thumb {
    transform: scale(1.08);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Resmin üzerine gelince çıkan karanlık perde ve 'İncele' butonu animasyonu */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* --- GENEL YARDIMCI CLASS'LAR --- */
.tracking-wide {
    letter-spacing: 1px;
}

.hover-scale {
    transition: transform 0.2s ease;
}

    .hover-scale:hover {
        transform: scale(1.1);
    }

/* --- SABİT İLETİŞİM BUTONLARI (FLOATING) --- */
.floating-btn {
    position: fixed;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

    .floating-btn:hover {
        transform: scale(1.1);
    }

/* LTR (Türkçe, İngilizce, Rusça) İçin Standart Konumlar */
.whatsapp-btn {
    right: 20px;
    background-color: #25d366;
}

.telegram-btn {
    left: 20px;
    background-color: #0088cc;
}

/* RTL (Arapça) İçin Yönleri Tam Tersine Çevir */
[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .telegram-btn {
    left: auto;
    right: 20px;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer ul a.text-muted {
    color: #adb5bd !important;
}

    footer ul a.text-muted:hover {
        color: #ffc107 !important;
    }

footer p.text-muted {
    color: #9ca3af !important;
}

.text-warning {
    color: #ffffff !important;
    font-weight: 700 !important;
}