/**
 * Estilos específicos para a página de detalhes do produto
 */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.product-main-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

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

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
}

.thumbnail:hover {
    border-color: #6b7280;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 2px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 2px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-category a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.product-category a:hover {
    background: #e5e7eb;
    color: #000000;
}

.product-views {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.price-current {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    display: block;
    margin-bottom: 0.5rem;
}

.price-original {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 1rem;
}

.price-discount {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-description,
.product-details {
    margin-bottom: 2rem;
}

.product-description h3,
.product-details h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-description p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.875rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.detail-value {
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.product-unavailable {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.product-unavailable p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.seller-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid #e5e7eb;
}

.seller-details h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.seller-location,
.seller-since {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Status colors */
.status-ativo {
    color: #10b981;
}

.status-vendido {
    color: #ef4444;
}

.status-inativo {
    color: #6b7280;
}

/* Product status overlay */
.product-status {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    background: rgba(0, 0, 0, 0.8);
}

.status-vendido {
    background: #ef4444;
}

.status-inativo {
    background: #6b7280;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-current {
        font-size: 1.875rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .seller-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .product-price-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .product-main-image img {
        height: 300px;
    }
    
    .thumbnail {
        width: 4rem;
        height: 4rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
    
    .seller-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}
