/* Genel Ayarlar */
.item-product-name { 
    flex-grow: initial; 
}

.item-product-price .item-product-disc { 
    font-weight: 600 !important; 
    font-size: 15px !important; 
	margin-top: inherit !important;
}

.item-product-price {
	margin-top: inherit !important;
}

.ny-box-1 > .storiesBox .owl-stage-outer { 
    padding-top: 40px !important; /* Küçük ikonlar üst boşluk */
} 

.ny-box-1 > .storiesBox .info-box p { 
    margin-top: 10px; /* Küçük ikonlar yazı üst boşluk */
} 

.ny-filter-item label { 
    margin-bottom: 10px !important; /* Sol filtre alanları arası boşluk */
} 

/* Fiyat Alanı Düzenlemesi (Hizalama bozulmaması için inline-flex yapıldı) */
.product-price-sale .price, 
.product-price-old .price2, /* Aradaki boşluk düzeltildi */
.product-price-old.price2 {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
}


/* Ürün resimlerinin 1.sini büyük yapar ve çerçeveyi kaldırır */
.productPhotos, .image-wrapper, .product-video-image { 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
}

#con > div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

#con > div:first-child .product_IMG { 
    border: none !important;
    width: 100% !important;
    height: 500px !important; 
    object-fit: contain !important; 
    background-color: #fff; 
}

@media (max-width: 768px) {
    #con > div:first-child .product_IMG {
        height: 350px !important; 
    }
}

/* Mobilde tümünü gör yazısını alta alır */
@media (max-width: 768px) {
    .productTitle {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;    
        text-align: center !important;
    }

    .home-product-see-btn {
        float: none !important;            
        margin: 10px 0 0 0 !important;      
        position: static !important;       
        display: inline-block !important;
    }
}

/* Ürün Resim Alanı Optimizasyonu (CLS ve Hız Ayarı) */
.product-item img, 
.showcase-image img, 
.fl.col-12.imgHolder img, 
.product-image-wrapper img {
    aspect-ratio: 1 / 1 !important; 
    object-fit: cover !important; /* Resimler 1:1 kareye zorlanırken basıklaşmasın/yamulmasın diye eklendi */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background-color: #f7f7f7; 
    content-visibility: auto; 
    image-rendering: -webkit-optimize-contrast; 
}

/* Sayfa yüklenirken kutuların zıplamasını engellemek için kapsayıcıyı sabitle */
.product-image-wrapper, .showcase-image, .imgHolder {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    background: #f7f7f7;
}

/* Buton ve İkon Ayarları */
#scrollTopBtn { bottom: 10px !important; width: 50px !important; height: 50px !important; } 
.whatsappOrder { height: 50px !important; width: 50px !important; border-radius: 50% !important; }



/* BreadCrumb sağa doğru uzamasını sağlayan alan başlangıç*/

@media (max-width: 768px) {
  .customBreadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important; /* Alt alta kırılmayı kesin olarak engeller */
    overflow-x: auto !important;  /* Sağa doğru kaydırmayı açar */
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch; 
  }

  .customBreadcrumb .breadcrumb-item {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;    /* Elemanların sıkışıp daralmasını engeller */
    white-space: nowrap !important; /* Kelimelerin alt satıra geçmesini önler */
  }

  .customBreadcrumb .breadcrumb-item a {
    white-space: nowrap !important; /* Link metninin tek satırda kalmasını zorlar */
    display: inline-block !important;
  }
  
  /* Mobil kaydırma çubuğunu gizler, tertemiz bir görüntü sunar */
  .customBreadcrumb::-webkit-scrollbar {
    display: none !important;
  }
}

/* BreadCrumb sağa doğru uzamasını sağlayan alan bitiş*/

/* 
.product-slider .swiper-button-next { border: none !important;}
.horizontal > .swiper-button-prev-new { display: none !important;}
.horizontal > .swiper-button-next-new { display: none !important;}
*/


/* ==========================================
   MADRENINO 4'LÜ BÜYÜK ÜRÜN VİTRİNİ
========================================== */

/* 1. SİTENİN ORİJİNAL FONTUNU ZORUNLU KILAR */
#home_product_zone,
#home_product_zone * {
    font-family: inherit !important;
    box-sizing: border-box !important;
}

#home_product_zone {
    padding: 25px 0 !important;
    background: #ffffff !important;
}

/* 2. BAŞLIK VE TÜMÜNÜ GÖR BUTONU */
#home_product_zone .productTitle {
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#home_product_zone .home-product-title a {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-decoration: none !important;
    letter-spacing: -0.4px !important;
}

