@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

body {
    font-family: "Nunito", sans-serif; 
    font-weight: 400; 
    font-style: normal; 
    padding-top: 0px;
    background-color: #f8f9fa;
    margin: 0px;
}

a { 
    text-decoration: none !important; 
    color: #383e42; 
    transition-duration: 0.4s; 
}
a:link {
    text-decoration: none;
}

/* Sayfa Karartma Perdesi */
#backdrop-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#backdrop-overlay.show {
    opacity: 1;
    visibility: visible;
}
/*logo*/
/* ==========================================================================
   MASAÜSTÜ LOGO STİLLERİ (992px ve üzeri ekranlarda geçerli)
   ========================================================================== */
@media (min-width: 992px) {
    .desktop-logo-img {
        width: 280px !important;       /* Masaüstü logo genişliği */
        max-height: 80px !important;   /* Masaüstü logo maksimum yüksekliği */
        margin-top: 0px !important;    /* Masaüstü logo üst boşluğu (Dilediğin px değerini ver) */
        object-fit: contain !important;
    }
}

/* ==========================================================================
   MOBİL LOGO STİLLERİ VE ORTALAMA (991px ve altı ekranlarda geçerli)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-logo-wrapper {
        position: absolute !important;
        left: 47% !important;
        transform: translateX(-50%) !important;
        display: inline-block !important;
        line-height: 0 !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-logo-img {
        width: auto !important;
        height: auto !important;
        max-height: 70px !important;  /* Mobil logo maksimum yüksekliği */
        margin-top: 0px !important;   /* Mobil logo üst boşluğu (Dilediğin px değerini ver) */
        object-fit: contain !important;
    }
}

/* ==========================================================================
   KÜÇÜK TELEFONLAR İÇİN ÖZEL STİLLER (576px ve altı çok küçük ekranlar)
   ========================================================================== */


@media (max-width: 576px) {
    .mobile-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 62px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -6px !important;   /* Küçük ekranlar için üst boşluk */
    }
} 
@media (max-width: 330px) {
    .mobile-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 50px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -8px !important;   /* Küçük ekranlar için üst boşluk */
    }
}  
@media (max-width: 280px) {
    .mobile-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 44px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -6px !important;   /* Küçük ekranlar için üst boşluk */
    }
}
/* Arama Kutusu */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 8px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background-color: #ffffff;
    color: #198754;
    border: 1px solid #198754;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #198754;
    color: #ffffff;
}

/* Kompakt Sepet İkonu */
.cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #dc3545;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    text-decoration: none;
    color: #dc3545;
    font-size: 18px;
    transition: all 0.2s ease;
}

.cart-wrapper:hover {
    background-color: #6cd900;
    color: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #343a40;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Sol Kategori Menüsü (Yükseklik 400px yapıldı) */
/* Sol Kategori Menüsü (Yükseklik 400px ve dikeyde esnek) */
.category-menu-wrapper {
    position: relative;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
    height: 400px; /* Slayt ile tam eşit yükseklik */
    overflow-y: auto;
}

.category-menu-wrapper::-webkit-scrollbar {
    width: 5px;
}
.category-menu-wrapper::-webkit-scrollbar-thumb {
    background: #cccccc;
}

.category-list {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.category-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

/* Kategori linklerinin dikey boşluklarını artırarak dikeyde büyümesini sağlıyoruz */
.category-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 15px; /* Dikey yüksekliği artırmak için padding büyütüldü */
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    transition: color 0.2s ease-in-out;
}

.category-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 0px;
    background-color: #000000;
    z-index: -1;
    transition: height 0.25s ease-in-out, top 0.25s ease-in-out;
}

.category-item:hover > .category-link::before {
    top: 0px;
    height: 100%;
}

.category-item:hover > .category-link {
    color: #ffffff !important;
}

/* Carousel Görsel Yüksekliği */
.carousel-inner img {
    height: 400px;
    object-fit: cover;
}

/* Alt Kategori */
.submenu {
    position: fixed;
    width: 280px;
    max-height: 400px; /* Maksimum yükseklik sınırı */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu çıkar */
    background-color: #dfefe1;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0px;
    margin: 0px;
    z-index: 101;
    border-left: 1px solid #ffccd5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Alt menü kaydırma çubuğu tasarımı */
.submenu::-webkit-scrollbar {
    width: 5px;
}
.submenu::-webkit-scrollbar-thumb {
    background: #dfefe1;
}

@media (min-width: 992px) {
    .category-item.has-submenu:hover > .submenu {
        opacity: 1;
        visibility: visible;
    }
}

.submenu-item {
    position: relative;
    border-bottom: 1px solid #ffd6df;
}

.submenu-link {
    position: relative;
    display: block;
    padding: 16px 15px; /* Ana kategorilerle dikeyde uyumlu olması için padding artırıldı */
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    transition: color 0.2s ease-in-out;
}

.submenu-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 0px;
    background-color: #000000;
    z-index: -1;
    transition: height 0.25s ease-in-out, top 0.25s ease-in-out;
}

.submenu-item:hover > .submenu-link::before {
    top: 0px;
    height: 100%;
}

.submenu-item:hover > .submenu-link {
    color: #ffffff !important;
}

/* Carousel Görsel (Yükseklik 400px yapıldı) */
.carousel-inner img {
    height: 400px;
    object-fit: cover;
}

/* Mobil Menü ve Sağ Sepet Offcanvas */
@media (max-width: 991px) {
    .category-menu-wrapper {
        position: fixed;
        top: 0px;
        left: -300px;
        width: 280px;
        height: 100%;
        max-height: 100% !important;
        z-index: 1050;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    }
    .category-menu-wrapper.mobile-open {
        left: 0px;
    }

    .submenu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border-left: none !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: #dfefe1 !important;
    }
    .category-item.submenu-open > .submenu {
        display: block !important;
    }
    .submenu-link {
        padding-left: 25px;
    }
    #carouselCol {
        margin-top: 25px !important;
    }
}


/* Masaüstü ve Mobil Ana İçerik Boşlukları */
.main-content-container {
    max-width: 1320px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 10px !important;
}

@media (max-width: 991px) {
    .main-content-container {
        margin-top: -18px !important;
    }
}