/* ===================================================
   FLEXION INDUSTRIAL — main.css
   =================================================== */

/* ---- Değişkenler + Bootstrap 5 Override ---- */
:root {
    --flexion-red: #e61421;
    --flexion-dark: #1f2933;
    --flexion-gray: #f5f7fa;

    /* Bootstrap 5: mavi sistem → Flexion kırmızısı */
    --bs-primary:              #e61421;
    --bs-primary-rgb:          230, 20, 33;
    --bs-link-color:           #e61421;
    --bs-link-color-rgb:       230, 20, 33;
    --bs-link-hover-color:     #c0101c;
    --bs-link-hover-color-rgb: 192, 16, 28;
    --bs-focus-ring-color:     rgba(230, 20, 33, 0.25);

    /* Bootstrap component-level variables */
    --bs-btn-focus-shadow-rgb: 230, 20, 33;
}

/* ---- Temel ---- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===================================================
   Bootstrap Mavi → Flexion Kırmızısı Override
   =================================================== */

/* Butonlar */
.btn-primary {
    --bs-btn-bg:            #e61421;
    --bs-btn-border-color:  #e61421;
    --bs-btn-hover-bg:      #c0101c;
    --bs-btn-hover-border-color: #c0101c;
    --bs-btn-active-bg:     #a80e18;
    --bs-btn-active-border-color: #a80e18;
    --bs-btn-focus-shadow-rgb: 230, 20, 33;
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
    transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #c0101c;
    border-color:     #c0101c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 20, 33, .3);
}

.btn-outline-primary {
    --bs-btn-color:            #e61421;
    --bs-btn-border-color:     #e61421;
    --bs-btn-hover-bg:         #e61421;
    --bs-btn-hover-border-color: #e61421;
    --bs-btn-hover-color:      #fff;
    --bs-btn-active-bg:        #c0101c;
    --bs-btn-active-border-color: #c0101c;
    color:        var(--flexion-red);
    border-color: var(--flexion-red);
    transition:   background-color .2s, color .2s, transform .15s;
}
.btn-outline-primary:hover {
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
    color: #fff;
    transform: translateY(-1px);
}

/* Danger rengi de Flexion kırmızısına bağla */
.btn-danger {
    --bs-btn-bg:           #e61421;
    --bs-btn-border-color: #e61421;
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
}
.btn-danger:hover {
    background-color: #c0101c;
    border-color:     #c0101c;
}

/* Ürün detay — kapsül butonlar: 2 sütun akışı masaüstü,
   mobilde tek sütun; yazılar kesilmeden okunur. */
