/* ====== LAYOUT PRINCIPAL (Desktop First) ====== */
.produto-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px; /* Espaço entre a imagem e a info */
}

/* ====== GALERIA/IMAGEM PRINCIPAL ====== */
.produto-galeria {
    flex: 1;
    min-width: 300px; /* Garante que não encolhe demasiado */
}

.produto-imagem-principal {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fcfcfc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
}

.produto-imagem-principal:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.imagem-vinho {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 25px;
}

.btn-zoom {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-zoom:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ====== INFORMAÇÕES DO PRODUTO (Lado Direito) ====== */
.produto-info {
    flex: 1;
    padding-top: 20px;
}

.produto-nome {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.produto-preco {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FF5733; /* Laranja Folia */
    margin-bottom: 30px;
}

.produto-preco .preco-valor {
    font-size: 1em; /* mantém o mesmo tamanho */
}

/* ====== FORMULÁRIO E QUANTIDADE ====== */
.form-carrinho {
    max-width: 350px; /* Limita a largura do formulário */
}

.quantidade-input .input-group-text {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 600;
    border-radius: 5px 0 0 5px;
}

.quantidade-input .form-control {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ====== BOTÃO ADICIONAR AO CARRINHO ====== */
.btn-carrinho {
    background: linear-gradient(90deg, #C70039, #FF5733); /* Gradiente Festivo */
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(199, 0, 57, 0.4);
}

.btn-carrinho:hover {
    background: linear-gradient(90deg, #FF5733, #FFC300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 51, 0.6);
}

/* ====== NOTIFICAÇÃO (Flash Message) ====== */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Começa fora do ecrã */
    background-color: #4caf50;
    color: white;
    padding: 15px 30px;
    text-align: center;
    font-size: 1.1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    z-index: 1050;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Desce para o centro */
}

/* ====== RESPONSIVIDADE (MOBILE) ====== */
@media (max-width: 992px) {
    .produto-container {
        flex-direction: column; /* Empilha a imagem e a info */
        padding: 20px 15px;
        gap: 20px;
    }

    .produto-galeria, .produto-info {
        flex: none;
        width: 100%;
        min-width: initial;
    }

    .produto-imagem-principal {
        max-width: 500px; /* Limita a largura da imagem no mobile grande */
        margin: 0 auto;
    }

    .produto-nome {
        font-size: 2rem;
    }

    .produto-preco {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .form-carrinho {
        max-width: 100%; /* Permite o formulário expandir */
    }
}

@media (max-width: 576px) {
    .produto-nome {
        font-size: 1.8rem;
    }

    .produto-preco {
        font-size: 1.8rem;
    }

    .imagem-vinho {
        padding: 15px;
    }
    
    .btn-zoom {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .btn-carrinho {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}