/* Global Font & Typography Improvements */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, input, button, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

/* Navbar Hover Effects */
.menu-item > .menu-link {
    position: relative;
    transition: color 0.3s ease;
}
.menu-item > .menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #48A91F; /* Argesys Blue or green #004516 */
    transition: width 0.3s ease;
}
.menu-item:hover > .menu-link::after,
.menu-item.current > .menu-link::after {
    width: 100%;
}

.search-container {
    max-width: 1330px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;

    position: relative;
}

.search-title {
    font-size: 35px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 20px;
    color: var(--bs-body-color);
}

.search-bar {
    display: flex;
    position: relative;
}

.search-select {
    flex: 1;
    position: relative;
}

.search-select select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    border: 1px solid var(--bs-border-color);
    appearance: none;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* FontAwesome Ok Simgesi Eklemek İçin */
.search-select::after {
    content: "\f078";
    /* FontAwesome fa-chevron-down ikonu */
    font-family: "Font Awesome 6 Free";
    /* FontAwesome kullan */
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Kullanıcı tıklayamaz */
    color: var(--bs-body-color);
}

.search-button {
    height: 50px;
    padding: 0 30px;
    font-size: 16px;
    color: var(--bs-white);
    background: var(--bs-black);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.search-button:hover {
    background: var(--bs-gray-dark);
}

.search-button span {
    margin-right: 10px;
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        /* Elemanları dikey hizaya geçir */
    }

    .search-select,
    .search-button {
        width: 100%;
        /* Mobilde tam genişlik kapla */
    }

    .search-button {
        margin-top: 10px;
        /* Butonun üstüne biraz boşluk ekle */
    }
}








/*  BLOG CSS */


.c-blog-container {
    width: 70%;
    max-width: 1400px;
    margin: 50px auto;
}

.c-blog-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Blog Alanı Grid Yapısı */
.c-blog-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    /* Sol tarafa daha fazla alan ayırdık */
    gap: 25px;
    align-items: start;
}

/* Büyük Blog Kartı */
.c-blog-large {
    position: relative;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Büyük Blog Görseli */
.c-blog-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
}

.c-large-img {
    width: 100%;
    /* Tam genişlikte olacak */
    height: auto;
    aspect-ratio: 16/9;
    /* Genişlik/Yükseklik Oranını Düzelttik */
    object-fit: cover;
    /* Görselin kırpılmadan uyum sağlamasını sağlıyor */
}

/* Büyük Blog İçerik */
.c-blog-large-content {
    padding: 13px;
    background: white;
    text-align: left;
    /* Yazıyı sola hizaladık */
}

.c-blog-date {
    font-size: 13px;
    color: gray;
    display: block;
    margin-bottom: 8px;
}

.c-blog-heading {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
}

