/* ==========================================================================
   1. GENEL AYARLAR & RENKLER
   (Tüm sayfaları etkileyen temel ayarlar)
   ========================================================================== */
html {
    scroll-behavior: smooth; /* Sayfa içi linklere tıklayınca yumuşak kayar */
}

/* Discount badge (store + product detail) */
.discount-badge {
    position: absolute;
    top: 52px;
    left: 16px;
    z-index: 20;
}

.discount-badge span {
    background: #111827;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.25);
    display: inline-block;
}

.discount-pill {
    display: inline-block;
    margin-bottom: 8px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.bulk-note {
    margin: -10px 0 18px;
    padding: 12px 14px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.85rem;
    color: #475569;
}

.hero-shop--label-bg {
    position: relative;
    overflow: hidden;
}

.hero-shop--label-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(11, 61, 122, 1) 0%,
            rgba(11, 61, 122, 0.95) 40%,
            rgba(11, 61, 122, 0.6) 60%,
            rgba(11, 61, 122, 0.25) 75%,
            rgba(11, 61, 122, 0.0) 100%
        ),
        url("/images/label-rolls.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.hero-shop--label-bg > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-shop--label-bg::after {
        background-position: center bottom;
        background-size: 140%;
    }
}

.footer-payment-wrapper {
    width: 100%;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid #e5e5e5;
    background: #f8fafc;
}

.footer-pay-note {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #3b3b3b;
    opacity: 0.9;
}

.footer-payment-wrapper,
.footer-payment,
.payment-band,
.footer-payments {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer-payment-wrapper:empty,
.footer-payment:empty,
.payment-band:empty,
.footer-payments:empty {
    display: none !important;
}

.footer-payment-wrapper .payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    flex-wrap: nowrap;
    gap: 12px;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-payment-wrapper .payment-trust {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    color: #333;
    font-size: 0.9rem;
}

.footer-payment-wrapper .iyzico-brand {
    height: 26px;
}

.footer-payment-wrapper .payment-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-payment-wrapper .payment-cards img {
    height: 22px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-payment-wrapper .payment-cards img:hover {
    opacity: 0.95;
}

@media (max-width: 700px) {
    .footer-payment-wrapper .payment-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-payment-wrapper .payment-trust {
        flex-wrap: wrap;
    }
}

body {
    font-family: 'Raleway', sans-serif; /* Genel yazı tipi */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #222222;
}

/* Sitenin Renk Hafızası */
:root {
    --primary-color: #0b3d7a;       /* Ana Mavi */
    --accent-light: #3a7bd5;        /* Açık Mavi */
    --glass-border: rgba(255, 255, 255, 0.2); /* Cam Efekti Kenarlığı */
    --transition-speed: 0.5s;
    --ease-elastic: cubic-bezier(0.25, 1, 0.5, 1);
}

/* İçerikleri ortalayan ana kutu */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Menü sabit olduğu için içerikleri aşağı itiyoruz */
main {
    padding-top: 150px;     
}

/* Menüye tıklayınca başlığın menü altında kalmasını önler */
#hizmetler, #referanslar, #cozum-ortaklari, #istatistikler {
    scroll-margin-top: 150px;
}

/* =========================================
   FİNAL HEADER TASARIMI (KOMPAKT VERSİYON)
   ========================================= */

/* --- Genel Header Ayarları --- */
.clean-header {
    background: #fff;
    height: 85px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* ================================
   DROPDOWN FIX (DESKTOP/TABLET)
   Dropdown sayfaya akmasın; header üstünde overlay dursun
   ================================ */
.clean-header,
.header-container,
.clean-nav,
.nav-item-wrapper,
.user-menu-wrapper {
    overflow: visible !important;
}

/* Header en üst katmanda dursun */
.clean-header {
    z-index: 9999 !important;
}

/* Dropdownlar her zaman overlay */
.simple-dropdown,
.profile-dropdown {
    position: absolute !important;
    z-index: 10000 !important;
}

/* Hover’da açılırken layout itmesin */
.nav-item-wrapper:hover .simple-dropdown,
.user-menu-wrapper:hover .profile-dropdown {
    pointer-events: auto;
}

.header-container {
    width: 100%;
    max-width: 1450px; /* Sığması için genişliği biraz artırdım */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}


/* --- Logo --- */
.logo-area .main-logo {
    height: 50px; /* Logoyu bir tık küçülttüm ki yer açılsın */
    width: auto;
    display: block;
}

/* --- Orta Menü (Navigasyon) --- */
.clean-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Boşluğu 20px'den 15px'e düşürdüm */
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Menü Link Kapsayıcısı */
.nav-item-wrapper {
    position: relative;
    height: 85px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Link Stili */
.nav-text {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 14px; /* Fontu 1px küçülttüm */
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    padding: 0;
}

.nav-text:hover {
    color: #0b3d7a;
}

.arrow-tiny {
    font-size: 10px;
    color: #999;
}

/* --- KURUMSAL DROPDOWN (SADE KUTU) --- */
.simple-dropdown {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 10px 0;
    z-index: 2100;
}

.nav-item-wrapper:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.simple-dropdown a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.simple-dropdown a:hover {
    color: #0b3d7a;
    background: #f9f9f9;
}

/* --- SAĞ TARAFTAKİ BUTONLAR --- */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Butonlar arası boşluğu kıstım */
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Hap Buton (Pill Style) - GÜNCELLENEN KISIM */
.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto; /* Esnemesin, içeriği kadar olsun */
    min-width: auto; /* Sabit genişlik İPTAL EDİLDİ */
    padding: 8px 16px; /* Sadece padding ile genişlik veriyoruz */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px; /* Buton yazı fontu ideal */
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

/* Beyaz Buton */
.btn-outline {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
}
.btn-outline:hover {
    border-color: #0b3d7a;
    color: #0b3d7a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Kullanıcı Alanı Wrapper */
.user-menu-wrapper {
    position: relative;
    height: 85px;
    display: flex;
    align-items: center;
}

.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2200;
}

.user-menu-wrapper:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown .dropdown-links a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.profile-dropdown .dropdown-links a:hover {
    color: #0b3d7a;
    background: #f9f9f9;
}

/* --- SEPET İKONU VE BADGE --- */
.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;  
    height: 38px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 5px;
    text-decoration: none;
    background: transparent;
}

.cart-wrapper:hover {
    background-color: #f0f7ff; 
}

.cart-icon-btn {
    font-size: 19px;
    color: #333;
    transition: color 0.3s;
}

.cart-wrapper:hover .cart-icon-btn {
    color: #0b3d7a;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #0b3d7a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Mobil Menü Butonu */
.mobile-btn { display: none; font-size: 24px; cursor: pointer; border: none; background: none; }

/* Responsive Ayarlar */
@media (max-width: 1200px) {
    .header-container { padding: 0 15px; }
    .clean-nav { gap: 10px; }
    .header-right-actions { gap: 5px; }
    .pill-btn { padding: 6px 12px; font-size: 12px; }
    .logo-area .main-logo { height: 40px; }
}

@media (max-width: 1100px) {
    .clean-nav { display: none; }
    .mobile-btn { display: block; margin-left: 10px; }
    /* Mobilde buton yazılarını gizle, sadece ikon kalsın */
    .pill-btn span { display: none; }
    .pill-btn { padding: 0; width: 40px; height: 40px; border-radius: 50%; justify-content: center;}
    .pill-btn i { margin: 0; }
}
/* ==========================================================================
   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: 900px) {
    .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; }

/* MOBİL UYUMU - EKLEME */
/* Ekran 900px'den küçükse (Tablet ve Telefon) tekrar alt alta (1 sütun) olsun */
@media (max-width: 900px) {
    .hizmet-listesi {
        grid-template-columns: 1fr;
    }
}

/* Biz Kimiz (Video-Resim Alanı) */
.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; }
.biz-kimiz-image { height: 100%; position: relative; }
.biz-kimiz-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-top-right-radius: 8px; border-bottom-right-radius: 8px; position: relative; z-index: 1; }
.biz-kimiz-image video { position: absolute; top: 0; left: 0; width: 100%; 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; }
.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%); }


