/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header y Footer (sin cambios) --- */
header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo img { height: 100px; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
header nav ul li { margin-left: 2rem; }
header nav a { text-decoration: none; color: #333; font-weight: bold; }
.cart-icon { position: relative; cursor: pointer; }
.cart-icon i { font-size: 1.5rem; }
#cart-count { position: absolute; top: -10px; right: -10px; background-color: #d9534f; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; }
footer { text-align: center; padding: 1.5rem 0; margin-top: 2rem; background-color: #333; color: #fff; }

/* --- Estilos de la página de categoría (sin filtros) --- */
main.container {
    margin-top: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.category-header h1 {
    margin: 0;
}

.sort-by select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-card img { max-width: 100%; height: 150px; object-fit: contain; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.product-card .price { font-size: 1.2rem; font-weight: bold; color: #28a745; margin: 0.5rem 0; }
.add-to-cart { background-color: #007bff; color: white; border: none; padding: 0.8rem 1.2rem; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; }
.add-to-cart:hover { background-color: #0056b3; }

/* --- Estilos del Modal del Carrito (sin cambios) --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; border-radius: 8px; position: relative; }
.close-button { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-total { text-align: right; font-size: 1.5rem; margin-top: 1rem; }
#checkout-form input, #checkout-form textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.checkout-button { width: 100%; padding: 15px; background-color: #28a745; color: white; border: none; border-radius: 5px; font-size: 1.2rem; cursor: pointer; }
#form-status { margin-top: 1rem; font-weight: bold; text-align: center; }