/* Küçük Blog Kartları */
.c-blog-small {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Küçük Blog Kartları */
.c-blog-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

/* Küçük Blog Kartlarının Resimleri */
.c-blog-thumbnail {
    flex: 0 0 70px;
    /* Resimleri daha küçük ve orantılı hale getirdik */
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-blog-thumbnail img {
    width: 70px;
    /* Küçük blog görsellerinin oranını düzelttik */
    height: 70px;
    object-fit: contain;
    /* Görselin kırpılmasını önledik */
    border-radius: 5px;
}

/* Küçük Blog Kartlarının İçeriği */
.c-blog-text {
    flex: 1;
    padding-left: 15px;
}

.c-blog-heading {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.c-blog-date {
    font-size: 12px;
    color: gray;
}

/* Mobil Uyum */
@media (max-width: 992px) {
    .c-blog-grid {
        grid-template-columns: 1fr;
    }

    .c-blog-item {
        flex-direction: row;
    }

    .c-blog-thumbnail {
        flex: 0 0 60px;
    }

    .c-blog-thumbnail img {
        width: 60px;
        height: 60px;
    }
}





.block-shop-select {
    --cnvs-earpods-colors-sizes: 26px;
    --cnvs-earpods-colors-rounded: 50%;
    --cnvs-earpods-colors-gutters: 4px;
    --cnvs-earpods-colors-rounded: 50%;
    --cnvs-earpods-colors-borders: 2px;
    --cnvs-earpods-colors-border-color: #DDD;
}

.block-shop-select .earpods-colors .nav-link {
    position: relative;
    width: var(--cnvs-earpods-colors-sizes, 26px);
    height: var(--cnvs-earpods-colors-sizes, 26px);
    border-radius: var(--cnvs-earpods-colors-rounded, 50%);
    background-color: var(--cnvs-earpods-colors-background, #111);
    margin: 0 var(--cnvs-earpods-colors-gutters, 4px);
    padding: 0;
    z-index: 1;
    border: 3px solid #FFF;
    box-shadow: 0 0 0 var(--cnvs-earpods-colors-borders, 2px) var(--cnvs-earpods-colors-border-color);
}

.block-shop-select .earpods-colors .nav-link.active {
    --cnvs-earpods-colors-border-color: var(--bs-danger);
}

.block-shop-select .item-price {
    font-weight: normal;
    font-size: 100%;
    opacity: .7;

}






/* Menü Tasarımı */
.p-sticky-menu {
    width: 100%;
    height: 80px;
    background: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: relative;
    /* Başlangıçta normal konumda */
    transition: all 0.3s ease-in-out;
}

.p-menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-menu-list li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    padding: 25px 15px;
}

.p-menu-icons {
    display: flex;
    gap: 20px;
}

.p-menu-icons a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Menü Sabitlendiğinde */
.p-sticky-menu.p-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}


.form-section {
    background: white;
    padding: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    /* Radyo buton ile seçenek arasındaki boşluk */
    margin-bottom: 10px;
}

.image-option {
    width: 35px;
    /* Görselleri ayarladık */
    height: 35px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.btn-custom {
    background-color: black;
    color: white;
    text-transform: uppercase;
    width: 100%;
    /* Butonu tam genişlik yap */
}

/* Mobilde seçenekleri 2'şerli bloklara ayır */
@media (max-width: 768px) {
    .col-md-10 .row {
        flex-wrap: wrap;
    }

    .col-md-10 .row>div {
        width: 50%;
    }
}




.form-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-box {
    flex: 1;
    height: 45px;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 400px;
}

.btn-small {
    height: 45px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    font-size: 14px;
    width: 200px;
}

.btn-small:hover {
    background: #f5f5f5;
}

.btn-generate {
    height: 45px;
    padding: 10px 20px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-generate:hover {
    background: #333;
}

/* Mobil Görünüm */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-container {
        display: flex;
        justify-content: center;
    }

    .btn-generate {
        margin-left: 0;
        margin-top: 10px;
        width: 500px;
    }
}


.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .p-sticky-menu {
        /* Ana menüyü gizle */
        display: none;
    }

    .mobile-menu {
        display: flex;
        justify-content: space-between;
        background-color: black;
        padding: 10px;
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 10px;
        flex: 1;
        justify-content: center;
        border-right: 1px solid #444;
        /* Araya ince çizgi eklemek için */
    }

    .mobile-menu a:last-child {
        border-right: none;
        /* Sonuncuda çizgi olmasın */
    }

    .mobile-menu i {
        margin-right: 5px;
    }
}


/*

.mm-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mm-main-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.mm-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.mm-product-image {
    width: 100%;
    height: auto;
}

.mm-product-category {
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    color: #333;
    margin-top: auto;
}

.mm-menu-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 14px;
}

.mm-arrow {
    font-size: 18px;
}

.mm-all-products {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 14px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .mm-main-content {
        grid-template-columns: 1fr;
    }

    .mm-product-card {
        display: none;
    }
}
*/


.mm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.mm-grid-item {
    position: relative;
    overflow: hidden;
}

.mm-grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.mm-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 15px;
}

.mm-caption h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.mm-tags {
    margin-bottom: 40px;
}

.mm-tag-title {
    font-weight: bold;
    margin-right: 15px;
}

.mm-tag {
    color: #666;
}

.mm-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-button {
    width: 100%;
    text-align: left;
    padding: 15px;
    border: 1px solid #ddd;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mm-button:hover {
    background-color: #f5f5f5;
}

.mm-button-full {
    margin: 20px 0 40px;
}

.mm-grid-projects {
    grid-template-columns: repeat(4, 1fr);
}

.mm-all-projects {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mm-link {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-link:hover {
    text-decoration: underline;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .mm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mm-grid-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mm-grid {
        grid-template-columns: 1fr;
    }

    .mm-grid-projects {
        grid-template-columns: 1fr;
    }

    .mm-caption h3 {
        font-size: 14px;
    }
}

/* Header Her Zaman Sabit Beyaz (Şeffaflık İptal) */
#header, #header-wrap {
    background-color: #ffffff !important;
}

/* =========================================================================
   DARK MODE STYLES
   ========================================================================= */
body.dark-mode,
body.dark-mode #wrapper,
body.dark-mode #content,
body.dark-mode .section,
body.dark-mode section,
body.dark-mode .content-wrap {
    background-color: #000000 !important;
    color: #e8e8e8 !important;
}

body.dark-mode #header-wrap,
body.dark-mode #header {
    background-color: #000000 !important;
    border-bottom: 1px solid #333 !important;
}

/* =========================================================================
   MENÜ SABİTLEME (HOVER İPTALİ)
   ========================================================================= */

/* AÇIK MOD (Sadece Koyu Mod Aktif Değilken) */
body:not(.dark-mode) .menu-item > .menu-link,
body:not(.dark-mode) .menu-item > .menu-link *,
body:not(.dark-mode) .menu-item:hover > .menu-link,
body:not(.dark-mode) .menu-item:hover > .menu-link *,
body:not(.dark-mode) .header-misc-icon a,
body:not(.dark-mode) .header-misc-icon i,
body:not(.dark-mode) .header-misc-icon a:hover,
body:not(.dark-mode) .header-misc-icon i:hover {
    color: #000000 !important;
    transition: none !important;
}

/* KOYU MOD (Sadece Koyu Mod Aktifken) */
body.dark-mode #header,
body.dark-mode #header-wrap,
body.dark-mode .menu-item > .menu-link,
body.dark-mode .menu-item > .menu-link *,
body.dark-mode .menu-item:hover > .menu-link,
body.dark-mode .menu-item:hover > .menu-link *,
body.dark-mode #header-wrap:hover .menu-item > .menu-link,
body.dark-mode #header-wrap:hover .menu-item > .menu-link *,
body.dark-mode .header-misc-icon a,
body.dark-mode .header-misc-icon i,
body.dark-mode .header-misc-icon a:hover,
body.dark-mode .header-misc-icon i:hover {
    color: #ffffff !important;
    transition: none !important;
}

/* =========================================================================
   DARK MODE GENEL STİLLER
   ========================================================================= */

body.dark-mode .card,
body.dark-mode .c-blog-large,
body.dark-mode .c-blog-item,
body.dark-mode .form-section {
    background-color: #111111 !important;
    border-color: #222222 !important;
    color: #e8e8e8 !important;
}

body.dark-mode .card-body h4,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .search-title,
body.dark-mode .c-blog-heading {
    color: #ffffff !important;
}

body.dark-mode .mm-button,
body.dark-mode .mm-button.small {
    background-color: #111111 !important;
    color: #e8e8e8 !important;
    border-color: #222222 !important;
}

body.dark-mode .mm-button:hover,
body.dark-mode .mm-button.small:hover {
    background-color: #44464a !important;
    color: #ffffff !important;
}

body.dark-mode .sub-menu-container,
body.dark-mode .mega-menu-content {
    background-color: #111111 !important;
    border-color: #222222 !important;
}

body.dark-mode .sub-menu-container .menu-item > a,
body.dark-mode .sub-menu-container .menu-item > a div {
    color: #e8e8e8 !important;
}

body.dark-mode .mega-menu-content div[style*="background-color: #f7f7f7"] {
    background-color: #000000 !important;
    border-color: #222222 !important;
}

body.dark-mode .mega-menu-content div[style*="background-color: #f7f7f7"] a {
    color: #fff !important;
}

body.dark-mode .sub-menu-container .menu-item > a:hover {
    background-color: #2a2a2a !important;
}

body.dark-mode .search-select select,
body.dark-mode .input-box {
    background-color: #242424 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .search-select::after {
    color: #e0e0e0 !important;
}

body.dark-mode .btn-generate,
body.dark-mode .search-button,
body.dark-mode .btn-custom {
    background-color: #333 !important;
    color: #fff !important;
}

body.dark-mode .btn-generate:hover,
body.dark-mode .search-button:hover,
body.dark-mode .btn-custom:hover {
    background-color: #444 !important;
}

body.dark-mode .filter-chip {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

/* Koyu Temada Kategori/Filtre Paneli */
body.dark-mode #filterSidebar {
    background-color: #111111 !important;
    color: #e0e0e0 !important;
}

body.dark-mode #filterSidebar h5,
body.dark-mode .filtrebaslik {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

body.dark-mode .category-tree a {
    color: #e0e0e0 !important;
}

/* Koyu Temada Ürün Kartı Resimleri (Beyaz Arka Planı Kaldırma) */
body.dark-mode .card a,
body.dark-mode .card img {
    background-color: transparent !important;
}
body.dark-mode .card {
    overflow: hidden;
}

/* Kurumsal (About) Sayfası Yan Menü (Sidebar) Koyu Mod Tasarımı */
body.dark-mode #canvas-side-tab-bordered .nav-link {
    background-color: #111111 !important;
    border-color: #222222 !important;
    color: #e8e8e8 !important;
}

body.dark-mode #canvas-side-tab-bordered .nav-link:hover {
    background-color: #44464a !important;
    color: #ffffff !important;
}