#home_product_zone .home-product-see-btn {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    background: #f5f5f7 !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    float: none !important;
}

#home_product_zone .home-product-see-btn:hover {
    background: #E31E24 !important;
    color: #ffffff !important;
}

/* 3. SLIDER'I 4'LÜ BÜYÜK KART DÜZENİNE ZORLAMA (MASAÜSTÜ) */
@media (min-width: 992px) {
    #home_product_zone .swiper-slide {
        width: calc(25% - 18px) !important; /* Ekranı 4 eşit parçaya böler */
        margin-right: 24px !important;
    }
}

/* 4. ÇERÇEVESİZ LÜKS KART YAPISI */
#home_product_zone .productBox {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

/* 5. GENİŞLETİLMİŞ SAF BEYAZ RESİM KAPSAYICISI (GÖRSELLER BÜYÜTÜLDÜ) */
#home_product_zone .item-product-image-box {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

#home_product_zone .home-cmp-prd-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 0px !important; /* Padding kaldırıldı, ürünler çok daha büyük görünür */
    opacity: 1 !important;
    visibility: visible !important;
}

/* 6. MİKRO İNDİRİM ROZETİ */
#home_product_zone .item-product-disc.salePriceBox {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 99 !important;
    background: #E31E24 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 6px rgba(227, 30, 36, 0.2) !important;
    margin: 0 !important;
}

/* 7. VİDEOLU VE KAMPANYALI ÜRÜN ROZETLERİ */
#home_product_zone .label-sale {
    background: rgba(17, 17, 17, 0.85) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    padding: 3px 6px !important;
}

#home_product_zone .offer-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: #fff4f4 !important;
    color: #E31E24 !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
    border: 1px solid rgba(227, 30, 36, 0.12) !important;
    width: max-content !important;
}

#home_product_zone .offer-info i {
    color: #E31E24 !important;
    display: inline-block !important;
}

/* 8. YILDIZLAR VE DEĞERLENDİRME */
#home_product_zone .comments-box {
    margin-bottom: 3px !important;
    display: block !important;
}

#home_product_zone .ny-rating {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

#home_product_zone .comment-star, 
#home_product_zone .fa-star {
    font-size: 10px !important;
    color: #ffb800 !important;
    display: inline-block !important;
}

#home_product_zone .ny-rating span {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #888888 !important;
    margin-left: 2px !important;
}

/* 9. METİN VE FİYAT HİYERARŞİSİ */
#home_product_zone .item-product-info {
    padding: 0 !important;
    background: transparent !important;
}

#home_product_zone .item-product-name {
    margin: 0 0 3px 0 !important;
    height: 34px !important;
    overflow: hidden !important;
}

#home_product_zone .item-product-name a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.2s ease !important;
}

#home_product_zone .productBox:hover .item-product-name a {
    color: #E31E24 !important;
}

#home_product_zone .productpricebox {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    margin-top: 2px !important;
}

#home_product_zone .item-product-priceOld {
    font-size: 11px !important;
    color: #999999 !important;
    text-decoration: line-through !important;
}

#home_product_zone .disc-price, 
#home_product_zone .item-product-priceSale {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #E31E24 !important;
}

/* 10. SLİDER OKLARI (MASAÜSTÜ) */
#home_product_zone .swiper-button-next,
#home_product_zone .swiper-button-prev {
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    color: #111111 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06) !important;
}

#home_product_zone .swiper-button-next:hover,
#home_product_zone .swiper-button-prev:hover {
    background: #E31E24 !important;
    border-color: #E31E24 !important;
    color: #ffffff !important;
}

/* MOBİL OPTİMİZASYONU & NOKTALARI (PAGINATION) KALDIRMA */
@media (max-width: 768px) {
    #home_product_zone {
        padding: 15px 0 !important;
    }

    /* Mobilde kalabalık yapan Swiper noktalarını tamamen gizler */
    #home_product_zone .swiper-pagination,
    #home_product_zone .swiper-pagination-bullets {
        display: none !important;
    }

    #home_product_zone .home-product-title a {
        font-size: 17px !important;
    }

    #home_product_zone .item-product-name {
        height: 30px !important;
    }

    #home_product_zone .item-product-name a {
        font-size: 11.5px !important;
    }

    #home_product_zone .disc-price, 
    #home_product_zone .item-product-priceSale {
        font-size: 13.5px !important;
    }
}


