:root {
	--red-primary: #D32F2F;     /* Ana Kırmızı */
	--red-dark: #B71C1C;        /* Koyu Kırmızı */
	--red-light: #FFEBEE;       /* Açık Kırmızı Arka Plan */
	--text-dark: #212529;
	--bg-light: #F8F9FA;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--text-dark);
	background-color: #ffffff;
}

/* --- ÜST BİLGİ & NAVİGASYON --- */
.top-bar {
	background-color: #1A1A1A;
	color: #ddd;
	font-size: 0.85rem;
}
.top-bar a {
	color: #ddd;
	text-decoration: none;
}
.top-bar a:hover {
	color: #fff;
}

.navbar-brand {
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--red-primary) !important;
	letter-spacing: -0.5px;
}

.nav-link {
	font-weight: 600;
	color: #333 !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
	color: var(--red-primary) !important;
}

.btn-red {
	background-color: var(--red-primary);
	color: #fff;
	font-weight: 600;
	border: none;
	transition: all 0.3s;
}
.btn-red:hover {
	background-color: var(--red-dark);
	color: #fff;
	transform: translateY(-2px);
}

.btn-outline-red {
	border: 2px solid var(--red-primary);
	color: var(--red-primary);
	font-weight: 600;
	background: transparent;
}
.btn-outline-red:hover {
	background-color: var(--red-primary);
	color: #fff;
}

/* --- SUBMENU / AÇILIR ALT KATEGORİ MENÜSÜ CSS --- */
.dropdown-menu .dropdown-submenu {
	position: relative;
}
.dropdown-menu .dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: -1px;
	display: none;
}
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
	display: block;
}

/* --- OFFCANVAS SOLDAN AÇILIR MENÜ --- */
.offcanvas-start {
	width: 80vw !important;
	max-width: 320px !important;
	background-color: #ffffff;
	color: var(--text-dark);
	box-shadow: 5px 0 25px rgba(0,0,0,0.15);
}

.offcanvas-start .offcanvas-header {
	background-color: var(--red-light);
	border-bottom: 1px solid #ffcdd2 !important;
	padding: 18px 20px;
}

.offcanvas-start .offcanvas-title {
	color: var(--red-primary) !important;
}

.offcanvas-start .nav-link {
	color: #424242 !important;
	padding: 13px 20px;
	font-weight: 600;
	font-size: 0.95rem;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
}

.offcanvas-start .nav-link:hover, 
.offcanvas-start .nav-link.active {
	color: var(--red-primary) !important;
	background-color: var(--red-light);
	border-left: 4px solid var(--red-primary);
	padding-left: 24px;
}

.offcanvas-start .btn-close {
	filter: none !important;
}

/* --- HERO BANNER --- */
.hero-section {
	background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), 
				url('img/mibzer.jpg') center/cover no-repeat;
	color: #fff;
	padding: 100px 0;
}

/* --- HIZLI ARAMA & FİLTRE BANT --- */
.search-box {
	margin-top: -50px;
	position: relative;
	z-index: 10;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	border-top: 4px solid var(--red-primary);
}

/* --- KARTLAR & KATEGORİLER --- */
.category-card {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 25px 15px;
	text-align: center;
	transition: all 0.3s ease;
	background: #fff;
	height: 100%;
	text-decoration: none;
	color: var(--text-dark);
	display: block;
}
.category-card:hover {
	border-color: var(--red-primary);
	box-shadow: 0 8px 25px rgba(211, 47, 47, 0.15);
	transform: translateY(-5px);
	color: var(--red-primary);
}
.category-card i {
	font-size: 2.5rem;
	color: var(--red-primary);
	margin-bottom: 15px;
}

.product-card {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	height: 100%;
	background: #fff;
}
.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.product-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background-color: var(--red-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	z-index: 2;
}
.product-specs {
	background-color: var(--bg-light);
	font-size: 0.85rem;
	border-radius: 8px;
	padding: 8px 12px;
}

