/* --- Estilos específicos da página de produto --- */
/* Reset, variáveis, header e footer vêm do style.css via base.html */

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 20px 50px;
    font-size: 0.9rem;
    color: var(--texto-suave);
    background-color: var(--bg-card);
}

.breadcrumbs a:hover {
    color: var(--vermelho);
    text-decoration: underline;
}

/* --- Layout da Página do Produto --- */
.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Galeria */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--borda, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* Informações */
.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.sku {
    font-size: 0.8rem;
    color: var(--texto-suave);
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.price-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borda, #e0e0e0);
}

.price {
    font-size: 2rem;
    color: var(--vermelho);
    font-weight: bold;
}

.price-installment {
    font-size: 1rem;
    color: var(--texto-suave);
    margin-top: 5px;
}

.short-desc {
    margin-bottom: 30px;
    color: var(--texto-suave);
    line-height: 1.8;
}

.shipping-calc {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 8px;
}

.shipping-calc p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--texto-principal);
}

.shipping-calc i {
    margin-right: 10px;
    color: var(--vermelho);
}

/* Botoes */
.actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #25D366 0%, #1EBE5A 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1EBE5A 0%, #25D366 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-whatsapp i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #EA4335 0%, #D32F2F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-email:hover::before {
    left: 100%;
}

.btn-email:hover {
    background: linear-gradient(135deg, #D32F2F 0%, #EA4335 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(234, 67, 53, 0.5);
}

.btn-email:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-email i {
    font-size: 1.3rem;
}

/* Abas */
.product-tabs {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--borda, #e0e0e0);
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding-bottom: 10px;
    cursor: pointer;
    color: var(--texto-suave);
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--texto-principal);
}

.tab-btn.active {
    color: var(--vermelho);
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--vermelho);
}

.tab-content {
    color: var(--texto-suave);
    line-height: 1.8;
    display: none;
    padding: 20px 0;
}

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

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--borda, #e0e0e0);
}

.tab-content ul li:last-child {
    border-bottom: none;
}

/* Relacionados */
.related-products {
    padding: 50px 20px;
    background-color: var(--bg-card);
    text-align: center;
}

.related-products .product-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.related-products .product-card {
    background-color: #fff;
    text-align: left;
}

.related-products .product-img {
    height: 250px;
}

/* Responsividade */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breadcrumbs {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .related-products .product-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        gap: 15px;
        margin-top: 30px;
    }

    .btn-whatsapp,
    .btn-email {
        padding: 16px 25px;
        font-size: 0.95rem;
    }

    .btn-whatsapp i {
        font-size: 1.3rem;
    }

    .btn-email i {
        font-size: 1.1rem;
    }
}
