/* Amazon Style CSS para a página de detalhes do anúncio */

/* Breadcrumb */
.amazon-breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    padding: 8px 0;
}

.amazon-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.amazon-breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.amazon-breadcrumb .separator {
    margin: 0 5px;
    color: #ccc;
}

/* Título do produto */
.amazon-product-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0F1111;
    line-height: 1.3;
}

/* Avaliações em estrelas */
.amazon-rating-stars {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.amazon-rating-stars .stars {
    color: var(--secondary-color);
    margin-right: 5px;
}

.amazon-rating-stars .count {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.amazon-rating-stars .count:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

/* Container principal do produto */
.amazon-product-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

/* Galeria de imagens */
.amazon-gallery {
    flex: 0 0 55%;
    position: relative;
}

.amazon-gallery-container {
    display: flex;
    position: relative;
}

/* Miniaturas verticais à esquerda */
.amazon-thumbnails {
    display: flex;
    flex-direction: column;
    width: 70px;
    margin-right: 15px;
}

.amazon-thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
    border-radius: 3px;
}

.amazon-thumbnail.active {
    border-color: #e77600;
    opacity: 1;
    box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}

.amazon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Container da imagem principal e zoom */
.amazon-image-zoom-container {
    flex: 1;
    position: relative;
    display: flex;
}

/* Imagem principal */
.amazon-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    position: relative;
    min-height: 300px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.amazon-main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Área de zoom */
.amazon-zoom-window {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    overflow: hidden;
    display: none;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.amazon-zoom-window .amazon-zoom-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
}

/* Lente de zoom (opcional) */
.amazon-zoom-lens {
    position: absolute;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: crosshair;
    display: none;
}

/* Cursor personalizado para a área de zoom */
.amazon-main-image {
    cursor: crosshair;
}

/* Ajustes para o container de zoom */
.amazon-image-zoom-container {
    position: relative;
    flex: 1;
    display: flex;
}

.amazon-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.amazon-gallery-prev {
    left: 70px;
}

.amazon-gallery-next {
    right: 10px;
}

.amazon-gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.amazon-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.amazon-zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.amazon-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    background-color: #f8f8f8;
    color: #aaa;
}

.no-image-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background-color: #f8f8f8;
    color: #aaa;
}

/* Informações do produto */
.amazon-product-info {
    flex: 0 0 40%;
}

.amazon-price-block {
    margin-bottom: 15px;
}

.amazon-price {
    font-size: 28px;
    font-weight: 500;
    color: var(--secondary-color);
}

.amazon-seller-info {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.amazon-seller-name {
    margin-bottom: 5px;
}

.amazon-seller-name a {
    color: #007185;
    text-decoration: none;
}

.amazon-seller-name a:hover {
    color: #c45500;
    text-decoration: underline;
}

.amazon-location {
    margin-bottom: 5px;
    color: #565959;
}

.amazon-condition {
    margin-bottom: 5px;
}

.amazon-condition .new {
    color: #007600;
    font-weight: 500;
}

.amazon-condition .used {
    color: #c45500;
    font-weight: 500;
}

.amazon-category {
    color: #565959;
}

/* Botões de ação */
.amazon-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.amazon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.amazon-button i {
    margin-right: 8px;
}

.amazon-button-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-hover);
    color: #ffffff;
}

.amazon-button-primary:hover {
    background-color: var(--primary-hover);
}

.amazon-button-secondary {
    background-color: #ffffff;
    border: 1px solid #D5D9D9;
    color: #0F1111;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
}

.amazon-button-secondary:hover {
    background-color: #F7FAFA;
}

/* Seções */
.amazon-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
    color: #0F1111;
}

/* Tabela de informações do produto */
.amazon-product-details {
    margin-bottom: 30px;
}

.amazon-details-table {
    width: 100%;
    border-collapse: collapse;
}

.amazon-details-table th,
.amazon-details-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e7e7e7;
}

.amazon-details-table th {
    width: 30%;
    background-color: #f8f8f8;
    font-weight: 500;
}

/* Descrição detalhada */
.amazon-description {
    margin-bottom: 30px;
}

.description-content {
    line-height: 1.6;
    color: #333;
}