/* --- YEDEK PARÇA BANT --- */
.spare-parts-banner {
	background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
	color: #fff;
	border-radius: 15px;
	padding: 40px;
}

/* --- FOOTER --- */
footer {
	background-color: #111;
	color: #aaa;
	font-size: 0.9rem;
}
footer h5 {
	color: #fff;
	font-weight: 700;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--red-primary);
	display: inline-block;
	padding-bottom: 5px;
}
footer a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.2s;
}
footer a:hover {
	color: #fff;
}

/*SAYFA İÇERİK ÖZEL CSS STİLLERİ */

.page-header-banner {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffebee 100%);
	border-bottom: 2px solid #ffcdd2;
	font-size: 0.8rem;
}
.page-content {
	color: #424242;
	font-size: 1rem;
	line-height: 1.8;
}
.page-content h2, .page-content h3, .page-content h4 {
	color: #212529;
	font-weight: 700;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}
.page-content h2 { font-size: 1.5rem; border-bottom: 2px solid var(--red-primary); display: inline-block; padding-bottom: 4px; }
.page-content h3 { font-size: 1.3rem; }
.page-content ul, .page-content ol {
	padding-left: 1.25rem;
	margin-bottom: 1.25rem;
}
.page-content li {
	margin-bottom: 0.5rem;
}
.page-content blockquote {
	background-color: #f8f9fa;
	border-left: 4px solid var(--red-primary);
	padding: 15px 20px;
	margin: 20px 0;
	font-style: italic;
	border-radius: 0 8px 8px 0;
}
.page-content table {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}
.page-content table td, .page-content table th {
	padding: 10px 15px;
	border: 1px solid #dee2e6;
}
.page-content table th {
	background-color: #f8f9fa;
	font-weight: 700;
}

/*ÜRÜNLER SAYFASI*/

.filter-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.filter-card .nav-link {
	color: #424242;
	padding: 8px 12px;
	border-radius: 6px;
	transition: all 0.2s;
}
.filter-card .nav-link:hover, .filter-card .nav-link.active {
	background-color: var(--red-light);
	color: var(--red-primary) !important;
	font-weight: 600;
}
.sub-cat-link {
	padding-left: 28px !important;
	font-size: 0.85rem;
}

.card-img-top {
	background-color: #d9d9d9;
	height: 220px; 
	object-fit: contain;
	
}


/*ÜRÜNLER DETAY*/
/* --- ÜRÜN DETAY & GALERİ STİLLERİ --- */
.product-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #d9d9d9;  /*#f8f9fa;*/
    border: 1px solid #eee;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;
}
.product-gallery-main .zoom-hint {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    transition: background 0.2s;
}
.product-gallery-main:hover .zoom-hint {
    background: var(--red-primary, #D32F2F);
}
.thumb-img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #d9d9d9;
}
.thumb-img.active, .thumb-img:hover {
    border-color: var(--red-primary, #D32F2F);
}

/* --- LIGHTBOX (TAM EKRAN GÖRÜNTÜLEYİCİ) STİLLERİ --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #d9d9d9; /* f8f9fa Tam ekran açık gri arka plan */
    user-select: none;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RESİM KAPSAYICI VE VIEWPORT (PAN/ZOOM ALANI) */
.lightbox-viewport {
    width: 85%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Büyütüldüğünde dışa taşmayı önler */
    position: relative;
    touch-action: none; /* Varsayılan mobil kaydırma çakışmalarını engeller */
    cursor: zoom-in;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease-out, opacity 0.2s ease-in-out;
    transform-origin: center center;
    will-change: transform;
}

/* KAPATMA BUTONU */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #212529;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--red-primary, #D32F2F);
}

/* İLERİ / GERİ OK BUTONLARI */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #212529;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--red-primary, #D32F2F);
    color: #ffffff;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* SAYFA SAYAÇ VE YAKINLAŞTIRMA ROZETLERİ */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #424242;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
    padding: 6px 18px;
    border-radius: 20px;
}