.fx-product-pill-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 0.75rem;
    align-items: stretch;
}
.fx-btn-pill-inquiry.btn-primary {
    border-radius: 9999px;
    border: none;
    box-shadow: none;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    font-size: 0.9375rem;
}
.fx-btn-pill-inquiry.btn-primary:hover,
.fx-btn-pill-inquiry.btn-primary:focus {
    transform: none;
    box-shadow: none;
}
.fx-btn-pill-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 2.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    background-color: #ececee;
    color: #111;
    border: none;
    text-decoration: none;
    font-weight: 500;
    transition: background-color .2s, color .2s;
}
.fx-btn-pill-doc:hover {
    background-color: #e2e4e8;
    color: #111;
}
.fx-btn-pill-doc:focus-visible {
    outline: 2px solid var(--flexion-red);
    outline-offset: 2px;
}
.fx-btn-pill-doc > span {
    min-width: 0;
    white-space: normal;
    line-height: 1.3;
}
.fx-btn-pill-doc .bi-download {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Mobilde tek sütun, butonlar tam genişlik */
@media (max-width: 576px) {
    .fx-product-pill-actions {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.text-primary  { color: var(--flexion-red) !important; }
.bg-primary    { background-color: var(--flexion-red) !important; }
.border-primary { border-color: var(--flexion-red) !important; }

/* Link default (Bootstrap 5 kullanır --bs-link-color ama bazı yerler doğrudan color: link kullanır) */
a:not(.btn):not(.dropdown-item):not(.navbar-brand):not(.nav-link):not(.page-link):not(.list-group-item) {
    color: var(--flexion-red);
}
a:not(.btn):not(.dropdown-item):not(.navbar-brand):not(.nav-link):not(.page-link):not(.list-group-item):hover {
    color: #c0101c;
}
a { transition: color .2s; }

/* Footer linkleri → override (kendi renk şeması var) */
.fx-footer a,
.fx-footer a:hover { color: inherit; }

/* Text-dark / text-muted link overrides (sidebar, kartlar vb.) */
a.text-dark:hover { color: var(--flexion-red) !important; }

/* Pagination */
.page-link {
    color: var(--flexion-red);
    transition: background-color .2s, color .2s;
}
.page-link:hover       { color: #fff; background-color: var(--flexion-red); border-color: var(--flexion-red); }
.page-item.active .page-link { background-color: var(--flexion-red); border-color: var(--flexion-red); }

/* Form focus ring */
.form-control:focus, .form-select:focus {
    border-color: var(--flexion-red);
    box-shadow:   0 0 0 .2rem rgba(230, 20, 33, .2);
}
.form-check-input:checked {
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
}

/* Badge / Alert */
.bg-danger   { background-color: var(--flexion-red) !important; }
.text-danger { color:            var(--flexion-red) !important; }

/* List group aktif durumu */
.list-group-item.active {
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--flexion-red);
}

/* Nav pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--flexion-red);
}

/* Breadcrumb linkleri */
.breadcrumb-item a {
    color: var(--flexion-red);
    text-decoration: none;
}
.breadcrumb-item a:hover { color: #c0101c; }

/* Active nav link */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: var(--flexion-red) !important;
}

/* Navbar toggler focus */
.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(230, 20, 33, .2);
}

/* ===================================================
   Topbar & Header
   =================================================== */
.fx-topbar {
    background: #f8fafc;
    font-size: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}
/* Topbar: uzun dil metninde taşmayı önle */
.fx-topbar .container {
    flex-wrap: wrap;
    gap: .25rem .75rem;
}
.fx-topbar .container > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .fx-topbar .container {
        justify-content: center !important;
        text-align: center;
    }
    .fx-topbar .container > span:first-child {
        display: none;
    }
}

/* Büyük ekranlarda sayfa daha geniş ve ferah */
@media (min-width: 1400px) {
    .container { max-width: 1360px; }
    .fx-hero { padding: 5rem 0; }
}
@media (min-width: 1920px) {
    .container { max-width: 1600px; }
    .fx-hero { padding: 6rem 0; }
}

.fx-header-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--flexion-red);
    transition: color .2s;
}
.navbar-brand:hover .fx-header-logo { color: #c0101c; }

.fx-main-nav .nav-link {
    font-weight: 500;
    color: #4b5563;
    transition: color .2s;
    position: relative;
}
.fx-main-nav .nav-link:hover {
    color: var(--flexion-red);
}
.fx-main-nav .nav-link.active {
    color: var(--flexion-red);
}

/* Tıklayınca çıkan mavi focus çerçevesini kaldır (yerine kırmızı odak stili uygula) */
.fx-main-nav .nav-link:focus {
    outline: none;
}
.fx-main-nav .nav-link:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
@media (min-width: 992px) {
    /* Klavye ile odak: hover'daki kırmızı çizgiyi göster */
    .fx-main-nav .nav-link:focus-visible {
        outline: none;
        box-shadow: none;
    }
    .fx-main-nav .nav-link:not(.dropdown-toggle):focus-visible::after {
        transform: scaleX(1);
    }
    .fx-main-nav .dropdown-toggle:focus-visible {
        box-shadow: inset 0 -2px 0 var(--flexion-red);
        padding-bottom: calc(.5rem - 1px);
    }
}

/* Hover: üst menü linklerinde ince kırmızı alt çizgi kayar girer (masaüstü) */
@media (min-width: 992px) {
    .fx-main-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: .5rem;
        right: .5rem;
        height: 2px;
        background: var(--flexion-red);
        border-radius: 2px;
        transform: scaleX(0);
        transition: transform .22s ease;
        transform-origin: center;
    }
    /* Aktif link: çizgi kalıcı göster (active sınıfı zaten var, pseudo-before ile çakışmasın) */
    .fx-main-nav .nav-link.active:not(.dropdown-toggle)::after {
        transform: scaleX(1);
    }
    /* Hover: çizgi ortadan iki yana açılır */
    .fx-main-nav .nav-link:hover::after {
        transform: scaleX(1);
    }
    /* Dropdown toggle'da after yerine box-shadow tercih edildiğinden after'ı kapat */
    .fx-main-nav .nav-link.dropdown-toggle::after {
        display: none;
    }
}