body.dark-mode #canvas-side-tab-bordered .nav-link.active {
    background-color: #000000 !important;
    color: #1abc9c !important;
    border-left-color: #1abc9c !important; /* Eğer soldan çizgili bir tasarım varsa belirginleştirir */
}

/* Katalog Sayfası Dark Mode */
body.dark-mode .fbox-content h3 a.text-dark {
    color: #ffffff !important;
}

body.dark-mode .button-border {
    border-color: #e0e0e0 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .button-border:hover {
    background-color: #e0e0e0 !important;
    color: #121212 !important;
}

/* Sayfalama (Pagination) Koyu Mod Tasarımı */
body.dark-mode .page-link {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    margin: 0 3px;
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
}

body.dark-mode .page-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
}

body.dark-mode .page-link.active {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Anasayfa (index.php) Özel Bölümler */
body.dark-mode #filters,
body.dark-mode #products-section {
    background-color: #000000 !important;
}

body.dark-mode #filters h2 {
    color: #ffffff !important;
}

body.dark-mode .btn-sayfalama {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    height: 35px !important; /* 10px çok küçüktü, düzelttim */
    line-height: 33px !important;
    padding: 0 15px !important;
    display: inline-block !important;
    margin: 0 2px !important;
}

body.dark-mode .btn-sayfalama:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

