/* ==========================================================================
   HOME.CSS — Ana sayfa: Hero, İstatistikler, Hizmetler, Biz Kimiz,
   AY Asistan, Promo Banner, Öne Çıkan Ürünler
   ========================================================================== */

/* ==========================================================================
   GERÇEKÇİ BARKOD HERO (PİKSEL AYARLI)
   ========================================================================== */

/* 1. ANA ALAN */
.hero-real-barcode {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 80px;
    border-radius: 0 0 40px 40px;
    background: #000;
    padding-bottom: 80px;
}

.video-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.video-layer video { width: 100%; height: 100%; object-fit: cover; }
.overlay-blue {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 61, 122, 0.50); /* Biraz daha görünür yaptım videoyu */
    z-index: 1;
}

/* 2. BARKOD BÖLGESİ */
.barcode-zone {
    position: relative;
    z-index: 5;
    width: auto;
    padding: 40px;
    cursor: crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- LOGO AYARLARI (İstediğin Animasyon) --- */
.hidden-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    /* Mouse gidince: HEMEN kaybolsun (0.2s) */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden-logo img {
    width: 320px;
    height: auto;
    filter: brightness(0) invert(1); /* Solid Beyaz */
}

/* Mouse Gelince: Logo 0.5s Sonra Gelsin */
.barcode-zone:hover .hidden-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s; /* 0.5s gecikme */
}

/* Logo gelince barkod silikleşsin */
.barcode-zone:hover .barcode-structure {
    opacity: 0.2;
    filter: blur(3px);
    transition: all 0.5s ease;
}


/* 3. BARKOD YAPISI (Matematiksel Aralıklar) */
.barcode-structure {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0; /* Bitişik */
    transition: all 0.3s ease;
}

/* --- UZUN ÇİZGİLER (Guard) --- */
.guard {
    width: 12px;
    height: 140px; /* Veri çizgilerinden uzun */
    /* İki ince çizgi: Beyaz(2px) - Boş(2px) - Beyaz(2px) */
    background: linear-gradient(90deg,
        #fff 2px, transparent 2px, transparent 4px,
        #fff 4px, #fff 6px, transparent 6px
    );
    /* Mouse gidince yavaşça beyaza dönsün (1s) */
    transition: background 1s ease;
}

/* Hover: HEMEN Sarı Olsun */
.barcode-zone:hover .guard {
    background: linear-gradient(90deg,
        #f6c01b 2px, transparent 2px, transparent 4px,
        #f6c01b 4px, #f6c01b 6px, transparent 6px
    );
    transition: background 0.1s ease; /* Anında tepki */
    box-shadow: 0 0 15px rgba(246, 192, 27, 0.6);
}

/* --- VERİ ALANLARI --- */
.data-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
}

/* KISA ÇİZGİLERİN DESENLERİ (Gerçekçi Genişlikler) */
.bars {
    width: 100%;
    height: 115px; /* Guard'dan kısa */
    background-repeat: repeat-x;
}

/* Pattern A: Sık ve İnce */
.pattern-a {
    width: 190px;
    background: linear-gradient(90deg,
        #fff 2px, transparent 2px, transparent 4px,
        #fff 4px, #fff 7px, transparent 7px, transparent 9px,
        #fff 9px, #fff 10px, transparent 10px, transparent 14px,
        #fff 14px, #fff 17px, transparent 17px, transparent 19px,
        #fff 19px, #fff 20px, transparent 20px, transparent 24px,
        #fff 24px, #fff 27px, transparent 27px, transparent 29px,
        #fff 29px, #fff 30px, transparent 30px, transparent 32px,
        #fff 32px, #fff 35px, transparent 35px, transparent 38px,
        #fff 38px, #fff 42px, transparent 42px, transparent 43px,
        #fff 43px, #fff 46px, transparent 46px, transparent 50px
    );
    background-size: 50px 100%; /* Tekrar etsin */
}

