.template-page {
    color: #101827;
}

.template-page #templates-section,
.template-page #template-grid {
    scroll-margin-top: 90px;
}

.template-kicker {
    border-radius: 4px !important;
}

.template-type-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 36px;
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    overflow: hidden;
    background: #dbe1e8;
}

.template-type-guide button {
    min-height: 96px;
    display: grid;
    grid-template-columns: 38px 1fr 18px;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 0;
    background: #fff;
    color: #101827;
    text-align: left;
    cursor: pointer;
}

.template-type-guide button:hover,
.template-type-guide button:focus-visible {
    background: #fff7ed;
    outline: none;
}

.template-type-guide button > i:first-child {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #ffedd5;
    color: #f45d0b;
    font-size: 19px;
}

.template-type-guide strong,
.template-type-guide small {
    display: block;
}

.template-type-guide strong {
    font-size: 13px;
}

.template-type-guide small {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.filter-btn {
    border-radius: 4px !important;
    letter-spacing: 0 !important;
}

.template-card {
    border-radius: 8px !important;
}

.template-card img {
    filter: saturate(0.85) contrast(1.02);
}

.template-card:hover img {
    filter: saturate(1) contrast(1);
}

.template-price {
    flex: 0 0 auto;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

.template-fit {
    padding: 13px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.template-fit > span {
    color: #f45d0b;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.template-fit p {
    margin: 5px 0 3px;
    color: #1e293b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
}

.template-fit small {
    color: #64748b;
    font-size: 10px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .template-type-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .template-page > section {
        padding-top: 70px;
    }

    .template-type-guide {
        grid-template-columns: 1fr;
    }

    .template-type-guide button {
        min-height: 82px;
    }
}
