/* Estilos base */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fffdfb;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Layout para PC */
@media (min-width: 992px) {
  .container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
  }

  .form-column {
    position: sticky;
    top: 20px;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 50px;
  }

  .products-column {
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 15px;
  }
}
/* styles.css - Añadir estos estilos */

.section-title {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FB2451;
  font-size: 24px;
}

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #7f8c8d;
  background-color: #fffdfb;
  border-radius: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
/* Formulario */
.customer-form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #444;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Carrito */
.cart-summary {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.total {
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  margin: 15px 0;
}

#sendOrderBtn {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

#sendOrderBtn:hover {
  background-color: #128C7E;
}

/* Productos - Tarjetas compactas */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.3;
}

.product-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
  align-items: center;
}

.presentation {
  color: #7f8c8d;
  margin: 0;
  font-size: 13px;
}

.price {
  color: #FB2451;
  font-weight: bold;
  margin: 0;
  font-size: 15px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  align-items: center;
}

.quantity-input {
  width: 50px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

.add-to-cart {
  flex: 1;
  background-color: #629A3A;
  color: white;
  border: none;
  padding: 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background-color: #588a34;
}

/* Mensajes */
.error, .no-products {
  padding: 20px;
  text-align: center;
  color: #e74c3c;
  background: #fff;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 991px) {
  .form-column {
    margin-bottom: 30px;
    height: auto;
    position: static;
  }
  
  .products-column {
    height: auto;
  }
  
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    flex-direction: column;
  }
}