:root {
  --color-principal: #11016dc4;
  --color-secundario: #09003f;
   --color-footer: #01000684;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('img/fondo.jpg');
  background-repeat: repeat;
  background-size: 200px auto;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
  color: white;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.search-container input, .search-container select {
  padding: 10px;
  font-size: 1rem;
  border: 2px solid var(--color-principal);
  border-radius: 8px;
  width: 200px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h4 {
  margin: 10px 0 5px;
}

.product-info p {
  margin: 0 0 10px;
  font-weight: bold;
  color: var(--color-principal);
}

.product-info input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 2px solid var(--color-principal);
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-info button {
  background: var(--color-principal);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.product-info button:hover {
  background: var(--color-secundario);
}

.cart-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-principal);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1000;
}

.cart-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-secundario);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 1001;
  padding: 20px;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-total {
  font-weight: bold;
  text-align: right;
  margin: 20px 0;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background: #012911;
}

.empty-message {
  text-align: center;
  color: #888;
  margin-top: 20px;
  display: none;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-container {
    width: 100%;
    justify-content: flex-start;
  }
}

  .footer-content {
    flex-direction: column;
  }

  .footer-info, .footer-map {
    width: 100%;
    margin-bottom: 15px;
  }
