﻿.tp-topcats {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 18px;
    overflow: visible;
}

.tp-topcats__center {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.tp-topcats__side {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    align-content: center;
}

.tp-topcats__side--left {
    justify-content: flex-end;
}

.tp-topcats__side--right {
    justify-content: flex-start;
}

.tp-topcats__link {
    width: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #0f172a;
    font-family: var(--tp-font-display), var(--tp-font-body), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .74;
    padding: 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .tp-topcats__link::after {
        content: "";
        position: absolute;
        left: 4px;
        right: 4px;
        bottom: 4px;
        height: 1px;
        border-radius: 999px;
        background: rgba(15,23,42,.18);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .14s ease, background .14s ease, opacity .14s ease;
        opacity: .9;
    }

    .tp-topcats__link:hover {
        opacity: 1;
    }

        .tp-topcats__link:hover::after {
            transform: scaleX(1);
            background: rgba(15,23,42,.35);
        }

.tp-logo {
    text-decoration: none;
    justify-self: start;
    min-width: 0;
    align-self: center;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden;
}

.tp-logo__img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tp-logo__text {
    font-family: var(--tp-font-display), var(--tp-font-body), system-ui, sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    color: #0f172a;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-mega__item {
    position: relative;
    min-width: 0;
}

.tp-mega__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 260px;
    max-width: min(980px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(15,23,42,.12);
    padding: 16px;
    display: none;
    z-index: 90;
}

.tp-mega__item:hover .tp-mega__panel,
.tp-mega__item:focus-within .tp-mega__panel,
.tp-mega__item.is-open .tp-mega__panel {
    display: block;
}

.tp-mega__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    gap: 14px;
}

.tp-mega__a {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    color: #0f172a;
    font-family: var(--tp-font-body), system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    opacity: .78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .12s ease;
}

.tp-mega__coltitle {
    display: block;
    font-family: var(--tp-font-display), var(--tp-font-body), system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .02em;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .92;
}

.tp-mega__list,
.tp-mega__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-mega__li {
    margin: 6px 0;
}

.tp-mega__a {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    color: #0f172a;
    font-family: var(--tp-font-body), system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    */ opacity: .78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .12s ease;
}

    .tp-mega__a:hover {
        opacity: 1;
    }

.tp-mega__sublist {
    margin-top: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(15,23,42,.10);
}

.tp-mega__subli {
    margin: 5px 0;
}

.tp-mega__suba {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    color: #64748b;
    font-family: var(--tp-font-body), system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .12s ease, opacity .12s ease;
    opacity: .92;
}

    .tp-mega__suba:hover {
        color: #0f172a;
        opacity: 1;
    }

@media (max-width: 1100px) {
    .tp-logo__text {
        font-size: 30px;
    }

    .tp-topcats__side {
        gap: 12px 18px;
    }

    .tp-topcats__link {
        font-size: 10.5px;
    }
}

@media (max-width: 900px) {
    .tp-mega__panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .tp-logo__text {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .tp-topcats__side {
        display: none;
    }

    .tp-topcats__center {
        display: none;
    }

    .tp-logo {
        max-width: 100%;
        overflow: hidden;
    }

    .tp-logo__img {
        height: auto;
        max-height: 22px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .tp-logo__text {
        font-size: clamp(16px, 5vw, 19px);
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



.tp-mcats {
    position: fixed;
    inset: 0;
    z-index: 10050; 
    display: none;
}

    .tp-mcats.is-open {
        display: block;
    }

.tp-mcats__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.68) 100%);
    backdrop-filter: blur(2px);
}

.tp-mcats__panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tp-mnav-h, 74px) + 14px + env(safe-area-inset-bottom));
    max-height: min(72vh, 660px);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 30px 90px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.18);
    display: grid;
    grid-template-rows: auto 1fr;
}

    .tp-mcats__panel::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 52px;
        height: 5px;
        border-radius: 999px;
        background: rgba(15,23,42,.14);
    }

.tp-mcats__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 16px 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 100%);
}

.tp-mcats__title {
    font-family: var(--tp-font-display), var(--tp-font-body), var(--tp-font-fallback);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.tp-mcats__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15,23,42,.10);
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}

    .tp-mcats__close:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.95);
        box-shadow: 0 14px 26px rgba(15,23,42,.14);
    }

.tp-mcats__body {
    padding: 12px 12px 14px 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tp-mcats__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 18px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.7);
    text-decoration: none;
    color: #0f172a;
    font-family: var(--tp-font-display), var(--tp-font-body), var(--tp-font-fallback);
    font-weight: 650;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

    .tp-mcats__item::after {
        content: "›";
        font-size: 18px;
        opacity: .55;
        transform: translateY(-1px);
    }

    .tp-mcats__item:hover {
        transform: translateY(-1px);
        border-color: rgba(15,23,42,.18);
        box-shadow: 0 14px 26px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.75);
    }

    .tp-mcats__item:active {
        transform: translateY(1px);
    }

.tp-mcats.is-open .tp-mcats__backdrop {
    animation: tpMcatsFade .18s ease both;
}

.tp-mcats.is-open .tp-mcats__panel {
    animation: tpMcatsUp .22s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes tpMcatsFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tpMcatsUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 641px) {
    .tp-mcats {
        display: none !important;
    }
}

html.tp-mcats-open,
body.tp-mcats-open {
    overflow: hidden !important;
}
