/* ==========================================
   PÁGINA DE PRODUTO - ESTILO PROFISSIONAL
   ========================================== */

/* BREADCRUMB */
.breadcrumb {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* LAYOUT PRODUTO */
.produto-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* GALERIA DO PRODUTO */
.produto-galeria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* MINIATURAS */
.galeria-miniaturas {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

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

.galeria-miniaturas img:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.galeria-miniaturas img.active {
    border-color: #667eea;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

/* IMAGEM PRINCIPAL */
.galeria-principal {
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.galeria-principal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* DOTS DO CAROUSEL */
.galeria-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.galeria-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-dots span.active {
    background: #667eea;
    width: 24px;
    border-radius: 4px;
}

/* INFO DO LADO */
.produto-info-lado {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HEADER PRODUTO */
.produto-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.produto-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.produto-rating .stars {
    font-size: 16px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* BADGES */
.produto-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.produto-badges span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-estoque {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-frete {
    background: #e3f2fd;
    color: #1565c0;
}

/* PREÇO */
.produto-price {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-main {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 10px 0;
}

.price-parcel {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* VARIAÇÕES */
.produto-variacao {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.produto-variacao h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.tamanho-opcoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tamanho-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tamanho-btn:hover {
    border-color: #667eea;
    background: #f5f5f5;
}

.tamanho-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* QUANTIDADE */
.produto-quantidade {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.produto-quantidade h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.qtd-container {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: fit-content;
}

.qtd-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}

.qtd-btn:hover {
    background: #f5f5f5;
}

.qtd-container input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* BOTÕES DE AÇÃO */
.produto-acoes {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-comprar {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-comprar:active {
    transform: translateY(0);
}

.btn-wishlist {
    padding: 16px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background: #f8f8ff;
    transform: translateY(-2px);
}

/* INFO ADICIONAIS */
.produto-ship-info {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.ship-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.ship-item span:first-child {
    font-size: 18px;
}

/* ACCORDION */
.produto-accordion {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    gap: 12px;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-header.active {
    background: #667eea;
    color: white;
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 20px;
    background: white;
}

.accordion-content.active {
    display: block;
}

.accordion-content p {
    line-height: 1.6;
    color: #666;
}

.detalhes-table {
    width: 100%;
    border-collapse: collapse;
}

.detalhes-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.detalhes-table td:first-child {
    font-weight: 600;
    width: 30%;
    color: #333;
}

/* RELACIONADOS */
.produto-relacionados {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.produto-relacionados h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #667eea;
}

/* FOOTER LOGO */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-size: 28px;
}

.footer-logo h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.footer-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #667eea;
    transform: translateY(-3px);
}

/* PAYMENTS */
.footer-payments {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    text-align: center;
}

.footer-payments h4 {
    margin-bottom: 16px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-icons span {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.payment-icons span:hover {
    transform: scale(1.1);
}

/* COPYRIGHT */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* ==========================================
   RESPONSIVE DESIGN - FOOTER E PRODUTO
   ========================================== */

@media (max-width: 1024px) {
    .produto-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .produto-page {
        margin: 20px auto;
        padding: 0 12px 20px;
    }

    .produto-header h1 {
        font-size: 22px;
    }

    .tamanho-opcoes {
        gap: 8px;
    }

    .tamanho-btn {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }

    .produto-acoes {
        grid-template-columns: 1fr;
    }

    .price-main {
        font-size: 26px;
    }

    .galeria-miniaturas {
        gap: 10px;
    }

    .galeria-miniaturas img {
        width: 70px;
        height: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-payments {
        margin: 30px auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }

    .produto-page {
        margin: 20px auto;
        padding: 0 10px 20px;
    }

    .produto-header h1 {
        font-size: 18px;
    }

    .price-main {
        font-size: 22px;
    }

    .tamanho-opcoes {
        gap: 6px;
    }

    .tamanho-btn {
        width: 40px;
        height: 40px;
        font-size: 11px;
    }

    .btn-comprar {
        padding: 14px;
        font-size: 14px;
    }

    .btn-wishlist {
        padding: 14px;
        font-size: 14px;
    }

    .galeria-miniaturas {
        gap: 8px;
    }

    .galeria-miniaturas img {
        width: 60px;
        height: 60px;
    }

    .accordion-header {
        padding: 14px 16px;
        font-size: 13px;
    }

    .accordion-content {
        padding: 16px;
    }

    .footer {
        padding: 40px 16px 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-payments {
        margin: 24px auto;
        padding: 20px 16px;
    }

    .payment-icons {
        gap: 12px;
    }

    .payment-icons span {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }
}

/* ESTILOS PARA PREÇOS COM PROMOÇÃO */
.preco-antigo {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 12px;
}

.preco-promocional {
    color: #2ecc71;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.variacao-opcoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variacao-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.variacao-btn.ativo {
  background: #667eea;
  color: white;
}

.variacao-btn.indisponivel {
  opacity: 0.4;
  cursor: not-allowed;
}