/* Aktif sayfa: dropdown toggle için box-shadow ile alt çizgi */
@media (min-width: 992px) {
    .fx-main-nav .dropdown-toggle.active {
        box-shadow: inset 0 -2px 0 var(--flexion-red);
        padding-bottom: calc(.5rem - 1px);
    }
}

/* ── Dropdown menü stili (referans görsele uygun) ── */
.fx-main-nav .fx-dd {
    border: none;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    border-radius: 0 0 .5rem .5rem;
    padding: 1rem 0;
    min-width: 220px;
}

/* Desktop: dropdown tam ekran genişliğinde (mega-menu efekti) */
@media (min-width: 992px) {
    .fx-main-nav .fx-dd {
        position: fixed !important;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        padding: 1.5rem 0;
        top: auto;   /* Bootstrap'in auto konumlandırmasını sıfırla */
        margin-top: 0 !important;
    }
    /* Dropdown içindeki container: itemları ortada gruplandır */
    .fx-main-nav .fx-dd > .container {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem 1.5rem;
        justify-content: center;
    }
    /* Geniş (fx-dd--wide) dropdown için çok kolonlu grid — ortada */
    .fx-main-nav .fx-dd--wide > .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: .25rem .75rem;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 4+ çocuk için geniş görünüm — sadece masaüstünde min-width */
@media (min-width: 992px) {
    .fx-main-nav .fx-dd--wide {
        min-width: 380px;
    }
}

.fx-main-nav .fx-dd .dropdown-item {
    padding: .5rem 1rem;
    font-size: .9rem;
    color: #374151;
    border-radius: 4px;
    transition: background-color .15s, color .15s;
    white-space: nowrap; /* masaüstünde tek satır */
}
/* Mobilde dropdown item'lar normal text wrap yapsın */
@media (max-width: 991.98px) {
    .fx-main-nav .fx-dd .dropdown-item {
        white-space: normal;
    }
}
.fx-main-nav .fx-dd .dropdown-item:hover,
.fx-main-nav .fx-dd .dropdown-item:focus {
    background-color: #fef2f2;
    color: var(--flexion-red);
}
.fx-main-nav .fx-dd .dropdown-item.active {
    background-color: #fef2f2;
    color: var(--flexion-red);
    font-weight: 600;
}

/* ── Sticky navbar ── */
.fx-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* ===================================================
   Hero
   =================================================== */
.fx-hero {
    background: linear-gradient(120deg, #020617, #111827);
    color: white;
    padding: 4rem 0;
}

.fx-hero-cover {
    position: relative;
    overflow: hidden;
    background: #111827;
}
.fx-hero-cover .fx-hero-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.fx-hero-cover .fx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.fx-hero-cover .container {
    position: relative;
    z-index: 2;
}
.fx-hero .btn-primary {
    background-color: var(--flexion-red);
    border-color:     var(--flexion-red);
}

/* ===================================================
   Page Banner (Kurumsal + Haberler)
   =================================================== */
.fx-page-banner {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    background: #111827;
}
.fx-page-banner .fx-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.fx-page-banner .fx-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.fx-page-banner .fx-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}
.fx-page-banner .fx-banner-title {
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
    margin: 0;
}

/* ===================================================
   Kart Görselleri — Sabit Boyut
   Hem <img> hem <div> placeholder için çalışır
   =================================================== */
.fx-card-img,
img.fx-card-img {
    display: block;
    height: 200px !important;
    width:  100%  !important;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}
div.fx-card-img {
    display: flex !important;
    height: 200px !important;
    width:  100%  !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Haber kart görseli — tam fotoğraf, kırpmasız */
.fx-news-card-img,
img.fx-news-card-img {
    display: block;
    width:  100%  !important;
    height: 200px !important;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

/* Haber detay ana görseli — sabit boyut, kırpmasız */
.fx-news-detail-img {
    display: block;
    width:  100%  !important;
    height: 420px !important;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .fx-news-detail-img { height: 260px !important; }
}

/* Haber kart özet metni — sabit satır sayısı (kart yüksekliği eşitlenir) */
.fx-news-card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Header arama öneri dropdown */
.fx-search-form { min-width: 230px; }
.fx-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(520px, calc(100vw - 24px));
    z-index: 1100;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    overflow: hidden;
}
.fx-search-suggest-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .65rem;
    color: #1f2937;
    text-decoration: none;
    font-size: .855rem;
    border-bottom: 1px solid #f3f4f6;
}
.fx-search-suggest-item:last-child { border-bottom: none; }
.fx-search-suggest-item:hover {
    background: #f8fafc;
    color: #111827;
}
.fx-search-suggest-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 2px;
}
.fx-search-suggest-thumb-cat {
    object-fit: cover;
}
.fx-search-suggest-thumb-ph {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: .9rem;
}
.fx-search-suggest-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #111827;
}
.fx-search-suggest-badge {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: .25rem;
}
/* Kategori satırı: hafif sol vurgu */
.fx-search-suggest-item.fx-suggest-cat {
    background: #fafafa;
}
.fx-search-suggest-item.fx-suggest-cat:hover {
    background: #f3f4f6;
}
@media (max-width: 1199.98px) {
    .fx-search-form { min-width: 200px; }
    .fx-search-suggest { width: min(460px, calc(100vw - 24px)); }
}
@media (max-width: 991.98px) {
    .fx-search-suggest { display: none !important; }
}
@media (max-width: 575.98px) {
    .fx-search-form { min-width: 170px; }
}

