:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-dark-blue: #002244;
    --bs-light-gray: #f8f9fa;
    --bs-font-sans-serif: 'Poppins', sans-serif;

    /* REVIZE: Header butonları için renkler eklendi (Önceki tasarımdan) */
    --bs-yellow: #ffc107;
    --bs-green: #28a745; 
}

body {
    background-color: #ffffff;
    font-family: var(--bs-font-sans-serif);
}

h1, h2, h3, h4, h5, h6 {
    /* REVIZE: Başlıkların da tutarlı fontu kullanması sağlandı */
    font-family: var(--bs-font-sans-serif);
    font-weight: 700;
}


/* --- MEVCUT STILLERIN (DOKUNULMADI) --- */

/* Header */
.header-top a {
    transition: color 0.2s ease;
}
.header-top a:hover {
    color: var(--bs-primary) !important;
}

/* Bölüm Başlıkları */
.section-title {
    font-weight: 700;
    color: var(--bs-dark-blue);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Makine Kartları (Genel) */
.machine-card {
    border: 1px solid #eef0f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}
.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)!important;
}

/* Tüm Kart Resimleri (Makine, Müzayede vb.) */
.machine-card .card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3; /* 4:3 oranı */
    object-fit: cover !important;
    height: auto !important;
}
.row-cols-lg-6 .machine-card .card-img-top {
    aspect-ratio: 1 / 1 !important; /* 6'lı sırada kare */
}
.row-cols-lg-5 .machine-card .card-img-top {
    aspect-ratio: 1 / 1 !important; /* 5'li sırada kare */
}

/* Satıldı Damgası */
.image-container {
    position: relative;
    display: block;
    overflow: hidden;
}
.sold-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    z-index: 10;
}

/* Kategori Kartı Stilleri (Mevcut Kategori Sayfanız için) */
.category-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    min-height: 150px; /* Mobil için min yükseklik 150px */
    background-size: cover;
    background-position: center;
}
.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.category-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 80%);
    z-index: 1;
    transition: all 0.3s ease;
}
.category-card-title {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
@media (min-width: 768px) {
    .category-card {
        min-height: 200px;
    }
}

/* Akan Referans Bandı */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.references-scroller {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}
.references-container {
    overflow: hidden;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.reference-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all .3s ease;
}
.reference-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ========================================================== */
/* === DEĞİŞİKLİK BURADA: SLIDER YÜKSEKLİKLERİ TEKRAR KISALTILDI === */
/* ========================================================== */
/* Mobil Uyumlu Slider Yükseklikleri (Ana Slider Kısaltıldı) */

#topCarousel .carousel-item img {
    max-height: 220px !important; /* Önceki 250px idi, şimdi 220px */
    object-fit: cover !important;
    width: 100% !important;
    aspect-ratio: auto !important; /* Aspect ratio'yu kaldırıp max-height'e zorluyoruz */
}

@media (min-width: 768px) {
    #topCarousel .carousel-item img {
        max-height: 300px !important; /* Önceki 350px idi, şimdi 300px */
    }
}

@media (min-width: 992px) {
    #topCarousel .carousel-item img {
        max-height: 350px !important; /* Önceki 400px idi, şimdi 350px */
    }
}

@media (min-width: 1400px) {
    #topCarousel .carousel-item img {
        max-height: 400px !important; /* Önceki 450px idi, şimdi 400px */
    }
}

/* Diğer (middle/bottom) carousel stilleri (dokunulmadı) */
#middleCarousel .carousel-item img,
#bottomCarousel .carousel-item img {
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: auto !important;
}
#middleCarousel .carousel-item img {
    aspect-ratio: 16 / 9 !important; /* Mobilde 16:9 */
}
#bottomCarousel .carousel-item img {
    aspect-ratio: 21 / 9 !important; /* Mobilde daha ince */
}
@media (min-width: 992px) {
    #middleCarousel .carousel-item img {
        aspect-ratio: 21 / 9 !important;
        max-height: 250px !important;
    }
    #bottomCarousel .carousel-item img {
        aspect-ratio: 21 / 9 !important;
        max-height: 150px !important;
    }
}
/* ========================================================== */
/* === / DEĞİŞİKLİK BİTTİ === */
/* ========================================================== */