body.dark-mode .btn-sayfalama.btn-dark {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.dark-mode .form-select,
body.dark-mode .form-control {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

/* Ürün Detay Sayfası (main-products.php ve product.php) */
body.dark-mode .content-wrap[style*="background-color:#f7f7f7"],
body.dark-mode .content-wrap[style*="background-color: #f7f7f7"],
body.dark-mode div[style*="background-color:#f7f7f7"],
body.dark-mode div[style*="background-color: #f7f7f7"],
body.dark-mode .content-wrap[style*="background-color:#F7F7F7"] {
    background-color: #111111 !important;
}

body.dark-mode .page-title h1,
body.dark-mode .page-title .breadcrumb-item,
body.dark-mode .page-title .breadcrumb-item a {
    color: #ffffff !important;
}

body.dark-mode #mainProductTitle,
body.dark-mode #mainProductDescription,
body.dark-mode #childProductsTitle,
body.dark-mode .search-container h2,
body.dark-mode .search-container h3,
body.dark-mode .attribute-group,
body.dark-mode .radio-label,
body.dark-mode .ls-sm {
    color: #ffffff !important;
}

body.dark-mode .search-container {
    background-color: #111111 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

body.dark-mode #childProductsTable {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.dark-mode #childProductsTable thead th {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

body.dark-mode #childProductsTable tbody td,
body.dark-mode #childProductsTable tbody tr {
    background-color: #000000 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

body.dark-mode #childProductsTable tbody tr:hover td,
body.dark-mode #childProductsTable tbody tr:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
}

body.dark-mode #childProductsTable a {
    color: #3498db !important; /* Linkleri daha belirgin bir mavi yapalım */
}

body.dark-mode #childProductImagePlaceholder,
body.dark-mode .masonry-thumbs img {
    background-color: transparent !important;
}

body.dark-mode div[style*="background-color: #f0f0f0"],
body.dark-mode div[style*="background-color:#f0f0f0"],
body.dark-mode div[style*="background-color: #f8f9fa"],
body.dark-mode div[style*="background-color:#f8f9fa"] {
    background-color: #000000 !important;
}

body.dark-mode .p-sticky-menu {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .p-menu-list li a {
    color: #ffffff !important;
}

body.dark-mode #draftSection {
    background-color: #000000 !important;
    border-top-color: #ffffff !important;
}

body.dark-mode #technicalDataTable table {
    color: #000000 !important; /* #pdfContainer beyaz arka planlı; metin siyah olmalı (PDF çıktısı) */
    border-color: #cccccc !important;
}

