/*
 * CSS para Archive Products - Design Ecommerce
 * Psychologist Therapy Theme
 */

/* Container da loja */
.products-archive-content {
    background: #fff;
}

/* Cabeçalho da loja */
.store-header {
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.store-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
}

.store-description {
    font-size: 1.1rem;
    color: #6c757d !important;
    max-width: 800px;
    margin: 0 auto;
}

/* Filtros de categoria */
.product-categories-filter h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.category-filter {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.category-filter.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Grade de produtos */
.products-grid {
    min-height: 400px;
}

/* Cards de produto */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-color: #007bff;
}

/* Imagem do produto */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

/* Badges de categoria */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlay com ações */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 10px;
}

.overlay-actions .btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.overlay-actions .btn:hover {
    transform: scale(1.1);
}

/* Placeholder de imagem */
.product-no-image {
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Conteúdo do produto */
.product-content {
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007bff;
}

.product-excerpt {
    line-height: 1.5;
    overflow: hidden;
}

/* Preços */
.product-pricing {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.current-price {
    font-family: 'Arial', sans-serif;
}

.price-consult {
    font-size: 0.95rem;
}

/* Breve descrição */
.product-brief-description {
    min-height: 50px;
    display: flex;
    align-items: center;
}

.product-brief-description p {
    line-height: 1.4;
    color: #6c757d !important;
    font-size: 0.85rem;
    margin: 0 !important;
}

/* Ações do produto */
.product-actions .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.product-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.product-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Footer do card */
.product-card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.product-features {
    font-size: 0.8rem;
}

.product-features i {
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Estatísticas */
.products-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estado vazio */
.empty-state {
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.empty-state i {
    color: #007bff !important;
}

/* Paginação */
.products-pagination {
    text-align: center;
}

.pagination-custom .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-custom .page-numbers:hover,
.pagination-custom .page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Call to Action */
.store-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none;
}

.store-cta h3 {
    font-weight: 600;
}

.store-cta .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .store-header {
        padding: 2rem !important;
    }
    
    .store-title {
        font-size: 2rem;
    }
    
    .store-description {
        font-size: 1rem;
    }
    
    .categories-list {
        justify-content: center;
    }
    
    .category-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .products-stats {
        padding: 20px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .store-cta {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .store-header {
        padding: 1.5rem !important;
    }
    
    .store-title {
        font-size: 1.75rem;
    }
    
    .category-filter {
        margin-bottom: 0.5rem !important;
    }
    
    .product-excerpt {
        height: auto;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Melhorias nos botões */
.btn-outline-primary {
    border-width: 2px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* Efeitos especiais */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}
