/* ═══════════════════════════════════════════════════════════════
   Trendyol Mega Menu — Premium CSS
   Glassmorphism, smooth transitions, multi-column grid
   ═══════════════════════════════════════════════════════════════ */

/* ─── WRAPPER ─── */
.tycat-mega-wrapper {
    position: relative;
    background: #fff;
    border-bottom: 2px solid #f27a1a;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tycat-mega-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tycat-mega-nav::-webkit-scrollbar {
    display: none;
}

/* ─── NAV ITEMS ─── */
.tycat-mega-item {
    position: relative;
    white-space: nowrap;
}

.tycat-mega-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.tycat-mega-link:hover,
.tycat-mega-link:focus {
    color: #f27a1a;
    border-bottom-color: #f27a1a;
    text-decoration: none;
}

.tycat-mega-link i {
    font-size: 15px;
}

/* ─── KATEGORİLER BUTONU ─── */
.tycat-kategoriler-link {
    background: linear-gradient(135deg, #f27a1a 0%, #e5650d 100%);
    color: #fff !important;
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent !important;
    font-weight: 600;
    padding: 12px 20px;
}

.tycat-kategoriler-link:hover {
    background: linear-gradient(135deg, #e5650d 0%, #d35a0a 100%);
    color: #fff !important;
}

/* ─── MEGA DROPDOWN ─── */
.tycat-mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 900px;
    max-width: 1100px;
    background: #fff;
    border-radius: 0 12px 12px 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    animation: tycat-slideDown 0.2s ease-out;
    overflow: hidden;
}

.tycat-kategoriler-btn:hover .tycat-mega-dropdown,
.tycat-kategoriler-btn.active .tycat-mega-dropdown {
    display: block;
}

@keyframes tycat-slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── INNER LAYOUT ─── */
.tycat-mega-inner {
    display: flex;
    min-height: 420px;
    max-height: 70vh;
}

/* ─── SOL PANEL — ANA KATEGORİLER ─── */
.tycat-mega-left {
    width: 240px;
    min-width: 240px;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.tycat-mega-left::-webkit-scrollbar {
    width: 4px;
}

.tycat-mega-left::-webkit-scrollbar-track {
    background: transparent;
}

.tycat-mega-left::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.tycat-mega-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px 11px 20px;
    color: #444;
    font-size: 13.5px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    gap: 8px;
}

.tycat-mega-sub-link i:first-child {
    font-size: 16px;
    color: #888;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.tycat-mega-sub-link:hover,
.tycat-mega-sub-link.active {
    background: #fff;
    color: #f27a1a;
    border-left-color: #f27a1a;
    text-decoration: none;
    font-weight: 500;
}

.tycat-mega-sub-link:hover i:first-child,
.tycat-mega-sub-link.active i:first-child {
    color: #f27a1a;
}

.tycat-mega-arrow {
    font-size: 10px !important;
    color: #ccc !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
    width: auto !important;
}

.tycat-mega-sub-link:hover .tycat-mega-arrow,
.tycat-mega-sub-link.active .tycat-mega-arrow {
    color: #f27a1a !important;
    transform: translateX(2px);
}

/* ─── SAĞ PANEL — ALT KATEGORİLER ─── */
.tycat-mega-right {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #eee transparent;
}

.tycat-mega-right::-webkit-scrollbar {
    width: 4px;
}

.tycat-mega-right::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 4px;
}

.tycat-mega-panel {
    display: none;
    padding: 20px 24px;
    animation: tycat-fadeIn 0.2s ease;
}

.tycat-mega-panel.active {
    display: block;
}

@keyframes tycat-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── MULTI-COLUMN GRİD ─── */
.tycat-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 20px;
}

.tycat-mega-group {
    margin-bottom: 4px;
}

.tycat-mega-group-title {
    display: block;
    color: #222;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tycat-mega-group-title:hover {
    color: #f27a1a;
    text-decoration: none;
}

.tycat-mega-child-link {
    display: block;
    color: #666;
    font-size: 12.5px;
    font-weight: 400;
    padding: 3px 0;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.tycat-mega-child-link:hover {
    color: #f27a1a;
    padding-left: 4px;
    text-decoration: none;
}

/* ─── HIDDEN CHILDREN / TOGGLE ─── */
.tycat-mega-hidden-child {
    display: none;
}

.tycat-mega-group.expanded .tycat-mega-hidden-child {
    display: block;
}

.tycat-mega-more-link {
    display: inline-block;
    color: #f27a1a;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.tycat-mega-more-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ─── EMPTY STATE ─── */
.tycat-mega-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px;
}

.tycat-mega-empty .tycat-mega-group-title {
    border-bottom: none;
    color: #888;
    font-size: 14px;
}

/* ─── DIRECT LINKS (üst bar) ─── */
.tycat-direct-link .tycat-mega-link {
    padding: 12px 12px;
    font-size: 13px;
    font-weight: 400;
}

.tycat-direct-link .tycat-mega-link:hover {
    color: #f27a1a;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBİL
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .tycat-mega-wrapper {
        display: none;
    }

    /* Mobil Drawer */
    .tycat-mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        animation: tycat-fadeOverlay 0.25s ease;
    }

    .tycat-mobile-overlay.active {
        display: block;
    }

    @keyframes tycat-fadeOverlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .tycat-mobile-drawer {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100%;
        background: #fff;
        z-index: 99999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        animation: tycat-slideRight 0.25s ease;
        -webkit-overflow-scrolling: touch;
    }

    .tycat-mobile-drawer.active {
        display: block;
    }

    @keyframes tycat-slideRight {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .tycat-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: linear-gradient(135deg, #f27a1a 0%, #e5650d 100%);
        color: #fff;
        font-weight: 600;
        font-size: 16px;
    }

    .tycat-mobile-close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        border: none;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .tycat-mobile-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .tycat-mobile-back {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 20px;
        background: #f8f8f8;
        color: #555;
        font-size: 13px;
        font-weight: 500;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .tycat-mobile-back:hover {
        background: #f0f0f0;
        text-decoration: none;
    }

    .tycat-mobile-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tycat-mobile-list li {
        border-bottom: 1px solid #f5f5f5;
    }

    .tycat-mobile-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        color: #333;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.15s ease;
    }

    .tycat-mobile-list a:hover,
    .tycat-mobile-list a:active {
        background: #fef5ed;
        color: #f27a1a;
        text-decoration: none;
    }

    .tycat-mobile-list a i {
        font-size: 12px;
        color: #ccc;
    }

    .tycat-mobile-list a:hover i {
        color: #f27a1a;
    }

    /* Mobil menü butonu */
    .tycat-mobile-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: linear-gradient(135deg, #f27a1a 0%, #e5650d 100%);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.15s ease;
    }

    .tycat-mobile-trigger:hover {
        opacity: 0.9;
    }
}

@media (min-width: 993px) {
    .tycat-mobile-overlay,
    .tycat-mobile-drawer,
    .tycat-mobile-trigger {
        display: none !important;
    }
}

/* ─── BREADCRUMB ─── */
.tycat-breadcrumb {
    padding: 12px 0;
}

.tycat-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.tycat-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.tycat-breadcrumb-item a {
    color: #555;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tycat-breadcrumb-item a:hover {
    color: #f27a1a;
}

.tycat-breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.tycat-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
    font-size: 12px;
}

/* ─── LOADING SPINNER ─── */
.tycat-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top-color: #f27a1a;
    border-radius: 50%;
    animation: tycat-spin 0.6s linear infinite;
}

@keyframes tycat-spin {
    to { transform: rotate(360deg); }
}
