/* Galeria */
.produto-galeria-section {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.produto-imagem-principal-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.produto-imagem-principal-nova {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease-in-out;
}

.produto-photo-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
}

.produto-thumbnails-horizontal {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.produto-thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.produto-thumbnail-item:hover {
    border-color: #4361ee;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.produto-thumbnail-item.active {
    border-color: #4361ee;
    border-width: 3px;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.produto-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Abas */
.produto-tabs-section {
    margin-top: 2rem;
}

.produto-nav-tabs {
    border-bottom: 2px solid #e1e8ed;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.produto-nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.2s ease;
}

.produto-nav-tabs .nav-link:hover {
    color: #4361ee;
    border-bottom-color: rgba(67, 97, 238, 0.3);
}

.produto-nav-tabs .nav-link.active {
    color: #4361ee;
    border-bottom-color: #4361ee;
    background: transparent;
}

.produto-tab-content {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    min-height: 300px;
}

.produto-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.produto-conteudo table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.produto-conteudo table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    color: #212529;
}

.produto-conteudo table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    color: #495057;
    text-align: left;
}

.produto-conteudo table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Buy box */
.buy-box-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.buy-box-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.buy-box-price-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.buy-box-price-original-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.buy-box-price-original {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
}

.buy-box-discount-badge {
    background: #28a745;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.buy-box-price-current {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.buy-box-price-currency {
    font-size: 1.25rem;
    color: #4361ee;
    font-weight: 600;
}

.buy-box-price-value {
    font-size: 2.5rem;
    color: #4361ee;
    font-weight: 700;
    line-height: 1;
}

.buy-box-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.buy-box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buy-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.buy-box-btn-icon {
    font-size: 1.125rem;
}

.buy-box-btn-amazon {
    background: #ff9900;
    color: #232f3e;
}

.buy-box-btn-amazon:hover {
    background: #ffad33;
    color: #232f3e;
}

.buy-box-btn-shopee {
    background: #ee4d2d;
    color: #fff;
}

.buy-box-btn-shopee:hover {
    background: #f16647;
    color: #fff;
}

.buy-box-btn-mercadolivre,
.buy-box-btn-mercado-livre {
    background: #ffe600;
    color: #2d3277;
}

.buy-box-btn-mercadolivre:hover,
.buy-box-btn-mercado-livre:hover {
    background: #ffeb33;
    color: #2d3277;
}

.buy-box-btn:not(.buy-box-btn-amazon):not(.buy-box-btn-shopee):not(.buy-box-btn-mercadolivre):not(.buy-box-btn-mercado-livre) {
    background: #d3343c;
    color: #fff;
}

.buy-box-btn:not(.buy-box-btn-amazon):not(.buy-box-btn-shopee):not(.buy-box-btn-mercadolivre):not(.buy-box-btn-mercado-livre):hover {
    background: #e04a51;
    color: #fff;
}

@media (max-width: 991.98px) {
    .produto-imagem-principal-wrapper {
        min-height: 350px;
    }

    .produto-imagem-principal-nova {
        max-height: 350px;
    }

    .produto-thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .buy-box-sticky {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    .buy-box-price-value {
        font-size: 2rem;
    }

    .produto-tab-content {
        padding: 1.25rem;
    }
}
