/* Template-specific CSS for product-templates-overview */

/* Templates Header and Filters */
.product-templates-page .templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.product-templates-page .templates-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.product-templates-page .templates-count {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-templates-page .template-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Filter Groups */
.product-templates-page .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-templates-page .filter-group-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-right: 12px;
    white-space: nowrap;
}

.product-templates-page .category-filters {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
}

.product-templates-page .property-filters {
    /* No additional styling needed */
}

/* All Templates button gets special treatment */
.product-templates-page .filter-btn[data-filter="all"] {
    align-self: flex-start;
    margin-bottom: 10px;
}

.product-templates-page .filter-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-templates-page .filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9ff;
}

.product-templates-page .filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.product-templates-page .filter-btn .filter-text {
    display: inline-block;
}

/* Template Grid Animations */
.product-templates-page .template-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.product-templates-page .template-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .product-templates-page .templates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-templates-page .template-filters {
        padding: 15px;
        gap: 15px;
    }

    .product-templates-page .filter-group {
        gap: 10px;
    }

    .product-templates-page .filter-group-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .product-templates-page .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}