/* Estilos Gerais */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Estilos para os cards de produtos */
.produto-card {
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.produto-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Galeria de produtos detalhes */
.produto-galeria .img-thumbnail {
    height: 150px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.produto-galeria .img-thumbnail:hover {
    opacity: 0.8;
}

.produto-galeria .produto-nome {
    font-weight: bold;
    margin-top: 5px;
}

.produto-galeria .produto-preco {
    color: #0d6efd;
    font-weight: bold;
}

/* Estilos para ampliação de imagens */
.produto-imagem {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.produto-imagem:hover {
    opacity: 0.8;
}

#imagemAmpliada {
    max-height: 80vh;
    object-fit: contain;
}

.produto-imagem-principal {
    height: 400px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Estilos para o carrinho */
.carrinho-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.carrinho-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.carrinho-vazio {
    text-align: center;
    padding: 50px 0;
}

/* Estilos para o painel administrativo */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
}

.admin-content {
    padding: 20px;
}

.upload-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    border: 1px solid #ddd;
}

/* Mensagens de alerta */
.alert {
    margin-bottom: 20px;
}

/* Estilos para o menu hamburguer */
.navbar-toggler {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* Estilos para o menu mobile */
#menuMobile {
    transition: all 0.3s ease;
    left: 0;
    top: 70px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding-top: 10px;
    margin-top: 10px;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#menuMobile .nav-item {
    margin-bottom: 5px;
}

#menuMobile .nav-link {
    padding: 8px 15px;
    border-radius: 4px;
}

#menuMobile .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 767px) {
    .produto-imagem-principal {
        height: 300px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}
