/*
 * CSS Adicional para Módulo de Produtos Personalizados
 * Psychologist Therapy Theme
 */

/* =============================================================================
   PRODUTOS - ESTILOS GERAIS
   ========================================================================== */

.products-archive .feature-header-title,
.single-product .feature-header-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* =============================================================================
   CARDS DE PRODUTO
   ========================================================================== */

.product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0,123,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 15px;
}

.product-title a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-title a:hover {
    color: #007bff;
}

.product-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-categories {
    margin-bottom: 15px;
}

.product-categories i {
    color: #007bff;
}

.product-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff !important;
    margin: 0;
}

.product-price-free {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-actions .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions .btn-outline-primary:hover {
    background: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.product-actions .btn-primary {
    background: linear-gradient(45deg, #007bff, #6610f2);
    border: none;
}

.product-actions .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #520dc2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* =============================================================================
   PÁGINA INDIVIDUAL DO PRODUTO
   ========================================================================== */

.single-product-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-main-image img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

.product-info .product-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.badge-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 10px;
}

.badge {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.product-price {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-label {
    color: #1976d2;
    font-weight: 600;
    font-size: 1rem;
}

.price-value {
    color: #1976d2 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
}

.price-free {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7) !important;
    color: #2e7d32 !important;
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    font-weight: 700;
}

.product-actions .btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.product-actions .btn-lg:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,123,255,0.4);
}

.product-description {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 35px;
    margin-top: 40px;
    border-left: 5px solid #007bff;
}

.product-description h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.product-description h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 300px;
    height: 3px;
    background: linear-gradient(45deg, #9e7bfe, #3fe2dc);
}

.product-description .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

/* =============================================================================
   PRODUTOS RELACIONADOS
   ========================================================================== */

.related-products {
    border-top: 3px solid #e9ecef;
    padding-top: 40px;
    margin-top: 40px;
}

.related-products h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-products h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #6610f2);
}

.related-products .card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.related-products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.related-products .card-img-top {
    transition: transform 0.3s ease;
}

.related-products .card:hover .card-img-top {
    transform: scale(1.05);
}

/* =============================================================================
   NO PRODUCTS FOUND
   ========================================================================== */

.no-products-found {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 3px dashed #dee2e6;
    margin: 40px 0;
}

.no-products-found i {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 4rem;
}

.no-products-found h3 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-products-found .btn {
    margin-top: 20px;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

/* =============================================================================
   WIDGET DE PRODUTOS
   ========================================================================== */

.products-widget .widget-product-item {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.products-widget .widget-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.products-widget .widget-product-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.products-widget .widget-product-item:hover .widget-product-image img {
    transform: scale(1.05);
}

.products-widget .widget-product-title a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.products-widget .widget-product-title a:hover {
    color: #007bff;
}

.products-widget .widget-product-price {
    color: #007bff !important;
    font-weight: 700 !important;
}

.products-widget .widget-product-actions .btn {
    border-radius: 15px;
    font-size: 0.75rem;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.products-widget .widget-product-actions .btn:hover {
    transform: translateY(-1px);
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .single-product-container {
        padding: 25px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .product-info .product-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .product-main-image {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .product-actions .btn-lg {
        width: 100%;
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    
    .product-actions {
        width: 100%;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .product-description {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .products-widget .widget-product-actions {
        text-align: center;
        margin-top: 10px;
    }
    
    .products-widget .widget-product-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .single-product-container {
        margin: 10px;
        padding: 20px;
    }
    
    .no-products-found {
        padding: 40px 20px;
    }
    
    .no-products-found i {
        font-size: 3rem;
    }
}

/* =============================================================================
   ANIMAÇÕES E EFEITOS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* =============================================================================
   UTILIDADES
   ========================================================================== */

.text-gradient {
    background: linear-gradient(45deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.border-gradient {
    border-image: linear-gradient(45deg, #007bff, #6610f2) 1;
}