body.dark-mode #technicalDataTable table td,
body.dark-mode #technicalDataTable table th {
    color: #000000 !important; /* genel dark-mode 'table td/th beyaz' kuralını ez (beyaz PDF arka planı) */
    border-color: #cccccc !important;
    background-color: transparent !important;
}

body.dark-mode #technical-data-section .border,
body.dark-mode #files-section .card {
    background-color: #111111 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

body.dark-mode .table-hover tbody tr:hover {
    color: #ffffff !important;
}

/* Contact Form Dark Mode Fixes */
body.dark-mode .fancy-title h4,
body.dark-mode .form-label,
body.dark-mode #contactForm label {
    color: #ffffff !important;
}

body.dark-mode .form-control {
    background-color: #000000 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

body.dark-mode .form-control::placeholder {
    color: #a0a0a0 !important;
}

body.dark-mode .form-control:focus {
    background-color: #1e1e1e !important;
    border-color: #666 !important;
    color: #ffffff !important;
}

body.dark-mode table th,
body.dark-mode table td {
    color: #ffffff !important;
}

/* Custom Sidebar Sticky Scroll and Pure Black Cards */
#filterSidebar {
    position: sticky !important;
    top: 140px !important;
    max-height: calc(100vh - 180px) !important;
    overflow-y: auto !important;
}

body.dark-mode #productGrid .card,
body.dark-mode #productGrid .card img,
body.dark-mode #productGrid .card-body {
    background-color: #000000 !important;
    border-color: #222222 !important;
}

body.dark-mode #productGrid .card h4 {
    color: #ffffff !important;
}

body.dark-mode #productGrid .card:hover h4 {
    color: #48A91F !important;
}

/* ---- Footer readability & theme polish ---- */
/* Footer metin ve linkleri koyu zeminde okunaklı hale getir, marka yeşili hover */
#footer .text-white-50,
#footer .widget_links ul li a,
#footer .widget p,
#copyrights .text-white-50,
#copyrights .copyright-links a {
    color: rgba(255, 255, 255, 0.72) !important;
    transition: color 0.25s ease;
}

#footer .widget_links ul li a:hover,
#footer .widget a:hover,
#copyrights .copyright-links a:hover {
    color: #48A91F !important;
}

/* Sütun başlıkları net beyaz kalsın */
#footer .widget h4 {
    color: #ffffff !important;
}

/* Footer link listelerinde satır aralığını biraz aç */
#footer .widget_links ul li {
    margin-bottom: 6px;
}

/* Sosyal medya ikonları: hover'da marka yeşili */
#footer .social-icon.text-hover-white:hover {
    color: #48A91F !important;
}

/* ============================================================
   Koyu tema tutarlılığı (Madde 5, 15, 19) — beyaz tema kalıntıları
   ============================================================ */

