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

/* Breadcrumb */
.breadcrumb-container {
    background: var(--gray);
    padding: 1rem 0;
    margin-top: 90px;
}

/* Estilo para o link da logo */
.logo-container a {
    text-decoration: none;
    display: block;
}

.logo-container a:hover {
    text-decoration: none;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

/* Product Details Container */
.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 45% 55%; /* Narrower slide column for better proportion and balance */
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 120px;
    height: fit-content;
    min-width: 0; /* Prevents grid blowout from flex children thumbnails */
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--shadow-md);
    max-width: 100%;
}

.main-image img {
    width: 100%;
    height: 350px; /* Reduced from 400px to be more compact and elegant */
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.image-actions button:hover {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.1);
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 0.8rem 0.5rem;
    max-width: 100%;
    width: 100%;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary) var(--gray); /* Firefox */
}

/* Custom premium scrollbar for thumbnails */
.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 10px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.thumbnail-images::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.thumbnail {
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Product Info */
.product-info {
    padding: 1rem;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.condition-badge {
    background: var(--primary);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stock-info {
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.stars {
    display: flex;
    gap: 0.2rem;
    color: var(--secondary);
}

.rating-score {
    font-weight: 600;
    color: var(--dark);
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.rating-count:hover {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Price Container */
.price-container {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 12px;
    position: relative;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.discount-percentage {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.installments {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.installments p {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.pix-price {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Shipping Info */
.shipping-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.shipping-info h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cep-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cep-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
}

.cep-input input:focus {
    border-color: var(--primary);
    outline: none;
}

.cep-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cep-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--gray);
    border-radius: 8px;
}

.shipping-type {
    font-weight: 600;
    color: var(--primary);
}

.shipping-time {
    color: #666;
    font-size: 0.9rem;
}

/* Quantity Container */
.quantity-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-container label {
    font-weight: 500;
    color: var(--dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--gray);
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    color: var(--dark);
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--light);
}

.qty-input {
    border: none;
    padding: 0.8rem;
    width: 60px;
    text-align: center;
    font-weight: 600;
}

.stock-available {
    color: #666;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-buy-now,
.btn-add-cart {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-buy-now {
    background: var(--primary);
    color: var(--light);
}

.btn-buy-now:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Seller Info */
.seller-info {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.seller-header h3 {
    color: var(--dark);
    margin: 0;
}

.seller-badge {
    background: var(--secondary);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.seller-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-data h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.seller-rating .stars {
    color: var(--secondary);
}

.seller-rating span {
    font-size: 0.9rem;
    color: #666;
}

.seller-location {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-seller {
    width: 100%;
    padding: 0.8rem;
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-seller:hover {
    background: var(--primary);
    color: var(--light);
}

/* Product Details Tabs */
.product-details-tabs {
    margin-bottom: 3rem;
}

.tabs-navigation {
    display: flex;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tab-panel h4 {
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.tab-panel ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tab-panel li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray);
    border-radius: 8px;
}

.spec-item strong {
    color: var(--dark);
}

.spec-item span {
    color: #666;
}

/* Reviews Section */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

.rating-overview {
    text-align: center;
}

.rating-score-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stars-large {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    min-width: 80px;
    color: #666;
}

.rating-bar span:last-child {
    min-width: 30px;
    color: #666;
    text-align: right;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-stars {
    color: var(--secondary);
    font-size: 0.9rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-text {
    color: var(--dark);
    line-height: 1.6;
}

/* Questions Section */
.ask-question {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ask-question input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
}

.ask-question input:focus {
    border-color: var(--primary);
    outline: none;
}

.ask-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ask-btn:hover {
    background: var(--primary-hover);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-item {
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 12px;
}

.question {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.answer {
    color: #666;
    line-height: 1.6;
}

.answer-date {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

/* Related Products */
.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-grid .product-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.related-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-grid .product-image {
    height: 200px;
    overflow: hidden;
}

.related-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-grid .product-card:hover .product-image img {
    transform: scale(1.1);
}

.related-grid .product-info {
    padding: 1rem;
}

.related-grid .product-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-grid .product-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: static;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tabs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        min-width: fit-content;
    }
}

@media (max-width: 768px) {
    .product-details-container {
        padding: 1rem;
    }

    .breadcrumb {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .ask-question {
        flex-direction: column;
    }

    .tabs-navigation {
        flex-wrap: wrap;
        gap: 0;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.8rem 1rem;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
} 