@media (min-width: 992px) {
    .deals-carousel .owl-stage {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .deals-carousel .owl-item {
        float: none !important;
        display: flex !important;
        justify-content: center !important;
    }
}
@media (min-width: 992px) {
    .deals-carousel .owl-stage {
        display: flex !important;
        justify-content: center !important;
    }
}
/* Owl Carousel temel stilleri */
.owl-carousel {
    display: block;
    position: relative;
    width: 100%;
    z-index: 1; /* Varsayılan z-index */
    -webkit-tap-highlight-color: transparent;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent; /* Arka plan rengi şeffaf yapıldı */
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    backface-visibility: hidden;
    z-index: 1;
}

.owl-carousel .owl-item {
    position: relative;
    float: left;
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    z-index: 1;
}

/* Navigation stilleri */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 2; /* Okların içeriğin üzerinde olması için */
    pointer-events: none; /* Varsayılan olarak okların kendilerine dokunmayı engelle, sadece butona izin ver */
}

.owl-nav button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: auto; /* Butonlara dokunmaya izin ver */
    z-index: 3;
    display: flex; /* İçindeki ikonu ortalamak için */
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Fare imleci */
}

.owl-nav button:hover {
    background: #f8f9fa;
}

.owl-nav button.owl-prev {
    left: -20px;
}

.owl-nav button.owl-next {
    right: -20px;
}

.owl-nav button i {
    font-size: 18px;
    color: #333;
}

/* Carousel türleri için özel stiller */
.main-slider {
    z-index: 1;
}

.deals-carousel {
    position: relative; /* Okları doğru konumlandırmak için */
    z-index: 1;
}

.deals-box h3 {
    background-color: #dc3545; /* Kırmızı arka plan */
    color: #fff;
    padding: 10px 15px;
    margin: 0; /* Başlık üstündeki boşluğu kaldır */
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 18px;
    border-bottom: none; /* style.css'deki border-bottom'ı kaldır */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.deals-carousel .owl-stage-outer {
    padding-top: 20px; /* Başlık ile ürün arasına boşluk */
}


.deals-carousel .owl-nav {
    position: absolute; /* Okların konumunu ayarla */
    top: 45%; /* Dikeyde ortalamaya daha yakın, bir tık yukarı */
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Kenarlara boşluk */
    box-sizing: border-box;
    pointer-events: none; /* Varsayılanı koru */
}

.deals-carousel .owl-nav button {
    background: rgba(255,255,255,0.8);
    position: static; /* Absolute konumlandırmayı iptal et */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: auto; /* Tıklanabilirliği geri ver */
    border: 1px solid #dee2e6; /* Hafif kenarlık */
    opacity: 0.9;
    width: 30px; /* Daha küçük buton */
    height: 30px; /* Daha küçük buton */
    font-size: 16px; /* İkonu da küçült */
}

.deals-carousel .owl-nav button:hover {
    opacity: 1;
    background: #fff;
}


/* Haftanın Fırsatları ürün kartı stilini product-card'a benzet ve özelleştir */
.deals-carousel .product-card.deal-product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 15px; /* Daha fazla padding */
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* İçeriği dikeyde yay */
    height: 100%; /* Kutu yüksekliğini doldursun */
    box-sizing: border-box;
    /* Mobilde 2'li düzen için margin carousel.js tarafından ayarlanacak */
}

.deals-carousel .product-card.deal-product:hover {
    box-shadow: 0 8px 24px rgba(42,57,90,0.13);
    transform: translateY(-4px) scale(1.03);
}

.deals-carousel .product-card.deal-product .product-image {
    width: 100%; /* Görüntü genişliği */
    height: 120px; /* Daha küçük resim alanı */
    margin-bottom: 10px; /* Boşluğu azalt */
    overflow: hidden;
    border-radius: 8px;
    display: flex; /* Resmi dikeyde ortalamak için */
    align-items: center;
    justify-content: center;
}

.deals-carousel .product-card.deal-product .product-image img {
    max-width: 100%; /* Kutuya sığdır */
    max-height: 100%; /* Kutuya sığdır */
    object-fit: contain; /* Görseli bozmadan sığdır */
    background: transparent; /* Resim arka planı */
}

.deals-carousel .product-card.deal-product .product-info.deal-info {
    flex-grow: 1; /* Bilgi alanı dikeyde genişlesin */
    display: flex;
    flex-direction: column;
    justify-content: center; /* İçeriği ortala */
}

.deals-carousel .product-card.deal-product .brand-text {
    font-size: 12px; /* Daha küçük font */
    color: #6c757d;
    margin-bottom: 3px; /* Boşluğu azalt */
    font-weight: 500;
}

