/**
 * Product Archive Template Styles
 * Styling für Produkt-Übersichtsseite
 */

/* Archive Header */
.smg-archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.smg-archive-header .smg-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.smg-archive-header .smg-breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.smg-archive-header .smg-breadcrumbs a:hover {
    opacity: 0.8;
}

.smg-archive-header .separator {
    margin: 0 8px;
    opacity: 0.7;
}

.smg-archive-header .smg-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.smg-archive-header .smg-page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.smg-archive-filters {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.smg-filter-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.smg-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smg-filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
}

.smg-filter-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #2c3e50;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.smg-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.smg-view-toggle {
    margin-left: auto;
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
    overflow: hidden;
}

.smg-view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.smg-view-btn.active,
.smg-view-btn:hover {
    background: #667eea;
    color: white;
}

/* Archive Content */
.smg-archive-content {
    padding: 60px 0;
}

/* Products Grid */
.smg-products-grid {
    margin-bottom: 60px;
}

.smg-products-grid.smg-grid-view-active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.smg-products-grid.smg-list-view-active {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Product Card Styles */
.smg-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.smg-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.smg-grid-view-active .smg-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.smg-list-view-active .smg-product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Featured Badge */
.smg-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Product Image */
.smg-product-image {
    position: relative;
    overflow: hidden;
}

.smg-grid-view-active .smg-product-image {
    height: 200px;
}

.smg-list-view-active .smg-product-image {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
}

.smg-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smg-product-card:hover .smg-product-image img {
    transform: scale(1.05);
}

.smg-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

/* Quick Actions */
.smg-quick-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.smg-product-card:hover .smg-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.smg-quick-action {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.smg-quick-action:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* Product Content */
.smg-product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.smg-list-view-active .smg-product-content {
    padding: 30px;
}

/* Product Categories */
.smg-product-categories {
    margin-bottom: 12px;
}

.smg-category-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* Product Title */
.smg-product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.smg-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.smg-product-title a:hover {
    color: #667eea;
}

/* Product Excerpt */
.smg-product-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.6;
}

.smg-product-excerpt p {
    margin: 0;
}

/* Features Teaser */
.smg-features-teaser {
    margin-bottom: 15px;
}

.smg-features-teaser ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smg-grid-view-active .smg-features-teaser ul {
    display: none; /* Hidden in grid view to save space */
}

.smg-features-teaser li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.smg-features-teaser li i {
    color: #667eea;
    font-size: 0.8rem;
    width: 12px;
}

/* Product Meta */
.smg-product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.smg-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.smg-meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}

/* Product Actions */
.smg-product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.smg-grid-view-active .smg-product-actions {
    flex-direction: column;
}

.smg-list-view-active .smg-product-actions {
    flex-direction: row;
    align-items: center;
}

.smg-product-actions .smg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.smg-product-actions .smg-btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.smg-product-actions .smg-btn-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
}

.smg-product-actions .smg-btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.smg-product-actions .smg-btn-outline:hover {
    background: #667eea;
    color: white;
}

.smg-grid-view-active .smg-product-actions .smg-btn {
    width: 100%;
}

/* Pagination */
.smg-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.smg-pagination .nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.smg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    text-decoration: none;
    color: #667eea;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.smg-pagination .page-numbers:hover,
.smg-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.smg-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #adb5bd;
}

/* No Results */
.smg-no-results {
    text-align: center;
    padding: 80px 20px;
}

.smg-no-results-content i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.smg-no-results-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.smg-no-results-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.smg-no-results-content .smg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.smg-no-results-content .smg-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* CTA Section */
.smg-archive-cta {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.smg-cta-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.smg-cta-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.smg-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.smg-cta-buttons .smg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.smg-cta-buttons .smg-btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.smg-cta-buttons .smg-btn-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
}

.smg-cta-buttons .smg-btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.smg-cta-buttons .smg-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .smg-products-grid.smg-grid-view-active {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .smg-filter-controls {
        gap: 20px;
    }
    
    .smg-view-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .smg-archive-header {
        padding: 40px 0;
    }
    
    .smg-archive-header .smg-page-title {
        font-size: 2rem;
    }
    
    .smg-filter-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .smg-filter-group {
        width: 100%;
    }
    
    .smg-filter-select {
        flex: 1;
        min-width: auto;
    }
    
    .smg-view-toggle {
        align-self: center;
        margin: 0;
    }
    
    .smg-products-grid.smg-grid-view-active {
        grid-template-columns: 1fr;
    }
    
    .smg-products-grid.smg-list-view-active .smg-product-card {
        flex-direction: column;
    }
    
    .smg-list-view-active .smg-product-image {
        width: 100%;
        height: 200px;
    }
    
    .smg-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .smg-cta-buttons .smg-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .smg-archive-filters {
        position: static;
    }
    
    .smg-product-actions {
        flex-direction: column !important;
    }
    
    .smg-product-actions .smg-btn {
        width: 100% !important;
    }
    
    .smg-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
} 