/* Ürün kart görseli — sabit alan, ortalanmış hortum */
.fx-product-thumb {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    padding: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}
.fx-product-thumb-img {
    max-width: 100%;
    width: auto;
    height: 140px; /* tüm ürünler için sabit görsel yüksekliği */
    object-fit: contain;
    display: block;
    transition: transform .25s ease;
}
.card:hover .fx-product-thumb-img {
    transform: scale(1.04);
}
/* Görsel yoksa placeholder */
.fx-product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    background-color: #ffffff;
    color: #94a3b8;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .fx-product-thumb { height: 170px; }
    .fx-product-thumb-img { height: 120px; }
    .fx-product-thumb-placeholder { height: 170px; }
}

/* Ürün detay sayfası ana görsel alanı */
.fx-product-main {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.fx-product-main-img {
    max-width: 100%;
    height: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Ürün detay küçük resimler */
.gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #ffffff;
    border: 1.5px solid #0f172a !important;
    border-radius: 6px;
    cursor: pointer;
    padding: 3px;
    display: inline-block;
}
.gallery-thumb:hover {
    border-color: var(--flexion-red) !important;
}
@media (max-width: 767.98px) {
    .fx-product-main {
        min-height: 260px;
        padding: 1.25rem;
    }
    .fx-product-main-img {
        height: 190px;
    }
}

/* ===================================================
   Kart Hover Animasyonu
   Sadece gerçek hover desteği olan cihazlarda (touch ekranlarda yapışmaz)
   =================================================== */
.card {
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
    }
}

/* ===================================================
   Ürün Teknik Tablo Stilleri
   (.product-spec-table) + TinyMCE açıklama tabloları
   =================================================== */
.product-spec-table,
.product-description table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9rem;
    margin-bottom: 0;
}

/* Tablo başlık satırı */
.product-spec-table thead th,
.product-description table thead th,
.product-description table th {
    border-bottom: 2px solid var(--flexion-red);
    border-top: none;
    font-weight: 600;
    padding: .55rem .75rem;
    background: #fff;
    color: #1f2933;
    white-space: nowrap;
}

/* Alt başlık (iki satırlı header için küçük metin) */
.product-spec-table thead th small,
.product-description table thead th small {
    display: block;
    font-weight: 400;
    color: #6b7280;
    font-size: .75rem;
}