/* Header Stilleri (Mobil Uyum & Geniş Arama) */
#desktop-search-form {
    min-width: 250px;
}
.live-indicator-container {
    position: relative;
    display: inline-block;
}

/* === REVİZE EDİLEN BÖLÜM (TAŞMA SORUNU İÇİN) === */
.live-badge {
    position: absolute;
    
    /* "Auctions" kelimesinin bittiği yere konumlandır */
    left: 100%; 
    top: 0px; /* Dikey olarak "Auctions" ile aynı hizada başla */
    
    /* Kelime ile arasında küçük bir boşluk bırak */
    margin-left: 5px; 

    /* Eski 'right' ve 'transform' kuralları kaldırıldı */
    /* right: -20px; */ 
    /* transform: none; */

    background-color: #ff0000;
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    /* Animasyondan gereksiz 'translateY' kaldırıldı */
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
/* === / REVİZE EDİLEN BÖLÜM === */

.nav-link-soon {
    position: relative;
}

/* === REVİZE EDİLEN BÖLÜM ("Soon" yazısını kaldırmak için) === */
.soon-badge {
    display: none; /* "Soon" yazısını gizler */
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: 0.6rem;
    font-weight: bold;
    color: white;
    background-color: #dc3545;
    padding: 2px 6px;
    border-radius: 4px;
    transform: rotate(15deg);
}
/* === / REVİZE EDİLEN BÖLÜM === */


/* === REVİZE EDİLEN BÖLÜM (Machines'i sağa kaydırmak için) === */
.navbar-nav .nav-item {
    margin: 0 0.75rem; /* Linkler arası boşluk (0.5rem'den artırıldı) */
}
/* === / REVİZE EDİLEN BÖLÜM === */

.navbar-nav .nav-link {
    padding: 0.5rem 0.25rem;
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .live-indicator-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .live-badge {
        position: relative;
        transform: none;
        top: auto;
        /* 'left' ve 'margin-left' mobil için sıfırlandı, 'right' kullanılıyor */
        left: auto; 
        right: auto;
        margin-left: 8px;
        animation: none; /* Mobilde yanıp sönmeyi durdur */
    }
    .soon-badge {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-left: 6px;
    }
}
/* --- MEVCUT STILLERIN SONU --- */





/* =================================================================== */
/* --- YENI ANASAYFA BİLEŞENLERİ (BURAYA EKLENDİ) --- */
/* =================================================================== */

/* 1. En Üst Bar (Pre-Header) */
.pre-header {
    background-color: var(--bs-light-gray);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #dee2e6;
}
.pre-header .brand-name {
    font-weight: 700;
    color: var(--bs-dark-blue);
    font-size: 1.1rem; /* "SARVAN GMBH" yazısı büyütüldü */
}
.pre-header .contact-info a {
    color: var(--bs-dark-blue);
    text-decoration: none;
    margin-left: 15px;
}
.pre-header .contact-info a:hover {
    color: var(--bs-primary);
}
.pre-header .contact-info i {
    color: var(--bs-primary);
    margin-right: 5px;
}

/* 2. Ana Navigasyon (Mevcut olana ek gölge) */
.main-navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 3. Buton Stilleri (Header'da kullanılan) */
.btn-sarvan-yellow {
    background-color: var(--bs-yellow);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-sarvan-yellow:hover {
    background-color: #e0a800;
    color: #fff;
}
.btn-sarvan-green {
    background-color: var(--bs-green);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-sarvan-green:hover {
    background-color: #218838;
    color: #fff;
}

/* 4. Anasayfa Hero (Slider) Alanı */
.hero-slider {
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x450.png?text=Industrial+Machinery+Slider') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-slider h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-slider p {
    font-size: 1.25rem;
    margin-bottom: 25px;
}


/* ============================================= */
/* --- 4.5. YENİ: Hero Altı (Auction & Yedek Parça) --- */
/* ============================================= */
.hero-bottom-section {
    border-bottom: 1px solid #dee2e6;
    background-color: var(--bs-light-gray);
}
.hero-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.hero-links a:hover {
    color: var(--bs-primary); /* Değişken kullanıldı */
    text-decoration: underline;
}
.hero-links span {
    color: #ccc;
    margin: 0 8px;
}

.spare-parts-carousel {
    width: 100%;
    height: auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Kenar yuvarlaklığı için */
}
/* BU KURAL RESİMLERİN GÖRÜNMESİNİ SAĞLAR */
.spare-parts-carousel .swiper-slide {
    /* DEĞİŞİKLİK BURADA: Makine resimleriyle eşleşmesi için 1:1 (kare) yapıldı */
    aspect-ratio: 1 / 1; 
}
.spare-parts-carousel .swiper-slide img {
    width: 100%;
    height: 100%; 
    object-fit: cover; /* Resmi 1:1'lük alana sığdırır */
    display: block;
}
.spare-parts-carousel .swiper-button-next,
.spare-parts-carousel .swiper-button-prev {
    color: #fff; /* Beyaz oklar */
    background-color: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}
.spare-parts-carousel .swiper-button-next::after,
.spare-parts-carousel .swiper-button-prev::after {
    font-size: 1rem; /* Ok ikonu boyutunu küçült */
}
/* ============================================= */
/* --- YENİ BÖLÜM SONU --- */
/* ============================================= */


/* 5. Anasayfa Vitrin Bölümü (4'lü Kutu) */
.services-grid {
    padding: 80px 0;
    background-color: #fff;
}
.service-box {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.service-box:hover {
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1); /* --bs-primary rengine göre ayarlandı */
    transform: translateY(-10px);
}
.service-box .icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.service-box:hover .icon-wrapper {
    background-color: #fff;
    color: var(--bs-primary);
    box-shadow: 0 0 0 2px var(--bs-primary) inset;
}
.service-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin: 15px 0 5px 0;
}
.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--bs-dark-blue);
}
.service-box p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
}

