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

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}

.breadcrumb ul li {
    color: #666;
}

.breadcrumb ul li a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb ul li a:hover {
    color: #000;
}

.breadcrumb ul li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
    font-size: 16px;
}

.breadcrumb ul li:last-child {
    color: #000;
    font-weight: 500;
}

/* Container do Produto */
.product-detail {
    padding: 30px 0 50px;
    background: #fff;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   GALERIA DE IMAGENS - ESTILO MOLETONIA
   ============================================ */
.product-gallery {
    display: flex;
    gap: 15px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Miniaturas Laterais */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 80px;
    flex-shrink: 0;
}

.gallery-thumbs img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbs img:hover {
    border-color: #000;
    opacity: 0.9;
}

.gallery-thumbs img.active {
    border-color: #000;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Imagem Principal */
.gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* ============================================
   INFORMAÇÕES DO PRODUTO
   ============================================ */
.product-detail-info {
    padding: 0 20px;
}

.product-detail-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.3;
}

/* Meta Informações */
.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta strong {
    color: #000;
}

/* ============================================
   SELETORES (COR E TAMANHO)
   ============================================ */
.color-selector,
.size-selector {
    margin: 25px 0;
}

.color-selector h3,
.size-selector h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

/* Opções de Cor */
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    padding: 10px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
}

.color-option:hover {
    border-color: #000;
    background: #f8f9fa;
}

.color-option.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Opções de Tamanho */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    padding: 10px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
    background: #fff;
}

.size-option:hover {
    border-color: #000;
    background: #f8f9fa;
}

.size-option.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* ============================================
   SEÇÃO DE PREÇOS
   ============================================ */
.price-section {
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid #4CAF50;
    background: #fff;
}

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

