* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;

}

body {
  margin: 0;
  background-color: #f4f4f4;
}

a {
  text-decoration: none;
}

body {
  background-color: #ccc;
}

.contenedor {
  display: flex;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
input,
textarea,
ul {
  margin: 0;
  padding: 0;
}

header {
  width: 100%;
  background-color: #c4a8a8;
  padding: 10px 40px;
  border-bottom: 2px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: left;
}

.menu {
  text-align: center;
  flex: 1;
  text-decoration: none;
  font-size: 50px;
}

.carrito {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}



.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  flex-grow: 1;
}

.product-card {
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card button {
  background-color: #f8f8f8;
  border: 1px solid #aaa;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
}

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

#carrito-contenedor {
  position: fixed;
  top: 100px;
  right: 30px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#carrito-contenedor h2 {
  text-align: center;
  margin-bottom: 10px;
}

#lista-carrito {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 250px;
  overflow-y: auto;
}

#lista-carrito li {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.carrito-oculto {
  display: none;
}

#vaciar-carrito {
  background-color: #ff4b4b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

#vaciar-carrito:hover {
  background-color: #e63b3b;
}