.deals-carousel .product-card.deal-product .product-info h4 {
    font-size: 15px; /* Daha küçük font */
    color: #2a395a;
    margin: 0 0 8px 0; /* Boşluğu azalt */
    font-weight: 600;
    line-height: 1.3;
    min-height: 38px; /* Metin yüksekliğini sabitle */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 satırda kes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deals-carousel .product-card.deal-product .product-price {
    margin-bottom: 5px; /* Buton ile arasına boşluk */
}

.deals-carousel .product-card.deal-product .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
}

.deals-carousel .product-card.deal-product .new-price {
    color: #dc3545; /* Kırmızı indirimli fiyat */
    font-weight: bold;
    font-size: 18px; /* Daha büyük fiyat */
    display: inline-block;
}

.deals-carousel .product-card.deal-product .product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.deals-carousel .product-card.deal-product .add-to-cart {
    background: #ffd700;
    color: #2a395a;
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 2px;
    width: auto;
    display: inline-block;
}

.deals-carousel .product-card.deal-product .add-to-cart:hover {
    background: #2a395a;
    color: #fff;
}


/* Genel mobil için carousel nav ayarları */
@media (max-width: 991px) { /* Mobil menü breakpoint'i ile aynı */
    .owl-carousel .owl-nav {
        position: relative;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 10px;
        top: auto;
        transform: none;
        pointer-events: all; /* Mobilde okların tıklanabilir olması için */
    }
    .owl-carousel .owl-nav button {
        position: static;
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    /* Haftanın Fırsatları oklarını mobilde de ortala ve konumlandır */
    .deals-carousel .owl-nav { 
        position: absolute; /* Mutlak konumlandırmayı koru */
        top: 45%; /* Mobilde de dikey ortalamaya yakın */
        transform: translateY(-50%);
        left: 0;
        width: 100%;
        padding: 0 5px; /* Kenarlara daha az boşluk */
    }
    .deals-carousel .deals-box h3 {
        border-radius: 8px 8px 0 0; /* Mobil için de aynı olsun */
    }
    .deals-carousel .owl-item {
        padding: 0 5px; /* Mobilde ürünler arası 10px boşluk için her iki yana 5px padding */
        box-sizing: border-box;
    }
}


/* Masaüstü: Yeni Ürünler ve En Çok Satanlar carousel oklarını başlığın sağ üstüne sabitle */
.new-products-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Başlığı ortalamak için */
    margin-bottom: 20px; /* Carousel ile başlık arasındaki boşluk */
    padding-right: 100px; /* Oklar için sağda yer aç */
}
.new-products-header .section-title {
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.new-products-header .owl-nav {
    position: absolute;
    right: 0px; /* Sağ üst köşede */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 2;
    pointer-events: all; /* Navigasyon oklarına tıklanabilirliği geri ver */
    width: auto; /* Genişliği içeriğine göre ayarla */
}

.new-products-header .owl-nav button.owl-prev,
.new-products-header .owl-nav button.owl-next {
    pointer-events: all;
    position: static; /* Absolute konumlandırmayı iptal et */
    margin: 0;
    background: #fff; /* Arka plan rengi */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2a395a;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.new-products-header .owl-nav button.owl-prev:hover,
.new-products-header .owl-nav button.owl-next:hover {
    background: #2a395a;
    color: #fff;
    border-color: #2a395a;
}

/* Mobilde .new-products-header .owl-nav ayarları */
@media (max-width: 991px) {
    .new-products-header {
        padding-right: 0; /* Mobil görünümde sağ boşluğu kaldır */
    }
    .new-products-header .owl-nav {
        position: static; /* Statik konumlandırma */
        margin: 15px auto 0 auto; /* Başlığın altında ortala */
        justify-content: center;
        transform: none;
        width: auto;
    }
    .new-products-header .owl-nav button.owl-prev,
    .new-products-header .owl-nav button.owl-next {
        position: static;
        margin: 0 5px; /* Butonlar arası boşluk */
    }
}

/* Section Header Navigation Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #2a395a;
}

.bestsellers-nav,
.discounted-nav,
.new-products-nav {
    display: flex;
    gap: 10px;
}

.bestsellers-nav button,
.discounted-nav button,
.new-products-nav button {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.bestsellers-nav button:hover,
.discounted-nav button:hover,
.new-products-nav button:hover {
    background: #2a395a;
    color: #fff;
    border-color: #2a395a;
}

/* En Çok Satanlar ve Yeni Ürünler Carousel için mobil düzenleme */
/* carousel.js'teki responsive ayarlar owl-item'ların genişliğini zaten ayarlıyor */
/* Burada sadece ürün kartları arası boşlukları CSS ile ayarlıyoruz */
@media (max-width: 767px) {
    .bestsellers-carousel .owl-item,
    .new-products-carousel .owl-item,
    .discounted-products-carousel .owl-item {
        padding: 0 7.5px; /* Ürün kartları arasında 15px boşluk için her iki tarafa 7.5px padding */
        box-sizing: border-box;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bestsellers-nav,
    .discounted-nav,
    .new-products-nav {
        justify-content: center;
    }
}