/*
 * CSS para Single Product - Design Ecommerce
 * Psychologist Therapy Theme
 */

/* Container principal do produto */
.single-product-container {
    background: #fff;
}

/* Seção principal do produto */
.product-main {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* Galeria de imagens */
.product-gallery .main-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.product-gallery .main-product-image img {
    transition: transform 0.3s ease;
}

.product-gallery .main-product-image:hover img {
    transform: scale(1.05);
}

/* Imagem placeholder */
.product-no-image {
    border: 2px dashed #dee2e6;
    background: #f8f9fa !important;
}

/* Detalhes do produto */
.product-details {
    padding-left: 20px;
}

/* Categorias */
.product-categories .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título do produto */
.product-title {
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem !important;
}

/* Preços */
.product-pricing {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.price-label {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-value {
    font-family: 'Arial', sans-serif;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Resumo do produto */
.product-summary {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-summary h5 {
    color: #495057;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 10px;
    position: relative;
}

.product-summary h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #9e7bfe, #3fe2dc);
    border-radius: 1px;
}

/* Seção de compra */
.product-purchase-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.product-purchase-section .btn {
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-purchase-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.product-purchase-section .btn:active {
    transform: translateY(0);
}

/* Benefícios */
.product-benefits {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.benefit-item {
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 1.5rem;
}

/* Descrição completa */
.description-content {
    border: 1px solid #e9ecef;
}

.description-content h3 {
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    border-bottom: none;
}

.description-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #9e7bfe, #3fe2dc);
    border-radius: 1px;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
}

.content-text p {
    margin-bottom: 1.2rem;
}

.content-text h4, .content-text h5 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text ul, .content-text ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Botão de compra sticky */
.purchase-sticky {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    border-top: 3px solid #28a745;
}

.purchase-sticky .btn {
    border-radius: 50px;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.purchase-sticky .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.purchase-sticky .btn:hover:before {
    left: 100%;
}

/* Card de resumo lateral */
.product-summary-card {
    border: 1px solid #e9ecef;
    background: #fff !important;
}

.product-summary-card h5 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 10px;
    position: relative;
}

.product-summary-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #9e7bfe, #3fe2dc);
    border-radius: 1px;
}

.price-summary {
    font-size: 1.1rem;
}

.product-features ul li {
    padding: 5px 0;
    font-size: 0.95rem;
}

.product-features .fas {
    width: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .product-details {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-main {
        padding: 20px;
    }
    
    .product-pricing {
        padding: 15px;
    }
    
    .price-value {
        font-size: 2rem !important;
    }
    
    .product-purchase-section {
        padding: 20px;
    }
    
    .purchase-sticky {
        padding: 20px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        border-radius: 0;
        border-top: 3px solid #28a745;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    }
}

@media (max-width: 576px) {
    .benefit-item {
        margin-bottom: 15px;
    }
    
    .product-benefits .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .display-6 {
        font-size: 1.8rem !important;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.single-product-container > * {
    animation: fadeInUp 0.6s ease forwards;
}

.single-product-container > *:nth-child(2) {
    animation-delay: 0.2s;
}

.single-product-container > *:nth-child(3) {
    animation-delay: 0.4s;
}

/* Melhorias visuais extras */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Destacar garantias */
.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

/* Badge personalizado */
.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}