/* Gövde satırları — zebra */
.product-spec-table tbody tr:nth-child(odd),
.product-description table tbody tr:nth-child(odd)  { background: #ffffff; }
.product-spec-table tbody tr:nth-child(even),
.product-description table tbody tr:nth-child(even) { background: #f8f9fa; }

.product-spec-table td,
.product-description table td {
    border-bottom: 1px solid #f0f0f0;
    padding: .45rem .75rem;
    color: #374151;
    vertical-align: middle;
}

/* Son satır alt çizgisi — KALDIRILDI (kullanıcı isteği: sadece üst kırmızı çizgi olsun) */

/* İlk sütun kalın — özellik adı */
.product-spec-table td:first-child,
.product-description table td:first-child {
    font-weight: 600;
    color: #111;
}

/* ===================================================
   Ürün Açıklama (H2/H3 Kırmızı Başlıklar)
   =================================================== */
.product-description h2,
.product-description h3 {
    color: var(--flexion-red);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-description p  { margin-bottom: .5rem;  font-size: .92rem; }
.product-description ul,
.product-description ol { font-size: .92rem; padding-left: 1.25rem; margin-bottom: .75rem; }

/* ---- Dikey ikon sütunu (sağ sütun) ---- */
.fx-icon-column {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding-top: 2.5rem;
}
.fx-icon-cell {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    flex-shrink: 0;
}
.fx-icon-cell img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

/* ---- Regülasyon rozet görseli (sol sütun) ---- */
.fx-reg-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.fx-reg-badge img {
    max-width: 132px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- Regülasyon açıklama bloğu (tam genişlik, sayfanın alt kısmı) ---- */
.fx-reg-desc-block {
    border-top: 2px solid var(--flexion-red);
    padding-top: 1.25rem;
    font-size: .92rem;
    line-height: 1.7;
    color: #374151;
}
.fx-reg-desc-block h2,
.fx-reg-desc-block h3 {
    color: var(--flexion-red);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 1.25rem;
    margin-bottom: .4rem;
}
.fx-reg-desc-block p { margin-bottom: .5rem; }
.fx-reg-desc-block ul,
.fx-reg-desc-block ol { padding-left: 1.25rem; margin-bottom: .75rem; }

/* Regulations (eski .fx-regulation-badge — geriye dönük uyum) */
.fx-regulation-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: .35rem .65rem;
    font-size: .78rem;
    background: #fafafa;
    color: #374151;
    font-weight: 500;
}
.fx-regulation-badge img {
    height: 22px;
    width:  auto;
    object-fit: contain;
}

/* ===================================================
   Footer
   =================================================== */
.fx-footer {
    background: #0b1120;
    color: #9ca3af;
    padding-top: 3rem;
}
/* Genel footer link stili (sosyal ikonlar vb.) */
.fx-footer a {
    color: #e5e7eb;
    text-decoration: none;
}
.fx-footer a:hover {
    color: #ffffff;
}

.fx-footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
}

/* Başlık altı linkler için hover: renk + hafif yukarı kalkma */
.fx-footer .fx-footer-link {
    display: inline-block;
    color: #e5e7eb !important;
    transition: color .18s ease, transform .18s ease;
    will-change: transform;
}
.fx-footer .fx-footer-link:hover {
    color: var(--flexion-red) !important;
    transform: translateY(-2px);
}

/* ===================================================
   Kategori Accordion Sidebar
   (referans görsel: açılıp kapanır, animasyonlu)
   =================================================== */
.fx-cat-accordion {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}

.fx-cat-item {
    border-bottom: 1px solid #e5e7eb;
}
.fx-cat-item:last-child {
    border-bottom: none;
}

/*
 * Kategori sidebar: .fx-cat-btn iki varyanta ayrıldı:
 *   div.fx-cat-btn  → alt kategorisi olan (text link + chevron button)
 *   a.fx-cat-btn    → alt kategorisi olmayan (tam satır link)
 */
.fx-cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background-color .15s;
}

/* Çocuksuz varyant: tüm satır link, padding normal */
a.fx-cat-btn {
    padding: .72rem 1rem;
    align-items: center;
    color: #374151 !important;
    transition: color .2s, background-color .15s;
}
a.fx-cat-btn:hover {
    color: var(--flexion-red) !important;
    background-color: #fef9f9;
}
a.fx-cat-btn.fx-cat-active {
    color: var(--flexion-red) !important;
    font-weight: 600;
}

/* Çocuklu varyant: text alanı (link) */
.fx-cat-btn-text {
    flex: 1;
    padding: .72rem 1rem;
    font-size: .88rem;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color .18s, background-color .15s;
    line-height: 1.3;
}
.fx-cat-btn-text:hover {
    color: var(--flexion-red);
    background-color: #fef9f9;
}
.fx-cat-btn.fx-cat-active .fx-cat-btn-text,
.fx-cat-btn-text.fx-cat-child-active {
    color: var(--flexion-red) !important;
    font-weight: 600;
}

/* Çocuklu varyant: ok butonu */
.fx-cat-chevron-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .72rem .8rem;
    background: transparent;
    border: none;
    border-left: 1px solid #f0f0f0;
    cursor: pointer;
    color: #6b7280;
    transition: color .18s, background-color .15s;
    line-height: 1;
}
.fx-cat-chevron-btn:hover {
    color: var(--flexion-red);
    background-color: #fef9f9;
}
.fx-cat-btn.fx-cat-active .fx-cat-chevron-btn {
    color: var(--flexion-red);
}

