/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

  /* Header styles */
    header {
        text-align: center;
        padding: 1rem 0;
    }
    header img {
        max-width: 100%; /* Adjust max-width as needed */
        height: auto; 
    }

    /* Category styles */
    .category img {
        width: 100%;
        height: auto;
        object-fit: cover; 
    }

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    display: inline-block;
}

header a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Contenido principal */
main {
    padding: 2rem;
}

/* Categorías */
.categories h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category p {
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

/* Productos */
.products h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.product {
    width: 220px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background-color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.product h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #007bff;
    font-weight: bold;
}

.product form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product input[type="number"] {
    width: 60px;
    margin: 0 auto;
    text-align: center;
}

.product button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product button:hover {
    background-color: #0056b3;
}

/* Carrito */
.cart table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cart table th,
.cart table td {
    border: 1px solid #ccc;
    padding: 0.8rem;
    text-align: center;
}

.cart table th {
    background-color: #f1f1f1;
}

.cart p {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart a {
    display: inline-block;
    margin-top: 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cart a:hover {
    background-color: #0056b3;
}




.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.product-card .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.product-card .button:hover {
    background-color: #218838;
}