/* Sayfa başlığı (hero) desenli arka planları koyu yap */
body.dark-mode #page-title.page-title-pattern {
    background-color: #000000 !important;
    background-image: none !important;
}

/* Ürünler (shop) — filtre sidebar koyu tema */
body.dark-mode #filterSidebar {
    background-color: #0a0a0a !important;
    border-color: #222222 !important;
}
body.dark-mode #filterSidebar .filter-section { border-color: #222222 !important; }
body.dark-mode .filter-toggle {
    background-color: #0a0a0a !important;
    color: #e8e8e8 !important;
}
body.dark-mode .filter-toggle:hover { background-color: #161616 !important; }
body.dark-mode #filterSidebar .filter-content,
body.dark-mode #filterSidebar label,
body.dark-mode #filterSidebar .form-check-label,
body.dark-mode #filterSidebar span:not(.filter-arrow) {
    color: #d0d0d0 !important;
}
body.dark-mode .filtrebaslik {
    background-color: #0a0a0a !important;
    color: #e8e8e8 !important;
    border-left-color: #48A91F !important;
}
body.dark-mode .filter-chip {
    background: #161616 !important;
    border-color: #333333 !important;
    color: #e8e8e8 !important;
}
body.dark-mode .filter-chip a { color: #ff6b6b !important; }
body.dark-mode #selectedFiltersSummary { border-color: #333333 !important; }
body.dark-mode .page-link.active { color: #48A91F !important; }

/* Ürün kartları — görsel arka plan siyah, başlık beyaz (Madde 5) */
body.dark-mode #productGrid .card { border-color: #222222 !important; }
body.dark-mode #productGrid .card img { background-color: #000000 !important; }
body.dark-mode #productGrid .card h4 { color: #ffffff !important; }
body.dark-mode #productGrid .card:hover h4 { color: #48A91F !important; }

/* ============================================================
   Mobil responsive iyileştirmeleri (Madde 18)
   ============================================================ */
@media (max-width: 767.98px) {
    /* Yatay kaydırma/taşmayı engelle */
    html, body { overflow-x: hidden !important; }
    /* Görseller taşmasın */
    img { max-width: 100%; }
    /* Geniş tablolar mobilde kaydırılabilir olsun (taşma yerine) */
    .table-responsive-wrap, table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Büyük başlıkları mobile uygun küçült */
    #slider .slider-caption h2 { font-size: 26px !important; line-height: 1.2 !important; }
    #slider .slider-caption p { font-size: 14px !important; }
    #who-are-we .heading-block h2 { font-size: 26px !important; }
    #case-studies-banner h2 { font-size: 28px !important; }
    #numeric-counters h3,
    #new-products h3,
    #contact-newsletter h3 { font-size: 22px !important; }
    .page-title h1, #page-title h1, #page-title .news-main-title { font-size: 1.7rem !important; }
    #contact-newsletter .card { padding: 1rem !important; }
}
@media (max-width: 575.98px) {
    #slider .slider-caption h2 { font-size: 22px !important; }
    #slider .slider-caption p { display: none !important; }
}
/* ===== Home CTA — Building drawing animation (Hata Listesi madde 2) ===== */
.arg-building-container {
    width: 100%;
    text-align: left;
    overflow: hidden;
}
.arg-building {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    /* Draw-in once, then a gentle lighting glow loop */
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    animation: argBuildingDraw 2.8s cubic-bezier(.4,0,.2,1) .2s forwards,
               argBuildingGlow 4s ease-in-out 3.2s infinite;
    will-change: clip-path, filter, opacity;
}
@keyframes argBuildingDraw {
    0%   { clip-path: inset(100% 0 0 0); opacity: .1; }
    100% { clip-path: inset(0 0 0 0);    opacity: 1; }
}
@keyframes argBuildingGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(72,169,31,.30)); }
    50%      { filter: drop-shadow(0 0 18px rgba(72,169,31,.70)); }
}
@media (max-width: 767.98px) {
    .arg-building-container { text-align: center; }
    .arg-building { margin: 0 auto; max-width: 320px; }
    .arg-cta-logo { height: 72px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .arg-building { animation: none; clip-path: none; opacity: 1; }
}

/* ===== Ürün galeri küçük-resim şeridi — eşit boyut (Hata Listesi madde 8) ===== */
.product-image .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.product-image .flex-control-nav.flex-control-thumbs li {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.product-image .flex-control-nav.flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 6px !important;
    margin: 0 !important;
    text-indent: 0 !important;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s ease, border-color .2s ease;
}
.product-image .flex-control-nav.flex-control-thumbs li:hover img,
.product-image .flex-control-nav.flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: #48A91F !important;
}
@media (max-width: 575.98px) {
    .product-image .flex-control-nav.flex-control-thumbs li {
        width: 64px !important; height: 64px !important; max-width: 64px !important;
    }
}

