﻿.tp-cat {
    padding: 0 0 26px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    font-synthesis: none;
}

.tp-cat__bcWrap {
    background: #fff;
    border-top: 1px solid rgba(17,24,39,.08);
    border-bottom: 1px solid rgba(17,24,39,.08);
    padding: 10px 0;
}

.tp-cat__bc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px; 
    letter-spacing: .08em; 
    text-transform: uppercase;
    color: #6b7280;
    margin: 0;
}

.tp-cat__bcA {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600; 
}

    .tp-cat__bcA:hover {
        color: #111827;
    }

.tp-cat__bcSep {
    opacity: .45;
}

.tp-cat__bcHere {
    color: #111827;
    font-weight: 700; 
}

.tp-cat__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
}

.tp-cat__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-cat__ddWrap {
    position: relative;
}

.tp-cat__fbtn {
    height: 40px; 
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.14);
    background: #fff;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700; 
    font-size: 13px; 
    color: #111827;
    cursor: pointer;
    transition: box-shadow .14s ease, border-color .14s ease, transform .12s ease;
}

    .tp-cat__fbtn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(17,24,39,.10);
    }

    .tp-cat__fbtn.is-active {
        border-color: rgba(17,24,39,.85);
    }

    .tp-cat__fbtn.is-disabled {
        cursor: default;
        opacity: .6;
    }

.tp-cat__fbtnTxt {
    white-space: nowrap;
}

.tp-cat__fbtnIc {
    width: 16px;
    height: 16px;
    opacity: .7;
}

.tp-cat__fbtnDot {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.tp-cat__dd {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    max-width: 360px;
    background: #fff;
    border: 1px solid rgba(17,24,39,.10);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(17,24,39,.18);
    padding: 12px;
    z-index: 50;
    display: none;
}

.tp-cat__ddWrap.is-open .tp-cat__dd {
    display: block;
}

.tp-cat__ddHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17,24,39,.08);
    margin-bottom: 10px;
}

.tp-cat__ddTitle {
    font-weight: 700; 
    color: #111827;
    font-size: 12px; 
}

.tp-cat__opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    padding-right: 6px;
}

.tp-cat__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 6px 6px;
    border-radius: 10px;
    transition: background .12s ease;
}

    .tp-cat__opt:hover {
        background: rgba(17,24,39,.04);
    }

.tp-cat__chk {
    width: 16px;
    height: 16px;
    accent-color: #111827;
}

.tp-cat__sw {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.12);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.tp-cat__optTxt {
    font-size: 13px;
    color: #111827;
    font-weight: 400; 
}

.tp-cat__optCnt {
    margin-left: auto;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400; 
}

.tp-cat__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-cat__stock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700; 
    color: #111827;
    font-size: 13px;
    user-select: none;
}

    .tp-cat__stock input {
        width: 16px;
        height: 16px;
        accent-color: #111827;
    }

.tp-cat__sort {
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.14);
    background: #fff;
    padding: 0 14px;
    font-weight: 700; 
    font-size: 13px;
    color: #111827;
    cursor: pointer;
}

.tp-cat__list {
    padding-top: 6px;
}

.tp-cat__empty {
    border: 1px dashed rgba(17,24,39,.18);
    border-radius: 14px;
    background: rgba(17,24,39,.02);
    padding: 26px 16px;
    text-align: center;
}

.tp-cat__emptyT {
    font-weight: 700; 
    color: #111827;
    font-size: 15px; 
}

.tp-cat__emptyD {
    margin-top: 6px;
    color: #6b7280;
    font-weight: 400; 
    font-size: 13px;
}

.tp-cat__emptyBtn {
    display: inline-flex;
    margin-top: 12px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-weight: 700; 
}

.tp-cat__pg {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tp-cat__pgBtn,
.tp-cat__pgNo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.12);
    background: #fff;
    color: #111827;
    text-decoration: none;
    display: grid;
    place-items: center;
    font-weight: 700; 
    transition: transform .12s ease, box-shadow .14s ease;
}

    .tp-cat__pgBtn:hover,
    .tp-cat__pgNo:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(17,24,39,.10);
    }

    .tp-cat__pgNo.is-active {
        background: #111827;
        border-color: #111827;
        color: #fff;
    }

    .tp-cat__pgBtn.is-disabled {
        opacity: .4;
        pointer-events: none;
    }

@media (max-width: 920px) {
    .tp-cat__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-cat__right {
        justify-content: space-between;
    }

    .tp-cat__dd {
        left: 0;
        right: 0;
        min-width: unset;
        max-width: unset;
        width: min(420px, calc(100vw - 28px));
    }
}
