/* Reset CSS básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Contenedor principal */
main {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Sistema de rejilla para secciones */
section {
    margin-bottom: 40px;
}

/* Encabezado */
header {
    background-color: #007bff;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero */
.hero {
    padding: 50px 0;
}

/* Barra de búsqueda y filtros */
#search {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#search input, #search select, #search button {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#search button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

#search button:hover {
    background-color: #0056b3;
}

/* Productos destacados y lista de productos */
#featured-products, #product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h3 {
    padding: 15px;
    font-size: 1.2em;
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* Historial de precios y lista de deseos */
#price-history, #wishlist {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    #search {
        flex-direction: column;
        align-items: stretch;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}