.zoom-level-badge {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100001;
}

/* MOBİL UYARLAMALAR */
@media (max-width: 768px) {
    .product-gallery-main img { 
        height: 280px; 
    }
    .lightbox-viewport {
        width: 100%;
        height: 75vh;
    }
    .lightbox-prev { 
        left: 10px; 
        width: 45px; 
        height: 45px; 
        font-size: 18px; 
    }
    .lightbox-next { 
        right: 10px; 
        width: 45px; 
        height: 45px; 
        font-size: 18px; 
    }
}

/* MOBİL ÖZEL AYARLAR (Ekran 768px'den küçükse) */
@media (max-width: 768px) {
    .product-gallery-main img {
        height: 280px;   /* Mobil ekranlarda yüksekliği küçülterek ekrana tam oturmasını sağlar */
    }
}

/* --- MOBİLDE EKRANA TAM SIĞAN SEKMELER --- */
.product-tabs-wrapper {
    position: relative;
    width: 100%;
}

.product-tabs-wrapper .nav-tabs {
    display: flex;
    width: 100%;
}

.product-tabs-wrapper .nav-tabs .nav-item {
    flex: 1 1 0; /* 4 sekmeyi ekrana %25 eşit genişlikte böler */
    text-align: center;
}

@media (max-width: 768px) {
    .product-tabs-wrapper .nav-tabs .nav-link {
        font-size: 0.72rem !important; /* Mobilde yazıları sıkıştırmadan ufaltır */
        line-height: 1.1;
        padding: 8px 2px !important;
    }
    
    .product-tabs-wrapper .nav-tabs .nav-link i {
        font-size: 1.1rem !important; /* İkonları mobilde üste belirgin şekilde koyar */
    }
}

@media (min-width: 769px) {
    /* Masaüstünde kısa kelimelerin yanına uzantılarını otomatik ekler */
    #specs-tab .tab-text::after { content: " & Detaylar"; }
    #docs-tab .tab-text::after { content: " & Katalog"; }
    #videos-tab .tab-text::before { content: "Tanıtım "; }
    #parts-tab .tab-text::before { content: "Uyumlu "; }
}

/*BAYİLER*/

.dealer-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	border: 1px solid #eee;
	transition: all 0.3s ease;
	height: 100%;
}
.dealer-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(211, 47, 47, 0.12);
	border-color: var(--red-primary);
}
.dealer-icon-box {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	background-color: var(--red-light);
	color: var(--red-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
}

/*PARÇALAR */

.filter-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	border: 1px solid #eee;
}
.spare-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	border: 1px solid #eee;
	height: 100%;
}
.spare-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(211, 47, 47, 0.12);
	border-color: var(--red-primary);
}
.oem-badge {
	font-family: monospace;
	background-color: var(--bg-light);
	color: #333;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

/*PARÇA DETAY*/

.part-detail-img {
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee;
}
.part-detail-img img {
	width: 100%;
	height: 380px;
	object-fit: cover;
}
.oem-code-box {
	font-family: monospace;
	background-color: var(--bg-light);
	color: var(--red-primary);
	font-size: 1.1rem;
	font-weight: 700;
	padding: 8px 15px;
	border-radius: 8px;
	border: 1px dashed var(--red-primary);
	display: inline-block;
}

/*haberler*/

.news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.hover-danger {
    transition: color 0.2s;
}
.hover-danger:hover {
    color: var(--red-primary, #D32F2F) !important;
}


/* MARKALAR KAYAN ŞERİT (INFINITE MARQUEE) */
.brand-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    padding: 15px 0;
    white-space: nowrap;
}

.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 40px;
    animation: autoScroll 50s linear infinite;
}

/* Fareyle üzerine gelindiğinde isteğe bağlı duraklatma */
.brand-ticker:hover .brand-track {
    animation-play-state: paused;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Sonsuz Yana Kayma Animasyonu */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}