/* Produtos relacionados */
.amazon-related-products {
    margin-bottom: 30px;
}

.amazon-carousel {
    position: relative;
    margin: 0 -10px;
}

.amazon-carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.amazon-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.amazon-carousel-item {
    flex: 0 0 200px;
    margin: 0 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.amazon-carousel-item:hover {
    transform: translateY(-5px);
}

.amazon-carousel-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.amazon-carousel-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #0F1111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.amazon-carousel-price {
    font-weight: 700;
    color: var(--secondary-color);
}

.amazon-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.amazon-carousel-prev {
    left: 5px;
}

.amazon-carousel-next {
    right: 5px;
}

/* Avaliações */
.amazon-ratings {
    margin-bottom: 30px;
}

.amazon-ratings-summary {
    display: flex;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.amazon-ratings-average {
    flex: 0 0 150px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #e7e7e7;
}

.amazon-ratings-score {
    font-size: 48px;
    font-weight: 700;
    color: #0F1111;
    line-height: 1;
    margin-bottom: 5px;
}

.amazon-ratings-stars {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.amazon-ratings-count {
    color: #565959;
    font-size: 14px;
}

.amazon-ratings-bars {
    flex: 1;
    padding-left: 20px;
}

.amazon-ratings-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.amazon-ratings-bar-label {
    flex: 0 0 80px;
    color: var(--primary-color);
    text-decoration: none;
}

.amazon-ratings-bar-label:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.amazon-ratings-bar-container {
    flex: 1;
    height: 16px;
    background-color: #e7e7e7;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.amazon-ratings-bar-fill {
    height: 100%;
    background-color: var(--secondary-color);
}

.amazon-ratings-bar-percent {
    flex: 0 0 40px;
    text-align: right;
    font-size: 14px;
    color: #565959;
}

.amazon-ratings-list {
    margin-top: 20px;
}

.amazon-rating-item {
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.amazon-rating-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.amazon-rating-user {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.amazon-rating-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #565959;
}

.amazon-rating-name {
    font-weight: 500;
}

.amazon-rating-stars {
    color: var(--secondary-color);
    margin-right: 15px;
}

.amazon-rating-date {
    color: #565959;
    font-size: 14px;
}

.amazon-rating-content {
    margin-bottom: 15px;
    line-height: 1.5;
}

.amazon-rating-actions {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.amazon-rating-helpful {
    display: flex;
    align-items: center;
}

.amazon-rating-helpful span {
    margin-right: 10px;
    color: #565959;
}

.amazon-rating-helpful button {
    background: none;
    border: 1px solid #D5D9D9;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.amazon-rating-helpful button i {
    margin-right: 5px;
}

.amazon-rating-report {
    color: #565959;
    cursor: pointer;
}

.amazon-rating-report:hover {
    color: #c45500;
    text-decoration: underline;
}

/* Segurança na negociação */
.amazon-contact-security {
    margin-bottom: 30px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.amazon-security-tips ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.amazon-security-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.amazon-security-tips li i {
    color: #007600;
    margin-right: 5px;
}

.amazon-security-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.amazon-report-button {
    color: #c40000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.amazon-report-button i {
    margin-right: 5px;
}

.amazon-report-button:hover {
    text-decoration: underline;
}

.amazon-verified-seller {
    color: #007600;
    display: flex;
    align-items: center;
}

.amazon-verified-seller i {
    margin-right: 5px;
}

/* Responsividade */
@media (max-width: 992px) {
    .amazon-product-container {
        flex-direction: column;
    }
    
    .amazon-gallery, 
    .amazon-product-info {
        flex: 0 0 100%;
    }
    
    .amazon-ratings-summary {
        flex-direction: column;
    }
    
    .amazon-ratings-average {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e7e7e7;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .amazon-ratings-bars {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .amazon-rating-header {
        flex-wrap: wrap;
    }
    
    .amazon-rating-user {
        margin-bottom: 5px;
    }
    
    .amazon-gallery-prev {
        left: 10px;
    }
}

@media (max-width: 576px) {
    .amazon-thumbnails {
        display: none;
    }
    
    .amazon-main-image {
        width: 100%;
    }
}
