@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; 
}

/* 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: 999;
    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*/
/* Logo Kapsayıcısı (Genel Merkezleme) */
.brand-logo-wrapper {
    position: absolute;
    left: 47%;
    transform: translateX(-50%);
    display: inline-block;
    line-height: 0;
    z-index: 1;
}

/* MASAÜSTÜ LOGO BOYUTU (992px ve üzeri ekranlar) */
.brand-logo-img {
    width: auto !important;
    height: auto !important;
    max-height: 70px !important; /* Masaüstü için dilediğin yükseklik (Örn: 70px) */
    object-fit: contain !important;
}

/* MOBİL LOGO BOYUTU VE AYARLARI (991px ve altı ekranlar) */
@media (max-width: 991px) {
    .brand-logo-img {
        max-height: 70px !important; /* Mobil için dilediğin yükseklik (Örn: 52px) */
         left: 50%;		
    }
}
/* ==========================================================================
   KÜÇÜK TELEFONLAR İÇİN ÖZEL STİLLER (576px ve altı çok küçük ekranlar)
   ========================================================================== */
@media (max-width: 576px) {
    .brand-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .brand-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) {
    .brand-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .brand-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) {
    .brand-logo-wrapper {
        /* Ekran çok küçüldüğünde gerekirse yatay konumu (left) buradan değiştirebilirsin */
        left: 46% !important; 
    }

    .brand-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 */
    }
}
/* 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%;
}

/* SOLDAN AÇILAN KATEGORİ MENÜSÜ PANELİ */
.category-menu-wrapper {
    position: fixed !important;
    top: 0px !important;
    left: -320px !important;
    width: 300px !important;
    height: 100% !important;
    max-height: 100% !important;
    z-index: 1050 !important;
    background-color: #ffffff;
    box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.category-menu-wrapper.mobile-open {
    left: 0px !important;
}

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

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

/* Ana Kategori Linki ve Siyah Efekt */
.category-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 23px 15px;
    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;
}

/* Alt Kategori Menüsü (Masaüstünde JS ile konumlanır, mobilde akordeon olur) */
.submenu {
    position: fixed;
    width: 280px;
    background-color: #dfefe1;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0px;
    margin: 0px;
    z-index: 1060;
    border-left: 1px solid #cbe3cf;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

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

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

.submenu-link {
    position: relative;
    display: block;
    padding: 18px 15px; /* Ana kategorilerle dikeyde uyumlu olması için padding artırıldı */
    color: #000000;
    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;
}

/* Mobil görünümde alt menüyü akordeon yapısına çevirme */
@media (max-width: 991px) {
    .submenu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border-left: none !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .category-item.submenu-open > .submenu {
        display: block !important;
    }
}

