/**
 * Devre Elektronik - Elektronik Mağaza Tema Katmanı (elektronik.css)
 * kahve.css'ten SONRA yüklenir; yalnızca görünümü değiştirir.
 * Hiçbir class/ID adı değiştirilmemiştir, tüm JS bağlantıları korunur.
 *
 * Palet:
 *   Gece laciverti  #0B1220 / #111827 / #1E293B
 *   Elektrik mavisi #2563EB (hover #1D4ED8), parlak #38BDF8
 *   Volt yeşili     #A3E635 (küçük vurgular)
 *   Fırsat kırmızısı #E11D48
 *   Zemin           #F4F6FA, yüzey #FFFFFF, çizgi #E2E8F0
 */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --c-espresso: #0B1220;
    --c-primary: #111827;
    --c-primary-dark: #0A0F1C;
    --c-primary-light: #1E293B;

    --c-caramel: #2563EB;
    --c-gold: #38BDF8;
    --c-gold-hover: #1D4ED8;
    --c-accent: #2563EB;
    --c-accent-hover: #1D4ED8;
    --c-volt: #A3E635;

    --c-bg: #F4F6FA;
    --c-surface: #FFFFFF;
    --c-cream: #EEF2F7;
    --c-latte: #E5EAF2;
    --c-border: #E2E8F0;
    --c-border-subtle: #F1F5F9;

    --c-text: #0F172A;
    --c-text-muted: #64748B;
    --c-text-light: #94A3B8;

    --c-success: #16A34A;
    --c-danger: #E11D48;
    --c-badge-discount: #E11D48;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-hover: 0 16px 40px rgba(37, 99, 235, 0.16);
    --shadow-drawer: -10px 0 40px rgba(11, 18, 32, 0.28);

    --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2338BDF8' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M0 30h40l10 10v30M120 90H80l-10-10V50M30 0v20l10 10h30M90 120v-20l-10-10H50'/%3E%3C/g%3E%3Cg fill='%2338BDF8' fill-opacity='.18'%3E%3Ccircle cx='50' cy='70' r='2.5'/%3E%3Ccircle cx='70' cy='50' r='2.5'/%3E%3Ccircle cx='70' cy='30' r='2.5'/%3E%3Ccircle cx='50' cy='90' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   GECE MODU DEĞİŞKEN PALETİ (temel düzeltme)
   kahve.css'teki [data-theme="dark"] bloğu bu dosyadaki :root bloğuyla aynı
   özgüllükte (0,1,0) ve SONRA yüklenmiş :root tarafından siliniyordu; bu yüzden
   gece modunda değişkenler açık palet kalıyor, sadece elle yazılmış !important
   kuralları çalışabiliyordu. html[data-theme="dark"] seçicisi (0,1,1) daha
   yüksek özgüllükte olduğu için tüm değişkenleri güvenle koyu değerlere çevirir.
   ========================================================================== */
html[data-theme="dark"] {
    --c-espresso:       #F8FAFC;   /* Başlık ve güçlü yazılar koyu zeminde açık olur */
    --c-espresso-bg:    #0B1220;   /* Arka plan olarak espresso gerektirenler için */
    --c-primary:        #F8FAFC;
    --c-primary-dark:   #FFFFFF;
    --c-primary-light:  #E2E8F0;

    --c-bg:             #0B1220;   /* Genel sayfa zemin */
    --c-surface:        #111827;   /* Kart/kutu yüzeyi: beyaz yerine koyu yüzey */
    --c-cream:          #1A2436;
    --c-latte:          #243044;
    --c-border:         #2A3A52;
    --c-border-subtle:  #1A2640;

    --c-text:           #CBD5E1;
    --c-text-muted:     #94A3B8;
    --c-text-light:     #94A3B8;   /* geçmişte #64748B idi; koyu zeminlerde 3.x kontrastta kalıyordu */

    --c-white:          #FFFFFF;   /* Buton/rozet yazıları her zaman açık kalır */
    --c-success:        #16A34A;
    --c-danger:         #E11D48;
    --c-badge-discount: #E11D48;

    /* Vurgu renkleri (caramel/gold/accent) gece modunda da parlak kalır; değişiklik yok. */

    --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow:           0 8px 24px rgba(0, 0, 0, 0.40);
    --shadow-hover:     0 14px 36px rgba(0, 0, 0, 0.55);
    --shadow-drawer:    -10px 0 40px rgba(0, 0, 0, 0.60);
}

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .font-serif, .ref-section-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