/* 6. Anasayfa Buton Stilleri (Vitrin Kutuları için) */
.btn-sarvan-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    text-transform: uppercase;
}
.btn-sarvan-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}
.btn-sarvan-outline {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 10px 25px;
    text-transform: uppercase;
}
.btn-sarvan-outline:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* 7. Anasayfa Kategoriler Bölümü (İkonlu) */
.categories-section {
    padding: 80px 0;
    background-color: var(--bs-light-gray);
}
.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--bs-dark-blue);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.category-box:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15); /* --bs-primary rengine göre ayarlandı */
}
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}
.category-box:hover .category-icon {
    color: #fff;
    transform: scale(1.1);
}
.category-box span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* 8. Footer Stilleri */
.main-footer {
    padding: 40px 0;
    background-color: var(--bs-dark-blue);
    color: #adb5bd;
}
.main-footer h5 {
    color: #fff;
    margin-bottom: 20px;
}
.main-footer ul {
    padding-left: 0;
    list-style: none;
}
.main-footer ul li a {
    color: #adb5bd;
    text-decoration: none;
    line-height: 2;
}
.main-footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    background-color: #001a33; /* --bs-dark-blue'nun biraz daha koyusu */
    padding: 15px 0;
    font-size: 0.9rem;
    color: #888;
}

/* === YENİ EKLENDİ: Kaydırılamayan "Makine Sat" Modalı için Düzeltme === */
#addMachineModal .modal-body {
    /* Formun dikeyde çok uzaması durumunda 
       ekran yüksekliğinin %70'ini geçmemesini ve kaydırma çubuğu göstermesini sağlar.
       (Bootstrap'in 'modal-dialog-scrollable' kuralını güçlendirir)
    */
    max-height: 70vh; /* Viewport Height'ın %70'i */
    overflow-y: auto;
}

/* ============================================= */
/* --- YENİ EKLENDİ: ÇEREZ BANNER STILLERI --- */
/* ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #23272d; /* Koyu arka plan */
    color: #ffffff; /* Beyaz yazı */
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1050; /* Diğer her şeyin üstünde */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Küçük ekranlarda alt satıra kaydır */
    gap: 15px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1; /* Metnin mümkün olduğunca yayılmasını sağla */
}

.cookie-banner p a {
    color: #0d6efd; /* Link rengi (Bootstrap mavisi) */
    text-decoration: underline;
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Butonların sıkışmamasını sağla */
}

.cookie-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-button.accept {
    background-color: #0d6efd; /* Mavi */
    color: white;
}

.cookie-button.reject {
    background-color: #6c757d; /* Gri */
    color: white;
}

/* Banner'ın gizlenmesi için kullanılacak sınıf */
.cookie-banner.hidden {
    display: none;
}
/* === / YENİ BÖLÜM SONU === */