.category-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.templates-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary-blue);
    background: var(--white);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: var(--text-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: var(--text-dark);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(168, 216, 234, 0.3);
}

.templates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.template-card {
    width: 350px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    cursor: pointer;
    border: 1px solid rgba(168, 216, 234, 0.3);
    flex-shrink: 0;
}

.template-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-pink);
}

.template-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.template-card:hover .template-preview {
    transform: scale(1.05);
}

.template-emoji {
    font-size: 5rem;
    transform: scale(1);
    transition: transform 0.5s;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.template-card:hover .template-emoji {
    transform: scale(1.2) rotate(5deg);
}

.template-info {
    padding: 1.5rem;
    text-align: center;
}

.template-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.template-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    height: 60px;
    overflow: hidden;
}

.template-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(168, 216, 234, 0.5);
}

.template-price {
    font-weight: 600;
    color: var(--primary-blue-dark);
}

.template-uses {
    color: var(--text-light);
    font-size: 0.85rem;
}

.template-btn {
    width: 100%;
    margin-top: 0.5rem;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    padding: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
}

.template-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: var(--text-dark);
    border-color: transparent;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .templates-grid {
        gap: 1rem;
    }
    
    .template-card {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .template-card {
        width: 280px;
    }
}