/* ==========================================================================
   RESET E ESTILOS GLOBAIS
   ========================================================================== */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    /* Fallback escuro, o fundo real está no header.php */
    background-color: #020308; 
    color: #f0f2ff;
}

.container {
    max-width: 1200px; /* Alinhado com o tamanho do glass-card */
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: #9aabf0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #c4d0ff;
    text-shadow: 0 0 8px rgba(154, 171, 240, 0.4);
}

/* ==========================================================================
   TÍTULOS E BLOCOS DE CONTEÚDO
   ========================================================================== */
.page-title {
    font-size: 2.5rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.element {
    margin-bottom: 2rem;
}

.content-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   PRODUTOS (Grid e Cards Estilo Glassmorphism)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card, .product-block .product-card-standalone {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s, border-color 0.3s;
}

/* Efeito standalone para a página inicial */
.product-block .product-card-standalone {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.product-card:hover, .product-block .product-card-standalone:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(110, 127, 216, 0.15);
    border-color: rgba(110, 127, 216, 0.4);
}

.product-card-image, .product-block .product-image-link {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-block .product-image-link {
    width: 250px;
    height: 200px;
    border-radius: 12px;
    border-bottom: none;
}

.product-card-image img, .product-block .product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img, 
.product-block .product-card-standalone:hover .product-image-link img {
    transform: scale(1.08);
}

.product-card-content, .product-block .product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title, .product-block .product-details h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-weight: 600;
}

.product-block .product-details h3 a {
    color: #ffffff;
}
.product-block .product-details h3 a:hover {
    color: #9aabf0;
}

.product-card-price, .product-block .product-details .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4ade80; /* Verde néon suave */
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.product-card-description, .product-block .product-details p {
    font-size: 0.9rem;
    color: rgba(210, 215, 240, 0.7);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Botões Estilo Glass */
.product-card-button, .product-block .product-details .button {
    display: block;
    background: rgba(110, 127, 216, 0.15);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(110, 127, 216, 0.4);
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.product-card-button:hover, .product-block .product-details .button:hover {
    background: rgba(110, 127, 216, 0.3);
    box-shadow: 0 0 15px rgba(110, 127, 216, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* ==========================================================================
   PÁGINA DE DETALHES DO PRODUTO
   ========================================================================== */
.produto-detalhe-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.produto-imagens {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-view {
    width: 100%;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.main-image-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.gallery-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gallery-thumbnails img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumbnails img.active {
    border-color: #9aabf0;
    opacity: 1;
    box-shadow: 0 0 10px rgba(154, 171, 240, 0.4);
}

.produto-info h1 {
    margin-top: 0;
    font-size: 2.2rem;
    color: #ffffff;
}

.produto-info .product-price {
    font-size: 2rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

/* Botão WhatsApp */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: rgba(37, 211, 102, 0.25);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   ÁLBUNS E GALERIAS
   ========================================================================== */
.album-section-title {
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    color: #ffffff;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.album-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(154, 171, 240, 0.15);
    border-color: rgba(154, 171, 240, 0.3);
}

.album-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.album-description {
    text-align: center;
    padding: 20px;
    color: rgba(210, 215, 240, 0.8);
}

/* Galeria de Fotos Interna */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.photo-thumbnail {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.photo-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(154, 171, 240, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-thumbnail:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   MODAL LIGHTBOX (Refinado)
   ========================================================================== */
.lightbox-overlay {
    background-color: rgba(2, 3, 8, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#lightbox-caption {
    font-size: 1.1rem;
    color: #f0f2ff;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: #9aabf0;
    text-shadow: 0 0 15px rgba(154, 171, 240, 0.6);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .produto-detalhe-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .product-block .product-card-standalone {
        flex-direction: column;
    }
    
    .product-block .product-image-link {
        width: 100%;
    }
}