/* assets/css/produto.css - Estilos específicos para a página de produto */

/* Estrutura básica da página */
.produto-container {
    padding: 2rem 0;
}

/* Estilização do breadcrumb */
.produto-breadcrumb {
    margin-bottom: 1.5rem;
}

.produto-breadcrumb .breadcrumb {
    padding: 0.75rem 1rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

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

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Galeria de imagens */
.produto-galeria {
    position: relative;
    margin-bottom: 1.5rem;
}

.produto-imagem-principal {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem; /* Reduzido para aproximar miniaturas */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #f8f8f8; /* Background neutro para casos de imagens transparentes */
}

.produto-imagem-principal img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    aspect-ratio: 1 / 1;
}

.produto-imagem-principal:hover img {
    transform: scale(1.05);
}

/* Ações da imagem principal */
.imagem-acoes {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.produto-imagem-principal:hover .imagem-acoes {
    opacity: 1;
    transform: translateY(0);
}

.btn-zoom,
.btn-fullscreen {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-zoom:hover,
.btn-fullscreen:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Badges sobre a imagem */
.imagem-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

/* Estilos aprimorados para os badges de porcentagem e frete grátis */
.imagem-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-desconto {
    background: linear-gradient(135deg, #ff0078 0%, #ff5e93 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 8px rgba(255, 0, 120, 0.3);
    display: inline-block;
    text-align: center;
    min-width: 50px;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease forwards; /* Adicionada a animação */
}

.badge-desconto:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 12px rgba(255, 0, 120, 0.4);
}

.badge-frete-gratis {
    background: linear-gradient(135deg, #00b894 0%, #00d68f 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 8px rgba(0, 184, 148, 0.3);
    display: inline-block;
    text-align: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    transition: all 0.3s ease;
}

.badge-frete-gratis:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 12px rgba(0, 184, 148, 0.4);
}

/* Garantir que as imagens não afetem os badges */
.produto-galeria {
    position: relative;
    overflow: visible; /* Permitir que os badges fiquem visíveis mesmo fora da galeria */
}

.produto-imagem-principal {
    position: relative;
    overflow: hidden; /* Manter overflow hidden apenas para a imagem */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Melhorar a visibilidade dos badges em imagens claras */
.badge-frete-gratis {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-frete-gratis {
    background-color: #28a745;
    color: white;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Galeria de miniaturas em linha horizontal deslizável */
.produto-miniaturas {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Para iOS */
    scrollbar-width: thin; /* Para Firefox */
    gap: 0.35rem;
    padding-bottom: 8px; /* Espaço para scrollbar */
    margin-bottom: 10px;
    justify-content: flex-start;
}

.produto-miniaturas::-webkit-scrollbar {
    height: 6px;
}

.produto-miniaturas::-webkit-scrollbar-thumb {
    background-color: rgba(var(--primary-rgb), 0.5);
    border-radius: 3px;
}

.produto-miniaturas::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 3px;
}

.miniatura-item {
    flex: 0 0 auto;
    width: 60px; /* Tamanho fixo para miniaturas */
    height: 60px;
    margin-right: 0.35rem;
    border-radius: 0.35rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #f8f8f8;
    position: relative; /* Para o indicador */
}

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

.miniatura-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.miniatura-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Container para as miniaturas */
.produto-miniaturas-container {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

/* Adicionar indicador visual à miniatura ativa */
.miniatura-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.miniatura-item.active .miniatura-indicator {
    transform: scaleX(1);
}

/* Informações do produto */
.produto-info {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.produto-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.produto-codigo {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Avaliações */
.produto-avaliacoes {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.baseado-em {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-stars i {
    color: var(--accent-color, #ffc107);
    font-size: 1.2rem;
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #333;
}

/* Preço do produto */
.produto-preco {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 0.5rem;
}

.preco-original {
    font-size: 0.9rem;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.preco-atual {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.preco-atual span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.preco-desconto {
    font-size: 0.9rem;
    font-weight: 500;
}

.preco-desconto span {
    color: #28a745;
    font-weight: 700;
}

/* Cronômetro */
.produto-cronometro {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(var(--secondary-rgb, 247, 37, 133), 0.1);
    border-radius: 0.5rem;
}

.cronometro-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.cronometro-contador {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.cronometro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cronometro-valor {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    width: 100%;
    text-align: center;
}

.cronometro-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Variantes de produto */
.produto-variantes {
    margin: 1.5rem 0;
}

.variantes-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.variante-grupo {
    margin-bottom: 1.5rem;
}

.variante-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #555;
    display: block;
}

.variante-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.variante-opcao {
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 0.25rem;
}

.variante-opcao:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.variante-opcao.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
}

/* Variantes específicas - Cores - Redesenhadas */
.cor-opcao {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
    border-radius: 0.4rem;
    min-width: 45px;
    position: relative;
    border: none !important;
    background: transparent !important;
}

.cor-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cor-name {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 5px;
    color: #666;
    max-width: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cor-opcao:hover .cor-circle {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.cor-opcao.selected {
    background-color: transparent !important;
}

.cor-opcao.selected .cor-circle {
    border: 2px solid var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.cor-opcao.selected .cor-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Variantes específicas - Tamanhos */
.tamanho-opcao {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.25rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    background-color: #fff;
}

.tamanho-opcao:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.tamanho-opcao.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
}

/* Variantes específicas - Estampas */
.estampa-opcao {
    width: 80px; /* Aumentado de 60px */
    padding: 0.5rem;
    border-radius: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.estampa-preview {
    width: 70px; /* Aumentado de 50px */
    height: 70px; /* Aumentado de 50px */
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

/* Esconder o nome da estampa */
.estampa-name {
    display: none;
}

/* Melhorar o indicador de seleção */
.estampa-opcao.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px; /* Aumentado */
    height: 24px; /* Aumentado */
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Aumentado */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ocultar mensagem de seleção de estampa */
#estampa-selection-message {
    display: none !important;
}

.estampa-opcao:hover {
    transform: translateY(-3px);
}

.estampa-opcao:hover .estampa-preview {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.estampa-opcao.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.estampa-opcao.selected .estampa-preview {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* Frete e cálculo de CEP */
.produto-frete {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
}

.frete-gratis-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.frete-gratis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    border-radius: 0.25rem;
    font-weight: 600;
}

.frete-prazo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.calcular-frete-container {
    margin-bottom: 1rem;
}

.calcular-frete-input label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.calcular-frete-input small {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

.calcular-frete-input small a {
    color: var(--primary-color);
    text-decoration: none;
}

.resultado-frete {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultado-frete-destino {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.frete-opcao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.frete-opcao:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.frete-opcao-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frete-opcao-info i {
    color: var(--primary-color);
}

.frete-opcao-valor {
    font-weight: 700;
    color: var(--primary-color);
}

/* Spinner para carregamento */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Botões de ação */
.produto-acoes {
    margin: 1.5rem 0;
}

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

.acoes-quantidade label {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    flex-shrink: 0;
}

.quantidade-controle {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.btn-quantidade-menos,
.btn-quantidade-mais {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quantidade-menos {
    border-radius: 0.25rem 0 0 0.25rem;
}

.btn-quantidade-mais {
    border-radius: 0 0.25rem 0.25rem 0;
}

.btn-quantidade-menos:hover,
.btn-quantidade-mais:hover {
    background-color: #e9e9e9;
}

.acoes-quantidade input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.acoes-botoes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-adicionar-carrinho,
.btn-comprar-agora {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-adicionar-carrinho {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-adicionar-carrinho:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.btn-comprar-agora {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-comprar-agora:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Efeito ao clicar nos botões */
.btn-adicionar-carrinho.clicked,
.btn-comprar-agora.clicked {
    transform: scale(0.95);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toast-success {
    background-color: var(--primary-color);
}

.toast-error {
    background-color: #dc3545;
}

.toast-info {
    background-color: #0dcaf0;
}

.toast-icon {
    font-size: 18px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Texto informativo adicional */
.produto-info-adicional {
    margin-top: 1.5rem;
}

.info-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-badge-secondary {
    background-color: rgba(var(--secondary-rgb, 247, 37, 133), 0.1);
    color: var(--secondary-color);
}

/* Descrição do produto */
.produto-descricao {
    margin: 0rem 0;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.secao-titulo {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    color: #333;
}

.secao-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.descricao-conteudo {
    line-height: 1.6;
    color: #555;
}

.descricao-conteudo p {
    margin-bottom: 1rem;
}

.descricao-conteudo ul,
.descricao-conteudo ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.descricao-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Avaliações de produto */
.produto-avaliacoes-container {
    margin: 1rem 0;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.produto-avaliacoes-container + .produto-descricao {
    margin-top: 0.5rem; /* encosta mais a descrição */
}
.avaliacoes-estatisticas {
    margin-bottom: 2rem;
}

.estatisticas-resumo {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.estatisticas-nota {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 0.5rem;
    min-width: 150px;
}

.nota-valor {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nota-estrelas {
    margin-bottom: 0.5rem;
}

.nota-estrelas i {
    color: var(--accent-color, #ffc107);
    font-size: 1.2rem;
}

.nota-total {
    font-size: 0.9rem;
    color: #666;
}

.estatisticas-barras {
    flex: 1;
    min-width: 250px;
}

.barra-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.barra-label {
    width: 80px;
    font-size: 0.9rem;
    color: #666;
}

.barra-progresso {
    flex: 1;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.barra-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.barra-valor {
    width: 30px;
    font-size: 0.9rem;
    text-align: right;
    color: #666;
}

.avaliacoes-lista {
    margin-top: 2rem;
}

.avaliacao-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.avaliacao-item:last-child {
    border-bottom: none;
}

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

.usuario-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
}

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

.usuario-nome {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.avaliacao-data {
    font-size: 0.8rem;
    color: #666;
}

.avaliacao-estrelas {
    margin-bottom: 0.75rem;
}

.avaliacao-estrelas i {
    color: var(--accent-color, #ffc107);
    font-size: 1rem;
}

.avaliacao-texto {
    line-height: 1.6;
    color: #555;
}

.avaliacao-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.avaliacao-foto {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    overflow: hidden;
}

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

/* Produtos relacionados */
.produtos-relacionados {
    margin: 2rem 0;
}

.relacionados-carrossel {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.carrossel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    color: #666;
}

/* Modal de Zoom */
.modal-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-zoom.show {
    opacity: 1;
    visibility: visible;
}

.modal-zoom img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-zoom.show img {
    transform: scale(1);
}

.btn-close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-close-zoom:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Ajustes para navegação nos thumbnails */
.miniaturas-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 20px);
    left: 10px;
    display: none;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.miniaturas-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.miniaturas-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsividade aprimorada */
@media (min-width: 992px) {
    .produto-miniaturas-container {
        padding: 0 30px; /* Espaço para os botões de navegação */
    }
    
    .produto-miniaturas {
        max-width: 100%;
        margin-bottom: 1.5rem;
        scrollbar-width: thin;
    }
    
    .miniatura-item {
        width: 80px;
        height: 80px;
        margin-right: 0.5rem;
    }
    
    .produto-imagem-principal {
        margin-bottom: 1.5rem;
    }
    
    .miniaturas-nav {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .produto-titulo {
        font-size: 1.6rem;
    }
    
    .acoes-botoes {
        flex-direction: column;
    }
    
    .estatisticas-resumo {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .estatisticas-nota {
        width: 100%;
    }
    
    .produto-miniaturas {
        padding-bottom: 10px;
    }
    
    .miniatura-item {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 767.98px) {
    .produto-container {
        padding: 1rem 0;
    }
    
    .produto-breadcrumb {
        margin-bottom: 1rem;
    }
    
    .produto-titulo {
        font-size: 1.4rem;
    }
    
    .produto-miniaturas {
        padding-bottom: 8px;
    }
    
    .miniatura-item {
        width: 60px;
        height: 60px;
    }
    
    .estampa-opcao {
        width: 70px;
        padding: 0.4rem;
    }
    
    .estampa-preview {
        width: 60px;
        height: 60px;
    }
    
    /* Ajustes de cores para mobile */
    .cor-opcao {
        min-width: 40px;
        padding: 0.3rem;
    }
    
    .cor-circle {
        width: 25px;
        height: 25px;
    }
    
    .cor-name {
        font-size: 0.7rem;
        max-width: 40px;
    }
    
    /* Ajustes de tamanhos para mobile */
    .tamanho-opcao {
        min-width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .preco-atual span {
        font-size: 1.5rem;
    }
    
    .btn-adicionar-carrinho,
    .btn-comprar-agora {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .secao-titulo {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .produto-breadcrumb .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .produto-titulo {
        font-size: 1.2rem;
    }
    
    .produto-info {
        padding: 0.75rem;
    }
    
    .avaliacao-item {
        padding: 1rem;
    }
    
    .usuario-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Para telas muito pequenas */
@media (max-width: 359.98px) {
    .miniatura-item {
        width: 50px;
        height: 50px;
    }
    
    .estampa-opcao {
        width: 60px;
        padding: 0.3rem;
    }
    
    .estampa-preview {
        width: 50px;
        height: 50px;
    }
}
/* Adicione este CSS ao seu arquivo produto.css */

/* Ajuste para as estampas ficarem na horizontal */
.estampas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    flex-direction: row;
}

.estampa-opcao {
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

/* Garante que o container tenha largura suficiente */
.variante-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
}

/* Responsividade para telas menores */
@media (max-width: 576px) {
    .estampa-opcao {
        width: 65px;
        margin-right: 0.3rem;
    }
    
    .estampa-preview {
        width: 55px;
        height: 55px;
    }
}

/* Para dispositivos ainda menores */
@media (max-width: 359.98px) {
    .estampa-opcao {
        width: 55px;
    }
    
    .estampa-preview {
        width: 45px;
        height: 45px;
    }
}
/* Adicione este CSS ao seu arquivo produto.css */

/* Ocultar completamente o código/texto ao lado da cor selecionada */
.variant-selection-message {
    display: none !important;
}

/* Alternativa: se você quiser manter a mensagem para outros tipos de variantes mas não para cores */
#cor-selection-message,
#color-selection-message,
#cores-selection-message {
    display: none !important;
}

/* Remover qualquer texto que apareça após selecionar uma cor */
.cor-opcao.selected::after {
    display: none !important;
}

/* Apenas mostrar o ícone de verificação na cor selecionada */


/* === Ajuste: "Compartilhar" na mesma linha do seletor de quantidade em todas as telas === */
.acoes-quantidade {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.acoes-quantidade .quantidade-controle { margin-bottom: 0; }
.acoes-quantidade .btn-share,
.share-wrap .btn-share { width: auto; margin-top: 0; }

/* Força no mobile também (sobrescreve estilos inline/embutidos) */
@media (max-width: 991.98px) {
  .acoes-quantidade { align-items: center !important; flex-wrap: nowrap !important; }
  .acoes-quantidade .quantidade-controle { margin-bottom: 0 !important; }
  .acoes-quantidade .btn-share,
  .share-wrap .btn-share { width: auto !important; margin-top: 0 !important; }
}
/* ===== FIX: Espaçamento consistente e sem duplicação ===== */

/* 0) Neutraliza margens acumuladas anteriores (e evita colapso) */
.produto-descricao,
.produto-avaliacoes-container,
.produto-frete,
.produto-acoes,
.produto-info-adicional {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 1) Define os espaços "bons" (12px = 0.75rem) apenas entre blocos adjacentes */
.produto-frete + .produto-descricao,
.produto-acoes + .produto-descricao,
.produto-info-adicional + .produto-descricao,
.produto-descricao + .produto-avaliacoes-container {
  margin-top: 0.75rem !important;
}

/* 2) Se houver utilitários Bootstrap mt-5/mt-4/mt-3 ali, reduzimos só dentro da página de produto */
.produto-container [class*="mt-5"] { margin-top: 0.75rem !important; }
.produto-container [class*="mt-4"] { margin-top: 0.75rem !important; }
.produto-container [class*="my-5"] { margin-top: 0.75rem !important; } /* por segurança */

/* 3) Opcional: dá um respiro mínimo dentro de cada card (não conta como “vão” externo) */
.produto-descricao,
.produto-avaliacoes-container {
  padding-top: 1.25rem;   /* já tinha padding; mantemos confortável */
  padding-bottom: 1.25rem;
}

/* 4) Garante que o container geral não "empurre" demais no topo/rodapé */
.produto-container {
  padding-top: 1rem !important;   /* antes 2rem; reduz para mobile/geral */
  padding-bottom: 1rem !important;
}
/* ===== Botão Calcular CEP — igual ao "Comprar Agora" ===== */
.produto-frete .btn,
.produto-frete button,
.produto-frete input[type="submit"],
.produto-frete input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  /* mesmas cores do Comprar Agora */
  background-color: var(--primary-color) !important;   /* usa var do tema */
  border: 2px solid var(--primary-color) !important;   /* idem */
  color: #fff !important;

  /* mesmas dimensões/forma */
  padding: 0.75rem 1.5rem !important;                  /* igual ao btn-comprar-agora */
  border-radius: 0.25rem !important;                   /* igual ao btn-comprar-agora */
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer;

  transition: all 0.3s ease;
}

/* neutraliza variantes "outline" do Bootstrap se tiverem sido aplicadas */
.produto-frete .btn[class*="btn-outline"] {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Hover/active idêntico ao "Comprar Agora" */
.produto-frete .btn:hover,
.produto-frete button:hover,
.produto-frete input[type="submit"]:hover,
.produto-frete input[type="button"]:hover {
  background-color: var(--primary-dark) !important;    /* escurece como no comprar agora */
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3); /* mesmo efeito já usado no arquivo */
}

.produto-frete .btn:active,
.produto-frete button:active,
.produto-frete input[type="submit"]:active,
.produto-frete input[type="button"]:active {
  transform: translateY(0);
}
form[action*="frete"],
.produto-frete,
#calcular-frete {
  margin-bottom: 1rem !important; /* ajuste: 16px */
}
/* Texto "Baseado em X avaliações" – menor e com cor do tema */
.produto-info .baseado-em,
.baseado-em {
  font-size: 0.7rem !important;   /* ajuste fino (se quiser menor ainda: 0.75rem) */
  color: var(--primary-color) !important; /* usa a cor primária do sistema */
  font-weight: 500; /* opcional: dá um leve destaque */
}
/* Aumento das Thumbnails da Galeria no Mobile */
@media (max-width: 767.98px) {
    /* Aumenta o tamanho das miniaturas sem alterar o tamanho do container */
    .miniatura-item {
        width: 75px !important;
        height: 75px !important;
        margin-right: 8px !important;
        border-radius: 6px !important;
        transform-origin: center center;
    }
    
    /* Aumenta a evidência da borda para a miniatura ativa */
    .miniatura-item.active {
        border-color: var(--primary-color) !important;
        border-width: 3px !important;
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.4) !important;
    }
    
    /* Ajusta o efeito hover para compensar o tamanho maior */
    .miniatura-item:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Melhora a qualidade da exibição das imagens nas miniaturas */
    .miniatura-item img {
        object-fit: cover !important;
    }
    
    /* Melhora o espaçamento e alinhamento da galeria de miniaturas */
    .produto-miniaturas {
        padding: 5px 0 12px 0 !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        scrollbar-width: none !important; /* Esconde scrollbar Firefox */
        -ms-overflow-style: none !important; /* Esconde scrollbar IE/Edge */
    }
    
    /* Esconde scrollbar no Chrome/Safari */
    .produto-miniaturas::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Melhora a interatividade adicionando uma suave transição de scroll */
    .produto-miniaturas {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Adiciona um indicador mais evidente para a miniatura ativa */
    .miniatura-indicator {
        height: 4px !important;
        background-color: var(--primary-color) !important;
        bottom: -2px !important;
    }
}

/* Ajustes específicos para telas ainda menores */
@media (max-width: 575.98px) {
    .miniatura-item {
        width: 70px !important;
        height: 80px !important;
    }
}

/* Para telas muito pequenas, mantém um tamanho mínimo adequado */
@media (max-width: 359.98px) {
    .miniatura-item {
        width: 65px !important;
        height: 80px !important;
        margin-right: 6px !important;
    }
}