/* ============================================================
   Web Satış V3 esintili vitrin katmanı — modern.css'ten sonra yüklenir
   ============================================================ */

/* Üst bilgi çubuğundaki dil / para birimi seçicileri */
.wb-switcher { display: inline-flex; align-items: center; gap: 4px; }
.wb-switch {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; padding: 3px 8px; border-radius: 7px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
    color: #C4D1E0; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04); text-decoration: none; transition: .2s ease;
}
.wb-switch:hover { color: #7FE3D8; border-color: rgba(127,227,216,.4); }
.wb-switch.is-active { background: var(--wb-teal-dark); border-color: var(--wb-teal-dark); color: #fff; }
.wb-currency-select {
    background: rgba(255,255,255,.06); color: #E2E8F0;
    border: 1px solid rgba(255,255,255,.14); border-radius: 7px;
    font-size: 10.5px; font-weight: 800; padding: 3px 6px; outline: none;
}
.wb-currency-select option { color: #0F172A; background: #fff; }
.wb-switch-label { color: #8FA0B4; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.wb-currency-select { min-height: 26px; }
.top-header .btn-cart-custom { min-height: 26px; color: var(--wb-navy) !important; }
.top-header .btn-cart-custom span { color: var(--wb-navy) !important; }
.top-header .btn-cart-custom i { color: var(--wb-teal-dark) !important; }

/* Mobil mini seçici */
.wb-mobile-switcher { gap: 6px; }
.wb-mobile-switcher .wb-switch { color: var(--wb-navy); border-color: var(--wb-line); background: #fff; min-width: 32px; }
.wb-mobile-switcher .wb-switch.is-active { background: var(--wb-teal); color: #fff; border-color: var(--wb-teal); }
.wb-mobile-switcher .wb-currency-select { color: var(--wb-navy); background: #fff; border-color: var(--wb-line); }
.wb-mobile-switcher .wb-currency-note { color: #0F766E; font-size: 11px; }

/* Vitrin kartlarında demo / admin aksiyonları */
.wb-demo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.wb-demo-btn {
    flex: 1 1 76px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border-radius: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
    text-decoration: none; transition: .22s ease; border: 1px solid transparent;
}
.wb-demo-btn i { font-size: 10px; }
.wb-demo-btn--demo { background: var(--wb-teal-soft); color: #086A66; border-color: rgba(14,159,154,.22); }
.wb-demo-btn--demo:hover { background: var(--wb-teal); color: #fff; border-color: var(--wb-teal); transform: translateY(-2px); }
.wb-demo-btn--admin { background: #FFF4E6; color: #9A3412; border-color: rgba(249,115,22,.22); }
.wb-demo-btn--admin:hover { background: #EA580C; color: #fff; border-color: #EA580C; transform: translateY(-2px); }
.wb-demo-btn--detail { background: var(--wb-navy); color: #fff; }
.wb-demo-btn--detail:hover { background: var(--wb-teal-dark); color: #fff; }

/* Kategori filtre çipleri */
.wb-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wb-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: 999px; border: 1px solid var(--wb-line); background: #fff;
    color: #52657C; font-size: 12px; font-weight: 700; text-decoration: none; transition: .2s ease;
}
.wb-chip:hover { border-color: rgba(14,159,154,.45); color: var(--wb-teal-dark); transform: translateY(-1px); }
.wb-chip.is-active { background: var(--wb-navy); border-color: var(--wb-navy); color: #fff; }
.wb-chip .chip-count { opacity: .7; font-size: 10.5px; }

/* Yazılım kartını referanstaki gibi daha bilgi yoğun hale getirme */
.premium-card .card-body-content { gap: 0; }
.premium-card .product-title { margin-bottom: 8px; }
.premium-card .card-footer-action { flex-wrap: wrap; gap: 10px; }
.premium-card .wb-demo-actions { width: 100%; padding-top: 12px; border-top: 1px solid var(--wb-line); }
@media (max-width: 991px) {
    .wb-demo-btn { min-height: 30px; font-size: 9.5px; }
    .wb-filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .wb-chip { white-space: nowrap; }
}

/* Dil/para birimi değişince küçük bilgi satırı */
.wb-currency-note { display: inline-flex; align-items: center; gap: 5px; color: #6EE7D7; font-size: 10px; font-weight: 700; }

/* Kategori filtrelerinde kontrast */
.cat-item .badge-count { color: #475569 !important; opacity: 1 !important; }
.cat-item.active { background: #1D4ED8 !important; color: #fff !important; }
.cat-item.active .badge-count { color: #fff !important; background: rgba(0,0,0,.28) !important; opacity: 1 !important; }
.wb-chip .chip-count { color: #475569 !important; opacity: 1 !important; }
.wb-chip.is-active .chip-count { color: #fff !important; opacity: 1 !important; }
.category-pill { color: #475569 !important; }

/* Mega menü dar ekranlarda yatay taşma yapmasın */
.wo-mega-panel { max-width: 100vw; overflow-x: clip; }
.wo-mega-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.85fr) minmax(0, .9fr) !important; }
.wo-mega-layout > * { min-width: 0; }
.wo-mini-card, .wo-mini-body, .wo-mini-title { min-width: 0; max-width: 100%; }

/* Eski fiyat / indirim etiketi kontrastı */
.price-container .old-price { color: #5B6778; font-size: 0.75rem; font-weight: 600; }
.price-container .discount-badge { background: #B91C1C; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; }

/* Hosting / sepet / iletişim kontrast düzeltmeleri */
.card .text-white-50 { color: #fff !important; }
.hosting-buy-btn { color: #0B5ED7 !important; border-color: #0B5ED7 !important; }
.hosting-buy-btn:hover { background: #0B5ED7 !important; color: #fff !important; }
.summary-total .badge.bg-success-subtle { color: #146C43 !important; }
.form-check-label a.text-primary { color: #0B5ED7 !important; }

/* Animasyonlu öğeler audit sırasında yarı saydam kalmasın */
.top-promo-banner.animate__animated,
.top-promo-banner .promo-badge,
.card .badge.animate__animated { animation: none !important; opacity: 1 !important; }

/* Popüler hosting kartında 10% beyaz overlay altında bile kontrast korunsun */
.card.bg-primary { background: #084298 !important; }

/* Hızlı destek widget'ı (eski sol ikon barı / mobil alt menü yerine) */
.wb-quick-support {
    position: fixed;
    left: 24px;
    bottom: 96px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-family: inherit;
}
.wb-quick-support [hidden] { display: none !important; }
.wb-quick-support-toggle {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 46px; padding: 0 18px;
    border: 0; border-radius: 999px;
    background: #0F766E; color: #fff;
    font-size: 13px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 14px 30px -10px rgba(15,118,110,.65);
    cursor: pointer; transition: .22s ease;
}
.wb-quick-support-toggle:hover { background: #115E59; transform: translateY(-2px); }
.wb-quick-support-toggle:focus-visible { outline: 3px solid #5EEAD4; outline-offset: 3px; }
.wb-quick-close-icon { display: none; }
.wb-quick-support.is-open .wb-quick-open-icon { display: none; }
.wb-quick-support.is-open .wb-quick-close-icon { display: inline-block; }

.wb-quick-support-panel {
    width: min(320px, calc(100vw - 32px));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 20px;
    box-shadow: 0 24px 60px -18px rgba(7,27,51,.32);
    padding: 16px;
    transform-origin: bottom left;
    animation: wbQuickIn .18s ease-out;
}
@keyframes wbQuickIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.wb-quick-support-head {
    display: flex; align-items: flex-start; gap: 10px;
    padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid #F1F5F9;
}
.wb-quick-support-dot {
    width: 10px; height: 10px; margin-top: 5px; border-radius: 50%;
    background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.14); flex: 0 0 auto;
}
.wb-quick-support-head strong { display: block; color: #0F172A; font-size: 14px; font-weight: 800; }
.wb-quick-support-head small { display: block; color: #475569; font-size: 11.5px; margin-top: 2px; }
.wb-quick-support-links { display: grid; gap: 6px; }
.wb-quick-link {
    display: flex; align-items: center; gap: 11px; min-height: 46px;
    padding: 8px 10px; border-radius: 12px; text-decoration: none;
    color: #0F172A; font-size: 13px; font-weight: 700; transition: .18s ease;
}
.wb-quick-link:hover { background: #F0FDFA; color: #0F766E; }
.wb-quick-link:focus-visible { outline: 2px solid #0F766E; outline-offset: 2px; }
.wb-quick-icon {
    width: 34px; height: 34px; flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #F1F5F9; color: #0F766E; font-size: 15px;
}
.wb-quick-instagram .wb-quick-icon { color: #C13584; background: #FDF2F8; }
.wb-quick-whatsapp .wb-quick-icon { color: #128C7E; background: #ECFDF5; }
.wb-quick-telefon .wb-quick-icon { color: #1D4ED8; background: #EFF6FF; }
.wb-quick-eposta .wb-quick-icon { color: #B45309; background: #FFFBEB; }
.wb-quick-link-text { flex: 1 1 auto; }
.wb-quick-arrow { color: #94A3B8; font-size: 11px; }
.wb-quick-link:hover .wb-quick-arrow { color: #0F766E; }

@media (max-width: 575.98px) {
    .wb-quick-support { left: 16px; bottom: 24px; gap: 10px; }
    .wb-quick-support-panel { width: calc(100vw - 32px); padding: 14px; border-radius: 18px; }
    .wb-quick-support-toggle { min-height: 44px; padding: 0 15px; font-size: 12px; }
    #backToTop { right: 16px !important; bottom: 82px !important; }
}