/* Ok ikonu */
.fx-cat-chevron {
    font-size: .75rem;
    flex-shrink: 0;
    transition: transform .3s ease, color .2s;
}
.fx-cat-chevron-btn[aria-expanded="true"] .fx-cat-chevron {
    transform: rotate(180deg);
}

/* Alt öğeler (ürün linkleri) */
/* Accordion slide-down animasyonu */
.fx-cat-accordion .collapsing {
    transition: height 0.32s ease !important;
}
.fx-cat-accordion .collapse.show .fx-cat-children {
    animation: fx-slide-down 0.32s ease both;
}
@keyframes fx-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fx-cat-children {
    padding: .2rem .5rem .7rem 1rem;
    display: flex;
    flex-direction: column;
}
.fx-cat-child-link {
    padding: .32rem .75rem;
    font-size: .83rem;
    color: #374151 !important;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color .15s, color .15s;
    line-height: 1.4;
}
.fx-cat-child-link:hover {
    background-color: #fef2f2;
    color: var(--flexion-red) !important;
}
.fx-cat-child-link.fx-cat-child-active {
    color: var(--flexion-red) !important;
    font-weight: 600;
}

/* ===================================================
   Animasyonlar — FadeInUp (scroll tetikli)
   =================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fx-animate { opacity: 0; }
.fx-animate.fx-visible {
    animation: fadeInUp .55s ease forwards;
}

/* İletişim formu başarı mesajı */
.fx-success-anim {
    animation: fadeIn .5s ease forwards;
}

/* ===================================================
   Bilgi Al Modal
   =================================================== */
#inquiryModal .modal-header { background: var(--flexion-red); color: #fff; border-radius: .5rem .5rem 0 0; }
#inquiryModal .modal-header .btn-close { filter: invert(1); }
#inquiryModal .modal-dialog { max-width: 640px; }

/* ===================================================
   İletişim Sayfası
   =================================================== */
