body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaeaea; /* Gris clarito */
}

/* Barra de navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #005eff;
    padding: 20px 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

.nav-links {
    display: flex;
    align-items: center; /* Alinea los elementos verticalmente */
    justify-content: space-between; /* Espaciado entre los enlaces y la imagen */
}

.nav-links img.logo {
    height: 80px; /* Ajusta el tamaño de la imagen logo */
    width: auto;  /* Mantiene la relación de aspecto de la imagen */
}

.nav-links h2.slogan{
    color: #ddd;
}


.profile-pic img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Sección de novedades */
.novedades {
    background-color: #005eff;
    padding: 20px;
    text-align: center;
    color: white;
    margin-top: 10px;
    border-radius: 10px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.carousel {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-item {
    width: 80px;
    height: 80px;
    background-color: white;
    border: 2px solid white;
    border-radius: 5px;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.search-bar input {
    padding: 10px;
    width: 200px;
    border: 1px solid #000;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px;
    background-color: white;
    border: 1px solid #000;
    cursor: pointer;
    border-radius: 5px;
}

/* Lista de productos */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    max-width: 90%;
    margin: auto;
}


.product-item button {
    width: 100%; /* Botón ocupa todo el ancho */
    margin-top: 10px; /* Espacio entre el texto y el botón */
}

.product-item:hover {
    background-color: #afafaf;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todos los elementos dentro de cada producto */
    text-align: center; /* Centra el texto */
    width: 300px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    transition: background-color 0.3s ease-in-out;
}

.product-item img {
    width: 100px; /* Ajusta el tamaño de la imagen */
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Estilo del botón */
.add-to-cart {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #218838;
}

.cart {
    position: fixed;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.cart-items {
    list-style: none;
    padding: 0;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.remove-item {
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}

/* Estilos del botón de comprar */
.buy-button {
    background-color: #ff9800;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.buy-button:hover {
    background-color: #e68900;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer i {
    font-size: 24px;
}

.footer a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    text-decoration: underline;
}

.precio {
    transform: none; /* Elimina el desplazamiento manual */
    font-weight: bold;
    margin-top: 10px;
}
