.tsf-close:hover,
.tsf-step::after {
    background: #e5e7eb;
}
.tsf-grid,
.tsf-grid-pop {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.tsf-fade,
.tsf-step::after {
    content: "";
    left: 0;
    right: 0;
    bottom: 0;
}
.tsf-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    font:
        500 14px/1.35 system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial;
}
.tsf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.5);
}
.tsf-dialog,
.tsf-illu,
.tsf-modal[aria-hidden="false"],
.tsf-steps,
.tsf-top {
    display: flex;
}
.tsf-dialog {
    width: min(920px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    flex-direction: column;
}
.tsf-top {
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.tsf-title {
    font-weight: 900;
    font-size: 17px;
    color: #111827;
}
.tsf-close {
    border: 0;
    background: #f3f4f6;
    color: #111827;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
}
.tsf-steps {
    gap: 24px;
    padding: 12px 20px;
}
.tsf-step {
    font-weight: 700;
    color: #6b7280;
    position: relative;
    padding-bottom: 8px;
}
.tsf-step.active {
    color: #ff6a00;
}
.tsf-step::after {
    position: absolute;
    height: 3px;
    border-radius: 3px;
}
.tsf-step.active::after {
    background: #ff6a00;
}
.tsf-body {
    padding: 10px 20px 20px;
    overflow: auto;
}
.tsf-illu {
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 0 10px;
    color: #111827;
    text-align: center;
}
.tsf-illu .hint {
    font-weight: 800;
}
.tsf-grid {
    display: grid;
    gap: 12px;
}
.tsf-chip,
.tsf-page-loader .tsf-pl-card {
    display: flex;
    color: #111827;
    background: #fff;
}
.tsf-chip {
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition:
        box-shadow 0.15s,
        transform 40ms,
        border-color 0.15s;
}
.tsf-chip:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
}
.tsf-chip:active {
    transform: translateY(1px);
}
.tsf-chip.selected {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.tsf-page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(17, 24, 39, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: saturate(120%) blur(2px);
}
.tsf-page-loader .tsf-pl-card {
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    align-items: center;
    gap: 12px;
    font:
        600 15px/1.2 system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial;
}
.tsf-page-loader .tsf-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #ff6a00;
    animation: 0.9s linear infinite tsf-spin;
}
@keyframes tsf-spin {
    to {
        transform: rotate(360deg);
    }
}
.tsf-popular {
    background: #f6f7f9;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 14px 10px;
    margin: 8px 0 16px;
    display: none;
}
.tsf-popular-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
}
.tsf-popular-title {
    color: #111827;
    font-weight: 800;
}
.tsf-popular-toggle {
    border: 0;
    background: #ff6a00;
    color: #fff;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}
.tsf-grid-pop {
    display: grid;
    gap: 10px;
    position: relative;
    transition: max-height 0.25s;
}
.tsf-popular.collapsed .tsf-grid-pop {
    max-height: 120px;
    overflow: hidden;
}
.tsf-popular.collapsed .tsf-fade {
    opacity: 1;
}
.tsf-fade {
    position: absolute;
    height: 48px;
    background: linear-gradient(to bottom, rgba(246, 247, 249, 0), #f6f7f9);
    pointer-events: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    opacity: 0;
    transition: opacity 0.25s;
}
.tsf-chip.hot {
    background: #fff;
    border-color: #e5e7eb;
    border-width: 2px;
    font-weight: 900;
    box-shadow: none;
}
button.tsf-chip.hot {
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}
.cat-intro-shortcode {
    margin: 8px 0 14px;
    width: 100%;
}
.cat-intro-shortcode .tsf-card {
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 18px 16px !important;
}
.cat-intro-shortcode .tsf-card-hd {
    display: none !important;
}
.cat-intro-shortcode .tsf-open-btn {
    width: 100%;
    background-color: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 6px 24px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.25);
    cursor: pointer;
    transition:
        background-color 0.2s ease-in-out,
        transform 50ms ease-in-out;
    line-height: 1.1;
}
.cat-intro-shortcode .tsf-open-btn:hover {
    background-color: #e55e00;
    transform: translateY(-1px);
}
.cat-intro-shortcode .tsf-open-btn strong {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.2;
}
.cat-intro-shortcode .tsf-open-btn .tsf-subtext {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.1;
}
@media (max-width: 768px) {
    .cat-intro-shortcode .tsf-card {
        padding: 12px 14px;
    }
    .cat-intro-shortcode .tsf-open-btn {
        width: 100%;
        height: auto;
        padding: 16px;
    }
    .cat-intro-shortcode .tsf-open-btn strong {
        font-size: 18px;
    }
    .cat-intro-shortcode .tsf-open-btn .tsf-subtext {
        font-size: 13px;
    }
    .tsf-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }
    .tsf-chip {
        height: 34px;
        font-size: 12px;
        border-radius: 8px;
    }
}
@media (max-width: 520px) {
    .tsf-illu img {
        width: 120px;
    }
}
/* ===== Novi korak: izbor tipa guma ===== */
.tsf-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    padding: 20px 10px;
}

.tsf-chip.big {
    font-size: 18px;
    height: 64px;
    border-radius: 14px;
    font-weight: 800;
    background: #ff6a00;
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.25);
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.1s;
}

/* ===== Tip guma – početni ekran ===== */
.tsf-grid.grid-cat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px 10px;
}

.tsf-chip.big {
    background: #ff6a00;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    padding: 24px 0;
    border-radius: 14px;
    border: none;
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.25);
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.1s;
}

.tsf-chip.big:hover {
    background: #e55e00;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .tsf-grid.grid-cat {
        grid-template-columns: 1fr;
    }
    .tsf-chip.big {
        font-size: 16px;
        padding: 20px 0;
    }
	
	.tsf-chip.big:hover {
    background: #ff6a00;
    transform: unset;
}

}

/* Ukloni korake iz prvog prikaza */
.tsf-steps {
    display: none;
}
.tsf-filter-part.active .tsf-steps {
    display: flex;
}
.tsf-card{padding:14px;font-size:13px}
.tsf-card-title{font-size:15px}
.tsf-card-sub{font-size:12px}
.tsf-open-btn{height:40px}
.tsf-dialog{border-radius:14px}
.tsf-top{padding:12px 16px}
.tsf-title{font-size:17px}
.tsf-close{width:32px;height:32px;border-radius:8px}
.tsf-steps{gap:16px;padding:8px 16px}
.tsf-step{font-size:13px;padding-bottom:6px}
.tsf-step::after{height:2px}
.tsf-body{padding:8px 16px 14px}
.tsf-illu{gap:16px;padding:6px 0 8px}
.tsf-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
.tsf-chip{height:38px;border-radius:10px;font-size:13px;padding:0 6px}
.tsf-chip.selected{box-shadow:0 0 0 2px rgba(2,132,199,.15)}
.tsf-footer{padding:12px 16px}
.tsf-back{font-size:13px}
/* ===== Ilustracija – ujedinjeno ===== */
.tsf-illu img{width:150px;max-width:35vw;height:auto;display:block}
.cat-all-shortcode {width: 100%;}