.fx-contact-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}
.fx-contact-icon {
    width: 42px; height: 42px;
    background: var(--flexion-red);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .75rem;
    flex-shrink: 0;
}
.fx-contact-form-wrap {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 767.98px) {
    .fx-hero         { padding: 2.5rem 0; }
    .fx-page-banner  { min-height: 140px; }
    .fx-card-img,
    img.fx-card-img,
    div.fx-card-img  { height: 160px !important; }

    .navbar .form-control.form-control-sm { font-size: 0.85rem; }
    .fx-main-nav .nav-link {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    /* Mobil menü açılış animasyonu — GPU'ya taşı, akıcı yap */
    .navbar-collapse.collapsing {
        transition: height .2s ease !important;
        will-change: height;
    }

    /* İletişim haritası mobilde çok uzun kalmasın */
    .fx-map-wrap {
        height: 280px !important;
    }

    /* Footer alt satır: küçük ekranda üst üste + ortalı */
    .fx-footer-bottom {
        flex-direction: column !important;
        text-align: center;
        gap: .4rem;
        padding-bottom: 1rem;
    }
}

/* ===================================================
   Çerez Onay Banner'ı
   =================================================== */
.fx-cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 420px;
    background: #111827;
    color: #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    padding: 1.1rem 1.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.fx-cookie-banner.fx-cookie-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fx-cookie-inner {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.fx-cookie-text a { color: #fff; }
.fx-cookie-actions {
    display: flex;
    gap: .5rem;
}
@media (max-width: 575.98px) {
    .fx-cookie-banner {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        max-width: none;
        border-radius: .6rem;
    }
}

/* ===================================================
   Mobil Tam Ekran Menü Overlay
   =================================================== */
.fx-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #0b1120;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .25s ease, transform .25s ease;
    will-change: transform, opacity;
}
.fx-mobile-overlay.fx-mob-open {
    opacity: 1;
    transform: translateX(0);
}
/* Masaüstünde asla gösterme */
@media (min-width: 992px) {
    .fx-mobile-overlay { display: none !important; }
}
@media (max-width: 991.98px) {
    .fx-mobile-overlay { display: flex; }
    /* Mevcut navbar-collapse'ı mobilde gizle */
    #mainNav { display: none !important; }
}

.fx-mobile-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.fx-mobile-search-wrap .form-control {
    background: #0f172a;
    border-color: rgba(255,255,255,.18);
    color: #fff;
}
.fx-mobile-search-wrap .form-control::placeholder {
    color: #9ca3af;
}
.fx-mobile-search-wrap .form-control:focus {
    border-color: var(--flexion-red);
    box-shadow: 0 0 0 .18rem rgba(230, 20, 33, .2);
}
.fx-mobile-search-wrap .btn {
    min-width: 46px;
}
.fx-mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,.07);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s;
}
.fx-mobile-close-btn:hover { background: rgba(255,255,255,.15); }

.fx-mobile-nav {
    padding: .5rem 0 2rem;
    flex: 1;
}
.fx-mob-item {
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.fx-mob-item:last-child { border-bottom: none; }
.fx-mob-item-row {
    display: flex;
    align-items: stretch;
}
.fx-mob-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: .9rem 1.25rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color .15s, background .15s;
}
.fx-mob-link:hover, .fx-mob-link:focus {
    color: var(--flexion-red);
    background: rgba(255,255,255,.04);
}
.fx-mob-toggle {
    flex-shrink: 0;
    width: 52px;
    border: none;
    border-left: 1px solid rgba(255,255,255,.06);
    background: transparent;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}
.fx-mob-toggle:hover { color: var(--flexion-red); background: rgba(255,255,255,.04); }
.fx-mob-children {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,.2);
    padding: .25rem 0 .5rem;
}
.fx-mob-item.fx-mob-expanded .fx-mob-children { display: flex; }
.fx-mob-item.fx-mob-expanded .fx-mob-toggle { color: var(--flexion-red); }
.fx-mob-child-link {
    display: block;
    padding: .6rem 1.25rem .6rem 2rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s;
}
.fx-mob-child-link:hover { color: var(--flexion-red); }

/* ===================================================
   Dil Seçici (Header)
   =================================================== */
.fx-lang-dropdown {
    position: relative;
}
.fx-lang-btn {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.fx-lang-btn:hover { border-color: var(--flexion-red); color: var(--flexion-red); }
.fx-lang-btn .bi { font-size: .65rem; }
.fx-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    min-width: 130px;
    padding: .3rem 0;
    z-index: 1100;
    display: none;
}
.fx-lang-dropdown.fx-lang-open .fx-lang-menu { display: block; }
.fx-lang-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    font-size: .82rem;
    color: #374151 !important;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.fx-lang-menu a:hover { background: #fef2f2; color: var(--flexion-red) !important; }
.fx-lang-menu a.active { color: var(--flexion-red) !important; font-weight: 600; }

/* Erişilebilirlik: hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .fx-animate,
    .fx-animate.fx-visible {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .navbar-collapse.collapsing {
        transition: none !important;
    }
    .card {
        transition: none !important;
    }
    .fx-footer .fx-footer-link,
    .fx-main-nav .nav-link,
    .fx-main-nav .nav-link::after {
        transition: none !important;
    }
}
