/* Estilos para el formulario de agregar productos */
#formulario-producto {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#formulario-producto h2 {
    color: #007bff;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#formulario-producto form div {
    margin-bottom: 15px;
}

#formulario-producto label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#formulario-producto input,
#formulario-producto textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#formulario-producto button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#formulario-producto button:hover {
    background-color: #218838;
}

/* Estilos para el catálogo de productos */
#catalogo-productos {
    margin-top: 30px;
}

#catalogo-productos h2 {
    color: #007bff;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.producto-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.producto-info {
    padding: 15px;
}

.producto-info h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.producto-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.producto-info .precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}
/* Estilo para el botón de eliminar */
.boton-eliminar {
    background-color: #dc3545; /* Color rojo para indicar peligro/eliminar */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.boton-eliminar:hover {
    background-color: #c82333; /* Rojo más oscuro al pasar el mouse */
}
/* Estilos para el contenedor de botones */
.botones-acciones {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

/* Estilo para el botón de editar */
.boton-editar {
    background-color: #ffc107; /* Color amarillo para editar */
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.boton-editar:hover {
    background-color: #e0a800;
}
/* Estilo para el stock */
.stock {
    font-weight: bold;
    color: #007bff; /* Color azul para destacar la cantidad */
    margin-top: 5px;
}
/* Estilo para el botón de WhatsApp */
.boton-whatsapp {
    background-color: #25D366; 
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.boton-whatsapp:hover {
    background-color: #128C7E;
}