/* ==========================================================================
   MEGA MENU ANA YAPI (Ürünler ve Blog Ortak)
   ========================================================================== */

/* Ana menü öğesi */
.pbmit-custom-megamenu-item {
    position: relative !important;
}

/* Mega Menü Genel Kutusu */
.navigation .pbmit-custom-megamenu {
    position: absolute;
    top: 100%;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--pbmit-global-color);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px 10px 10px 10px;
}

/* Hover durumunda görünürlük */
.pbmit-custom-megamenu-item:hover .pbmit-custom-megamenu {
    visibility: visible;
    opacity: 1;
}

/* Satır ve Sütun Düzeni */
.mega-row {
    display: flex;
    flex-wrap: wrap;
}

.mega-column {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

/* Linklerin Ortak Stili */
.mega-column li a {
    display: block !important;
    padding: 10px 15px 10px 0px !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    position: relative;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mega-column li a:hover {
    color: var(--pbmit-global-color) !important;
    padding-left: 15px !important;
}

/* ==========================================================================
   1. ÜRÜNLER MENÜSÜ (3 Kolonlu Yapı)
   ========================================================================== */

/* Blog olmayan mega menüleri (Ürünler) hedefle */
.pbmit-custom-megamenu-item:not(.blog-mega-item) .pbmit-custom-megamenu {
    width: 850px;
    left: 120%;
    transform: translateX(-50%) translateY(10px);
}

.pbmit-custom-megamenu-item:not(.blog-mega-item):hover .pbmit-custom-megamenu {
    transform: translateX(-50%) translateY(0);
}

/* Ürünler için 3'lü kolon düzeni */
.pbmit-custom-megamenu-item:not(.blog-mega-item) .mega-column li {
    flex: 0 0 33.333%; /* Tam 3 kolon */
    max-width: 33.333%;
}

/* ==========================================================================
   2. BLOG MENÜSÜ (Tek Sütun ve Daha Solda)
   ========================================================================== */

.blog-mega-item .pbmit-custom-megamenu {
    width: 600px !important; /* Blog için daha dar kutu */
    /* Başlangıç noktasını ayarla: */
    left: -410px !important; /* Kelimenin başlangıcına göre 50px daha sola çeker */
    transform: translateY(10px) !important; /* Sağa-sola kaydırmayı (translateX) sıfırladık */
}

.blog-mega-item:hover .pbmit-custom-megamenu {
    transform: translateY(0) !important;
}

/* Blog için tek sütun düzeni */
.blog-mega-item .mega-column li {
    flex: 0 0 100% !important; /* Alt alta sıralanır */
    width: 100%;
}

/* Eski dropdown listesini gizle */
.pbmit-custom-megamenu-item > ul {
    display: none !important;
}

/* Mobil cihazlarda mega menüyü devre dışı bırak (Temanızın mobil menüsü için) */
@media (max-width: 991px) {
    .pbmit-custom-megamenu {
        display: none !important;
    }
}



/* ==========================================================================
   MEGA MENU OK EFEKTİ VE SAĞA KAYMA (Hover)
   ========================================================================== */

/* Ok simgesi için pseudo-element hazırlığı (Tüm mega menüler için) */
.mega-column li a::before {
    content: "\e649"; /* Temanızın kullandığı ok ikonu kodu */
    font-family: 'themify'; /* Tema ikon ailesi */
    position: absolute;
    left: -15px; /* Başlangıçta gizli (solda) */
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover Durumu: Metnin sağa kayması (Ok için yer açar) */
.mega-column li a:hover {
    padding-left: 20px !important; /* Metni sağa iter */
}

/* Hover Durumu: Okun soldan içeri girmesi */
.mega-column li a:hover::before {
    left: 0; /* Oku içeri sokar */
    opacity: 1;
}