/* =====================
   MEGA MENÜ - 3 KOLON
   ===================== */

.mega-dropdown {
    position: static !important;
}

.mega-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 112px !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    border-top: 3px solid #d0000e !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 360px;
}

/* ── SOL KOLON ── */
.mega-categories {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    width: 240px;
    min-width: 240px;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.mega-category-item {
    cursor: pointer;
}

.mega-category-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.mega-category-item:hover > a,
.mega-category-item.active > a,
.mega-category-item.hovered > a {
    background: #fff;
    color: #d0000e !important;
    border-left-color: #d0000e;
}

.mega-category-item > a i.fas:first-child {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    flex-shrink: 0;
    transition: color 0.15s;
}

.mega-category-item:hover > a i.fas:first-child,
.mega-category-item.active > a i.fas:first-child,
.mega-category-item.hovered > a i.fas:first-child {
    color: #d0000e;
}

.mega-category-item > a span { flex: 1; }
.mega-category-item > a .arrow { font-size: 9px; color: #ccc; }

/* ── ORTA KOLON ── */
.mega-panels {
    flex: 1;
    position: relative;
}

.mega-panel {
    display: none;
    height: 100%;
}

.mega-panel.active {
    display: block;
}

.mega-panel-links {
    padding: 24px 28px;
    height: 100%;
}

.mega-panel-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #d0000e;
}

.mega-panel-title a {
    color: #d0000e !important;
    text-decoration: none !important;
}

.mega-child-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-child-list li {
    margin-bottom: 2px;
}

.mega-child-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.mega-child-link:hover {
    background: #fff5f5;
    color: #d0000e !important;
    border-left-color: #d0000e;
    padding-left: 14px;
}

.mega-child-link i {
    font-size: 10px;
    color: #ccc;
    flex-shrink: 0;
    transition: color 0.15s;
}

.mega-child-link:hover i {
    color: #d0000e;
}

/* ── SAĞ KOLON: Dinamik görsel ── */
.mega-image-panel {
    width: 280px;
    min-width: 280px;
    background: #f8f8f8;
    border-left: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.mega-image-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.mega-image-main {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.mega-image-main.changing {
    opacity: 0;
}

.mega-image-link:hover .mega-image-main {
    transform: scale(1.03);
}

.mega-image-label {
    display: block;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #fff;
    width: 100%;
    border-top: 1px solid #f0f0f0;
    transition: color 0.15s;
}

.mega-image-link:hover .mega-image-label {
    color: #d0000e;
}

.mega-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    color: #ddd;
    font-size: 48px;
}

/* MOBİL */
@media (max-width: 1199px) {
    .mega-menu {
        position: relative !important;
        top: auto !important;
        box-shadow: none !important;
        border-top: none !important;
        min-height: unset;
    }

    .mega-menu-inner {
        flex-direction: column;
        min-height: unset;
    }

    .mega-categories {
        width: 100%;
        min-width: unset;
        border-right: none;
        padding: 0;
    }

    .mega-category-item > a { white-space: normal; }

    .mega-panels { width: 100%; }

    .mega-panel-links { padding: 16px; }

    .mega-image-panel {
        width: 100%;
        min-width: unset;
        height: 200px;
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }

    .mega-image-main { height: 200px; }
}
