body {
    background-color: #e2e2e2;
    font-family: sans-serif;
    /* margin: 2em; */
    line-height: 1.6;
    display: block;
    margin: 2%;
    padding-top: 60px;
}

main {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9; /* Fondo muy claro */
    display: flex; /* Flexbox para centrar */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    min-height: 100vh; /* Ocupar toda la altura de la ventana */
    margin: 0;
    max-height: 90vh;
    color: #e2e2e2;
    /* padding-top: 60px; */
}

nav {
    position: fixed;   /* Lo fija en la pantalla */
    top: 0;            /* Lo coloca en la parte superior */
    left: 0;           /* Asegura alineación */
    width: 90%;       /* Ocupa todo el ancho */
    z-index: 999;      /* Evita que otros elementos lo tapen */
    background: #fff;      /* Fondo sólido para que no se vea transparente */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    margin-right: 15px;
    text-decoration: none;
    color: #007bff;
}

/* Contenedor principal de la aplicación */
.content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

/* Estilos de Formulario (Login) */
form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Incluye padding en el ancho */
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilo para mensajes de error */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilo para mensajes de éxito (Flash) */
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.product-card {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.price {
    font-size: 1.5em;
    color: #007bff;
    font-weight: bold;
}
.back-link {
    display: block;
    margin-top: 20px;
}