/* ==========================================================================
   6. HAKKIMIZDA SAYFASI (ZAMAN TÜNELİ & MİSYON)
   ========================================================================== */
.page-header { text-align: center; padding: 40px 20px; margin-bottom: 10px; }
.page-header h1 { font-size: 3em; color: #0b3d7a; margin-bottom: 10px; font-weight: 800; }
.page-header p { color: #666; font-size: 1.1em; }

/* 3D Slider Kapsayıcı */
.timeline-3d-section { 
    padding: 40px 0 80px 0; 
    overflow: hidden; /* Sayfayı taşırmasın */
    background: #f9f9f9; 
    border-top: 1px solid #eee; border-bottom: 1px solid #eee; 
}

/* Swiper Ayarları */
.timelineSwiper { 
    width: 100%; 
    padding-top: 50px; padding-bottom: 50px; 
    overflow: visible; /* Kartların sağa sola taşmasına izin ver */
}

/* 3D Kart Tasarımı */
.timeline-3d-card { 
    background-color: #fff; 
    width: 320px !important; /* GENİŞLİK SABİT OLMALI */
    height: 420px; 
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    border: 1px solid #eee; 
    display: flex; flex-direction: column; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    opacity: 0.5; /* Pasifken silik */
    filter: blur(1px); 
    transform: scale(0.9); 
}

/* Aktif Kart (Ortadaki) */
.swiper-slide-active { 
    opacity: 1; filter: blur(0); transform: scale(1); 
    box-shadow: 0 25px 50px rgba(11, 61, 122, 0.25); 
    border-color: #0b3d7a; z-index: 10; 
}

.card-year { 
    background-color: #0b3d7a; color: #fff; 
    font-size: 1.5rem; font-weight: 800; text-align: center; 
    padding: 20px; clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); 
    margin-bottom: 10px; 
}
.swiper-slide-active .card-year { background-color: #f5c01b; color: #000; } /* Aktifse Sarı */

.card-body { 
    padding: 20px 25px; text-align: center; 
    display: flex; flex-direction: column; align-items: center; flex-grow: 1; 
}
.card-icon { font-size: 2rem; color: #ccc; margin-bottom: 15px; transition: color 0.3s; }
.swiper-slide-active .card-icon { color: #0b3d7a; }
.card-body h3 { font-size: 1.3rem; color: #222; margin: 0 0 15px 0; font-weight: 700; }
.card-body p { font-size: 0.95rem; color: #666; line-height: 1.6; margin: 0; }
.swiper-pagination-bullet-active { background-color: #0b3d7a; }

/* Misyon / Vizyon Grid */
.vizyon-misyon-section { padding: 60px 0; max-width: 900px; margin: 0 auto; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.vm-card { height: 100%; align-items: center; }


/* ==========================================================================
   7. İLETİŞİM SAYFASI
   ========================================================================== */
.contact-header { text-align: left; margin-bottom: 40px; margin-top: 20px; }
.contact-header h1 { font-size: 4em; color: #222; margin-bottom: 10px; font-weight: 800; position: relative; display: inline-block; line-height: 1.1; }
.contact-header h1::before { content: ''; position: absolute; top: -15px; left: 0; width: 60px; height: 4px; background-color: #0b3d7a; }
.contact-header p { color: #666; font-size: 1.1em; max-width: 800px; margin-top: 15px; }

.contact-grid-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 80px; }

/* Sol Kutu Tasarımı */
.contact-info-side h3 { font-size: 1.5em; color: #222; margin-top: 0; margin-bottom: 10px; }
.info-desc { color: #666; margin-bottom: 25px; font-size: 0.95em; }
.info-card { display: flex; align-items: flex-start; gap: 20px; background: #fff; padding: 20px 25px; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #eee; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(11, 61, 122, 0.15); border-color: #0b3d7a; }
.icon-circle { width: 50px; height: 50px; background-color: rgba(11, 61, 122, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0b3d7a; font-size: 1.2em; flex-shrink: 0; }
.info-text h4 { margin: 0 0 5px 0; color: #222; font-size: 1.1em; font-weight: 700; }
.info-text p { margin: 0 0 5px 0; color: #555; line-height: 1.4; font-size: 0.95em; }
.info-text a { color: #0b3d7a; text-decoration: none; font-weight: 600; font-size: 0.9em; transition: color 0.2s; display: inline-block; }
.info-text a:hover { color: #3a7bd5; }
.phone-link { display: block; margin-bottom: 3px; }

/* Sağ Form Tasarımı */
.form-box { background: #ffffff; padding: 75px 30px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.02); margin-top: 0; height: auto; }
.form-box h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.6em; color: #222; }
.input-wrapper { position: relative; margin-bottom: 15px; }
.input-wrapper input, .input-wrapper textarea { width: 100%; padding: 10px 0; font-size: 15px; color: #333; border: none; border-bottom: 1px solid #ccc; outline: none; background: transparent; font-family: 'Inter', sans-serif; transition: 0.3s; border-radius: 0; }
.input-wrapper textarea { height: 60px; resize: none; }
.input-wrapper label { position: absolute; top: 10px; left: 0; color: #999; font-size: 15px; pointer-events: none; transition: 0.3s ease all; }
.input-wrapper input:focus ~ label, .input-wrapper input:valid ~ label, .input-wrapper textarea:focus ~ label, .input-wrapper textarea:valid ~ label { top: -15px; font-size: 12px; color: #0b3d7a; font-weight: 700; }
.focus-border { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #0b3d7a; transition: 0.4s; }
.input-wrapper input:focus ~ .focus-border, .input-wrapper textarea:focus ~ .focus-border { width: 100%; }
.submit-btn { background: #2962ff; color: white; border: none; padding: 12px 35px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(41, 98, 255, 0.25); margin-top: 5px; }
.submit-btn:hover { background: #0b3d7a; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(11, 61, 122, 0.35); }
.full-map { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }


/* ==========================================================================
   8. FOOTER (ALT KISIM)
   ========================================================================== */
.site-footer { 
    background-color: #f0f0f0; 
    max-width: 1400px; 
    margin: 30px auto 0; 
    padding: 35px 25px; /* Bu padding içeriği sıkıştırır */
    border-radius: 8px; 
    overflow: hidden; /* Taşmaları gizle */
}

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.6fr 0.8fr 1.2fr; 
    gap: 30px; 
}

#footer-about { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
#footer-about .footer-logo { max-width: 220px; margin-bottom: 15px; display: block; }
.about-text { font-size: 0.9rem; color: #333; line-height: 1.6; margin-bottom: 20px; }
.copyright { font-size: 0.8rem; color: #666; margin: 0; padding-top: 20px; text-align: center; } 

.footer-column h4 { font-size: 1.2em; color: #000000; margin-top: 0; margin-bottom: 15px; padding-bottom: 8px; position: relative; border-bottom: 1px solid #ccc; }
#footer-links ul, #footer-contact ul { list-style: none; padding: 0; margin: 0; }
#footer-links ul li { margin-bottom: 10px; }
#footer-contact ul li { display: flex; align-items: center; margin-bottom: 15px; font-size: 0.9em; color: #000000; }
#footer-contact ul li i { color: #0b3d7a; font-size: 1.1em; width: 25px; text-align: left; flex-shrink: 0; }
#footer-links ul li a, #footer-contact ul li a, #footer-contact ul li span { text-decoration: none; color: #000000; font-weight: 500; transition: color 0.3s ease; line-height: 1.4; }
#footer-links ul li a:hover, #footer-contact ul li a:hover { color: #0b3d7a; }

.social-title { margin-top: 20px; margin-bottom: 10px; font-size: 1.1em; font-weight: 700;}
.footer-social { display: flex; gap: 15px; }
.footer-social a { color: #000000; font-size: 1.4em; transition: color 0.3s ease, transform 0.3s ease; }
.footer-social a:hover { color: #0b3d7a; transform: translateY(-3px); }

/* YTG Design İmza */
.creator-credit { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.8rem; color: #666; font-family: 'Inter', sans-serif; }
.creator-credit p { margin: 0; display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
.ytg-link { color: #222; font-family: 'Nexa', 'Montserrat', sans-serif; font-weight: 800; text-decoration: none; position: relative; transition: color 0.3s ease; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; }
.ytg-logo { height: 22px; width: auto; filter: brightness(0); transition: filter 0.3s ease; vertical-align: middle; margin-bottom: 2px; }
.ytg-link:hover { color: #000; }
.ytg-link:hover .ytg-logo { filter: none; }
.ytg-link::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: #f5c01b; transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease-out; }
.ytg-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.separator { color: #ccc; font-weight: 300; margin: 0 4px; }
.ai-badge { font-size: 0.7rem; background-color: #f9f9f9; padding: 3px 8px; border-radius: 20px; color: #555; font-weight: 600; border: 1px solid #eee; display: inline-flex; align-items: center; gap: 4px; transition: all 0.3s ease; }
.ai-badge:hover { border-color: #f5c01b; background-color: #fff; }
.ai-badge i { color: #f5c01b; }

/* -----------------------------------------------------------
   İYZİCO ÖDEME BANDI (DÜZELTİLMİŞ VERSİYON)
----------------------------------------------------------- */
.footer-payment-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0; /* Üst çizgi rengi footer ile uyumlu */
    
    /* Footer'ın padding'ini açıp tam genişlik olması için */
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 25px;
    padding-right: 25px;
    
    background-color: transparent; /* Arka plan rengini kaldırdık, footer ile aynı oldu */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Sol Taraf: Logo ve Yazı */
.payment-trust {
    display: flex;
    align-items: center;
    gap: 15px;
}

.iyzico-brand {
    height: 24px; /* Logo boyutu */
    width: auto;
    filter: grayscale(100%); 
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-text {
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
    border-left: 1px solid #ccc; /* Araya çizgi */
    padding-left: 15px;
    line-height: 1.2;
}

/* Sağ Taraf: Kartlar */
.payment-cards {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-cards img {
    height: 20px; /* Kart yüksekliği */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Troy logosu genelde kare olduğu için optik olarak küçülttüm */
.payment-cards img.troy-icon {
    height: 24px; 
}

/* Hover Efektleri (Üzerine gelince renklenir) */
.footer-payment-wrapper:hover .iyzico-brand,
.footer-payment-wrapper:hover .payment-cards img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer ödeme satırı - çizgiyi logolara yaklaştır, üst bloktan ayır */
.footer-payment-wrapper,
.footer-pay-row,
.footer-payments-row {
    margin-top: 34px !important;     /* Üstteki içerikten koparır */
    padding-top: 10px !important;    /* Çizgi ile logo arası */
}

/* 1px çizgiyi biraz aşağı al */
.footer-payment-wrapper::before,
.footer-pay-row::before,
.footer-payments-row::before {
    content: "";
    display: block;
    border-top: 1px solid #e6e6e6;
    margin-bottom: 12px;             /* Çizgi - logo mesafesi */
}

/* MOBİL UYUM */
@media (max-width: 768px) {
    .footer-payment-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .payment-trust {
        flex-direction: column;
        gap: 10px;
    }
    
    .trust-text {
        border-left: none;
        padding-left: 0;
    }
}


/* ==========================================================================
   9. WHATSAPP BUTONU (SABİT)
   ========================================================================== */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 9999; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: pulse 3s infinite; overflow: visible !important; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #20ba5a; }
.my-float { margin-top: 2px; }
.wa-message-bubble { position: absolute; bottom: 75px; right: 0; background-color: #ffffff; color: #333; padding: 12px 20px; border-radius: 10px 10px 0 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); white-space: nowrap; font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); pointer-events: none; border: 1px solid #f0f0f0; }
.wa-message-bubble::after { content: ''; position: absolute; right: 20px; bottom: -8px; border-top: 8px solid #ffffff; border-bottom: 8px solid transparent; border-left: 8px solid transparent; border-right: 8px solid transparent; }
.wa-message-bubble.show-anim { opacity: 1; visibility: visible; transform: translateY(0); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }


/* ==========================================================================
   10. MEDYA SORGULARI (MOBİL UYUM)
   ========================================================================== */
@media (max-width: 900px) {
    /* 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: 768px) {
    .vm-grid { grid-template-columns: 1fr; }
    .timelineSwiper { overflow: hidden; } /* Mobilde kartlar taşmasın */
    .timeline-3d-card { width: 280px !important; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 25px; }
    .wa-message-bubble { display: none; }
}

@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; }
    .biz-kimiz-image img { border-radius: 8px 8px 0 0; }
}/* ==========================================================================
   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: c; 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); } }

/* ==========================================================================
   YENİ MİNİMAL BİLDİRİM (SMART CHIP - FIX)
   ========================================================================== */

.ai-notif-chip {
    position: fixed;          /* Sayfada sabit dur */
    bottom: 30px;             /* Aşağıdan 30px yukarıda */
    left: 50%;                /* Yatayda ortala */
    transform: translateX(-50%) translateY(150%); /* Başlangıçta aşağıda gizli */
    
    /* Minimal Boyutlar */
    width: auto;
    min-width: 280px;
    max-width: 90%;
    
    z-index: 999999;          /* En üstte kalsın */
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ekrana Gelince */
.ai-notif-chip.show {
    transform: translateX(-50%) translateY(0); /* Yukarı kayarak belir */
}

.ai-notif-chip.dismissed {
    display: none !important;
}

/* İç Kapsayıcı (Görünüm) */
.chip-content {
    background: rgba(5, 27, 54, 0.95); /* Çok koyu lacivert (neredeyse siyah) */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; /* Tam oval */
    padding: 8px 15px 8px 8px; /* Sol taraftan avatar için az boşluk */
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Nefes Alan Dış Gölge (Neon Etkisi) */
.chip-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.0);
    animation: neonBreath 3s infinite;
    pointer-events: none;
}

@keyframes neonBreath {
    0% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }
    100% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
}

/* Avatar */
.chip-avatar {
    width: 40px; height: 40px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}
.chip-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Yeşil Nokta */
.chip-status {
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: #2ecc71;
    border: 2px solid #051b36;
    border-radius: 50%;
    box-shadow: 0 0 5px #2ecc71;
}

/* Yazılar */
.chip-text {
    display: flex; flex-direction: column;
    justify-content: center;
}
.chip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.chip-subtitle {
    font-size: 0.7rem;
    color: #00d2ff; /* Neon Mavi Yazı */
    font-weight: 500;
    line-height: 1.2;
}

/* Kapatma Butonu (Minimal X) */
.chip-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    margin-left: auto; /* En sağa it */
    transition: 0.2s;
    font-size: 0.8rem;
}
.chip-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Hover Efekti (Üzerine gelince parlasın) */
.ai-notif-chip:hover .chip-content {
    border-color: rgba(0, 210, 255, 0.5);
    transform: scale(1.02);
}/* =========================================
   E-TİCARET & DASHBOARD STYLES (EKLENDİ)
   ========================================= */

/* --- MAĞAZA (URUNLER.HTML) --- */
.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-top: 30px;
}
.product-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px;
    text-align: center; transition: 0.3s; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: #0b3d7a; }
.product-card img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 1.1rem; color: #222; margin-bottom: 5px; height: 45px; overflow: hidden; }
.product-card .price { font-size: 1.2rem; color: #0b3d7a; font-weight: 800; display: block; margin-bottom: 15px; }
.btn-add {
    background: #0b3d7a; color: #fff; border: none; padding: 10px 20px; width: 100%;
    border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.2s;
}
.btn-add:hover { background: #f6c01b; color: #000; }


/* --- ADMIN PANELI (COREUI TARZI) --- */
.admin-body { display: flex; background: #ebedef; font-family: 'Inter', sans-serif; margin: 0; padding: 0; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar { width: 260px; background: #0b3d7a; color: #000000; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-brand { height: 70px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; background: rgba(0,0,0,0.1); }
.sidebar-brand span { color: #f6c01b; }
.sidebar-menu { list-style: none; padding: 0; margin: 20px 0; }
.sidebar-menu li a { display: block; padding: 15px 25px; color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 15px; }
.sidebar-menu li a:hover, .sidebar-menu li.active a { background: rgba(255,255,255,0.1); color: #fff; border-left: 4px solid #f6c01b; }
.badge { background: #321fdb; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; margin-left: auto; }

/* Admin Content */
.admin-content { flex: 1; padding: 30px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: #fff; padding: 15px 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.admin-profile { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.admin-profile img { width: 35px; height: 35px; border-radius: 50%; }

/* Stats Cards (Gradients) */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
    padding: 20px; border-radius: 8px; color: #fff; position: relative; overflow: hidden; height: 150px;
    display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.stat-card.purple { background: linear-gradient(45deg, #321fdb, #5e4ae3); }
.stat-card.blue { background: linear-gradient(45deg, #3399ff, #59aaff); }
.stat-card.orange { background: linear-gradient(45deg, #f9b115, #f6c01b); color: #222; }
.stat-card.red { background: linear-gradient(45deg, #e55353, #f07070); }
.stat-text h4 { margin: 0; font-size: 0.9rem; opacity: 0.8; }
.stat-text h2 { margin: 5px 0; font-size: 1.8rem; }
.mini-chart { position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; opacity: 0.5; }

/* Main Chart */
.chart-section { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.chart-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.chart-wrapper { height: 300px; width: 100%; }

/* Tables */
.table-section { background: #fff; padding: 20px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; }
th { color: #888; font-size: 0.9rem; }
/* --- Gelişmiş Ürün Kartı Tasarımı --- */
.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 40px;
}
.product-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 15px; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(11, 61, 122, 0.15); border-color: #0b3d7a;
}
.product-card img {
    width: 100%; height: 220px; object-fit: contain; padding: 20px; background: #f9f9f9;
}
.product-info { padding: 20px; text-align: left; }
.product-category { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.product-card h3 { font-size: 1.2rem; margin: 5px 0 10px; color: #333; font-weight: 700; }
.product-card .price { font-size: 1.4rem; color: #0b3d7a; font-weight: 800; display: block; margin-bottom: 15px; }
.btn-add {
    width: 100%; background: #0b3d7a; color: #fff; padding: 12px; border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-add:hover { background: #f6c01b; color: #000; }

/* --- Ödeme Sayfası Stilleri --- */
.checkout-container {
    max-width: 900px; margin: 50px auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
}
.checkout-form, .checkout-summary {
    background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem;
}
.form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.pay-btn {
    width: 100%; background: #2ecc71; color: #fff; padding: 15px; border: none; border-radius: 8px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 10px;
}

/* --- Başarılı Sayfası --- */
.success-card {
    background: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 500px;
}
.success-icon {
    width: 80px; height: 80px; background: #2ecc71; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px;
}
.btn-primary, .btn-secondary {
    display: inline-block; padding: 12px 25px; margin: 10px; text-decoration: none; border-radius: 30px; font-weight: 600;
}
.btn-primary { background: #0b3d7a; color: #fff; }
.btn-secondary { background: #eee; color: #333; }

/* --- Profil Paneli --- */
.profile-container {
    max-width: 1000px; margin: 50px auto; display: grid; grid-template-columns: 250px 1fr; gap: 30px;
}
.profile-sidebar { background: #0b3d7a; color: #fff; border-radius: 15px; padding: 30px 20px; text-align: center; }
.user-avatar i { font-size: 60px; margin-bottom: 10px; color: #f6c01b; }
.profile-menu { list-style: none; padding: 0; margin-top: 40px; text-align: left; }
.profile-menu li { padding: 15px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.profile-menu li:hover, .profile-menu li.active { background: rgba(255,255,255,0.1); color: #f6c01b; }
.profile-content { background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

/* Sipariş Satırı */
.order-item {
    border: 1px solid #eee; border-radius: 10px; padding: 20px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.order-header span { display: block; font-size: 0.9rem; color: #777; }
.order-header strong { color: #0b3d7a; font-size: 1.1rem; }
.order-status {
    padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; background: #fff3cd; color: #856404;
}
.order-status.tamamlandi { background: #d4edda; color: #155724; }
/* --- ADMIN PANEL UPDATES (TailAdmin Style) --- */
/* --- SHOPPHP v5 STYLE THEME --- */
:root {
    --bg-body: #F3F4F6; /* Çok açık gri arka plan */
    --bg-white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #8898aa;
    --primary: #4F46E5; /* Modern İndigo */
    --primary-light: #EEF2FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border-color: #E5E7EB;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* LAYOUT */
.wrapper { display: flex; height: 100vh; overflow: hidden; }

/* SIDEBAR (Soldaki Menü) */
.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    flex-shrink: 0;
    transition: 0.3s;
    z-index: 50;
}
.brand {
    height: 70px; display: flex; align-items: center; padding: 0 24px;
    font-size: 1.25rem; font-weight: 800; color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}
.brand span { color: var(--text-dark); margin-left: 5px; }
.menu { padding: 20px 10px; flex: 1; overflow-y: auto; }
.menu-title {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); margin: 20px 15px 10px; font-weight: 600;
}
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px; margin-bottom: 5px;
    color: var(--text-dark); text-decoration: none;
    font-weight: 500; border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover { background-color: var(--primary-light); color: var(--primary); }
.nav-link.active {
    background-color: var(--primary); color: #fff;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}
.nav-link i { width: 20px; text-align: center; font-size: 1.1rem; }

/* MAIN CONTENT */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

/* HEADER (Üst Bar) */
.topbar {
    height: 70px; background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px;
    box-shadow: var(--shadow-soft);
}
.search-wrapper {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-body); padding: 8px 15px; border-radius: 20px;
}
.search-wrapper input { border: none; background: transparent; outline: none; font-size: 0.9rem; width: 250px; }
.user-menu { display: flex; align-items: center; gap: 20px; }
.icon-btn {
    position: relative; cursor: pointer; color: var(--text-muted); font-size: 1.2rem;
    transition: 0.2s;
}
.icon-btn:hover { color: var(--primary); }
.badge-dot {
    position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
    border: 2px solid var(--bg-white);
}

/* CONTENT AREA */
.content-scroll { flex: 1; overflow-y: auto; padding: 30px; }

/* DASHBOARD CARDS (ShopPHP Tarzı) */
.grid-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-white); border-radius: 12px; padding: 24px;
    box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,0.03);
    position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.stat-icon-bg {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 15px;
}
.bg-light-primary { background: var(--primary-light); color: var(--primary); }
.bg-light-success { background: #D1FAE5; color: var(--success); }
.bg-light-warning { background: #FEF3C7; color: var(--warning); }
.bg-light-danger { background: #FEE2E2; color: var(--danger); }

.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-top: 5px; }

/* CHARTS SECTION */
.grid-charts {
    display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 30px;
}
.chart-box {
    background: var(--bg-white); border-radius: 12px; padding: 24px;
    box-shadow: var(--shadow-card); min-height: 400px;
}
.box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.box-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }

/* TABLES */
.table-box {
    background: var(--bg-white); border-radius: 12px; padding: 0;
    box-shadow: var(--shadow-card); overflow: hidden;
}
.custom-table { width: 100%; border-collapse: collapse; }
.custom-table th {
    background: #F9FAFB; padding: 16px 24px; text-align: left;
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
}
.custom-table td {
    padding: 16px 24px; border-top: 1px solid var(--border-color);
    vertical-align: middle; color: var(--text-dark); font-size: 0.95rem;
}
.custom-table tr:hover { background-color: #F9FAFB; }
.status-badge {
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.status-active { background: #D1FAE5; color: #065F46; }
.status-passive { background: #FEF3C7; color: #92400E; }

/* UTILS */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FORM STYLES (Senin sevdiğin kısım için container uyumu) */
.form-container { background: var(--bg-white); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-card); }
.ql-container { height: 250px !important; font-size: 1rem; }
.input-field {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    border-radius: 8px; outline: none; transition: 0.2s; font-size: 0.95rem;
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.btn-save {
    background: var(--primary); color: white; border: none; padding: 12px 30px;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; width: 100%; margin-top: 20px;
}
.btn-save:hover { background: #4338ca; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

/* Responsive */
@media(max-width: 1024px) {
    .grid-stats { grid-template-columns: 1fr 1fr; }
    .grid-charts { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
    .grid-stats { grid-template-columns: 1fr; }
}/* Quill Toolbar Ayarı */
.ql-toolbar {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-color: #e5e7eb !important;
}
.ql-container {
    border-radius: 0 0 8px 8px;
    border-color: #e5e7eb !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem;
}
.ql-editor {
    min-height: 250px;
}/* Header İkonları */
.header-right-actions { display: flex; gap: 15px; align-items: center; }
.icon-link { font-size: 1.2rem; color: #333; position: relative; }

/* Bildirim (Toast) */
.toast {
    position: fixed; top: 20px; right: 20px;
    background: #28a745; color: white; padding: 15px 25px;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 10px;
    transform: translateX(150%); transition: transform 0.3s ease; z-index: 10000;
}
.toast.show { transform: translateX(0); }

/* Renk Düzeltmeleri (Turuncuları Yok Et) */
.product-price { color: #333 !important; } /* Fiyat rengi siyah/koyu gri */
.section-title { color: #1a1a1a !important; }/* --- RENK DÜZELTMELERİ (TURUNCULARI MAVİ/SİYAH YAPMA) --- */
.text-orange-600 { color: #0b3d7a !important; } /* Başlıkları Mavi Yap */
.bg-orange-600 { background-color: #0b3d7a !important; } /* Butonları Mavi Yap */
.hover\:bg-orange-700:hover { background-color: #021a38 !important; }
.border-orange-500 { border-color: #0b3d7a !important; }
.product-price { color: #222 !important; } /* Fiyatlar Siyah */

/* --- HEADER İKONLARI --- */
.header-right-actions { display: flex; gap: 20px; align-items: center; }
.icon-link { font-size: 1.3rem; color: #333; position: relative; transition: 0.3s; }
.icon-link:hover { color: #0b3d7a; }

/* --- BİLDİRİM KUTUSU (TOAST) --- */
.toast {
    position: fixed; top: 100px; right: 20px;
    background: #0b3d7a; color: white; padding: 15px 25px;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 15px; font-weight: 600;
    transform: translateX(200%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 10000; border-left: 5px solid #f6c01b;
}
.toast.show { transform: translateX(0); }
.toast i { font-size: 1.2rem; color: #f6c01b; }

/* --- SAĞDAN AÇILAN SEPET (DRAWER) --- */
.cart-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); z-index: 9998;
    display: none; opacity: 0; transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}
.cart-overlay.active { display: block; opacity: 1; }

.cart-drawer {
    position: fixed; top:0; right:0; width: 400px; max-width: 85%; height: 100%;
    background: white; z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }

.drawer-header { 
    padding: 20px; border-bottom: 1px solid #eee; 
    display: flex; justify-content: space-between; align-items: center; 
    background: #f9f9f9;
}
.drawer-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: #0b3d7a; }
.close-drawer-btn { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: #666; }

.drawer-items { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
.drawer-item img { width: 70px; height: 70px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; }
.drawer-item-info { flex: 1; }
.drawer-item-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; color: #333; }
.drawer-item-meta { font-size: 0.85rem; color: #666; }
.drawer-item-price { font-weight: 800; color: #0b3d7a; margin-top: 5px; }

.drawer-footer { padding: 25px; border-top: 1px solid #eee; background: #fff; }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 20px; }
.drawer-total strong { color: #0b3d7a; }
.btn-checkout { 
    display: block; width: 100%; background: #0b3d7a; color: white; 
    text-align: center; padding: 15px; border-radius: 8px; 
    text-decoration: none; font-weight: bold; transition: 0.3s; 
}
.btn-checkout:hover { background: #021a38; box-shadow: 0 5px 15px rgba(11, 61, 122, 0.3); }


/* --- ADMİN SİPARİŞ MODALI --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.hidden { display: none; }

.modal-content {
    background: #fff; width: 700px; max-width: 95%; max-height: 90vh;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden; animation: fadeIn 0.3s;
}

.modal-header {
    padding: 15px 25px; border-bottom: 1px solid #eee; background: #f9fafb;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; color: #111; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #666; line-height: 1; }

.modal-body { padding: 25px; overflow-y: auto; flex: 1; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.info-box { background: #fff; border: 1px solid #eee; padding: 15px; border-radius: 8px; }
.info-box h4 { margin: 0 0 10px 0; color: #4F46E5; font-size: 0.95rem; border-bottom: 1px dashed #eee; padding-bottom: 5px; }
.info-box p { margin: 5px 0; font-size: 0.9rem; color: #444; }

.modal-row { display: flex; justify-content: space-between; align-items: center; }

.modal-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.modal-table th { background: #f3f4f6; text-align: left; padding: 10px; border-bottom: 2px solid #ddd; }
.modal-table td { padding: 10px; border-bottom: 1px solid #eee; }

.modal-footer-summary { margin-top: 20px; text-align: right; }
.summary-row { margin-bottom: 5px; font-size: 1rem; }
.summary-row.total { font-size: 1.3rem; border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }

.modal-footer {
    padding: 15px 25px; border-top: 1px solid #eee; background: #f9fafb;
    display: flex; justify-content: flex-end; gap: 10px;
}
.modal-footer button { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

@media (max-width: 700px) { .modal-grid { grid-template-columns: 1fr; } }
@media print {
    body * { visibility: hidden; }
    #order-modal, #order-modal * { visibility: visible; }
    #order-modal { position: absolute; left: 0; top: 0; width: 100%; height: auto; background: white; }
    .modal-footer, .close-btn { display: none; }
}

/* Bildirim Alanı Stilleri */
.notification-wrapper { position: relative; }
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    background: #EF4444; color: white;
    font-size: 0.65rem; padding: 2px 6px;
    border-radius: 10px; border: 2px solid white;
    font-weight: bold;
}
.notification-dropdown {
    position: absolute; top: 40px; right: -10px;
    width: 320px; background: white;
    border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000; border: 1px solid #eee;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

.notif-header {
    padding: 15px; border-bottom: 1px solid #f3f4f6;
    display: flex; justify-content: space-between; align-items: center;
}
.notif-header h4 { margin: 0; font-size: 1rem; color: #111827; }

.notif-list-mini { max-height: 350px; overflow-y: auto; }

.notif-item {
    display: flex; gap: 15px; padding: 15px;
    border-bottom: 1px solid #f9fafb; cursor: pointer;
    transition: background 0.2s; align-items: start;
}
.notif-item:hover { background: #f9fafb; }
.notif-item.unread { background: #eff6ff; } /* Okunmamışlar mavi tonlu */
.notif-item.type-cancel { border-left: 3px solid #EF4444; } /* İptal talebi kırmızı şerit */

.notif-avatar {
    width: 40px; height: 40px; background: #E0E7FF; color: #4F46E5;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem; position: relative;
}
.notif-avatar .dot {
    position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
    background: #10B981; border: 2px solid white; border-radius: 50%;
}
.notif-content h5 { margin: 0 0 5px 0; font-size: 0.9rem; color: #374151; }
.notif-content p { margin: 0; font-size: 0.8rem; color: #6B7280; line-height: 1.3; }
.notif-time { font-size: 0.7rem; color: #9CA3AF; margin-top: 5px; display: block; }

.notif-footer {
    padding: 12px; text-align: center; color: #4F46E5;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    border-top: 1px solid #f3f4f6;
}
.notif-footer:hover { background: #f3f4f6; border-radius: 0 0 12px 12px; }

/* Kargo Satırları Hizalama */
.summary-row { display: flex; justify-content: space-between; width: 250px; font-size: 0.9rem; }

/* Header Sağ Taraf Düzeni */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* İkon ve profil arası boşluk */
    margin-left: auto; /* Sağa yasla */
}

/* Bildirim İkonu Alanı */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}
.notification-wrapper:hover {
    background-color: #f3f4f6;
}

/* Modal'ın ekranda düzgün durması ve kapanabilmesi için */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* En üstte durması için */
}
.modal-content {
    background: white;
    padding: 0; /* Padding'i sıfırladık, içeriden vereceğiz */
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; background: white; z-index: 10;
}
.modal-body { padding: 20px; }
.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* --- GLOBAL --- */
:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --bg-light: #F3F4F6;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
}

body { font-family: 'Inter', sans-serif; background: var(--bg-light); margin: 0; color: var(--text-dark); overflow-x: hidden; }

/* --- SIDEBAR --- */
.wrapper { display: flex; min-height: 100vh; transition: all var(--transition-speed); }
.sidebar { 
    width: var(--sidebar-width); background: white; border-right: 1px solid #E5E7EB; 
    display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 50; transition: width var(--transition-speed);
}
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }

.brand { 
    height: 70px; display: flex; align-items: center; padding: 0 24px; 
    font-size: 1.25rem; font-weight: 800; color: var(--primary); border-bottom: 1px solid #F3F4F6; white-space: nowrap; overflow: hidden;
}
.sidebar.collapsed .brand span { display: none; }
.sidebar.collapsed .brand { justify-content: center; padding: 0; }

.menu { flex: 1; padding: 20px 15px; overflow-y: auto; }
.menu-title { font-size: 0.75rem; font-weight: 700; color: #9CA3AF; margin: 20px 0 10px 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar.collapsed .menu-title { display: none; }

.nav-link { 
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; 
    color: var(--text-gray); text-decoration: none; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; font-weight: 500; font-size: 0.95rem; white-space: nowrap;
}
.nav-link:hover { background: var(--bg-light); color: var(--text-dark); }
.nav-link.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
.nav-link i { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar.collapsed .nav-link span { display: none; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 12px 0; }

/* --- MAIN CONTENT --- */
.main { flex: 1; margin-left: var(--sidebar-width); transition: margin-left var(--transition-speed); display: flex; flex-direction: column; }
.main.expanded { margin-left: var(--sidebar-collapsed-width); }

.topbar { 
    height: 70px; background: white; border-bottom: 1px solid #E5E7EB; 
    display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 40;
}

.content-scroll { padding: 30px; flex: 1; overflow-y: auto; }

/* Responsive */
@media (max-width: 1024px) { .charts-container { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.mobile-open { transform: translateX(0); } .main { margin-left: 0; } }

/* --- SOL MENÜ KÜÇÜLTME (COLLAPSE) --- */
.sidebar {
    transition: width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: 80px; /* Sadece ikonlar kalsın */
}

.sidebar.collapsed .brand span,
.sidebar.collapsed .menu-title,
.sidebar.collapsed .menu a span {
    display: none; /* Yazıları gizle */
}

.sidebar.collapsed .menu a {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .menu a i {
    margin-right: 0;
    font-size: 1.4rem;
}

/* İçerik alanını kaydır */
.main.expanded {
    margin-left: 0; 
}

/* --- SİDEBAR DÜZELTMELERİ (FİNAL) --- */

/* 1. Menü kapandığında içeriği sola 0'a değil, menü genişliği kadar (80px) çekiyoruz.
   Böylece menü, hamburger butonunun üstüne binmiyor. */
.main.expanded {
    margin-left: 80px !important; /* ESKİSİ 0 İDİ, HATALIYDI */
}

/* 2. Menü açılıp kapanırken yazıların taşmasını ve garip görünmesini engeller */
.sidebar {
    overflow: hidden; /* Taşmayı gizle */
    white-space: nowrap; /* Yazıları alt satıra indirme */
    z-index: 999; /* Her zaman en üstte */
}

/* 3. Kapalı modda menü elemanlarını ortalar */
.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 15px 0;
}

/* 4. Kapalı modda ikon boyutunu ayarlar */
.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
}

/* 5. Mobilde menü davranışı */
@media (max-width: 768px) {
    .main.expanded {
        margin-left: 0 !important; /* Mobilde menü tamamen gider */
    }
    .sidebar.collapsed {
        transform: translateX(-100%); /* Mobilde kapalıyken ekran dışına it */
        width: 260px !important; /* Mobilde küçülme olmaz, direkt kaybolur */
    }
}

/* --- GÖRSEL DÜZELTMELER (URUN-DETAY) --- */

/* 1. Kırmızı Alan (Üst Boşluk) Çözümü */
body {
    padding-top: 0 !important;
}
.page-header, .breadcrumb-area {
    display: none !important; /* Varsa eski header alanlarını gizle */
}
/* Header ile içerik arasındaki mesafeyi ayarla */
.container.mx-auto.px-4.py-8 {
    padding-top: 20px !important; 
    margin-top: 0 !important;
}

/* 2. Mavi Alan (Boş Galeri Kutusu) Çözümü */
/* Eğer küçük resim yoksa o alanı gizle */
#gallery-thumbnails:empty {
    display: none !important;
}
#gallery-thumbnails {
    margin-top: 15px;
    min-height: 0 !important; /* Boşluk kalmasın */
}

/* 3. Yeşil Alan (Sepete Ekle Butonu Hizalaması) */
.add-to-cart-row {
    display: flex !important;
    align-items: stretch !important; /* Yükseklikleri eşitle */
    gap: 10px !important;
    height: 50px !important; /* Sabit yükseklik veriyoruz */
}

.qty-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alt tarafa yasla */
}

.qty-input {
    height: 100% !important; /* Kapsayıcının boyunu al */
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 1.2rem !important;
    width: 80px !important;
}

.btn-add-cart {
    height: 100% !important; /* Input ile aynı boyda olsun */
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px !important;
    font-size: 1rem !important;
}

/* 4. Tablo çizgilerini Kaldırma */
.tech-table, .tech-table td, .tech-table tr {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important; /* Sadece çok ince alt çizgi kalsın */
}
.tech-table tr:last-child td {
    border-bottom: none !important;
}

/* =================================================================
   GÜVENLİ DÜZELTMELER (FİNAL TEMİZ HALİ)
   ================================================================= */

/* 1. Ürün Detay Sayfası Header Boşluğu */
/* Bu sınıf sadece ürün detay sayfasındaki container'ı aşağı iter */
.product-detail-spacer {
    padding-top: 40px !important; /* Header ile içerik arası temiz boşluk */
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Admin Paneli Taşıntı Engelleyici */
/* Admin panelinde sağa sola kaymayı engeller ama yapıyı bozmaz */
.admin-body {
    overflow-x: hidden;
}

/* 3. Galeri Küçük Resimleri (Boşsa gizle) */
#gallery-thumbnails:empty {
    display: none !important;
}

/* --- MODERN CHECKBOX & FILTERS --- */
.custom-check-row {
    display: flex; align-items: center; cursor: pointer; user-select: none;
    transition: all 0.2s;
}
.custom-check-row:hover .check-box { border-color: #4F46E5; }
.check-box {
    width: 20px; height: 20px; border: 2px solid #e2e8f0; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; margin-right: 10px;
    background: white; transition: all 0.2s;
}
.check-box i { font-size: 10px; color: white; transform: scale(0); transition: all 0.2s; }
.filter-cat:checked ~ .check-box { background: #1e3a8a; border-color: #1e3a8a; }
.filter-cat:checked ~ .check-box i { transform: scale(1); }

/* ÖLÇÜ BUTONLARI (Pill Style) */
.size-btn {
    border: 1px solid #f1f5f9; background: #f8fafc; color: #64748b;
    border-radius: 8px; font-size: 0.75rem; font-weight: 600; padding: 8px 0;
    transition: all 0.2s;
}
.size-btn:hover { background: #e2e8f0; color: #334155; }
.size-btn.active { background: #1e3a8a; color: white; border-color: #1e3a8a; box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3); }

/* --- PREMIUM PRODUCT CARD --- */
.product-card {
    background: white; border-radius: 16px; overflow: hidden;
    border: 1px solid #f3f4f6; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    border-color: #e0e7ff;
}
.card-image-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative; overflow: hidden;
}
.card-badge {
    position: absolute; top: 12px; left: 12px; font-size: 0.65rem; font-weight: 800;
    padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; text-transform: uppercase; z-index: 10;
}
.card-badge.stock-low { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.card-badge.stock-out { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }

.add-btn-modern {
    background: #1e3a8a; color: white; border-radius: 12px; font-weight: 600;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
}
.add-btn-modern:hover { background: #172554; transform: translateY(-1px); }
.add-btn-modern:active { transform: translateY(1px); }

/* Animasyonlar */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

/* FİLTRE BUTONLARI (Mini Pill Style) */
.size-btn {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 0;
    transition: all 0.2s;
}
.size-btn:hover { border-color: #cbd5e1; background: #f1f5f9; }
.size-btn.active { 
    background: #1e3a8a; 
    color: white; 
    border-color: #1e3a8a; 
}

/* ÜRÜN KARTI (Ultra Temiz) */
.product-card-modern {
    background: white;
    border: 1px solid #f3f4f6; /* Çok hafif sınır */
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-modern:hover {
    border-color: #bfdbfe; /* Hoverda hafif mavi sınır */
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.add-btn-minimal {
    width: 100%;
    background: #1e3a8a;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px;
}
.add-btn-minimal:hover { background: #172554; }
.add-btn-minimal:active { transform: scale(0.98); }

/* ==========================================================================
   0. SİTE GENELİ HİZALAMA STANDARDI (FIX)
   (Header, Footer ve içeriklerin hepsi aynı hizada başlar ve biter)
   ========================================================================== */

/* Admin paneli hariç tüm ana taşıyıcılar */
:not(.admin-body) .container, 
:not(.admin-body) .header-container, 
:not(.admin-body) .main-container,
:not(.admin-body) .footer-container {
    max-width: 1400px !important; /* Hepsini bu genişliğe kilitledik */
    width: 100% !important;
    padding-left: 25px !important; /* Sağ sol iç boşluk */
    padding-right: 25px !important;
    margin-left: auto !important; /* Ortala */
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Mobilde kenarlara yapışmasın diye güvenlik payı */
@media (max-width: 768px) {
    :not(.admin-body) .container, 
    :not(.admin-body) .header-container, 
    :not(.admin-body) .main-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* =========================================
   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;
    }
}

/* --- MODERN BİLDİRİM (TOAST) STİLLERİ --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000; /* Her şeyin üstünde */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    min-width: 300px;
    background: #fff;
    border-left: 5px solid #333;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out forwards;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    opacity: 0; /* Başlangıçta gizli, animasyonla gelir */
}

/* Kapanırken oynayacak animasyon sınıfı */
.custom-toast.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Bildirim Tipleri */
.custom-toast.success { border-color: #2ecc71; } /* Yeşil */
.custom-toast.success i { color: #2ecc71; margin-right: 10px; font-size: 18px; }

.custom-toast.error { border-color: #e74c3c; } /* Kırmızı */
.custom-toast.error i { color: #e74c3c; margin-right: 10px; font-size: 18px; }

.custom-toast.info { border-color: #3498db; } /* Mavi */
.custom-toast.info i { color: #3498db; margin-right: 10px; font-size: 18px; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* --- SEPET DRAWER DÜZENLEMESİ --- */
#cart-drawer {
    display: flex;       /* İçerik dizilimi için Flexbox */
    flex-direction: column; /* Alt alta diz */
    height: 100vh;       /* Ekran yüksekliği kadar olsun */
    max-width: 400px;    /* Çok geniş olmasın */
    width: 100%;
    position: fixed;
    top: 0;
    right: -100%;        /* Başlangıçta gizli */
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

#cart-drawer.active {
    right: 0; /* Açılınca sağa yasla */
}

/* 1. Başlık Kısmı */
.drawer-header {
    flex-shrink: 0; /* Küçülmesin */
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

/* 2. Ürünlerin Olduğu Orta Kısım (SCROLL BURADA OLACAK) */
.drawer-items {
    flex-grow: 1;    /* Kalan tüm boşluğu kapla */
    overflow-y: auto; /* Sadece burası kaydırılabilir olsun */
    padding: 20px;
    background: #fff; /* Veya hafif gri #f9fafb */
}

/* 3. Alt Kısım (Toplam Tutar ve Buton) */
.drawer-footer {
    flex-shrink: 0; /* Küçülmesin */
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05); /* Hafif gölge */
}

/* Scrollbar Güzelleştirme (Opsiyonel) */
.drawer-items::-webkit-scrollbar {
    width: 6px;
}
.drawer-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.drawer-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Responsive Fixes */
img,
svg {
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }
    .checkout-grid,
    .checkout-wrapper,
    .checkout-content,
    .payment-grid,
    .order-grid,
    .odeme-grid,
    .two-col,
    .two-column,
    .columns {
        grid-template-columns: 1fr !important;
    }
    .checkout-columns,
    .payment-columns,
    .order-columns {
        flex-direction: column;
    }
    .header,
    .navbar,
    .nav-links,
    .header-actions,
    .topbar {
        flex-wrap: wrap;
    }
}
.modal-content {
    max-width: 95vw;
    max-height: 85vh;
    overflow: auto;
}

/* === Footer hover titreme / scrollbar FIX === */

/* Footer içinde yatay taşmayı kesin kapat */
.site-footer,
.footer-container,
.footer-payment-wrapper {
  overflow-x: hidden;
}

/* Ödeme bandını stabilize et */
.footer-payment-wrapper {
  contain: paint;              /* hover efektleri scroll alanını büyütmesin */
}

/* Logoların hover'da "milim" oynamasını engelle */
.footer-payment-wrapper .iyzico-brand,
.footer-payment-wrapper .payment-cards img {
  display: block;
  height: 22px;                /* zaten var gibi ama sabitleyelim */
  width: auto;
  transform: translateZ(0);    /* render jitter azaltır */
  backface-visibility: hidden;
  will-change: filter, opacity, transform;
}

/* Eğer filter hover kullanıyorsan, başlangıç değerini de ver ki geçiş stabil olsun */
.footer-payment-wrapper .iyzico-brand,
.footer-payment-wrapper .payment-cards img {
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-payment-wrapper:hover .iyzico-brand,
.footer-payment-wrapper:hover .payment-cards img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Sosyal ikon hover'ı scroll tetikliyorsa daha güvenli hover (isteğe bağlı) */
.footer-social a {
  will-change: transform;
}

.footer-social a:hover {
  transform: translateY(-2px); /* -3 yerine -2 daha az taşır */
}