/* 
 * Estilos mobile inspirados na Amazon para a página de detalhes do produto
 * Foco em legibilidade, hierarquia visual clara e navegação fluida
 */

/* Estilos gerais para dispositivos móveis */
@media (max-width: 768px) {
    /* Ajustes de layout geral */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Breadcrumb mais compacto */
    .amazon-breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
        margin-bottom: 8px;
        scrollbar-width: none; /* Firefox */
    }
    
    .amazon-breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .amazon-breadcrumb .separator {
        margin: 0 4px;
    }
    
    /* Título do produto */
    .amazon-product-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    /* Avaliações do vendedor */
    .amazon-rating-stars {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }
    
    .amazon-rating-stars .stars {
        margin-right: 8px;
    }
    
    .amazon-rating-stars .count {
        font-size: 13px;
    }
    
    /* Reorganização do layout principal */
    .amazon-product-container {
        flex-direction: column;
    }
    
    /* ===== GALERIA DE IMAGENS ===== */
    
    /* Container da galeria */
    .amazon-gallery {
        width: 100%;
        margin-bottom: 16px;
    }
    
    /* Imagem principal em tela cheia */
    .amazon-main-image {
        width: 100vw;
        height: auto;
        max-height: 70vh;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        position: relative;
        background-color: #f8f8f8;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .amazon-main-image img {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
    }
    
    /* Miniaturas abaixo da imagem principal */
    .amazon-thumbnails {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .amazon-thumbnails::-webkit-scrollbar {
        display: none;
    }
    
    .amazon-thumbnail {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
        margin-right: 8px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
    
    .amazon-thumbnail.active {
        border-color: #6e0ad6;
        box-shadow: 0 0 0 2px rgba(110, 10, 214, 0.2);
    }
    
    /* Indicadores de navegação (pontos) */
    .amazon-gallery-dots {
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
    
    .amazon-gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ddd;
        margin: 0 4px;
        transition: all 0.2s ease;
    }
    
    .amazon-gallery-dot.active {
        background-color: #6e0ad6;
        width: 10px;
        height: 10px;
    }
    
    /* Botões de navegação */
    .amazon-gallery-nav {
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    /* Contador de imagens */
    .amazon-gallery-counter {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* ===== INFORMAÇÕES DO PRODUTO ===== */
    
    /* Bloco de informações */
    .amazon-product-info {
        width: 100%;
        padding: 0;
    }
    
    /* Preço */
    .amazon-price-block {
        margin-bottom: 16px;
    }
    
    .amazon-price {
        font-size: 24px;
        font-weight: 700;
        color: #6e0ad6;
    }
    
    /* Informações do vendedor */
    .amazon-seller-info {
        background-color: #f8f9fa;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: 14px;
    }
    
    .amazon-seller-name {
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .amazon-location, 
    .amazon-condition, 
    .amazon-category {
        margin-bottom: 4px;
        display: flex;
        align-items: center;
    }
    
    .amazon-location i, 
    .amazon-condition i, 
    .amazon-category i {
        width: 20px;
        margin-right: 8px;
        color: #6e0ad6;
    }
    
    /* ===== BOTÕES DE AÇÃO ===== */
    
    /* Container de botões fixo na parte inferior */
    .amazon-action-buttons-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Botão principal (WhatsApp) */
    .amazon-button-primary {
        background-color: #25D366;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        margin-right: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .amazon-button-primary i {
        margin-right: 8px;
        font-size: 18px;
    }
    
    /* Botões secundários */
    .amazon-action-secondary {
        display: flex;
    }
    
    .amazon-button-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
        color: #333;
    }
    
    .amazon-button-icon.favorite {
        color: #FF6B6B;
    }
    
    .amazon-button-icon.share {
        color: #6e0ad6;
    }
    
    .amazon-button-icon.report {
        color: #666;
    }
    
    /* Espaço para o botão fixo */
    .amazon-bottom-spacer {
        height: 70px;
    }
    
    /* ===== DETALHES DO PRODUTO ===== */
    
    /* Seções */
    .amazon-section-title {
        font-size: 16px;
        font-weight: 600;
        margin: 24px 0 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
    }
    
    /* Tabela de informações */
    .amazon-details-table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
    }
    
    .amazon-details-table tr {
        border-bottom: 1px solid #eee;
    }
    
    .amazon-details-table th {
        width: 40%;
        padding: 10px 0;
        text-align: left;
        font-weight: 600;
        color: #666;
    }
    
    .amazon-details-table td {
        padding: 10px 0;
        color: #333;
    }
    
    /* Descrição */
    .amazon-description {
        margin-bottom: 24px;
    }
    
    .description-content {
        font-size: 14px;
        line-height: 1.6;
        color: #333;
    }
    
    /* ===== PRODUTOS RELACIONADOS ===== */
    
    .amazon-carousel {
        position: relative;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .amazon-carousel-container {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .amazon-carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .amazon-carousel-item {
        flex: 0 0 140px;
        width: 140px;
        margin-right: 12px;
        text-decoration: none;
        color: inherit;
    }
    
    .amazon-carousel-item img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .amazon-carousel-title {
        font-size: 13px;
        margin-bottom: 4px;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        height: 36px;
    }
    
    .amazon-carousel-price {
        font-size: 14px;
        font-weight: 600;
        color: #6e0ad6;
    }
    
    /* ===== VISUALIZAÇÃO EM TELA CHEIA ===== */
    
    /* Overlay para zoom em tela cheia */
    .amazon-zoom-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .amazon-zoom-overlay.active {
        display: flex;
    }
    
    .amazon-zoom-image {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }
    
    .amazon-zoom-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
    }
    
    .amazon-zoom-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    
    .amazon-zoom-prev {
        left: 16px;
    }
    
    .amazon-zoom-next {
        right: 16px;
    }
    
    .amazon-zoom-counter {
        position: absolute;
        bottom: 16px;
        color: white;
        font-size: 14px;
    }
    
    /* ===== COMPARTILHAMENTO ===== */
    
    /* Modal de compartilhamento */
    .amazon-share-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        border-radius: 16px 16px 0 0;
        padding: 20px;
        z-index: 1001;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .amazon-share-modal.active {
        transform: translateY(0);
    }
    
    .amazon-share-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .amazon-share-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .amazon-share-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
    }
    
    .amazon-share-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        font-size: 20px;
        color: white;
    }
    
    .amazon-share-icon.whatsapp { background-color: #25D366; }
    .amazon-share-icon.facebook { background-color: #1877F2; }
    .amazon-share-icon.messenger { background-color: #0099FF; }
    .amazon-share-icon.twitter { background-color: #1DA1F2; }
    .amazon-share-icon.email { background-color: #DB4437; }
    .amazon-share-icon.copy { background-color: #6e0ad6; }
    
    .amazon-share-label {
        font-size: 12px;
        text-align: center;
    }
    
    .amazon-share-cancel {
        display: block;
        text-align: center;
        padding: 12px;
        border-radius: 4px;
        background-color: #f8f9fa;
        color: #333;
        font-weight: 600;
        text-decoration: none;
    }
    
    /* Overlay para o modal de compartilhamento */
    .amazon-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .amazon-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* ===== AVALIAÇÕES ===== */
    
    /* Resumo das avaliações */
    .amazon-ratings-summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        padding: 16px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }
    
    .amazon-ratings-average {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .amazon-ratings-score {
        font-size: 36px;
        font-weight: 700;
        color: #6e0ad6;
        line-height: 1;
        margin-bottom: 8px;
    }
    
    .amazon-ratings-stars {
        margin-bottom: 4px;
        color: #FF9900;
    }
    
    .amazon-ratings-count {
        font-size: 14px;
        color: #666;
    }
    
    .amazon-ratings-bars {
        width: 100%;
    }
    
    .amazon-ratings-bar {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .amazon-ratings-bar-label {
        width: 80px;
        font-size: 13px;
        color: #666;
        text-decoration: none;
    }
    
    .amazon-ratings-bar-container {
        flex: 1;
        height: 8px;
        background-color: #eee;
        border-radius: 4px;
        overflow: hidden;
        margin: 0 8px;
    }
    
    .amazon-ratings-bar-fill {
        height: 100%;
        background-color: #FF9900;
    }
    
    .amazon-ratings-bar-percent {
        width: 40px;
        font-size: 13px;
        color: #666;
        text-align: right;
    }
    
    /* Lista de avaliações */
    .amazon-rating-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .amazon-rating-header {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .amazon-rating-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
        color: #999;
    }
    
    .amazon-rating-name {
        font-weight: 600;
        font-size: 14px;
        margin-right: auto;
    }
    
    .amazon-rating-stars {
        font-size: 12px;
        color: #FF9900;
        margin-right: 8px;
    }
    
    .amazon-rating-date {
        font-size: 12px;
        color: #666;
    }
    
    .amazon-rating-content {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .amazon-rating-actions {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #666;
    }
    
    .amazon-rating-helpful {
        display: flex;
        align-items: center;
    }
    
    .amazon-rating-helpful span {
        margin-right: 8px;
    }
    
    .amazon-rating-helpful button {
        background: none;
        border: none;
        color: #6e0ad6;
        padding: 0;
        font-size: 12px;
        cursor: pointer;
    }
    
    .amazon-rating-report {
        color: #666;
        cursor: pointer;
    }
    
    /* ===== PERGUNTAS E RESPOSTAS ===== */
    
    .qa-container {
        margin-bottom: 24px;
    }
    
    .qa-form {
        background-color: #f8f9fa;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .qa-form-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    .qa-textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        resize: vertical;
        min-height: 80px;
        font-size: 14px;
    }
    
    .qa-char-count {
        font-size: 12px;
        color: #666;
        text-align: right;
        margin-top: 4px;
    }
    
    .qa-submit-btn {
        background-color: #6e0ad6;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 16px;
        font-weight: 600;
        font-size: 14px;
    }
    
    .qa-login-message {
        background-color: #f8f9fa;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
        text-align: center;
        font-size: 14px;
    }
    
    .qa-login-btn {
        display: inline-block;
        background-color: #6e0ad6;
        color: white;
        border-radius: 4px;
        padding: 8px 16px;
        margin-top: 8px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
    }
    
    .qa-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .qa-question {
        margin-bottom: 12px;
    }
    
    .qa-question-header {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .qa-question-user {
        font-weight: 600;
        font-size: 14px;
        margin-right: auto;
    }
    
    .qa-question-date {
        font-size: 12px;
        color: #666;
    }
    
    .qa-question-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .qa-answer {
        background-color: #f8f9fa;
        padding: 12px;
        border-radius: 8px;
    }
    
    .qa-answer-header {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .qa-answer-label {
        font-weight: 600;
        font-size: 14px;
        color: #6e0ad6;
        margin-right: 8px;
    }
    
    .qa-answer-user {
        font-weight: 600;
        font-size: 14px;
        margin-right: auto;
    }
    
    .qa-answer-date {
        font-size: 12px;
        color: #666;
    }
    
    .qa-answer-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .qa-pagination {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
    
    .qa-pagination-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 4px;
        color: #333;
        text-decoration: none;
    }
    
    .qa-pagination-btn.active {
        background-color: #6e0ad6;
        color: white;
        border-color: #6e0ad6;
    }
    
    /* ===== SEGURANÇA ===== */
    
    .amazon-security-tips {
        background-color: #f8f9fa;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .amazon-security-tips ul {
        padding-left: 20px;
        margin-bottom: 12px;
    }
    
    .amazon-security-tips li {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .amazon-security-tips i {
        color: #6e0ad6;
        margin-right: 8px;
    }
    
    .amazon-security-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }
    
    .amazon-report-button {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
    
    .amazon-report-button i {
        margin-right: 8px;
    }
    
    .amazon-verified-seller {
        display: flex;
        align-items: center;
        color: #6e0ad6;
        font-size: 14px;
        font-weight: 600;
    }
    
    .amazon-verified-seller i {
        margin-right: 8px;
    }
    
    /* Ajustes para o lazy loading */
    .lazy-load {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .lazy-load.loaded {
        opacity: 1;
    }
    
    /* Fallback para imagens que não carregam */
    .image-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        color: #999;
    }
}