::selection { background: #2563EB; color: #FFFFFF; }

/* Fiyatlar: eşit genişlikte rakamlar */
.ref-current-price, .ref-old-price, .ref-cart-total, .price-current, .price-old,
.item-total-price, .summary-val, .summary-total-val, .price-box {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ÜST BAR
   ========================================================================== */
.ref-top-bar {
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 55%, #0EA5E9 100%);
    border-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
}
.ref-top-bar .text-muted { color: rgba(255, 255, 255, 0.45) !important; }
.ref-top-bar .text-success { color: var(--c-volt) !important; }
.ref-top-bar [style*="color:var(--c-gold)"],
.ref-top-bar [style*="color:#2563EB"] { color: #FFFFFF !important; }
.ref-top-user-links a { color: rgba(255, 255, 255, 0.9); }
.ref-top-user-links a:hover { color: #FFFFFF; text-decoration: underline; }
.ref-top-user-links .text-danger { color: #FFE4E6 !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.ref-header { box-shadow: 0 1px 0 #E2E8F0, 0 8px 24px rgba(15, 23, 42, 0.06); }
.ref-header-main { padding: 12px 0; }

.ref-search-field {
    height: 48px;
    background: #F1F5F9 !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
}
.ref-search-field:focus {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
}
.ref-search-input-icon { color: #2563EB; }
.ref-search-btn-submit {
    height: 40px;
    border-radius: 9px;
    background: #2563EB;
    box-shadow: none;
}
.ref-search-btn-submit:hover { background: #1D4ED8; }
.ref-search-dropdown { border-radius: 14px; }

.ref-action-icon { border-radius: 10px; background: #F1F5F9; border-color: transparent; }
.ref-action-item:hover .ref-action-icon { border-color: #BFDBFE; color: #2563EB; background: #EFF6FF; }

.ref-cart-btn {
    background: #0B1220;
    border-radius: 12px;
    padding: 9px 16px;
    box-shadow: 0 6px 16px rgba(11, 18, 32, 0.22);
}
.ref-cart-btn:hover { background: #2563EB; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32); }
.ref-cart-badge { background: var(--c-volt); color: #0B1220; }

.ref-mobile-menu-btn { border-radius: 10px; background: #F1F5F9; border-color: transparent; }

/* Kategori şeridi: koyu */
.ref-header-subnav {
    background: #0B1220;
    border-top: 0;
    border-bottom: 0;
}
.ref-header-subnav .ref-subnav-link {
    color: #CBD5E1 !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.ref-header-subnav .ref-subnav-link .text-muted,
.ref-header-subnav .ref-subnav-link i { color: #64748B !important; }
.ref-header-subnav .ref-subnav-link:hover,
.ref-header-subnav .ref-subnav-link.active { color: #FFFFFF !important; }
.ref-header-subnav .ref-subnav-link:hover i { color: #38BDF8 !important; }
.ref-header-subnav .ref-subnav-link::after { background: #38BDF8 !important; }

.ref-mega-btn {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}
.ref-mega-btn:hover { background: #1D4ED8 !important; }
.ref-mega-dropdown { border-radius: 16px !important; border-top: 3px solid #2563EB !important; }
.ref-mega-parent-title .text-warning,
.ref-sub-dropdown-item .text-warning { color: #2563EB !important; }
.ref-nav-badge-b2b { background: var(--c-volt) !important; color: #0B1220 !important; }

.ref-promo-badge {
    background: rgba(56, 189, 248, 0.10) !important;
    border: 1px solid rgba(56, 189, 248, 0.30) !important;
    color: #E0F2FE !important;
    border-radius: 999px !important;
}
.ref-promo-badge .text-warning { color: var(--c-volt) !important; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.modern-hero-slider {
    border-radius: 20px;
    background: #0B1220;
    box-shadow: 0 20px 50px rgba(11, 18, 32, 0.22);
    margin-top: 20px;
}
.hero-nav-arrow {
    border-radius: 12px;
    background: rgba(11, 18, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}
.hero-nav-arrow:hover { background: #2563EB; color: #FFFFFF; border-color: #2563EB; }
.modern-hero-dots .h-dot { height: 4px; border-radius: 2px; }
.modern-hero-dots .h-dot.active { background: #38BDF8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.8); }

/* ==========================================================================
   GÜVEN ŞERİDİ
   ========================================================================== */
.modern-trust-bar {
    background: #0B1220 var(--circuit);
    border: 1px solid #1E293B;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
}
.trust-icon-box {
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    border-radius: 12px;
}
.trust-item:hover .trust-icon-box { background: #2563EB; color: #FFFFFF; border-color: #2563EB; }
.trust-title { color: #FFFFFF; font-family: var(--font-heading); }
.trust-desc { color: #94A3B8; }

/* ==========================================================================
   KATEGORİ KAPSÜLLERİ (çip görünümü)
   ========================================================================== */
.coffee-capsule {
    border-radius: 10px;
    padding: 10px 16px;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    font-weight: 600;
}
.coffee-capsule i { color: #2563EB; font-size: 15px; transition: color .2s; }
.coffee-capsule:hover, .coffee-capsule.active {
    background: #0B1220;
    border-color: #0B1220;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(11, 18, 32, 0.2);
}
.coffee-capsule:hover i, .coffee-capsule.active i { color: #38BDF8; }

/* ==========================================================================
   BÖLÜM BAŞLIKLARI
   ========================================================================== */
.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 23px;
    color: #0B1220;
    position: relative;
    padding-left: 14px;
}
.section-title-wrap h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #38BDF8, #2563EB);
}
.section-title-wrap p { padding-left: 14px; color: #64748B; }
.slider-btn { border-radius: 10px; border-color: #E2E8F0; }
.slider-btn:hover { background: #2563EB; border-color: #2563EB; }

/* ==========================================================================
   ÜRÜN KARTI
   ========================================================================== */
.ref-product-card {
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 12px !important;
    box-shadow: var(--shadow-sm) !important;
}
.ref-product-card:hover {
    transform: translateY(-4px) !important;
    border-color: #93C5FD !important;
    box-shadow: var(--shadow-hover) !important;
}
.ref-product-img-wrap {
    border-radius: 12px;
    background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #F1F5F9 70%);
    border: 1px solid #F1F5F9;
}
.ref-discount-badge {
    top: 18px;
    left: 18px;
    background: #E11D48;
    border-radius: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}
.ref-product-title, .ref-product-title a { color: #0F172A !important; }
.ref-product-title a:hover { color: #2563EB !important; }
.ref-current-price {
    font-family: var(--font-heading);
    font-size: 17px !important;
    color: #0B1220 !important;
}
.ref-old-price { color: #94A3B8 !important; }
.ref-fav-btn { border-radius: 10px; background: #F8FAFC; }
.ref-stepper { border-radius: 10px; background: #F1F5F9; border-color: transparent; }
.ref-add-cart-btn {
    background: #2563EB !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}
.ref-add-cart-btn:hover {
    background: #0B1220 !important;
    box-shadow: 0 6px 16px rgba(11, 18, 32, 0.25) !important;
}

/* ==========================================================================
   KATEGORİ (BENTO) KARTLARI
   ========================================================================== */
.bento-card {
    border-radius: 18px;
    background: #0B1220;
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.14);
}
.bento-gradient-overlay {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0) 25%, rgba(11, 18, 32, 0.88) 100%);
}
.bento-tag {
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(56, 189, 248, 0.5);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.bento-title { font-family: var(--font-heading); }
.bento-link { color: #38BDF8; }
.bento-card:hover { box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25); }

/* ==========================================================================
   MARKA / HİZMET KARTI
   ========================================================================== */
.modern-story-card {
    background: radial-gradient(ellipse at 85% 10%, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 55%), #0B1220 var(--circuit);
    border: 1px solid #1E293B;
    border-radius: 22px;
}
.story-badge {
    color: var(--c-volt);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}
.story-heading { font-family: var(--font-heading); }
.story-text { color: #CBD5E1; }
.story-stat-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: 14px !important;
}
.story-stat-number { font-family: var(--font-heading); color: #FFFFFF !important; }
.story-stat-label { color: #94A3B8 !important; }
.modern-story-card .btn-light { background: #2563EB; border-color: #2563EB; color: #FFFFFF !important; }
.modern-story-card .btn-light:hover { background: #1D4ED8; border-color: #1D4ED8; }

/* ==========================================================================
   HİZMET KARTLARI (eski yorum kartı sınıfları)
   ========================================================================== */
.testimonial-card {
    border-radius: 18px;
    padding: 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: #93C5FD; box-shadow: var(--shadow-hover); }
.testimonial-quote { font-style: normal; color: #475569; margin-bottom: 0; }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    color: #FFFFFF;
    font-size: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ref-footer {
    background: #070B14 var(--circuit);
    color: #94A3B8;
    border-top: 3px solid #2563EB;
}
.ref-footer-col h4 { font-family: var(--font-heading); }
.ref-footer-col ul li a { color: #94A3B8; }
.ref-footer-col ul li a:hover { color: #38BDF8; }
.ref-newsletter-form { border-radius: 10px; }
.ref-newsletter-btn { background: #2563EB; }
.ref-newsletter-btn:hover { background: #1D4ED8; }
.ref-footer-bottom { border-top-color: #1E293B; }

/* ==========================================================================
   GENEL BİLEŞENLER (sepet, ödeme, hesap, formlar)
   ========================================================================== */
.btn-primary, .btn-accent {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}
.btn-primary:hover, .btn-accent:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}
.form-control:focus, .form-select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.form-check-input:checked { background-color: #2563EB; border-color: #2563EB; }
.text-primary { color: #2563EB !important; }
.bg-primary { background-color: #2563EB !important; }
.badge.bg-warning.text-dark { background-color: var(--c-volt) !important; }

/* Mobil alt bar aktif öğe */
.app-bottom-item.active, .app-bottom-item.active i { color: #2563EB !important; }

/* Kaydırma çubuğu */
* { scrollbar-color: #94A3B8 transparent; }

@media (max-width: 991px) {
    .modern-hero-slider { border-radius: 14px; margin-top: 12px; }
    .modern-story-card { padding: 32px 22px; }
}
@media (max-width: 576px) {
    .section-title-wrap h2 { font-size: 19px; }
    .modern-trust-bar { padding: 12px; }
    .trust-item { padding: 6px 4px; gap: 10px; }
    .trust-icon-box { width: 38px; height: 38px; font-size: 18px; }
}

/* ==========================================================================
   İNCE AYARLAR
   ========================================================================== */
/* İndirim rozeti: tam genişlik yerine küçük etiket */
.ref-product-card .ref-discount-badge {
    right: auto !important;
    width: auto !important;
    display: inline-block !important;
    padding: 4px 9px !important;
}
/* Bülten butonu tek satır */
.ref-newsletter-btn { white-space: nowrap; }
/* Marka kartındaki ikincil buton */
.modern-story-card .btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.35) !important; }
.modern-story-card .btn-outline-light:hover { background: rgba(255, 255, 255, 0.08) !important; color: #FFFFFF !important; }

@media (max-width: 576px) {
    /* Slider görseli mobilde kırpılmadan tam görünsün */
    .modern-hero-slide-item img {
        height: auto !important;
        aspect-ratio: 1200 / 440;
        object-fit: cover !important;
    }
}


/* ==========================================================================
   LIGHT MOD OVERRIDE — Elektronik tema varsayılanı dark panel'li header
   kullandığından light modda açık renge döndürmesi gerekiyor
   ========================================================================== */
[data-theme="light"] .ref-header,
[data-theme="light"] .ref-header-main {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0;
}
[data-theme="light"] .ref-header-subnav {
    background: #0B1220 !important; /* kategori barı her iki modda da koyu kalır */
}
[data-theme="light"] .ref-search-field {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: transparent !important;
}
[data-theme="light"] .ref-search-field::placeholder { color: #64748B !important; }
[data-theme="light"] .ref-action-icon {
    background: #F1F5F9 !important;
    border-color: transparent !important;
    color: #0B1220 !important;
}
[data-theme="light"] .ref-action-item .text-dark,
[data-theme="light"] .ref-action-item .fw-bold { color: #0B1220 !important; }
[data-theme="light"] .ref-mega-dropdown {
    background: #FFFFFF !important;
}
[data-theme="light"] .ref-mega-cat-box {
    background: #F5F7FA !important;
    border-color: #E0E7F1 !important;
}
[data-theme="light"] .ref-mega-cat-box:hover { background: #FFFFFF !important; }
[data-theme="light"] .ref-mega-parent-title { color: #0F172A !important; }
[data-theme="light"] .ref-mega-sublink { color: #4A4A4A !important; }
[data-theme="light"] .ref-sub-dropdown { background: #FFFFFF !important; }
[data-theme="light"] .ref-product-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}
[data-theme="light"] .ref-product-title a { color: #0F172A !important; }
[data-theme="light"] .ref-current-price { color: #0B1220 !important; }
[data-theme="light"] .testimonial-card { background: #FFFFFF !important; border-color: #E2E8F0 !important; color: #475569 !important; }
[data-theme="light"] .coffee-capsule { background: #FFFFFF; border-color: #E2E8F0; color: #1E293B; }
[data-theme="light"] .ref-search-dropdown { background: #FFFFFF !important; }
[data-theme="light"] .ref-search-dropdown-footer { background: #F4F6FA !important; }

/* ==========================================================================
   DARK MOD OVERRIDE
   ========================================================================== */

/* Genel */
[data-theme="dark"] body {
    background: #0B1220;
    color: #CBD5E1;
}

/* Top Bar */
[data-theme="dark"] .ref-top-bar {
    background: linear-gradient(90deg, #0A1628 0%, #0E1D35 100%) !important;
    border-bottom: 1px solid rgba(56,189,248,0.10) !important;
}

/* Header */
[data-theme="dark"] .ref-header,
[data-theme="dark"] .ref-header-main {
    background: #111827 !important;
    border-bottom: 1px solid #1E293B !important;
    box-shadow: 0 1px 0 #0B1220, 0 8px 24px rgba(0,0,0,0.40) !important;
}
[data-theme="dark"] .ref-header-subnav {
    background: #0A0F1C !important;
    border-top: 1px solid #1E293B !important;
}

/* Gece modunda logo varyantı: koyu "AnaKart" yazısı koyu zeminde görünmezdi,
   bu yüzden logo-dark (açık AnaKart) görünür, logo-light gizli */
[data-theme="dark"] .ref-brand-logo .logo-light { display: none !important; }
[data-theme="dark"] .ref-brand-logo .logo-dark { display: inline-block !important; }

/* Arama kutusu */
[data-theme="dark"] .ref-search-field {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .ref-search-field::placeholder { color: #64748B !important; }
[data-theme="dark"] .ref-search-field:focus {
    background: #243044 !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18) !important;
}
[data-theme="dark"] .ref-search-dropdown {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .ref-search-dropdown-footer {
    background: #0B1220 !important;
    border-top-color: #1E293B !important;
}

/* Header aksiyon ikonları */
[data-theme="dark"] .ref-action-icon {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .ref-action-item:hover .ref-action-icon {
    background: #243044 !important;
    border-color: #2563EB !important;
    color: #38BDF8 !important;
}
[data-theme="dark"] .ref-action-item .text-dark,
[data-theme="dark"] .ref-action-item .fw-bold,
[data-theme="dark"] .ref-action-item .text-muted { color: #94A3B8 !important; }
[data-theme="dark"] .ref-mobile-menu-btn {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}

/* Mega Menü dropdown */
[data-theme="dark"] .ref-mega-dropdown {
    background: #111827 !important;
    border-color: #1E293B !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55) !important;
}
[data-theme="dark"] .ref-mega-cat-box {
    background: #1A2640 !important;
    border-color: #243044 !important;
}
[data-theme="dark"] .ref-mega-cat-box:hover {
    background: #1E293B !important;
    border-color: #2563EB !important;
}
[data-theme="dark"] .ref-mega-parent-title { color: #E2E8F0 !important; }
[data-theme="dark"] .ref-mega-parent-title { border-bottom-color: #2A3A52 !important; }
[data-theme="dark"] .ref-mega-sublink { color: #94A3B8 !important; }
[data-theme="dark"] .ref-mega-sublink:hover { color: #38BDF8 !important; }
[data-theme="dark"] .ref-mega-footer { background: #0B1220 !important; border-radius: 0 0 16px 16px; }
[data-theme="dark"] .ref-mega-footer-item { color: #94A3B8 !important; }

/* Alt kategori dropdown */
[data-theme="dark"] .ref-sub-dropdown {
    background: #111827 !important;
    border-color: #1E293B !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.50) !important;
}
[data-theme="dark"] .ref-sub-dropdown-item { color: #94A3B8 !important; }
[data-theme="dark"] .ref-sub-dropdown-item:hover { background: #1E293B !important; color: #38BDF8 !important; }

/* Ürün Kartları */
[data-theme="dark"] .ref-product-card {
    background: #111827 !important;
    border-color: #1E293B !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
}
[data-theme="dark"] .ref-product-card:hover {
    border-color: #2563EB !important;
    box-shadow: 0 16px 40px rgba(37,99,235,0.20) !important;
}
[data-theme="dark"] .ref-product-img-wrap {
    background: radial-gradient(circle at 50% 40%, #1E293B 0%, #111827 70%) !important;
    border-color: #243044 !important;
}
[data-theme="dark"] .ref-product-title a { color: #E2E8F0 !important; }
[data-theme="dark"] .ref-product-title a:hover { color: #38BDF8 !important; }
[data-theme="dark"] .ref-current-price { color: #F1F5F9 !important; }
[data-theme="dark"] .ref-old-price { color: #475569 !important; }
[data-theme="dark"] .ref-fav-btn {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .ref-stepper {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}

/* Kapsül menüler */
[data-theme="dark"] .coffee-capsule {
    background: #111827;
    border-color: #2A3A52;
    color: #CBD5E1;
}
[data-theme="dark"] .coffee-capsule:hover,
[data-theme="dark"] .coffee-capsule.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* Bölüm başlıkları */
[data-theme="dark"] .section-title-wrap h2 { color: #E2E8F0 !important; }
[data-theme="dark"] .section-title-wrap p { color: #64748B !important; }

/* Yorum kartları / hizmet kartları */
[data-theme="dark"] .testimonial-card {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .testimonial-card:hover { border-color: #2563EB !important; }
[data-theme="dark"] .testimonial-quote { color: #94A3B8 !important; }

/* Formlar */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .form-control::placeholder { color: #64748B !important; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #243044 !important;
    border-color: #2563EB !important;
    color: #E2E8F0 !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18) !important;
}
[data-theme="dark"] .form-label { color: #CBD5E1 !important; }
[data-theme="dark"] select option { background: #1E293B; color: #E2E8F0; }

/* Kartlar — Bootstrap card */
[data-theme="dark"] .card {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .card-header {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .card-footer {
    background: #0F1C2E !important;
    border-color: #1E293B !important;
}

/* Tablolar */
[data-theme="dark"] table { color: #CBD5E1 !important; }
[data-theme="dark"] .table { color: #CBD5E1 !important; border-color: #1E293B !important; }
[data-theme="dark"] .table thead th { background: #1E293B !important; border-color: #2A3A52 !important; color: #94A3B8 !important; }
[data-theme="dark"] .table tbody tr:hover td { background: #1A2640 !important; }
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(255,255,255,0.02) !important; }

/* Listeler, paragraflar */
[data-theme="dark"] p { color: #94A3B8; }
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,
[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6 { color: #E2E8F0; }
[data-theme="dark"] .text-muted { color: #64748B !important; }
[data-theme="dark"] .text-dark { color: #E2E8F0 !important; }

/* Alert bileşenleri */
[data-theme="dark"] .alert {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .alert-success { background: rgba(22,163,74,0.12) !important; border-color: rgba(22,163,74,0.3) !important; color: #86EFAC !important; }
[data-theme="dark"] .alert-danger  { background: rgba(225,29,72,0.12)  !important; border-color: rgba(225,29,72,0.3)  !important; color: #FCA5A5 !important; }
[data-theme="dark"] .alert-warning { background: rgba(217,119,6,0.12)  !important; border-color: rgba(217,119,6,0.3)  !important; color: #FCD34D !important; }
[data-theme="dark"] .alert-info    { background: rgba(14,165,233,0.12)  !important; border-color: rgba(14,165,233,0.3)  !important; color: #7DD3FC !important; }
[data-theme="dark"] .btn-close { filter: invert(1) brightness(0.8); }

/* Sepet Çekmecesi */
[data-theme="dark"] .cart-drawer {
    background: #111827 !important;
    border-left-color: #1E293B !important;
}
[data-theme="dark"] .cart-drawer-header {
    background: #0B1220 !important;
    border-bottom-color: #1E293B !important;
}
[data-theme="dark"] .cart-drawer-title { color: #E2E8F0 !important; }
[data-theme="dark"] .cart-drawer-subtitle { color: #64748B !important; }
[data-theme="dark"] .cart-drawer-close { color: #94A3B8 !important; }
[data-theme="dark"] .cart-drawer-close:hover { color: #E11D48 !important; }
[data-theme="dark"] .cart-drawer-body { background: #111827 !important; }
[data-theme="dark"] .cart-item {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
}
[data-theme="dark"] .cart-item-name { color: #E2E8F0 !important; }
[data-theme="dark"] .cart-item-price { color: #38BDF8 !important; }
[data-theme="dark"] .cart-drawer-footer {
    background: #0B1220 !important;
    border-top-color: #1E293B !important;
}
[data-theme="dark"] .drawer-summary-row .summary-label { color: #64748B !important; }
[data-theme="dark"] .drawer-summary-row .summary-val { color: #E2E8F0 !important; }
[data-theme="dark"] .drawer-summary-total .total-label { color: #E2E8F0 !important; }
[data-theme="dark"] .drawer-summary-total .total-val { color: #38BDF8 !important; }
[data-theme="dark"] .cart-drawer-shipping {
    background: rgba(37,99,235,0.10) !important;
    border-bottom-color: #1E293B !important;
}
[data-theme="dark"] .drawer-upsell-box {
    background: #1E293B !important;
    border-radius: 10px;
    padding: 10px 12px;
}
[data-theme="dark"] .cart-drawer-overlay { background: rgba(0,0,0,0.75) !important; }

/* Mobil alt navigasyon barı */
[data-theme="dark"] .app-bottom-nav {
    background: #111827 !important;
    border-top-color: #1E293B !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.50) !important;
}
[data-theme="dark"] .app-bottom-item { color: #64748B !important; }
[data-theme="dark"] .app-bottom-item.active,
[data-theme="dark"] .app-bottom-item.active i { color: #38BDF8 !important; }
[data-theme="dark"] .app-bottom-item:hover { color: #CBD5E1 !important; }
[data-theme="dark"] .app-bottom-item span { color: inherit !important; }

/* WhatsApp float butonu */
[data-theme="dark"] .whatsapp-float { box-shadow: 0 6px 20px rgba(0,0,0,0.50) !important; }

/* Pagination */
[data-theme="dark"] .page-link {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .page-link:hover {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .page-item.active .page-link {
    background: #2563EB !important;
    border-color: #2563EB !important;
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb-item { color: #64748B !important; }
[data-theme="dark"] .breadcrumb-item a { color: #38BDF8 !important; }
[data-theme="dark"] .breadcrumb-item.active { color: #CBD5E1 !important; }
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #2A3A52 !important; }

/* Filtre Yan Paneli */
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .ref-filter-sidebar {
    background: #111827 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .filter-section-title { color: #E2E8F0 !important; }
[data-theme="dark"] .form-check-label { color: #94A3B8 !important; }
[data-theme="dark"] .form-check-input { background-color: #1E293B !important; border-color: #2A3A52 !important; }
[data-theme="dark"] .form-check-input:checked { background-color: #2563EB !important; border-color: #2563EB !important; }

/* Ödeme Sayfası */
[data-theme="dark"] .odeme-ozet-card,
[data-theme="dark"] .checkout-summary {
    background: #111827 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .odeme-ozet-card h5 { color: #E2E8F0 !important; }

/* Footer ödeme rozetleri gece modunda da AÇIK (beyaz) kalır.
   Gerçek marka logoları (Visa, Mastercard, TROY, World, Maximum, Bonus,
   Axess, CardFinans, Paraf) beyaz/açık zemin için tasarlanmıştır; koyu
   zeminde okunamaz hâle geliyorlardı. Bu yüzden rozet zemini beyaz bırakılır. */
[data-theme="dark"] .ref-pay-chip {
    background: #FFFFFF !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* Offcanvas (mobil menü) */
[data-theme="dark"] .offcanvas {
    background: #111827 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .offcanvas-header {
    background: #0B1220 !important;
    border-bottom-color: #1E293B !important;
}
[data-theme="dark"] .offcanvas-title { color: #E2E8F0 !important; }
[data-theme="dark"] .offcanvas .btn-close { filter: invert(1) brightness(0.7); }
[data-theme="dark"] .list-group-item {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .list-group-item:hover { background: #1E293B !important; color: #E2E8F0 !important; }

/* Dropdown */
[data-theme="dark"] .dropdown-menu {
    background: #111827 !important;
    border-color: #1E293B !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.50) !important;
}
[data-theme="dark"] .dropdown-item { color: #CBD5E1 !important; }
[data-theme="dark"] .dropdown-item:hover { background: #1E293B !important; color: #38BDF8 !important; }
[data-theme="dark"] .dropdown-divider { border-color: #1E293B !important; }

/* Modal */
[data-theme="dark"] .modal-content {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .modal-header {
    background: #0B1220 !important;
    border-bottom-color: #1E293B !important;
}
[data-theme="dark"] .modal-title { color: #E2E8F0 !important; }
[data-theme="dark"] .modal-footer { border-top-color: #1E293B !important; background: #0B1220 !important; }
[data-theme="dark"] .modal-backdrop { opacity: 0.75 !important; }

/* Tooltip */
[data-theme="dark"] .tooltip .tooltip-inner { background: #1E293B !important; color: #E2E8F0 !important; }

/* İnce Geçiş Animasyonu */
html { transition: background-color 0.25s ease, color 0.25s ease; }
body { transition: background-color 0.25s ease, color 0.25s ease; }
.ref-header, .ref-header-main, .ref-header-subnav,
.card, .ref-product-card, .cart-drawer, .app-bottom-nav,
.ref-mega-dropdown, .ref-sub-dropdown, .ref-search-dropdown,
.urun-detay-ana-kart, .urun-detay-kutusu, .sepet-kutu {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   ÜRÜN DETAY SAYFASI & İÇ SAYFALAR — DARK & LIGHT MOD MÜKEMMELLEŞTİRME
   ========================================================================== */

/* Breadcrumbs Her İki Modda da Okunaklı & Şık */
.urun-breadcrumb {
    padding: 10px 0 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
[data-theme="light"] .urun-breadcrumb { color: #64748B; }
[data-theme="light"] .urun-breadcrumb a { color: #0F172A; text-decoration: none; font-weight: 500; }
[data-theme="light"] .urun-breadcrumb a:hover { color: #2563EB; text-decoration: underline; }
[data-theme="light"] .urun-breadcrumb span { color: #0B1220; font-weight: 700; }

[data-theme="dark"] .urun-breadcrumb { color: #64748B !important; }
[data-theme="dark"] .urun-breadcrumb a { color: #38BDF8 !important; text-decoration: none; font-weight: 500; }
[data-theme="dark"] .urun-breadcrumb a:hover { color: #60A5FA !important; text-decoration: underline; }
[data-theme="dark"] .urun-breadcrumb span { color: #E2E8F0 !important; font-weight: 700; }

/* Karanlık Modda Ürün Detay Kartları & Görsel */
[data-theme="dark"] .urun-detay-ana-kart,
[data-theme="dark"] .urun-detay-kutusu {
    background: #111827 !important;
    border: 1px solid #1E293B !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40) !important;
    color: #CBD5E1 !important;
}

[data-theme="dark"] #anaGorselKutu {
    background: #0B1220 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] #anaGorselKutu img {
    background: transparent;
}

[data-theme="dark"] .urun-baslik {
    color: #F8FAFC !important;
}

[data-theme="dark"] .urun-fiyat-kutusu {
    background: #1E293B !important;
    border: 1px solid #2A3A52 !important;
}
[data-theme="dark"] .urun-fiyat-kutusu .price-current {
    color: #38BDF8 !important;
    font-weight: 800;
}
[data-theme="dark"] .urun-fiyat-kutusu .price-old {
    color: #64748B !important;
}

[data-theme="dark"] .varyant-secici label {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .varyant-secici label:hover,
[data-theme="dark"] .varyant-secici label:has(input:checked) {
    background: #243044 !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .urun-adet-kutusu input {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .urun-favori-btn {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #F43F5E !important;
}
[data-theme="dark"] .urun-favori-btn:hover {
    background: #243044 !important;
    border-color: #F43F5E !important;
}

[data-theme="dark"] .urun-detay-kutusu h3,
[data-theme="dark"] .urun-detay-kutusu h4 {
    color: #F8FAFC !important;
    border-bottom-color: #1E293B !important;
}

[data-theme="dark"] .ql-editor-content,
[data-theme="dark"] .ql-editor-content p,
[data-theme="dark"] .ql-editor-content span,
[data-theme="dark"] .ql-editor-content li,
[data-theme="dark"] .ql-editor-content div {
    color: #94A3B8 !important;
}
[data-theme="dark"] .ql-editor-content h1,
[data-theme="dark"] .ql-editor-content h2,
[data-theme="dark"] .ql-editor-content h3,
[data-theme="dark"] .ql-editor-content h4,
[data-theme="dark"] .ql-editor-content strong,
[data-theme="dark"] .ql-editor-content b {
    color: #F1F5F9 !important;
}

[data-theme="dark"] .ql-editor-content table {
    border-color: #1E293B !important;
}
[data-theme="dark"] .ql-editor-content table th,
[data-theme="dark"] .ql-editor-content table td {
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}

/* Sepet Sayfası */
[data-theme="dark"] .sepet-kutu,
[data-theme="dark"] .sepet-ozet-kutu {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .sepet-kargo-bar-kutu {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
}

/* Ödeme Sayfaları */
[data-theme="dark"] .odeme-card,
[data-theme="dark"] .odeme-header-card,
[data-theme="dark"] .odeme-ozet-kutu {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}

/* Giriş / Kayıt / Hesap Sayfaları */
[data-theme="dark"] .giris-kutusu,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .hesap-kart,
[data-theme="dark"] .panel-card {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}

/* Genel: data-theme="dark" olduğunda bg-white sınıflarını otomatik koyu yüzeye çevir */
[data-theme="dark"] .bg-white {
    background-color: #111827 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .bg-light {
    background-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .border-light {
    border-color: #1E293B !important;
}

/* ==========================================================================
   EVRENSEL GECE MODU KURAL SETİ (GLOBAL DARK THEME ENGINE)
   Inline ve sabit renk içeren tüm kart, kutu ve metinleri kapsar
   ========================================================================== */

/* Sabit beyaz ve açık zeminli kutuları karanlık moda çevir */
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#FFFFFF"],
[data-theme="dark"] [style*="background: #FFFFFF"],
[data-theme="dark"] [style*="background:#fafafa"],
[data-theme="dark"] [style*="background: #fafafa"] {
    background-color: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}

/* Sarı, pembe, turuncu açık vurgulu zeminleri koyu moda uyarla */
[data-theme="dark"] [style*="background:#FFFBEB"],
[data-theme="dark"] [style*="background: #FFFBEB"],
[data-theme="dark"] [style*="background:#FFF7ED"],
[data-theme="dark"] [style*="background: #FFF7ED"],
[data-theme="dark"] [style*="background:#FFF5F5"],
[data-theme="dark"] [style*="background: #FFF5F5"],
[data-theme="dark"] [style*="background:#EFF6FF"],
[data-theme="dark"] [style*="background: #EFF6FF"] {
    background-color: #1E293B !important;
    border-color: #2A3A52 !important;
}

/* Sabit koyu metin renklerini okunaklı açık renklere çevir */
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#111"],
[data-theme="dark"] [style*="color: #111"],
[data-theme="dark"] [style*="color:#222"],
[data-theme="dark"] [style*="color: #222"],
[data-theme="dark"] [style*="color:#333"],
[data-theme="dark"] [style*="color: #333"],
[data-theme="dark"] [style*="color:#4a5568"],
[data-theme="dark"] [style*="color: #4a5568"],
[data-theme="dark"] [style*="color:#0F172A"],
[data-theme="dark"] [style*="color: #0F172A"],
[data-theme="dark"] [style*="color:#0B1220"],
[data-theme="dark"] [style*="color: #0B1220"],
[data-theme="dark"] [style*="color:#1E293B"],
[data-theme="dark"] [style*="color: #1E293B"] {
    color: #CBD5E1 !important;
}

/* Sabit açık gri border renklerini koyu moda uyarla */
[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
[data-theme="dark"] [style*="border:1px solid #E2E8F0"],
[data-theme="dark"] [style*="border: 1px solid #E2E8F0"],
[data-theme="dark"] [style*="border:1px solid #CDD5E0"],
[data-theme="dark"] [style*="border: 1px solid #CDD5E0"],
[data-theme="dark"] [style*="border:1.5px solid #E2E8F0"],
[data-theme="dark"] [style*="border: 1.5px solid #E2E8F0"] {
    border-color: #1E293B !important;
}

/* ==========================================================================
   MÜŞTERİ PANELİ (CUSTOMER DASHBOARD & ACCOUNT) DARK MODE BİLEŞENLERİ
   ========================================================================== */

/* Sol Menü & Kayan Hap Bar */
[data-theme="dark"] .musteri-hizli-nav {
    background: #0B1220 !important;
    border-bottom: 1px solid #1E293B !important;
}
[data-theme="dark"] .m-nav-pill {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .m-nav-pill:hover,
[data-theme="dark"] .m-nav-pill.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .musteri-sidebar-wrap > div,
[data-theme="dark"] #musteriYanMenuKutu > div {
    background: #111827 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .musteri-sidebar-wrap a,
[data-theme="dark"] #musteriYanMenuKutu a {
    color: #94A3B8 !important;
}
[data-theme="dark"] .musteri-sidebar-wrap a:hover,
[data-theme="dark"] #musteriYanMenuKutu a:hover {
    background: #1E293B !important;
    color: #38BDF8 !important;
}

/* Müşteri İstatistik & Dashboard Kartları */
[data-theme="dark"] .musteri-icerik-kart,
[data-theme="dark"] .musteri-kupon-kutu {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}

/* Tablolar & Sipariş Detayları */
[data-theme="dark"] .table-responsive,
[data-theme="dark"] .table {
    color: #CBD5E1 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent !important;
    border-bottom-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .table thead th {
    background: #1E293B !important;
    color: #E2E8F0 !important;
    border-color: #2A3A52 !important;
}

/* Formlar ve Input Alanları */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748B !important;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background-color: #243044 !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2) !important;
}

/* Rozetler ve Durum Renkleri (Badges) */
[data-theme="dark"] .badge.bg-light {
    background: #1E293B !important;
    color: #CBD5E1 !important;
    border: 1px solid #2A3A52 !important;
}
[data-theme="dark"] .badge.bg-secondary {
    background: #334155 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .badge.bg-success {
    background: rgba(22,163,74,0.20) !important;
    color: #86EFAC !important;
    border: 1px solid rgba(22,163,74,0.35) !important;
}
[data-theme="dark"] .badge.bg-warning {
    background: rgba(217,119,6,0.20) !important;
    color: #FCD34D !important;
    border: 1px solid rgba(217,119,6,0.35) !important;
}
[data-theme="dark"] .badge.bg-danger {
    background: rgba(225,29,72,0.20) !important;
    color: #FCA5A5 !important;
    border: 1px solid rgba(225,29,72,0.35) !important;
}

/* Sayfalama (Pagination) */
[data-theme="dark"] .pagination .page-link {
    background-color: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
    color: #475569 !important;
}

/* ==========================================================================
   EKSİK KALAN YÜZEYLER — buton, blog, canlı arama, sepet, ödeme, hesap
   ========================================================================== */

[data-theme="dark"] p { color: #CBD5E1; }

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-accent {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-accent:hover {
    background: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-outline-dark {
    background: transparent !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .search-btn {
    background: #2563EB !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .product-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .search-input:focus {
    background: #111827 !important;
}
[data-theme="dark"] .product-img-wrap {
    background: #1E293B !important;
}
[data-theme="dark"] .price-current { color: #F1F5F9 !important; }
[data-theme="dark"] .alert-success { background: rgba(22,163,74,0.12) !important; color: #86EFAC !important; }
[data-theme="dark"] .alert-error { background: rgba(225,29,72,0.12) !important; color: #FCA5A5 !important; }
[data-theme="dark"] .alert-warning { background: rgba(217,119,6,0.12) !important; color: #FCD34D !important; }
[data-theme="dark"] .alert-info { background: rgba(14,165,233,0.12) !important; color: #7DD3FC !important; }

/* Marka rengi değişkenleri koyu modda yazı için açıldı; arka plan olarak kullanıldığında geri çevir */
[data-theme="dark"] [style*="background:var(--c-espresso)"],
[data-theme="dark"] [style*="background: var(--c-espresso)"],
[data-theme="dark"] [style*="background:var(--c-primary)"],
[data-theme="dark"] [style*="background: var(--c-primary)"] {
    background: #0B1220 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .ref-action-item:hover {
    background: #1E293B !important;
}

[data-theme="dark"] .sepet-item,
[data-theme="dark"] .qty-input {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .method-choice-card {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .method-choice-card:hover {
    background: #1E293B !important;
    border-color: #2563EB !important;
}
[data-theme="dark"] .odeme-card .form-control {
    background-color: #1E293B !important;
    color: #E2E8F0 !important;
    border-color: #2A3A52 !important;
}
[data-theme="dark"] .slider-btn {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}

/* Blog */
[data-theme="dark"] .blog-article-card,
[data-theme="dark"] .blog-sidebar-card,
[data-theme="dark"] .blog-comment-card,
[data-theme="dark"] .login-to-comment {
    background: #111827 !important;
    border-color: #1E293B !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .blog-cover-wrap,
[data-theme="dark"] .blog-article-body blockquote {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
}
[data-theme="dark"] .blog-article-title,
[data-theme="dark"] .blog-sidebar-title,
[data-theme="dark"] .blog-article-body h2,
[data-theme="dark"] .blog-article-body h3,
[data-theme="dark"] .blog-article-body strong,
[data-theme="dark"] .blog-sidebar-item-title a {
    color: #F1F5F9 !important;
}
[data-theme="dark"] .blog-article-body,
[data-theme="dark"] .blog-article-body p,
[data-theme="dark"] .blog-article-body li {
    color: #94A3B8 !important;
}
[data-theme="dark"] .blog-article-body h2 { border-bottom-color: #1E293B !important; }
[data-theme="dark"] .blog-sidebar-item { border-bottom-color: #1E293B !important; }

/* Canlı arama modalı */
[data-theme="dark"] .canli-arama-kutu,
[data-theme="dark"] .canli-arama-etiketler,
[data-theme="dark"] .canli-arama-sonuclar {
    background: #111827 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .canli-arama-header,
[data-theme="dark"] .canli-arama-footer {
    background: #0B1220 !important;
    border-color: #1E293B !important;
}
[data-theme="dark"] .canli-arama-input {
    background: transparent !important;
    color: #F1F5F9 !important;
}
[data-theme="dark"] .canli-arama-kapat-btn {
    background: #1E293B !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .arama-etiket-btn,
[data-theme="dark"] .canli-kat-kart {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .canli-arama-item {
    color: #E2E8F0 !important;
    border-bottom-color: #1E293B !important;
}
[data-theme="dark"] .canli-arama-item:hover,
[data-theme="dark"] .canli-arama-item.secili {
    background: #1E293B !important;
}
[data-theme="dark"] .canli-arama-item-ad { color: #F1F5F9 !important; }
[data-theme="dark"] .canli-arama-item-img {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
}

/* Müşteri menüsü: aktif koyu buton yazısını bozma */
[data-theme="dark"] .musteri-sidebar-wrap a {
    color: #94A3B8;
}
[data-theme="dark"] .musteri-sidebar-wrap a:hover {
    background: #1E293B !important;
    color: #38BDF8 !important;
}

/* Inline açık zeminler (F4F6FA / EEF2F7 / krem gradyanlar) */
[data-theme="dark"] [style*="background:#F4F6FA"],
[data-theme="dark"] [style*="background: #F4F6FA"],
[data-theme="dark"] [style*="background:#EEF2F7"],
[data-theme="dark"] [style*="background: #EEF2F7"],
[data-theme="dark"] [style*="background:#FAFBFD"],
[data-theme="dark"] [style*="background: #FAFBFD"],
[data-theme="dark"] [style*="background:#ECEFF1"],
[data-theme="dark"] [style*="background: #ECEFF1"],
[data-theme="dark"] [style*="background:#EFF6FF"],
[data-theme="dark"] [style*="background: #EFF6FF"],
[data-theme="dark"] [style*="background:#fffbeb"],
[data-theme="dark"] [style*="background: #fffbeb"],
[data-theme="dark"] [style*="background:linear-gradient(135deg, #F4F6FA"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #F4F6FA"],
[data-theme="dark"] [style*="background:linear-gradient(135deg, #F4F6FA,"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fffbeb"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f0fdf4"] {
    background: #1E293B !important;
    background-image: none !important;
    border-color: #2A3A52 !important;
    color: #CBD5E1 !important;
}

/* Bu kutuların içindeki kalıcı koyu yazılar (inline #1A1A1A / #1D4ED8 / #334155 vb.) */
[data-theme="dark"] [style*="background:#FAFBFD"] h5,
[data-theme="dark"] [style*="background: #FAFBFD"] h5,
[data-theme="dark"] [style*="background:#EFF6FF"] h5,
[data-theme="dark"] [style*="background: #EFF6FF"] h5,
[data-theme="dark"] [style*="background:#EFF6FF"] strong,
[data-theme="dark"] [style*="background: #EFF6FF"] strong,
[data-theme="dark"] [style*="background:#EFF6FF"] [style*="color:#1A1A1A"],
[data-theme="dark"] [style*="background: #EFF6FF"] [style*="color:#1A1A1A"],
[data-theme="dark"] [style*="background:#EFF6FF"] [style*="color: #1A1A1A"],
[data-theme="dark"] [style*="background:#EFF6FF"] [style*="color:#1D4ED8"],
[data-theme="dark"] [style*="background: #EFF6FF"] [style*="color:#1D4ED8"],
[data-theme="dark"] [style*="background:#EFF6FF"] [style*="color: #1D4ED8"],
[data-theme="dark"] [style*="background:#EFF6FF"] [style*="color:#334155"],
[data-theme="dark"] [style*="background: #EFF6FF"] [style*="color: #334155"] { color: #7DD3FC !important; }

/* Aynı inline koyu yazılar kutuya bağımsız olarak koyu zeminde göründüğü her yerde */
[data-theme="dark"] [style*="color:#1A1A1A"],
[data-theme="dark"] [style*="color: #1A1A1A"] { color: #E2E8F0 !important; }
[data-theme="dark"] [style*="color:#334155"],
[data-theme="dark"] [style*="color: #334155"] { color: #94A3B8 !important; }
[data-theme="dark"] strong[style*="color:#1D4ED8"],
[data-theme="dark"] strong[style*="color: #1D4ED8"],
[data-theme="dark"] span[style*="color:#1D4ED8"],
[data-theme="dark"] span[style*="color: #1D4ED8"],
[data-theme="dark"] a[style*="color:#1D4ED8"],
[data-theme="dark"] a[style*="color: #1D4ED8"],
[data-theme="dark"] p[style*="color:#1D4ED8"],
[data-theme="dark"] p[style*="color: #1D4ED8"],
[data-theme="dark"] i[style*="color:#1D4ED8"],
[data-theme="dark"] i[style*="color: #1D4ED8"],
[data-theme="dark"] h5[style*="color:#1D4ED8"],
[data-theme="dark"] h5[style*="color: #1D4ED8"],
[data-theme="dark"] small[style*="color:#1D4ED8"],
[data-theme="dark"] small[style*="color: #1D4ED8"] { color: #7DD3FC !important; }

[data-theme="dark"] .border {
    border-color: #1E293B !important;
}
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow {
    box-shadow: 0 8px 24px rgba(0,0,0,0.40) !important;
}

/* Buton/rozet kombinasyonları: inline boyalı düğmelerin gece uyumu */
[data-theme="dark"] [style*="background:#38BDF8"],
[data-theme="dark"] [style*="background: #38BDF8"] { background: #38BDF8 !important; color: #0B1220 !important; }
[data-theme="dark"] [style*="background:#1D4ED8"] { background: #2563EB !important; }
[data-theme="dark"] [style*="background: #1D4ED8"] { background: #2563EB !important; }

/* ==========================================================================
   GECE MODU SON RÖTUŞLARI (canlı sayfa denetiminde saptanan eksikler)
   ========================================================================== */

/* Puan etiketi (#475569) ve eski fiyat: koyu kartta okunur olmalı */
[data-theme="dark"] .product-stars-row .stars-score,
[data-theme="dark"] .stars-score { color: #94A3B8 !important; }
[data-theme="dark"] .ref-old-price,
[data-theme="dark"] .price-old { color: #64748B !important; }

/* WhatsApp butonu: marka yeşili kalır, beyaz yazı koyu yeşil üzerinde daha güçlü basılır */
.whatsapp-float span,
.ref-wp-btn .ref-wp-text {
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(4, 87, 23, 0.55);
    letter-spacing: 0.2px;
}

/* Bootstrap girdi grubu eki/öneki + do-ğrulama metinleri */
[data-theme="dark"] .input-group-text {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .input-group .form-control {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}

/* Görünür ayırıcı çizgiler */
[data-theme="dark"] hr { border-color: #233044 !important; opacity: 1 !important; }
[data-theme="dark"] .border-top, [data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start, [data-theme="dark"] .border-end { border-color: #1E293B !important; }

/* Toptan B2B sayfasındaki rozet ve kutu kombinasyonları */
[data-theme="dark"] [style*="background:#739BF2"] { background: #1E40AF !important; color: #FFFFFF !important; }
[data-theme="dark"] [style*="background: #739BF2"] { background: #1E40AF !important; color: #FFFFFF !important; }

/* Kart satırı arka planına göre koyu zeminli hızlı-action kutusu (Geçmiş siparişler vb.) */
[data-theme="dark"] [style*="background:#F5F7FA"] { background: #111827 !important; color: #CBD5E1 !important; }
[data-theme="dark"] [style*="background: #F5F7FA"] { background: #111827 !important; color: #CBD5E1 !important; }

/* Sepet sayfası: kargo barajı başlığı ve Slider hatırlatma metinleri (kahverengi #78350f/#92400e/#b45309) */
[data-theme="dark"] .sepet-kargo-bar-kutu { color: #FCD34D !important; }
[data-theme="dark"] .sepet-kargo-bar-kutu strong { color: #FCD34D !important; }
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color:#92400e"],
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color: #92400e"],
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color:#b45309"],
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color: #b45309"],
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color:#78350f"],
[data-theme="dark"] .sepet-kargo-bar-kutu [style*="color: #78350f"] { color: #FCD34D !important; }

/* Sepet satırı "Sil" butonu (inline #FFEbee zeminli) + vurgu kartlar */
[data-theme="dark"] [style*="background:#FFEbee"],
[data-theme="dark"] [style*="background: #FFEbee"] { background: #7F1D1D33 !important; color: #FCA5A5 !important; }
[data-theme="dark"] .sepet-ozet-kutu [style*="background:#E8F5E9"],
[data-theme="dark"] .sepet-ozet-kutu [style*="background: #E8F5E9"] { background: rgba(22,163,74,0.14) !important; border-color: rgba(22,163,74,0.35) !important; color: #86EFAC !important; }

/* Ürün görseline bindirilmiş etiket (urun_detay) koyu zeminde yüksek kontrast kalır */
[data-theme="dark"] [style*="background:rgba(0,0,0,0.45)"] { background: rgba(0,0,0,0.62) !important; }

/* Mini sepet içindeki inline stepper / adet kontrolü beyaz kalmasın */
[data-theme="dark"] .cart-drawer .drawer-stepper { background: #1E293B !important; border-color: #2A3A52 !important; }
[data-theme="dark"] .cart-drawer .drawer-stepper .d-step-btn { color: #CBD5E1 !important; }
[data-theme="dark"] .cart-drawer .drawer-stepper .d-step-qty { color: #E2E8F0 !important; }
[data-theme="dark"] .cart-drawer .btn-drawer-cart { background: #1E293B !important; border-color: #2A3A52 !important; color: #38BDF8 !important; }
[data-theme="dark"] .cart-drawer .btn-upsell-add { background: #1E293B !important; color: #38BDF8 !important; }

/* --- Inline "istemli" boyalı metin renkleri — gece okunurluğu ---------------- */
/* Amber / turuncu koyu yazılar */
[data-theme="dark"] [style*="color:#92400E"], [data-theme="dark"] [style*="color: #92400E"],
[data-theme="dark"] [style*="color:#b45309"],  [data-theme="dark"] [style*="color: #b45309"],
[data-theme="dark"] [style*="color:#B45309"],  [data-theme="dark"] [style*="color: #B45309"],
[data-theme="dark"] [style*="color:#CA8A04"],  [data-theme="dark"] [style*="color: #CA8A04"],
[data-theme="dark"] [style*="color:#78350F"],  [data-theme="dark"] [style*="color: #78350F"],
[data-theme="dark"] [style*="color:#78350f"]   { color: #FCD34D !important; }
[data-theme="dark"] [style*="color:#FFA000"],  [data-theme="dark"] [style*="color: #FFA000"],
[data-theme="dark"] [style*="color:#E65100"],  [data-theme="dark"] [style*="color: #E65100"],
[data-theme="dark"] [style*="color:#D97706"],  [data-theme="dark"] [style*="color: #D97706"] { color: #FBBF24 !important; }

/* Yeşil koyu yazılar */
[data-theme="dark"] [style*="color:#2E7D32"], [data-theme="dark"] [style*="color: #2E7D32"],
[data-theme="dark"] [style*="color:#1B5E20"], [data-theme="dark"] [style*="color: #1B5E20"],
[data-theme="dark"] [style*="color:#15803d"], [data-theme="dark"] [style*="color: #15803d"],
[data-theme="dark"] [style*="color:#16A34A"], [data-theme="dark"] [style*="color: #16A34A"] { color: #6EE7B7 !important; }
[data-theme="dark"] [style*="color:#059669"], [data-theme="dark"] [style*="color: #059669"],
[data-theme="dark"] [style*="color:#558B2F"], [data-theme="dark"] [style*="color: #558B2F"],
[data-theme="dark"] [style*="color:#33691E"], [data-theme="dark"] [style*="color: #33691E"] { color: #86EFAC !important; }

/* Mavi koyu yazılar */
[data-theme="dark"] [style*="color:#0369a1"], [data-theme="dark"] [style*="color: #0369a1"],
[data-theme="dark"] [style*="color:#0D47A1"], [data-theme="dark"] [style*="color: #0D47A1"],
[data-theme="dark"] [style*="color:#155E75"], [data-theme="dark"] [style*="color: #155E75"] { color: #7DD3FC !important; }

/* Kırmızı koyu yazılar */
[data-theme="dark"] [style*="color:#C53030"], [data-theme="dark"] [style*="color: #C53030"],
[data-theme="dark"] [style*="color:#DC2626"], [data-theme="dark"] [style*="color: #DC2626"],
[data-theme="dark"] [style*="color:#D32F2F"], [data-theme="dark"] [style*="color: #D32F2F"],
[data-theme="dark"] [style*="color:#991B1B"], [data-theme="dark"] [style*="color: #991B1B"] { color: #FCA5A5 !important; }

/* Gri/siyah koyu yazılar */
[data-theme="dark"] [style*="color:#718096"], [data-theme="dark"] [style*="color: #718096"],
[data-theme="dark"] [style*="color:#4A5568"], [data-theme="dark"] [style*="color: #4A5568"],
[data-theme="dark"] [style*="color:#4a5568"], [data-theme="dark"] [style*="color: #4a5568"],
[data-theme="dark"] [style*="color:#A0AEC0"], [data-theme="dark"] [style*="color: #A0AEC0"],
[data-theme="dark"] [style*="color:#344160"], [data-theme="dark"] [style*="color: #344160"],
[data-theme="dark"] [style*="color:#303F61"], [data-theme="dark"] [style*="color: #303F61"],
[data-theme="dark"] [style*="color:#222B3F"], [data-theme="dark"] [style*="color: #222B3F"],
[data-theme="dark"] [style*="color:#4C596C"], [data-theme="dark"] [style*="color: #4C596C"],
[data-theme="dark"] [style*="color:#475569"], [data-theme="dark"] [style*="color: #475569"],
[data-theme="dark"] [style*="color:#334155"], [data-theme="dark"] [style*="color: #334155"],
[data-theme="dark"] [style*="color:#222"],    [data-theme="dark"] [style*="color: #222"],
[data-theme="dark"] [style*="color:#333"]     { color: #94A3B8 !important; }
[data-theme="dark"] [style*="color:#0F172A"], [data-theme="dark"] [style*="color: #0F172A"],
[data-theme="dark"] [style*="color:#111827"], [data-theme="dark"] [style*="color: #111827"],
[data-theme="dark"] [style*="color:#1E293B"], [data-theme="dark"] [style*="color: #1E293B"],
[data-theme="dark"] [style*="color:#1A1A1A"], [data-theme="dark"] [style*="color: #1A1A1A"] { color: #E2E8F0 !important; }

/* --- Inline açık zeminler (müşteri paneli / iade / puan kartlarında kalıcı) ---- */
[data-theme="dark"] [style*="background:#FAFAFA"], [data-theme="dark"] [style*="background: #FAFAFA"],[data-theme="dark"] [style*="background:#f9f9f9"], [data-theme="dark"] [style*="background: #f9f9f9"],
[data-theme="dark"] [style*="background:#f8f9fa"], [data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f7fafc"], [data-theme="dark"] [style*="background: #f7fafc"],
[data-theme="dark"] [style*="background:#F5F7FA"], [data-theme="dark"] [style*="background: #F5F7FA"],
[data-theme="dark"] [style*="background:#E3E9F3"], [data-theme="dark"] [style*="background: #E3E9F3"],
[data-theme="dark"] [style*="background:#E3F2FD"], [data-theme="dark"] [style*="background: #E3F2FD"],
[data-theme="dark"] [style*="background:#F1F8E9"], [data-theme="dark"] [style*="background: #F1F8E9"],
[data-theme="dark"] [style*="background:#E8F5E9"], [data-theme="dark"] [style*="background: #E8F5E9"],
[data-theme="dark"] [style*="background:#FFF5F5"], [data-theme="dark"] [style*="background: #FFF5F5"],
[data-theme="dark"] [style*="background:#FFEbee"], [data-theme="dark"] [style*="background: #FFEbee"],
[data-theme="dark"] [style*="background:#FEF3C7"], [data-theme="dark"] [style*="background: #FEF3C7"],
[data-theme="dark"] [style*="background:#FEF9C3"], [data-theme="dark"] [style*="background: #FEF9C3"],
[data-theme="dark"] [style*="background:#FFFBEB"], [data-theme="dark"] [style*="background: #FFFBEB"],
[data-theme="dark"] [style*="background:#fffbeb"], [data-theme="dark"] [style*="background: #fffbeb"],
[data-theme="dark"] [style*="background:#FFF7ED"], [data-theme="dark"] [style*="background: #FFF7ED"],
[data-theme="dark"] [style*="background:#ECFDF5"], [data-theme="dark"] [style*="background: #ECFDF5"],
[data-theme="dark"] [style*="background:#FEE2E2"], [data-theme="dark"] [style*="background: #FEE2E2"],
[data-theme="dark"] [style*="background:#f3f4f6"], [data-theme="dark"] [style*="background: #f3f4f6"],
[data-theme="dark"] [style*="background:#fef3c7"], [data-theme="dark"] [style*="background: #fef3c7"],
[data-theme="dark"] [style*="background:#e0f2fe"], [data-theme="dark"] [style*="background: #e0f2fe"],
[data-theme="dark"] [style*="background:#dcfce7"], [data-theme="dark"] [style*="background: #dcfce7"] {
    background: #1E293B !important;
    background-image: none !important;
    color: #CBD5E1 !important;
}
/* Renkli zemin ışıması koyu modda hafif doku olarak korunur */
[data-theme="dark"] [style*="background:#FFF5F5"], [data-theme="dark"] [style*="background: #FFF5F5"],
[data-theme="dark"] [style*="background:#FFEbee"], [data-theme="dark"] [style*="background: #FFEbee"],
[data-theme="dark"] [style*="background:#FEE2E2"], [data-theme="dark"] [style*="background: #FEE2E2"] {
    background: rgba(225, 29, 72, 0.14) !important;
    color: #FCA5A5 !important;
}
[data-theme="dark"] [style*="background:#E8F5E9"], [data-theme="dark"] [style*="background: #E8F5E9"],
[data-theme="dark"] [style*="background:#ECFDF5"], [data-theme="dark"] [style*="background: #ECFDF5"],
[data-theme="dark"] [style*="background:#dcfce7"], [data-theme="dark"] [style*="background: #dcfce7"] {
    background: rgba(22, 163, 74, 0.14) !important;
    color: #86EFAC !important;
}
[data-theme="dark"] [style*="background:#FEF3C7"], [data-theme="dark"] [style*="background: #FEF3C7"],
[data-theme="dark"] [style*="background:#FEF9C3"], [data-theme="dark"] [style*="background: #FEF9C3"],
[data-theme="dark"] [style*="background:#FFFBEB"], [data-theme="dark"] [style*="background: #FFFBEB"],
[data-theme="dark"] [style*="background:#fffbeb"], [data-theme="dark"] [style*="background: #fffbeb"],
[data-theme="dark"] [style*="background:#FFF7ED"], [data-theme="dark"] [style*="background: #FFF7ED"],
[data-theme="dark"] [style*="background:#fef3c7"], [data-theme="dark"] [style*="background: #fef3c7"] {
    background: rgba(217, 119, 6, 0.14) !important;
    color: #FCD34D !important;
}
[data-theme="dark"] [style*="background:#E3E9F3"], [data-theme="dark"] [style*="background: #E3E9F3"],
[data-theme="dark"] [style*="background:#E3F2FD"], [data-theme="dark"] [style*="background: #E3F2FD"],
[data-theme="dark"] [style*="background:#e0f2fe"], [data-theme="dark"] [style*="background: #e0f2fe"] {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7DD3FC !important;
}

/* --- İstem paneli istatistik ikonu çipleri (dashboard 4 kart) ---------------- */
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background:#FEF3C7"],
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background: #FEF3C7"],
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background:#FEF9C3"],
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background: #FEF9C3"] {
    background: rgba(217, 119, 6, 0.18) !important;
    color: #FBBF24 !important;
}
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background:#ECFDF5"],
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background: #ECFDF5"] {
    background: rgba(22, 163, 74, 0.18) !important;
    color: #6EE7B7 !important;
}
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background:#FEE2E2"],
[data-theme="dark"] .musteri-istatistik-izgarasi [style*="background: #FEE2E2"] {
    background: rgba(225, 29, 72, 0.18) !important;
    color: #FDA4AF !important;
}

/* --- Hediyi kupon kutuları (inline #FFFBEB / amber yazılar) ------------------ */
[data-theme="dark"] .musteri-kupon-kutu[style*="background:#FFFBEB"],
[data-theme="dark"] .musteri-kupon-kutu[style*="background: #FFFBEB"] {
    background: rgba(217, 119, 6, 0.10) !important;
    border-color: #B45309 !important;
}
[data-theme="dark"] .musteri-kupon-kutu [style*="background:#B45309"],
[data-theme="dark"] .musteri-kupon-kutu [style*="background: #B45309"],
[data-theme="dark"] .musteri-kupon-kutu [style*="background:#b45309"],
[data-theme="dark"] .musteri-kupon-kutu [style*="background: #b45309"] { background: #92400E !important; color: #FFFFFF !important; }

/* --- Dashboard durum rozetleri (tablo hücresi içinde) ----------------------- */
[data-theme="dark"] td span[style*="background:#f3f4f6"] { background: #1E293B !important; color: #94A3B8 !important; }
[data-theme="dark"] td span[style*="background:#fef3c7"] { background: rgba(217,119,6,0.18) !important; color: #FCD34D !important; }
[data-theme="dark"] td span[style*="background:#e0f2fe"] { background: rgba(56,189,248,0.16) !important; color: #7DD3FC !important; }
[data-theme="dark"] td span[style*="background:#dcfce7"] { background: rgba(22,163,74,0.18) !important; color: #86EFAC !important; }

/* --- Yan menü & admin-mini öğelerinde inline koyu yazılar -------------------- */
[data-theme="dark"] a[style*="color:#DC2626"], [data-theme="dark"] a[style*="color: #DC2626"] { color: #FCA5A5 !important; }

/* Sidebar mini oyun kartı (yan_menu): krem gradyanlı duyuru kutuları */
[data-theme="dark"] [style*="background:linear-gradient(135deg, #fffbeb, #fef3c7"],
[data-theme="dark"] [style*="background:linear-gradient(135deg,#fffbeb,#fef3c7"] {
    background: rgba(217, 119, 6, 0.12) !important;
    background-image: none !important;
    border-color: #92610A !important;
}
[data-theme="dark"] [style*="background:linear-gradient(135deg, #fffbeb, #fef3c7"] [style*="color:#92400e"],
[data-theme="dark"] [style*="background:linear-gradient(135deg,#fffbeb,#fef3c7"] [style*="color:#92400e"],
[data-theme="dark"] [style*="background:linear-gradient(135deg, #fffbeb, #fef3c7"] [style*="color:#92400E"],
[data-theme="dark"] [style*="background:linear-gradient(135deg,#fffbeb,#fef3c7"] [style*="color:#92400E"],
[data-theme="dark"] [style*="background:linear-gradient(135deg, #fffbeb, #fef3c7"] [style*="color:#78350f"],
[data-theme="dark"] [style*="background:linear-gradient(135deg,#fffbeb,#fef3c7"] [style*="color:#78350f"] {
    color: #FCD34D !important;
}

/* Amber rozet/butonlar: koyu modda yazı koyu lacivert olur (kontrast 9:1) */
[data-theme="dark"] [style*="background:#f59e0b"] ,
[data-theme="dark"] [style*="background: #f59e0b"],
[data-theme="dark"] [style*="background:#F59E0B"],
[data-theme="dark"] [style*="background: #F59E0B"] { color: #0B1220 !important; font-weight: 800 !important; }

/* Kahverengi "Oyunu Başlat" kemeri: koyu modda okunur ton */
[data-theme="dark"] [style*="background:#b45309"],
[data-theme="dark"] [style*="background: #b45309"],
[data-theme="dark"] [style*="background:#B45309"],
[data-theme="dark"] [style*="background: #B45309"] { background: #7A3E06 !important; color: #FFFFFF !important; }

/* Klavye kısayolu çipimesi (SPACE) koyu modda */
[data-theme="dark"] [style*="background:#E5EAF2"],
[data-theme="dark"] [style*="background: #E5EAF2"] { background: #243044 !important; color: #E2E8F0 !important; }

/* Mini oyun sahnesi: açık gradyan zemin koyu modda koyu porkobadaz doku ile yumuşatılır */
[data-theme="dark"] #kahve-oyunu [style*="background:#F6F9FE"] {
    background: rgba(30, 41, 59, 0.85) !important;
}
[data-theme="dark"] #oyun-baslat-katmani,
[data-theme="dark"] #oyun-bitti-katmani {
    background: rgba(11, 18, 32, 0.80) !important;
}
[data-theme="dark"] #kahve-oyunu canvas {
    filter: brightness(0.78) saturate(0.9);
}

/* Puanlarım büyük sayı vurguları (inline #2563EB/#2E7D32 32px) */
[data-theme="dark"] [style*="font-size:32px"][style*="color:#2563EB"],
[data-theme="dark"] [style*="font-size:32px"][style*="color: #2563EB"] { color: #7DD3FC !important; }
[data-theme="dark"] [style*="font-size:32px"][style*="color:#2E7D32"],
[data-theme="dark"] [style*="font-size:32px"][style*="color: #2E7D32"] { color: #6EE7B7 !important; }

/* Sipariş geçmişi & tekrar-al kartlarındaki toplam satırı (inline #1D4ED8 14px 800) */
[data-theme="dark"] div[style*="font-weight:800"][style*="color:#1D4ED8"],
[data-theme="dark"] div[style*="font-weight:800"][style*="color: #1D4ED8"] { color: #7DD3FC !important; }

/* Müşteri yan menüsü (desktop): aktif öğe koyu modda açık yüzey olmaz */
[data-theme="dark"] .musteri-sidebar-wrap [style*="background:#EFF6FF"] { background: rgba(37, 99, 235, 0.16) !important; }
[data-theme="dark"] .musteri-sidebar-wrap [style*="background:#EFF6FF"] [style*="color:#2563EB"] { color: #7DD3FC !important; }
[data-theme="dark"] .musteri-sidebar-wrap [style*="color:#4a5568"] { color: #94A3B8 !important; }
[data-theme="dark"] .musteri-sidebar-wrap [style*="color:#333"] { color: #CBD5E1 !important; }

/* Abonelik abonelik paket kartları: text-primary ve toplam fiyat (d-block) açık ton */
[data-theme="dark"] strong.d-block.text-primary { color: #7DD3FC !important; }
.anakart-fiyat-vurgu { color: var(--c-accent); font-weight: 800; }
[data-theme="dark"] .anakart-fiyat-vurgu { color: #7DD3FC !important; }

/* ==========================================================================
   GECE MODU KONTRAST KURALLARI (WCAG AA tamamlama)
   ========================================================================== */

/* 1) İkincil metinler: #64748B (slate-500) açık mod zeminleri için kalibre edilmişti;
      koyu zeminlerde 3.0–4.1 kontrastta kalıyordu. File sonu bu blok, aynı özgüllüklü
      önceki kuralları geçersiz kılar (aynı özgüllük + sonradan gelir). */
[data-theme="dark"] .ref-search-field::placeholder,
[data-theme="dark"] .section-title-wrap p,
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .cart-drawer-subtitle,
[data-theme="dark"] .drawer-summary-row .summary-label,
[data-theme="dark"] .app-bottom-item,
[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .urun-breadcrumb,
[data-theme="dark"] .ref-old-price,
[data-theme="dark"] .price-old { color: #94A3B8 !important; }

/* 2) Footer ödeme/güven etiketi ve telif satırı (#546E7A, 3.64) */
[data-theme="dark"] .ref-payment-label,
[data-theme="dark"] .ref-footer-copyright { color: #94A3B8 !important; }

/* 3) Sepet çekmecesi kargo hedef barı: --c-caramel (#2563EB) koyu zeminde 4.06;
      açık camgöbeği her yerde 4.5+ olur */
[data-theme="dark"] .cart-drawer-shipping .shipping-label strong,
[data-theme="dark"] .cart-drawer-shipping .shipping-percent { color: #7DD3FC !important; }

/* 4) Form yıldızları (#talepFormu / #iletisimFormu): Bootstrap .text-danger
      (#DC3545, 3.92) koyu form zemininde; yalnızca form içi yıldızlar hedeflenir
      ki koyu modda açık zeminde kalan .text-danger metinleri etkilenmesin */
[data-theme="dark"] form .text-danger,
[data-theme="dark"] #talepFormu .text-danger { color: #F87171 !important; }

/* 5) Toptan CTA butonu: genel color:#1A1A1A kuralı bu butonu açığa çevirmemeli */
[data-theme="dark"] [style*="background:#38BDF8"],
[data-theme="dark"] [style*="background: #38BDF8"] {
    background: #38BDF8 !important;
    color: #0B1220 !important;
}

/* 6) Anasayfa "Ürünleri İnceleyin" CTA (.btn-light): genel inline koyu-metin
      kuralı yazıyı açığa alıp mavi zemine koyuyordu (4.19); beyaz yazı kalır */
[data-theme="dark"] .modern-story-card .btn-light[style*="color:#0F172A"],
[data-theme="dark"] .modern-story-card .btn-light[style*="color: #0F172A"] { color: #FFFFFF !important; }

/* 7) "✓ Kargo Bedava" rozeti (inline #16a34a): koyu modda hafif koyulaştırılır
      ki beyaz yazı 4.5'i geçsin (3.3 -> ~5.0) */
[data-theme="dark"] [style*="background:#16a34a"],
[data-theme="dark"] [style*="background: #16a34a"] { background: #15803D !important; }

/* ==========================================================================
   GECE MODU KONTRAST KURALLARI — TUR 2 (tam sayfa denetimi: 2026-10-18)
   Önceki turdan kural sırası ÖNEMLİDİR: bu blok dosyanın en sonundadır ve
   yukarıdaki genel inline "koyu yazıyı açığa al" kurallarından sonra geldiği
   için onları geçersiz kılar.
   ========================================================================== */

/* 8) Panel amber butonları (inline background:#b45309 — küçük harf varyantları
      eski BÜYÜK harf kuralına takılmıyordu): zemin koyulaşır, beyaz yazı korunur */
[data-theme="dark"] [style*="background:#b45309"],
[data-theme="dark"] [style*="background: #b45309"],
[data-theme="dark"] [style*="background:#B45309"],
[data-theme="dark"] [style*="background: #B45309"] {
    background: #7A3E06 !important;
    color: #FFFFFF !important;
}

/* 9) inline koyu amber metin (#92400e — ödül kodu satırı, 2.5) */
[data-theme="dark"] [style*="color:#92400e"],
[data-theme="dark"] [style*="color: #92400e"],
[data-theme="dark"] [style*="color:#92400E"],
[data-theme="dark"] [style*="color: #92400E"] { color: #FBBF24 !important; }

/* 10) inline mavi vurgular (fiyatlar, IBAN'lar, sekme başlıkları, rozetler):
      #2563EB / #1976D2 / var(--c-accent) / var(--c-caramel) koyu zeminde 2.8-3.6 */
[data-theme="dark"] [style*="color:#2563EB"],
[data-theme="dark"] [style*="color: #2563EB"],
[data-theme="dark"] [style*="color:#1976D2"],
[data-theme="dark"] [style*="color: #1976D2"],
[data-theme="dark"] [style*="color:var(--c-accent)"],
[data-theme="dark"] [style*="color: var(--c-accent)"],
[data-theme="dark"] [style*="color:var(--c-caramel)"],
[data-theme="dark"] [style*="color: var(--c-caramel)"] { color: #7DD3FC !important; }

/* 11) Stok/durum metni (inline color:var(--c-success)): #16A34A koyu zeminde 4.44 */
[data-theme="dark"] [style*="color:var(--c-success)"],
[data-theme="dark"] [style*="color: var(--c-success)"] { color: #4ADE80 !important; }

/* 12) Ayraç karakterleri (inline color:var(--c-border)): #2A3A52 yazı olarak 1.54 */
[data-theme="dark"] [style*="color:var(--c-border)"],
[data-theme="dark"] [style*="color: var(--c-border)"] { color: #94A3B8 !important; }

/* 13) Bootstrap .text-success (#198754) koyu zeminde 3.92 → parlak yeşil;
      üst bardaki özel yeşil (var(--c-volt)) korunur */
[data-theme="dark"] .text-success { color: #4ADE80 !important; }
[data-theme="dark"] .ref-top-bar .text-success { color: var(--c-volt) !important; }

/* 14) Bootstrap .text-danger (#DC3545) koyu zeminde 3.92 (panel/uyarı metinleri);
      üst bardaki açık pembe korunur */
[data-theme="dark"] .text-danger { color: #F87171 !important; }
[data-theme="dark"] .ref-top-user-links .text-danger { color: #FFE4E6 !important; }

/* 15) Ürün detay teknik özellikler tablosu: TH beyaz zemini (#F1F5F9) ve
      açık kenarlıklar (#E2E8F0) koyu modda koyuya döner */
[data-theme="dark"] [style*="background:#F1F5F9"],
[data-theme="dark"] [style*="background: #F1F5F9"],
[data-theme="dark"] [style*="background:#f1f5f9"],
[data-theme="dark"] [style*="background: #f1f5f9"] {
    background: #1E293B !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] [style*="border:1px solid #E2E8F0"] { border-color: #2A3A52 !important; }
[data-theme="dark"] [style*="border-bottom:1px solid #E2E8F0"] { border-bottom-color: #2A3A52 !important; }

/* 16) Leaflet haritalar (ödeme + adres sayfaları): koyu moda uyum */
[data-theme="dark"] .leaflet-container { background: #243044 !important; }
[data-theme="dark"] .leaflet-tile { filter: brightness(0.78) saturate(0.85); }
[data-theme="dark"] .leaflet-bar a {
    background: #1E293B !important;
    color: #E2E8F0 !important;
    border-color: #2A3A52 !important;
}
[data-theme="dark"] .leaflet-bar a:hover { background: #243044 !important; }
[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(11, 18, 32, 0.85) !important;
    color: #94A3B8 !important;
}
[data-theme="dark"] .leaflet-control-attribution a { color: #7DD3FC !important; }

/* 17) Yan menü bağlantı istisnası: (0,3,0) özgüllüklü ".musteri-sidebar-wrap a →
      #94A3B8" kuralı amber zeminli butonları da griye boyuyordu (3.25); (0,4,0)
      ile beyaz yazı geri döner */
[data-theme="dark"] .musteri-sidebar-wrap a[style*="background:#b45309"],
[data-theme="dark"] .musteri-sidebar-wrap a[style*="background: #b45309"],
[data-theme="dark"] .musteri-sidebar-wrap a[style*="background:#B45309"],
[data-theme="dark"] .musteri-sidebar-wrap a[style*="background: #B45309"],
[data-theme="dark"] #musteriYanMenuKutu a[style*="background:#b45309"],
[data-theme="dark"] #musteriYanMenuKutu a[style*="background: #b45309"],
[data-theme="dark"] #musteriYanMenuKutu a[style*="background:#B45309"],
[data-theme="dark"] #musteriYanMenuKutu a[style*="background: #B45309"] { color: #FFFFFF !important; }

/* 18) WhatsApp butonları: gece modunda resmi WhatsApp koyu yeşili (#075E54)
      kullanılır; beyaz yazı 1.98'den ~7.8'e çıkar. Açık mod marka rengi korunur */
[data-theme="dark"] .ref-wp-btn,
[data-theme="dark"] .whatsapp-float { background: #075E54 !important; }
[data-theme="dark"] .ref-wp-btn:hover,
[data-theme="dark"] .whatsapp-float:hover { background: #054D45 !important; }
[data-theme="dark"] .ref-wp-btn .ref-wp-text,
[data-theme="dark"] .whatsapp-float span { color: #FFFFFF !important; }

/* 18b) Sayfa içi WhatsApp CTA'ları (inline #25D366 zemin + beyaz yazı) */
[data-theme="dark"] [style*="background:#25D366"],
[data-theme="dark"] [style*="background: #25D366"],
[data-theme="dark"] [style*="background:#25d366"],
[data-theme="dark"] [style*="background: #25d366"] { background: #075E54 !important; color: #FFFFFF !important; }

/* ==========================================================================
   GECE MODU KONTRAST KURALLARI — TUR 3 (inline açık GRADYAN kartlar)
   Denetim motoru artık background-image gradyanlarını da okuyor. Gece modunda
   dönüştürülmemiş AÇIK GRADYAN kartlar bulundu: blog başlık kartı (açık üstüne
   açık yazı = görünmez), ödül kutusu, yan menü promosyon kutusu.
   Not: "background: <düz renk> !important" yazımı inline gradyanı da (background-image)
   sıfırlar; bu yüzden gradyanlar düz koyu renklerle değiştirilir.
   ========================================================================== */

/* Blog başlık kartı: linear-gradient(135deg, #FFFFFF → #F4F6FA) */
[data-theme="dark"] [style*="linear-gradient(135deg, #FFFFFF"],
[data-theme="dark"] [style*="linear-gradient(135deg, #ffffff"],
[data-theme="dark"] [style*="linear-gradient(135deg,#FFFFFF"],
[data-theme="dark"] [style*="linear-gradient(135deg,#ffffff"] { background: #111827 !important; }

/* Ödül/indirim kutusu (#fef3c7, #fed7aa) ve yan menü promosyonu (#fffbeb):
   açık amber gradyanlar → koyu amber tint */
[data-theme="dark"] [style*="linear-gradient(135deg, #fef3c7"],
[data-theme="dark"] [style*="linear-gradient(135deg,#fef3c7"],
[data-theme="dark"] [style*="linear-gradient(135deg, #fffbeb"]:not(.sepet-kargo-bar-kutu),
[data-theme="dark"] [style*="linear-gradient(135deg,#fffbeb"]:not(.sepet-kargo-bar-kutu) { background: rgba(217, 119, 6, 0.12) !important; }

/* Ücretsiz kargo barı koşullu yeşil gradyanı (#f0fdf4 → #dcfce7);
   bar kendi koyu stilini (satır ~1030) korusun diye hariç tutulur */
[data-theme="dark"] [style*="linear-gradient(135deg, #f0fdf4"]:not(.sepet-kargo-bar-kutu),
[data-theme="dark"] [style*="linear-gradient(135deg,#f0fdf4"]:not(.sepet-kargo-bar-kutu) { background: rgba(34, 197, 94, 0.12) !important; }

/* Açık kenarlıklar (blog kartı vb. inline border-color:#E2E8F0) */
[data-theme="dark"] [style*="border-color:#E2E8F0"],
[data-theme="dark"] [style*="border-color: #E2E8F0"] { border-color: #2A3A52 !important; }

/* Alt navigasyon sepet sayacı: ".app-bottom-item span { color: inherit }" kuralı
   rozetin beyaz rengini eziyordu (kırmızı zemin üstünde gri sayı = 1.61) */
[data-theme="dark"] .app-bottom-item .app-cart-badge { color: #FFFFFF !important; }
[data-theme="dark"] .app-cart-badge { background: linear-gradient(135deg, #B91C1C, #991B1B) !important; }

/* Sepet çekmecesi "Siparişi Tamamla" butonu: beyaz yazı gradyanın açık ucunda
   (#3B82F6) 3.68 kalıyordu; koyu modda gradyan koyulaştırılır (4.7+) */
[data-theme="dark"] .btn-drawer-checkout {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF) !important;
    color: #FFFFFF !important;
}

/* ======== Kategori / Katalog üst barı (gece modu) ======== */
[data-theme="dark"] .ref-kat-top {
    background: #111827 !important;
    border-color: #1E293B !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="dark"] .ref-kat-baslik { color: #F1F5F9 !important; }
[data-theme="dark"] .ref-kat-ozet { color: #94A3B8 !important; }
[data-theme="dark"] .ref-kat-ikon { box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35) !important; }
[data-theme="dark"] .ref-sirala-etiket { color: #94A3B8 !important; }
[data-theme="dark"] .ref-sirala-wrap select {
    background: #1E293B !important;
    border-color: #2A3A52 !important;
    color: #E2E8F0 !important;
}
[data-theme="dark"] .ref-sirala-wrap select:hover { border-color: #2563EB !important; }
[data-theme="dark"] .ref-sirala-wrap select:focus {
    background: #243044 !important;
    border-color: #2563EB !important;
}
[data-theme="dark"] .ref-sirala-ok { color: #94A3B8 !important; }









/* ==========================================================================
   TÜM KATEGORİLER — Dikey liste + yan alt kategori paneli
   (Eski çok sütunlu panelin yerine; kendi kaydırma alanı vardır)
   ========================================================================== */
.akd-kat-panel {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;               /* buton ile panel arasında fare boşluğu kalmaz */
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}
.ref-mega-menu-wrapper.acik .akd-kat-panel,
.ref-mega-menu-wrapper:focus-within .akd-kat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.ref-mega-menu-wrapper.acik .ref-mega-arrow { transform: rotate(180deg); }

.akd-kat-kutu {
    display: flex;
    width: min(820px, calc(100vw - 48px));
    max-height: calc(100vh - 170px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-top: 3px solid #2563EB;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 24px 60px rgba(11, 18, 32, .18);
    overflow: hidden;
}

/* Sol: ana kategoriler */
.akd-kat-liste {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    width: 290px;
    flex-shrink: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid #E2E8F0;
    background: #FFFFFF;
}
.akd-kat-liste li + li { border-top: 1px solid #F1F5F9; }
.akd-kat-satir {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #1E293B !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: .01em;
    transition: background .12s ease, color .12s ease;
    position: relative;
}
.akd-kat-ikon { font-size: 17px; color: #64748B; width: 20px; text-align: center; }
.akd-kat-ad { flex: 1; text-transform: uppercase; font-size: 12.5px; letter-spacing: .03em; }
.akd-kat-ok { font-size: 12px; color: #94A3B8; }
.akd-kat-satir:hover,
.akd-kat-satir:focus,
.akd-kat-satir.aktif {
    background: #EFF6FF;
    color: #1D4ED8 !important;
    outline: none;
}
.akd-kat-satir.aktif::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #2563EB;
}
.akd-kat-satir:hover .akd-kat-ikon,
.akd-kat-satir.aktif .akd-kat-ikon,
.akd-kat-satir.aktif .akd-kat-ok { color: #2563EB; }

/* Sağ: alt kategoriler */
.akd-kat-alt-alan {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #F8FAFC;
}
.akd-kat-alt { display: none; padding: 18px 22px 22px; }
.akd-kat-alt.gorunur { display: block; }
.akd-kat-alt-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}
.akd-kat-alt-baslik span { font-size: 15px; font-weight: 800; color: #0F172A; }
.akd-kat-alt-baslik a { font-size: 12.5px; font-weight: 700; color: #2563EB !important; text-decoration: none !important; white-space: nowrap; }
.akd-kat-alt-baslik a:hover { text-decoration: underline !important; }
.akd-kat-alt-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
}
.akd-kat-alt-liste a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #334155 !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .12s ease, color .12s ease;
}
.akd-kat-alt-liste a:hover,
.akd-kat-alt-liste a:focus { background: #FFFFFF; color: #1D4ED8 !important; box-shadow: 0 1px 3px rgba(11, 18, 32, .06); outline: none; }
.akd-kat-alt-aciklama { font-size: 13.5px; color: #64748B; line-height: 1.6; margin: 4px 0 14px; }
.akd-kat-alt-buton {
    display: inline-flex;
    padding: 9px 16px;
    border-radius: 9px;
    background: #2563EB;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}
.akd-kat-alt-buton:hover { background: #1D4ED8; }

.akd-kat-liste::-webkit-scrollbar,
.akd-kat-alt-alan::-webkit-scrollbar { width: 6px; }
.akd-kat-liste::-webkit-scrollbar-thumb,
.akd-kat-alt-alan::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; }

@media (max-width: 1199.98px) {
    .akd-kat-liste { width: 250px; }
    .akd-kat-alt-liste { grid-template-columns: 1fr; }
}

/* Koyu tema */
[data-theme="dark"] .akd-kat-kutu { background: #111827; border-color: #233044; border-top-color: #2563EB; }
[data-theme="dark"] .akd-kat-liste { background: #111827; border-right-color: #233044; }
[data-theme="dark"] .akd-kat-liste li + li { border-top-color: #1A2640; }
[data-theme="dark"] .akd-kat-satir { color: #CBD5E1 !important; }
[data-theme="dark"] .akd-kat-satir:hover,
[data-theme="dark"] .akd-kat-satir.aktif { background: #1A2436; color: #38BDF8 !important; }
[data-theme="dark"] .akd-kat-alt-alan { background: #0B1220; }
[data-theme="dark"] .akd-kat-alt-baslik { border-bottom-color: #233044; }
[data-theme="dark"] .akd-kat-alt-baslik span { color: #F1F5F9; }
[data-theme="dark"] .akd-kat-alt-liste a { color: #94A3B8 !important; }
[data-theme="dark"] .akd-kat-alt-liste a:hover { background: #1A2436; color: #38BDF8 !important; box-shadow: none; }