/* ===== Dünya haritası: tam genişlik / ortalı (col-md-9 boşluğunu kapat) ===== */
.world-map-container h4 { text-align: center; }
@media (min-width: 768px) {
    .world-map-container {
        margin-left: -33.333%;
        width: 133.333%;
    }
}

/* Lightbox (Magnific Popup) prev/next ok ikonu düzeltmesi.
   Bootstrap reboot 'button { font-family: inherit }' kuralı .mfp-arrow butonunun
   fontunu eziyor; chevron glyph'i (bootstrap-icons U+F284/F285) tofu (□) çiziliyordu.
   Pseudo-element'e fontu zorlayınca oklar tekrar görünür. */
.mfp-arrow-left::before,
.mfp-arrow-right::before {
    font-family: "bootstrap-icons" !important;
}

/* ===== Hata Listesi 7 — Madde 2: Mobil düzenlemeler (slider + ürün detay) ===== */
@media (max-width: 767.98px) {
    /* Slider: başlık/metin dikey ortalı, yatay padding, taşma yok */
    #slider .slider-caption {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 22px !important;
        text-align: center !important;
    }
    #slider .slider-caption h2 { margin-bottom: 12px !important; word-break: break-word; }
    #slider .slider-caption .button { display: inline-block !important; margin-top: 6px !important; }
    /* Slider okları kenara yapışmasın, biraz küçülsün */
    #slider .slider-arrow-left { left: 8px !important; }
    #slider .slider-arrow-right { right: 8px !important; }
    #slider .slide-number { right: 10px !important; bottom: 10px !important; }

    /* Ürün detay: sağ kolonun aşırı p-5 padding'ini azalt */
    #content .row.g-0 > .col-md-5.p-5 { padding: 1.25rem !important; }
    /* Ürün görseli mobilde makul yükseklik (400px çok büyük) */
    #mainProductImage { height: 300px !important; margin-top: 10px !important; }
    #mainProductImageContainer .fslider .slide img,
    #mainProductImageContainer .flexslider .slide img { height: 300px !important; }

    /* Custom Product Generator formu: etiket/seçenekler okunur, kod input tam genişlik */
    #generate-codes .attribute-group .col-md-2 { margin-bottom: 6px; }
    #generate-codes #generatedCode { max-width: 100% !important; width: 100% !important; }
    #generate-codes .form-group { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    /* Küçük telefon: görsel biraz daha kısa, radyo seçenekleri 2'li kalsın ama sığsın */
    #mainProductImage,
    #mainProductImageContainer .fslider .slide img,
    #mainProductImageContainer .flexslider .slide img { height: 260px !important; }
    #generate-codes .radio-label { font-size: 13px !important; }
}

/* ===== Madde 2 ek: Mobil menü arka planı =====
   Canvas'ta mobil menü paneli (.primary-menu / .menu-container) açılınca slider üzerine
   position:absolute düşüyor ve arka planı olmadığı için slider görünüyordu. Koyu arka plan +
   gölge veriyoruz (site sabit dark-mode). Alt menüler zaten #111 arka planlı. */
@media (max-width: 991.98px) {
    #header .primary-menu,
    #header nav.primary-menu,
    #header ul.menu-container,
    #header .primary-menu > ul {
        background-color: #000000 !important;
    }
    #header .primary-menu {
        border-top: 1px solid #222 !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55) !important;
    }
}