.price-section .sale-price {
    font-size: 32px;
    color: #000;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.price-section .installment {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Destaque Pix */
.pix-highlight {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
}
/* ============================================
   BOTÃO COMPRAR
   ============================================ */
.btn-comprar {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ============================================
   CONTAINER DE PAGAMENTO
   ============================================ */
.payment-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icons i {
    font-size: 24px;
    color: #6c757d;
}

.payment-icons .fa-cc-visa {
    color: #1a1f71;
}

.payment-icons .fa-cc-mastercard {
    color: #eb001b;
}

.payment-icons .fa-cc-amex {
    color: #006fcf;
}

.payment-icons .fa-cc-diners-club {
    color: #0079be;
}

.installments-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.installments-toggle:hover {
    color: #4CAF50;
}

.installments-list {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.installment-option {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
}

.installment-option:last-child {
    border-bottom: none;
}

.payment-methods {
    margin-top: 15px;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.payment-option-info i {
    font-size: 16px;
    width: 20px;
}

.payment-option-info .fa-barcode {
    color: #6c757d;
}

.payment-option-info .fa-pix {
    color: #4CAF50;
}

.payment-value {
    margin-left: auto;
    font-weight: 600;
    color: #4CAF50;
}

/* ============================================
   CÁLCULO DE FRETE
   ============================================ */
.shipping-calc {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.shipping-calc h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.shipping-form {
    margin-bottom: 15px;
}

.cep-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cep-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.cep-input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.cep-button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cep-button:hover {
    background: #555;
}

.shipping-options {
    margin-top: 15px;
}

.shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
}

.shipping-option:last-child {
    margin-bottom: 0;
}

.shipping-option input[type="radio"] {
    margin-right: 10px;
}

.shipping-info {
    flex: 1;
}

.shipping-name {
    font-weight: 600;
    color: #333;
}

.shipping-time {
    font-size: 12px;
    color: #666;
}

.shipping-price {
    font-weight: 600;
    color: #4CAF50;
}dding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.boleto-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.boleto-section i {
    font-size: 16px;
}

.pix-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

/* ============================================
   BOTÃO COMPRAR
   ============================================ */
.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 25px 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

.buy-btn i {
    margin-right: 8px;
}

/* ============================================
   CÁLCULO DE FRETE
   ============================================ */
.shipping-calc {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.shipping-calc h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.shipping-calc form {
    display: flex;
    gap: 10px;
}

.shipping-calc input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.shipping-calc input:focus {
    outline: none;
    border-color: #000;
}

.shipping-calc button {
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.shipping-calc button:hover {
    background-color: #333;
}

#shippingOptions {
    margin-top: 15px;
}

.shipping-option {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e5e5e5;
    transition: border-color 0.3s;
}

.shipping-option:hover {
    border-color: #000;
}

.shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shipping-option label {
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   COMPARTILHAR
   ============================================ */
.share-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.share-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   DESCRIÇÃO DO PRODUTO
   ============================================ */
.product-description {
    margin: 60px 0;
    padding: 50px 0;
    border-top: 2px solid #e5e5e5;
    border-bottom: 2px solid #e5e5e5;
}

.product-description h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description > div {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
    color: #555;
    font-size: 15px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description strong,
.product-description b {
    color: #000;
    font-weight: 600;
}

.product-description ul,
.product-description ol {
    margin: 15px 0;
    padding-left: 30px;
}

.product-description li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ============================================
   PRODUTOS RELACIONADOS
   ============================================ */
.related-products {
    margin: 50px 0;
    padding: 50px 0;
    background: #fff;
}

.related-products .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid de Produtos Relacionados - Responsivo */
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.related-products .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.related-products .product-card:hover,
.related-products .product-card.mobile-hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-products .product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.related-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products .product-image .main-image {
    display: block;
}

.related-products .product-image .hover-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-products .product-card:hover .product-image .main-image,
.related-products .product-card.mobile-hover .product-image .main-image {
    display: none;
}

.related-products .product-card:hover .product-image .hover-image,
.related-products .product-card.mobile-hover .product-image .hover-image {
    display: block;
}

.related-products .product-card:hover .product-image img,
.related-products .product-card.mobile-hover .product-image img {
    transform: scale(1.05);
}

.related-products .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.related-products .product-info {
    padding: 15px;
}

.related-products .product-title {
    margin-bottom: 10px;
    min-height: 45px;
}

.related-products .product-title a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products .product-title a:hover {
    color: #4CAF50;
}

.related-products .product-prices {
    margin-bottom: 8px;
}

.related-products .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.related-products .sale-price {
    font-size: 20px;
    color: #dc3545;
    font-weight: bold;
}

.related-products .pix-price {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.related-products .buy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.related-products .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsividade para produtos relacionados */
@media (max-width: 1200px) {
    .related-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-products .product-image {
        height: 250px;
    }
    
    .related-products .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-products .product-image {
        height: 200px;
    }
    
    .related-products .product-info {
        padding: 12px;
    }
    
    .related-products .product-title a {
        font-size: 13px;
    }
    
    .related-products .sale-price {
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        flex-direction: column;
        position: static;
    }
    
    .gallery-thumbs {
        flex-direction: row;
        max-width: none;
        overflow-x: auto;
        padding-bottom: 10px;
        order: 2;
    }
    
    .gallery-thumbs img {
        min-width: 70px;
        width: 70px;
        height: 90px;
    }
    
    .gallery-main {
        order: 1;
    }
    
    .product-detail-info {
        padding: 0 15px;
    }
    
    .product-detail-info h1 {
        font-size: 20px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-section .sale-price {
        font-size: 28px;
    }
    
    .shipping-calc form {
        flex-direction: column;
    }
    
    .shipping-calc button {
        width: 100%;
    }
    
    .color-options,
    .size-options {
        gap: 6px;
    }
    
    .color-option,
    .size-option {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb ul {
        font-size: 12px;
    }
    
    .product-detail {
        padding: 20px 0 40px;
    }
    
    .product-detail-info h1 {
        font-size: 18px;
    }
    
    .gallery-thumbs img {
        min-width: 60px;
        width: 60px;
        height: 75px;
    }
    
    .price-section .sale-price {
        font-size: 24px;
    }
    
    .buy-btn {
        padding: 14px;
        font-size: 14px;
    }
}

/* ============================================
   MELHORIAS DE ACESSIBILIDADE
   ============================================ */
.color-option:focus,
.size-option:focus,
.shipping-calc input:focus,
.shipping-calc button:focus,
.buy-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Animação suave para troca de imagem */
.gallery-main img {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}



/* ============================================
   ✅ ADICIONAR ESTE CSS NO FINAL DO SEU produto-page.css
   CORES DINÂMICAS DO BANCO DE DADOS
   ============================================ */

/* Seletor de Cores - Atualizado */
.color-selector .color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-selector .color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
}

.color-selector .color-option:hover {
    border-color: #4CAF50;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.color-selector .color-option.selected {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.color-selector .color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Quando a cor está selecionada, ajustar borda do círculo */
.color-selector .color-option.selected .color-circle {
    border-color: rgba(255,255,255,0.5);
}

/* Responsividade para cores em mobile */
@media (max-width: 480px) {
    .color-selector .color-option {
        padding: 10px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .color-selector .color-circle {
        width: 20px;
        height: 20px;
    }
}