/**
 * PRODUCT PAGE CSS - ATELÊ BIOSPHERA
 * Estilos específicos para páginas de produtos individuais
 * 
 * EDITÁVEL: Todas as cores, espaçamentos e tamanhos podem ser personalizados
 */

/* ==========================================
   PRODUCT HERO SECTION
   ========================================== */

.product-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    min-height: auto;
}

.breadcrumb {
    margin-bottom: var(--spacing-xl);
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--white);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.product-header {
    margin-bottom: var(--spacing-lg);
}

.product-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.product-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.premium {
    background: linear-gradient(135deg, var(--accent-color), #D4AF37);
    color: var(--white);
}

.badge.natural {
    background: var(--primary-color);
    color: var(--white);
}

.badge.artisanal {
    background: var(--secondary-color);
    color: var(--white);
}

/* Price Section */
.product-price-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--cream);
    border-radius: var(--border-radius);
    text-align: center;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.product-installment {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Product Description */
.product-description {
    margin-bottom: var(--spacing-xl);
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Product Actions */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Benefits */
.product-benefits {
    margin-bottom: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--cream);
    border-radius: var(--border-radius);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.benefit-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Stock Status */
.product-stock {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background: rgba(168, 213, 186, 0.1);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
}

.stock-status.in-stock {
    color: var(--primary-color);
}

.stock-status.out-of-stock {
    color: #E74C3C;
}

.stock-status i {
    font-size: 1.2rem;
}

/* ==========================================
   PRODUCT DETAILS
   ========================================== */

.product-details {
    padding: var(--spacing-xxl) 0;
    background: var(--cream);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.detail-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.detail-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-color);
}

.detail-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Ingredients List */
.ingredients-list h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    font-size: 1.1rem;
}

.ingredients-list ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.ingredients-list li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

/* Certifications */
.certifications {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.cert-badge {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.cert-badge:hover {
    transform: scale(1.1);
}

/* Specs Table */
.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-light);
    text-align: right;
}

/* INCI Text */
.inci-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.inci-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.thumb-item {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}
.thumb-item:hover {
    border-color: var(--accent-color);
}
.product-main-img img {
    transition: opacity 0.2s ease-in-out;
}

/* Efeito de transição na imagem principal */
#main-product-image {
    transition: opacity 0.2s ease-in-out;
}

/* Estilo para a miniatura selecionada */
.thumbnail {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color); /* A cor dourada do seu tema */
    transform: scale(1.05);
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */

.related-products {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.related-products .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.related-products .section-line {
    margin-bottom: var(--spacing-xl);
}

.related-products .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: 100px 0 60px;
    }
    
    .product-info {
        padding: var(--spacing-lg);
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 1.8rem;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}