/* ==============================================================
   KARADENİZ SAĞLIK MEDİKAL - ANA STİL DOSYASI (style.css)
   Tais Yazılım Standartları - Modüler ve İzole Mimari
============================================================== */

/* ==========================================
   1. GENEL AYARLAR VE TİPOGRAFİ
========================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
}

/* ==========================================
   2. HEADER (3 KATMANLI ÜST BÖLÜM)
========================================== */
.ksm-header-wrapper {
    background-color: #fff;
}

/* Arama Çubuğu */
.ksm-search-input {
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ksm-search-input:focus {
    box-shadow: 0 0 0 3px rgba(46, 81, 29, 0.1);
    border-color: #2e511d;
    background-color: #ffffff;
    outline: none;
}

.ksm-search-btn {
    background: transparent;
    padding-right: 20px;
    padding-left: 15px;
}

.ksm-search-btn:hover i {
    color: #2e511d !important;
}

/* Sağ Üst İkonlar (Kullanıcı, Kalp, Sepet) */
.ksm-header-icons .ksm-icon-link {
    transition: all 0.2s ease;
}

.ksm-header-icons .ksm-icon-link:hover {
    color: #c49a45 !important; /* Logoya uygun Altın/Sarı Vurgu */
    transform: translateY(-2px);
}

/* Alt Bar (Menü) */
.ksm-bottombar {
    z-index: 1020;
}

.ksm-nav-link {
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px !important;
}

/* Menü Altı Çizgi Efekti (Hover) */
.ksm-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #2e511d;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ksm-nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #f0f0f0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f4f7f6;
    color: #2e511d;
}

/* ==========================================
   3. ANASAYFA - HERO VE ARAMA ALANI
========================================== */
.ksm-modern-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.ksm-search-box {
    transition: all 0.3s ease;
}

.ksm-search-box:focus-within {
    box-shadow: 0 15px 25px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.ksm-btn-primary {
    background-color: #2e511d;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.ksm-btn-primary:hover {
    background-color: #1e3613;
    color: #f7ca18;
}

/* ==========================================
   4. ANASAYFA - GÜVEN ROZETLERİ VE MARKALAR
========================================== */
.ksm-trust-badges {
    border-color: #f0f0f0 !important;
}

.ksm-brands-wrapper h3 {
    transition: all 0.3s ease;
    cursor: default;
}

.ksm-brands-wrapper h3:hover {
    color: #2e511d !important;
    transform: scale(1.1);
}

/* ==========================================
   5. ANASAYFA - KATEGORİ KARTLARI
========================================== */
.ksm-category-card {
    transition: all 0.4s ease;
}

.ksm-cat-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.ksm-category-card img {
    transition: transform 0.6s ease;
}

.ksm-category-card:hover img {
    transform: scale(1.1);
}

.ksm-category-card:hover .ksm-cat-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 10%, rgba(46, 81, 29, 0.9) 100%);
}

.ksm-cat-title {
    z-index: 2;
    transition: transform 0.3s ease;
}

.ksm-category-card:hover .ksm-cat-title {
    transform: translate(-50%, -10px);
    color: #f7ca18 !important;
}

/* ==========================================
   6. ÜRÜN KARTLARI (VİTRİN)
========================================== */
.ksm-modern-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.ksm-modern-card:hover {
    box-shadow: 0 15px 30px rgba(46, 81, 29, 0.12); /* Logoya uygun yeşil gölge */
    transform: translateY(-5px);
}

.ksm-card-img-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
}

.ksm-product-img {
    max-height: 190px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.ksm-modern-card:hover .ksm-product-img {
    transform: scale(1.05);
}

/* Ürün Başlığı */
.ksm-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    color: #333;
    transition: color 0.2s ease;
}

.ksm-modern-card:hover .ksm-product-title {
    color: #2e511d;
}

/* Sepete Ekle Yuvarlak Buton */
.ksm-cart-icon-btn {
    background-color: #f4f7f6;
    color: #2e511d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0;
}

.ksm-cart-icon-btn:hover {
    background-color: #f7ca18;
    color: #000;
    border-color: #f7ca18;
    transform: rotate(90deg);
}

/* ==========================================
   7. FOOTER VE PROMOSYON BANNER'I
========================================== */
.ksm-promo-banner {
    position: relative;
}

/* Footer Link Hover Efektleri */
footer a.text-muted {
    transition: color 0.3s ease;
}

footer a.text-muted:hover {
    color: #f7ca18 !important;
}
/* ==========================================
   YENİ: INSTAGRAM VİDEO SLIDER CSS
========================================== */
.ksm-insta-card {
    height: 350px;
    background-color: #111;
    transition: transform 0.3s ease;
}

.ksm-insta-card:hover {
    transform: translateY(-5px);
}

.ksm-insta-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    transition: background 0.3s ease;
}

.ksm-insta-card:hover .ksm-insta-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(225, 48, 108, 0.7) 100%);
}

.swiper-pagination-bullet-active {
    background-color: #2e511d !important;
}

/* ==========================================
   YENİ: GÜVEN, YORUM VE UZMAN MODÜLLERİ CSS
========================================== */
.ksm-authority-banner {
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.1);
}

.ksm-review-card {
    transition: transform 0.3s ease;
}

.ksm-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.ksm-expert-cta .bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.btn-success {
    background-color: #25D366; /* Orijinal WhatsApp Yeşili */
    border-color: #25D366;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: scale(1.05);
}
/* ==========================================
   YENİ: SEO BLOG ALANI CSS KODLARI
========================================== */
.ksm-blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ksm-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.ksm-blog-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ksm-blog-card:hover .ksm-blog-img {
    transform: scale(1.05);
}

.ksm-blog-card h4 {
    transition: color 0.2s ease;
}

.ksm-blog-card:hover h4 {
    color: #2e511d !important;
}
/* ==========================================
   ÜRÜN DETAY SAYFASI (urun.php) CSS KODLARI
========================================== */
.ksm-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.ksm-gallery-main img {
    transition: opacity 0.3s ease;
}

.ksm-thumb-img {
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ksm-thumb-img:hover {
    opacity: 1;
    border-color: #2e511d !important;
}

.ksm-qty-selector input:focus {
    box-shadow: none;
    outline: none;
}

.ksm-add-to-cart-btn {
    transition: all 0.3s ease;
}

.ksm-add-to-cart-btn:hover {
    background-color: #1e3613 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 81, 29, 0.2);
}

.ksm-buy-now-btn {
    transition: all 0.3s ease;
}

.ksm-buy-now-btn:hover {
    background-color: #e6b800 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(247, 202, 24, 0.2);
}

/* Tab Tasarımı */
.ksm-product-tabs {
    border-bottom: 2px solid #e9ecef !important;
}

.ksm-product-tabs .nav-link {
    position: relative;
    border-bottom: 3px solid transparent !important;
}

.ksm-product-tabs .nav-link.active {
    color: #2e511d !important;
    border-bottom-color: #2e511d !important;
    background: #fff !important;
}

.ksm-product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================
   GELİŞTİRİLMİŞ ÜRÜN DETAY SAYFASI CSS
========================================== */
.ksm-thumb-box {
    transition: all 0.3s ease;
    border-color: #dee2e6 !important;
}

.ksm-thumb-box:hover {
    border-color: #2e511d !important;
    transform: translateY(-2px);
}

.ksm-product-content h2, 
.ksm-product-content h3, 
.ksm-product-content h4 {
    color: #212529;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.ksm-product-content p {
    margin-bottom: 1rem;
}

.ksm-product-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ksm-product-content li {
    margin-bottom: 0.5rem;
}