/* Pattern B: Daha Kalın Bloklar */
.pattern-b {
    width: 210px;
    background: linear-gradient(90deg,
        transparent 2px, #fff 2px, #fff 5px,
        transparent 5px, transparent 7px, #fff 7px, #fff 8px,
        transparent 8px, #fff 8px, #fff 12px,
        transparent 12px, transparent 15px, #fff 15px, #fff 17px,
        transparent 17px, transparent 21px, #fff 21px, #fff 25px,
        transparent 25px, transparent 27px, #fff 27px, #fff 28px,
        transparent 28px, #fff 28px, #fff 32px,
        transparent 32px, transparent 35px, #fff 35px, #fff 39px
    );
    background-size: 40px 100%;
}

/* Pattern C: Karışık */
.pattern-c {
    width: 200px;
    background: linear-gradient(90deg,
        #fff 1px, transparent 1px, transparent 3px,
        #fff 3px, #fff 7px, transparent 7px, transparent 8px,
        #fff 8px, #fff 9px, transparent 9px, transparent 13px,
        #fff 13px, #fff 15px, transparent 15px, transparent 19px,
        #fff 19px, #fff 23px, transparent 23px, transparent 25px,
        #fff 25px, #fff 26px, transparent 26px, transparent 28px,
        #fff 28px, #fff 32px, transparent 32px, transparent 34px
    );
    background-size: 35px 100%;
}

/* YAZILAR (Sloganlar) */
.b-text {
    margin-top: 5px;
    font-family: 'Inter', monospace; /* Barkod rakam fontu tarzı */
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    /* Giderken Yavaşça Beyaza Dön (1s) */
    transition: color 1s ease;
}

/* Hover: HEMEN Sarı Olsun */
.barcode-zone:hover .b-text {
    color: #f6c01b;
    transition: color 0.1s ease;
}


