.net5s-tf {
    --net5s-tf-accent: #f47b20;
    --net5s-tf-text: #1f2937;
    --net5s-tf-muted: #6b7280;
    --net5s-tf-border: #e5e7eb;
    --net5s-tf-bg: #ffffff;
    --net5s-tf-soft: #f8fafc;
    --net5s-tf-radius: 16px;
    width: 100%;
    position: relative;
}

.net5s-tf * {
    box-sizing: border-box;
}

.net5s-tf-search-wrap {
    margin-bottom: 20px;
}

.net5s-tf-search-box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.net5s-tf-search-input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--net5s-tf-border);
    border-radius: 14px;
    background: #fff;
    color: var(--net5s-tf-text);
    font-size: 16px;
    padding: 0 48px 0 50px;
    outline: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.net5s-tf-search-input:focus {
    border-color: var(--net5s-tf-accent);
    box-shadow: 0 0 0 4px rgba(244, 123, 32, .10), 0 8px 24px rgba(15, 23, 42, .06);
}

.net5s-tf-search-input::placeholder {
    color: #9ca3af;
}

.net5s-tf-search-icon {
    width: 22px;
    height: 22px;
    fill: #9ca3af;
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.net5s-tf-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.net5s-tf-clear:hover {
    background: #f3f4f6;
    color: #111827;
}

.net5s-tf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.net5s-tf-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--net5s-tf-text);
}

.net5s-tf-status {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--net5s-tf-muted);
    text-align: center;
}

.net5s-tf-grid {
    display: grid;
    grid-template-columns: repeat(var(--net5s-tf-columns), minmax(0, 1fr));
    gap: 22px;
    transition: opacity .2s ease;
}

.net5s-tf.is-loading .net5s-tf-grid,
.net5s-tf.is-loading .net5s-tf-pagination {
    opacity: .45;
    pointer-events: none;
}

.net5s-tf.is-loading::after {
    content: "";
    position: absolute;
    top: 125px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid rgba(244, 123, 32, .22);
    border-top-color: var(--net5s-tf-accent);
    border-radius: 50%;
    animation: net5s-tf-spin .75s linear infinite;
    z-index: 5;
}

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

.net5s-tf-card {
    overflow: hidden;
    border: 1px solid var(--net5s-tf-border);
    border-radius: var(--net5s-tf-radius);
    background: var(--net5s-tf-bg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.net5s-tf-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 123, 32, .35);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .10);
}

.net5s-tf-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--net5s-tf-soft);
}

.net5s-tf-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
    transition: transform .35s ease;
}

.net5s-tf-card:hover .net5s-tf-thumb img {
    transform: scale(1.025);
}

.net5s-tf-card-body {
    padding: 18px;
}

.net5s-tf-title {
    margin: 0 0 10px;
    min-height: 48px;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 700;
}

.net5s-tf-title a {
    color: var(--net5s-tf-text);
    text-decoration: none;
}

.net5s-tf-title a:hover {
    color: var(--net5s-tf-accent);
}

.net5s-tf-price {
    min-height: 28px;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 700;
    color: var(--net5s-tf-accent);
}

.net5s-tf-price del {
    color: #9ca3af;
    opacity: 1;
    font-size: 14px;
    font-weight: 500;
}

.net5s-tf-price ins {
    text-decoration: none;
}

.net5s-tf-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.net5s-tf-actions > :only-child {
    grid-column: 1 / -1;
}

.net5s-tf-btn {
    min-height: 42px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.net5s-tf-btn:hover {
    transform: translateY(-1px);
}

.net5s-tf-btn-primary {
    background: var(--net5s-tf-accent);
    border: 1px solid var(--net5s-tf-accent);
    color: #fff !important;
}

.net5s-tf-btn-primary:hover {
    filter: brightness(.96);
}

.net5s-tf-btn-secondary {
    background: #fff;
    border: 1px solid var(--net5s-tf-border);
    color: var(--net5s-tf-text) !important;
}

.net5s-tf-btn-secondary:hover {
    border-color: var(--net5s-tf-accent);
    color: var(--net5s-tf-accent) !important;
}

.net5s-tf-pagination {
    margin-top: 28px;
}

.net5s-tf-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.net5s-tf-page {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--net5s-tf-border);
    border-radius: 9px;
    background: #fff;
    color: var(--net5s-tf-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.net5s-tf-page:hover,
.net5s-tf-page.is-active {
    border-color: var(--net5s-tf-accent);
    background: var(--net5s-tf-accent);
    color: #fff;
}

.net5s-tf-dots {
    padding: 0 3px;
    color: #9ca3af;
}

.net5s-tf-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    border: 1px dashed var(--net5s-tf-border);
    border-radius: var(--net5s-tf-radius);
    background: var(--net5s-tf-soft);
    color: var(--net5s-tf-muted);
    text-align: center;
}

.net5s-tf-empty strong,
.net5s-tf-empty span {
    display: block;
}

.net5s-tf-empty strong {
    margin-bottom: 6px;
    color: var(--net5s-tf-text);
    font-size: 18px;
}

.net5s-tf-notice {
    padding: 15px;
    border-left: 4px solid var(--net5s-tf-accent, #f47b20);
    background: #fff7ed;
}

@media (max-width: 1024px) {
    .net5s-tf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 849px) {
    .net5s-tf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 549px) {
    .net5s-tf-search-input {
        height: 52px;
        font-size: 15px;
    }

    .net5s-tf-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .net5s-tf-card-body {
        padding: 15px;
    }

    .net5s-tf-title {
        min-height: 0;
    }
}