/* 4. MAC DOCK KARTLAR */
.dock-container {
    position: absolute;
    bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.dock-card {
    position: relative;
    width: 160px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Varsayılan: Koyu Lacivert Zemin, Beyaz Yazı */
    background: #0b3d7a;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1.5, 0.5, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.dock-card.active { border-bottom: 3px solid #f6c01b; }

.icon {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    transition: 0.3s;
    position: relative; z-index: 2;
}

.info h3 { margin: 0; font-size: 1rem; font-weight: 700; position: relative; z-index: 2; }
.info p { display: none; margin: 5px 0 0 0; font-size: 0.75rem; opacity: 0.8; position: relative; z-index: 2; }

/* HOVER EFEKTİ: BÜYÜME & RENK DEĞİŞİMİ */
.dock-card:hover {
    width: 220px;
    height: 130px;
    transform: translateY(-25px) scale(1.1);
    background: #ffffff; /* Zemin Beyaz */
    color: #0b3d7a; /* Yazı Lacivert */
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border-color: #fff;
    z-index: 20;
}

.dock-card:hover .icon {
    color: #0b3d7a; /* İkon Lacivert */
    transform: translateY(-5px) scale(1.1);
}
.dock-card:hover .info p {
    display: block;
    color: #666;
    animation: fadeIn 0.4s ease;
}

/* CAM YANSIMASI (SHINE) */
.shine {
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-25deg);
    z-index: 1;
}
.dock-card:hover .shine { animation: shineMove 0.8s ease-out forwards; }
@keyframes shineMove { 0% { left: -150%; opacity: 0; } 50% { opacity: 1; } 100% { left: 150%; opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* MOBİL UYUM */
@media (max-width: 992px) {
    .hero-real-barcode { height: auto; padding: 60px 0 120px 0; }
    .barcode-structure { flex-direction: column; gap: 20px; align-items: center; }
    /* Mobilde çizgileri yatay yapalım ki sığsın */
    .guard { width: 100%; height: 8px; background: linear-gradient(180deg, #fff 2px, transparent 2px, transparent 4px, #fff 4px, #fff 6px); }
    .barcode-zone:hover .guard { background: linear-gradient(180deg, #f6c01b 2px, transparent 2px, transparent 4px, #f6c01b 4px, #f6c01b 6px); }
    .bars { width: 280px; height: 60px; margin-bottom: 10px; }
    .hidden-logo { display: none; } /* Mobilde logo yok */

    .dock-container { position: relative; bottom: 0; flex-direction: column; width: 90%; gap: 10px; padding: 10px; margin-top: 20px; }
    .dock-card { width: 100%; height: 80px; flex-direction: row; gap: 20px; background: #0b3d7a; }
    .dock-card:hover { width: 100%; height: 90px; transform: scale(1.02); }
    .info p { display: block; color: rgba(255,255,255,0.7); }
    .dock-card:hover .info p { color: #666; }
}



/* ==========================================================================
   4. ANA SAYFA: İSTATİSTİKLER
   ========================================================================== */
.stats-wrapper { margin-bottom: 60px; padding: 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item {
    background: #fff; padding: 25px 15px; border-radius: 16px; text-align: center;
    border: 1px solid #ddd; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s ease; font-family: 'Inter', sans-serif;
}
.stat-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 12px; display: inline-block; }
.stat-data h2 { font-size: 2rem; font-weight: 800; color: #222; margin: 0; }
.text-only { font-size: 1.4rem !important; line-height: 1.2; }
.stat-data p { margin: 5px 0 0 0; color: #666; font-size: 0.9rem; }
.stat-item:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(11, 61, 122, 0.15); border-color: transparent; }


/* ==========================================================================
   5. ANA SAYFA: DİĞER BÖLÜMLER (Hizmetler, Referanslar, Biz Kimiz)
   ========================================================================== */
.hizmetler, .referanslar { background-color: #f0f0f0; text-align: center; max-width: 1400px; margin: 40px auto; padding: 40px 20px; border-radius: 8px; }
.hizmetler h2, .referanslar h2, .biz-kimiz h2 { border-bottom: none; padding-bottom: 0; font-size: 5em; color: #222222; position: relative; max-width: 800px; margin: 0 auto 20px auto; text-align: left; }
.hizmetler h2::before, .referanslar h2::before, .biz-kimiz h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 60px; height: 4px; background-color: #0b3d7a; }
.hizmetler-intro, .referanslar-intro { font-size: 1.1em; color: #555; line-height: 1.6; max-width: 800px; margin: 0 auto 40px auto; text-align: left; }

/* Hizmet Kartları - DÜZELTME BURADA */
.hizmet-listesi {
    display: grid;
    gap: 20px;
    /* Eski kodunda burası "1fr" olduğu için alt altaydı. Şimdi 4'e böldük. */
    grid-template-columns: repeat(4, 1fr);
}

.hizmet-karti { background-color: transparent; border: 1px solid #ddd; border-radius: 8px; padding: 20px; text-align: center; position: relative; z-index: 1; transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out; }
.hizmet-karti img { max-width: 170px; height: 170px; object-fit: contain; margin-bottom: 15px; }
.hizmet-karti h3 { color: #0b3d7a; margin-top: 0; font-size: 1.25em; }
.hizmet-karti p { font-size: 1em; color: #333; }

/* Hover efektindeki yazım hatasını da (box-shado) düzelttim */
.hizmet-karti:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); background-color: #ffffff; border-color: transparent; z-index: 10; }

/* --- Hizmetlerimiz Bilgi Merkezi CTA --- */
.hizmetler-cta {
    text-align: center;
    margin-top: 40px;
}
.hizmetler-cta p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 16px;
    font-weight: 500;
}
.hizmetler-bilgi-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0b3d7a;
    color: #fff;
    border: 1px solid #0b3d7a;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hizmetler-bilgi-btn:hover {
    background: #222;
    color: #fff;
    border-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* MOBİL UYUMU - EKLEME */
/* Ekran 900px'den küçükse (Tablet ve Telefon) tekrar alt alta (1 sütun) olsun */
@media (max-width: 992px) {
    .hizmet-listesi {
        grid-template-columns: 1fr;
    }
}

/* Biz Kimiz (Video-Resim Alanı) */
/* Scroll anchor düzeltmesi — header arkasında kalmasın */
#biz-kimiz { scroll-margin-top: 130px; }

.biz-kimiz { background-color: #ffffff; max-width: 1400px; margin: 40px auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 0; overflow: hidden; }
.biz-kimiz-grid-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.biz-kimiz-icerik { width: 100%; text-align: left; padding: 40px; box-sizing: border-box; position: relative; z-index: 2; }
.biz-kimiz-image { height: 100%; position: relative; margin-left: -40px; /* Görsel sola taşarak metin ile overlap */ }
/* Diagonal kesim — görselin sol kenarı çapraz */
.biz-kimiz-image img { width: calc(100% + 40px); height: 100%; object-fit: cover; display: block; border-top-right-radius: 8px; border-bottom-right-radius: 8px; position: relative; z-index: 1; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%); }
.biz-kimiz-image video { position: absolute; top: 0; left: 0; width: calc(100% + 40px); height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity 0.5s ease; border-top-right-radius: 8px; border-bottom-right-radius: 8px; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%); }
.biz-kimiz-image:hover video { opacity: 1; }
.biz-kimiz-text p { font-size: 1.1em; line-height: 1.7; margin-bottom: 15px; color: #222222; }
.biz-kimiz-button { background-color: #222222; color: white; padding: 15px 30px; border-radius: 5px; text-decoration: none; font-size: 1.1em; font-weight: bold; display: inline-block; margin-top: 30px; transition: background-color 0.3s ease; }
.biz-kimiz-button:hover { background-color: #0b3d7a; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }

/* Referans Slider */
.referans-slider-container { display: flex; overflow-x: auto; cursor: grab; user-select: none; scrollbar-width: none; }
.referans-slider-container::-webkit-scrollbar { display: none; }
.referans-item { min-width: 200px; height: 120px; display: flex; justify-content: center; align-items: center; background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; margin: 0 10px; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.referans-item img { max-width: 80%; max-height: 80%; object-fit: contain; filter: grayscale(100%); transition: filter 0.3s ease; pointer-events: none; }
.referans-item:hover img { filter: grayscale(0%); }



@media (max-width: 992px) {
    /* Hero */
    .ultra-hero { height: auto; padding: 50px 20px; }
    .glass-cards-container { flex-direction: column; width: 90%; }
    .glass-card { height: auto; padding: 20px 0; }
    .card-hidden-text { max-height: 999px; opacity: 1; transform: none; margin-top: 10px; }
    /* Gridler */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    #footer-about { grid-column: 1 / -1; text-align: center; height: auto; }
    #footer-about .footer-logo { margin-left: auto; margin-right: auto; }
    .contact-grid-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-header h1 { font-size: 2.5em; }
    .form-box { padding: 25px; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    #footer-about { text-align: left; }
    #footer-about .footer-logo { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .hizmet-listesi { grid-template-columns: 1fr; }
    .biz-kimiz-grid-container { grid-template-columns: 1fr; }
    .biz-kimiz-icerik { order: 2; }
    .biz-kimiz-image { order: 1; max-height: 300px; margin-left: 0; }
    .biz-kimiz-image img { border-radius: 8px 8px 0 0; width: 100%; clip-path: none; }
    .biz-kimiz-image video { width: 100%; clip-path: none; }
}

/* ==========================================================================
   AY ASİSTAN CSS (V1.0 FINAL STABLE)
   ========================================================================== */

.smart-faq-section {
    padding: 80px 20px;
    background-color: #f4f7f6;
    display: flex; justify-content: center;
    position: relative; z-index: 10;
}

.faq-container {
    display: grid; grid-template-columns: 340px 1fr; gap: 0;
    max-width: 1400px; width: 100%;
    background: #fff; border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    overflow: hidden; height: 700px;
}

/* SOL PANEL */
.faq-sidebar {
    background: linear-gradient(160deg, #0b3d7a 0%, #021a38 100%);
    padding: 40px 30px; color: #fff; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2;
}
.version-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.1); font-size: 0.7rem;
    padding: 4px 10px; border-radius: 20px; color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
}
.ai-logo-wrapper { width: 120px; height: 120px; position: relative; margin-bottom: 25px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.ai-main-logo { width: 100px; height: 100px; border-radius: 25px; border: 2px solid rgba(255,255,255,0.8); object-fit: cover; background: #fff; position: relative; z-index: 5; }
.neon-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 140px; height: 140px; background: #00d2ff;
    filter: blur(30px); opacity: 0.6; z-index: 1;
    animation: breathe 3s infinite alternate;
}
@keyframes breathe { 0% { transform: translate(-50%,-50%) scale(0.9); opacity: 0.4; } 100% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.8; } }
.brand-text h2 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.brand-text p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; margin-bottom: 30px; font-weight: 300; }

.ai-tools-grid { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ai-tool-card {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    padding: 15px; border-radius: 14px; display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: 0.3s;
}
.ai-tool-card:hover { background: rgba(255,255,255,0.2); transform: translateX(5px); }
.ai-tool-card i { color: #00d2ff; font-size: 1.2rem; width: 25px; text-align: center; }
.ai-tool-card span { font-size: 0.9rem; font-weight: 600; }

/* SAĞ PANEL */
.faq-chat-area {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    height: 100%;
    min-height: 0; /* flex içinde chat-window'un düzgün uzaması için */
}
.chat-filters {
    padding: 20px 30px; display: flex; gap: 10px; overflow-x: auto; flex-shrink: 0; border-bottom: 1px solid #f0f0f0;
}
.chat-filters::-webkit-scrollbar { display: none; }
.filter-pill {
    padding: 10px 20px; border-radius: 50px; border: 1px solid #eee;
    background: #f8f9fa; color: #666; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: 0.3s; white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active { background: #0b3d7a; color: #fff; border-color: #0b3d7a; }

/* --- CHAT PENCERESİ (FLEX - TAM YÜKSEKLİK) --- */
.chat-window {
    /* Sağ panel flex kolon; chat alanı kalan alanı doldursun */
    flex: 1 1 auto;
    min-height: 0;              /* önemli: overflow için flex içinde şart */

    background: #f9f9f9;
    padding: 25px 30px;

    /* Kilidi kaldırıyoruz */
    height: auto !important;
    max-height: none !important;

    overflow-y: auto !important;

    /* Input zaten altta duruyor, boşluk bırakma */
    margin-bottom: 0;

    border: 1px solid #f0f0f0;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

/* Scrollbar Tasarımı (Görünür ve Şık) */
.chat-window::-webkit-scrollbar {
    width: 8px; /* Genişlik */
}
.chat-window::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}
.chat-window::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
    border: 2px solid #e0e0e0; /* Etrafında boşluk olsun */
}
.chat-window::-webkit-scrollbar-thumb:hover {
    background: #999;
}

#chatStream { display: flex; flex-direction: column; gap: 15px; width: 100%; padding-bottom: 10px; }

.bot-message, .user-message { display: flex; align-items: flex-start; gap: 15px; width: 100%; margin-bottom: 5px; flex-shrink: 0; }
.user-message { justify-content: flex-end; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; overflow: hidden; flex-shrink: 0; background: #fff; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content {
    padding: 15px 20px; border-radius: 18px; font-size: 0.95rem; line-height: 1.6; max-width: 80%;
    position: relative; word-wrap: break-word; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.bot-message .message-content { background: #fff; color: #444; border-top-left-radius: 4px; border: 1px solid #f0f0f0; }
.user-message .message-content { background: #0b3d7a; color: #fff; border-top-right-radius: 4px; }

.faq-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.suggestion-chip { background: #fff; border: 1px solid #e2e8f0; padding: 12px 16px; border-radius: 12px; font-size: 0.85rem; color: #555; cursor: pointer; transition: 0.2s; }
.suggestion-chip:hover { background: #0b3d7a; color: #fff; border-color: #0b3d7a; }

.wizard-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; width: 100%; }
.wizard-btn { background: #fff; border: 1px solid #0b3d7a; color: #0b3d7a; padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.2s; flex: 1 1 auto; text-align: center; }
.wizard-btn:hover { background: #0b3d7a; color: #fff; }

/* WHATSAPP BUTTON STYLE */
.whatsapp-ai-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff; text-decoration: none;
    padding: 12px 30px; border-radius: 50px; font-size: 0.95rem; font-weight: 700;
    margin-top: 15px; transition: 0.3s; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.whatsapp-ai-btn:hover { background: #1da851; transform: translateY(-3px); }

.chat-input-wrapper { flex-shrink: 0; position: relative; padding: 20px 30px; background: #fff; border-top: 1px solid #eee; display: flex; align-items: center; gap: 10px; margin-top: auto; }
.chat-input-wrapper input { flex-grow: 1; border: 2px solid #e0e0e0; border-radius: 50px; padding: 14px 24px; font-size: 1rem; outline: none; transition: 0.3s; }
.chat-input-wrapper input:focus { border-color: #0b3d7a; }
.send-btn { width: 50px; height: 50px; background: #0b3d7a; color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.send-btn:hover { background: #0056b3; transform: scale(1.1); }

.typing-indicator { display: flex; gap: 4px; align-items: center; }
.typing-dot { width: 6px; height: 6px; background: #888; border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* AY Ürün Kartları */
.ay-product-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    margin-top: 12px;
    max-width: 100%;
}
.ay-product-grid::-webkit-scrollbar { height: 4px; }
.ay-product-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.ay-product-grid::-webkit-scrollbar-track { background: transparent; }
.ay-product-card {
    min-width: 130px;
    max-width: 150px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ay-product-card:hover {
    border-color: #0b3d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ay-product-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f1f5f9;
}
.ay-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ay-product-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ay-product-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0b3d7a;
}
.ay-product-badge {
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 600;
}

/* AY Bilgi Merkezi Linki */
.ay-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0b3d7a;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}
.ay-detail-link:hover {
    color: #1e60c4;
    text-decoration: underline;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .ay-product-card {
        min-width: 110px;
        max-width: 130px;
    }
    .ay-product-card img {
        height: 60px;
    }
}

/* =========================================
   YÜZEN MAĞAZA KARTI TASARIMI (GÜNCEL)
   ========================================= */

/* Dış Taşıyıcı: Hizalama ve Konumlandırma */
.promo-wrapper {
    position: relative;
    z-index: 50;
    height: 300px;
    overflow: hidden; /* Hero'nun üstünde dursun */
    margin-top: -70px; /* Yukarı çekerek boşluğu kapatıyoruz */
    padding-bottom: 40px; /* Altındaki içerikle mesafe */
}

/* Kartın Kendisi */
.promo-card {
    background: linear-gradient(110deg, #0f172a 0%, #1e3a8a 100%);
    height: 100%; /* Kurumsal Koyu Lacivert */
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); /* Güçlü gölge */
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

/* --- PROMO: sağdan beliren rulo görsel arka plan --- */
.promo-card::after {
    content: none;
}

/* Arka Plandaki Dev İkon (Görsel Efekt) */
.promo-bg-icon {
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03); /* Çok silik */
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
}

/* İçerik Düzeni */
.promo-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    gap: 30px;
}

.promo-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.promo-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.promo-image {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Sol Taraf: Yazılar */
.promo-text {
    flex: 1;
    min-width: 300px;
}

.promo-card .promo-action {
    position: relative;
    z-index: 1;
}



.badge-new {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.promo-text h2 {
    color: white;
    font-size: 2rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif; /* Font uyumu */
}

.highlight-text {
    color: #fbbf24; /* Dikkat çeken sarı */
    position: relative;
}

/* Altını çizen efekt */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(251, 191, 36, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.promo-text p {
    color: #cbd5e1; /* Griye çalan beyaz */
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Sağ Taraf: Aksiyon */
.promo-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.price-tag-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 180px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-tag-visual i {
    color: #fbbf24;
}

/* Büyük Buton */
.shop-btn-lg {
    background-color: #fbbf24;
    color: #0f172a;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.shop-btn-lg:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .promo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-wrapper {
        height: 360px;
    }

    .promo-left {
        align-items: center;
    }

    .promo-right {
        order: 2;
        justify-content: center;
    }

    .promo-action {
        align-items: center; /* Mobilde ortala */
        width: 100%;
    }

    .shop-btn-lg {
        width: 100%; /* Mobilde tam genişlik */
        justify-content: center;
    }

    .promo-text h2 {
        font-size: 1.6rem;
    }

    .promo-wrapper {
        margin-top: -30px; /* Mobilde daha az yukarı çıksın */
        padding-left: 15px;
        padding-right: 15px;
    }
}



/* ==========================================================================
   11. ANA SAYFA: ÖNE ÇIKAN ÜRÜNLER (HOME FEATURED PRODUCTS)
   ========================================================================== */
.home-featured-products-wrap {
    position: relative;
    z-index: 10;
    margin-top: -56px;
    margin-bottom: 28px;
}
.home-featured-shell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}
.home-featured-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.home-featured-copy { max-width: 760px; }
.home-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font: 800 12px/1 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}
.home-featured-copy h2 {
    margin: 12px 0 0;
    color: #0f172a;
    font: 800 34px/1.12 'Raleway', sans-serif;
}
.home-featured-copy p {
    margin: 10px 0 0;
    color: #475569;
    font: 500 16px/1.6 'Raleway', sans-serif;
}
.home-featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    background: #0b3d7a;
    color: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    font: 700 14px/1 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 10px 20px rgba(11, 61, 122, 0.18);
    transition: background .2s ease, transform .2s ease;
}
.home-featured-btn:hover { background: #0d4f9c; transform: translateY(-1px); }
.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.home-product-card {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.14);
}
.home-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 285px;
    padding: 28px;
    background: #fff;
    text-decoration: none;
}
.home-product-media::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.7);
    filter: blur(42px);
    opacity: 0;
    transition: opacity .3s ease;
}
.home-product-card:hover .home-product-media::after { opacity: 1; }
.home-product-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.home-product-card:hover .home-product-image { transform: scale(1.06); }
.home-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
    border-top: 1px solid #f1f5f9;
}
.home-product-category,
.home-product-badge,
.home-product-shipping,
.home-product-meta,
.home-product-sub,
.home-product-button {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.home-product-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 8px 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-product-badge-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.home-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.home-product-badge.stock-out { background: #dc2626; }
.home-product-badge.low-stock { background: #f97316; }
.home-product-badge.fast { background: #16a34a; }
.home-product-badge.discount { background: #111827; }
.home-product-title {
    margin: 0 0 8px;
    min-height: 54px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}
.home-product-title a { color: #111827; text-decoration: none; }
.home-product-title a:hover { color: #1e3a8a; }
.home-product-meta {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 12px;
}
.home-product-shipping {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.home-product-shipping.kargo-dahil { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.home-product-shipping.kargo-sec { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.home-product-shipping.kargo-haric { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.home-product-price-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.home-product-price-box { margin-top: auto; }
.home-product-old-price {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.home-product-price-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: #0f172a;
}
.home-product-price {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.home-product-currency {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}
.home-product-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.home-product-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: #0b3d7a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}
.home-product-button:hover { background: #0d4f9c; transform: translateY(-1px); }
.home-featured-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #64748b;
    font: 600 15px/1.4 'Plus Jakarta Sans', sans-serif;
}
@media (max-width: 1200px) {
    .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-featured-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .home-featured-products-wrap { margin-top: -24px; }
    .home-featured-shell { border-radius: 22px; padding: 18px; }
    .home-featured-copy h2 { font-size: 28px; }
    .home-featured-grid { grid-template-columns: 1fr; gap: 18px; }
    .home-featured-btn { width: 100%; }
    .home-product-media { height: 240px; }
}

/* =====================================================
   AY Düşünüyor — Ollama cevabı beklerken animasyon
   ===================================================== */
.ay-thinking-content {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-style: italic;
}

.ay-thinking-dots span {
    animation: ayThinkDot 1.4s infinite;
    opacity: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.ay-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.ay-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ayThinkDot {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}


