* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

body {
  background: #ffffff;
}

.cantidad{
    color: red;
}

/* HEADER */

.header {
  height: 350px;
  background-image: url(fon33.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CONTENEDOR */
.container_title {
  display: flex;
  justify-content: center;
  align-items: center;
  
}
.content_title {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 1270px;
  margin-bottom: 20px;
  margin-top: 50px;
}

.content_title h1 {
  color: #ffffff;
  text-shadow: 2px 2px 2px #3d3d3d;
}

.content_title p {
  color: #ffffff;
  text-shadow: 2px 2px 2px #3d3d3d;
   max-width: 900px;
  text-align: center;
}

.container {
  max-width: 1270px;
  margin: auto;
}

/* BUSCADOR */

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filters input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 15px;
}

.filters select {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: rgb(15, 14, 14);
  font-size: 15px;
}

/* GRID PRODUCTOS */

#productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, auto));
  gap: 10px;
  margin-top: 200px;
}

.redirec {
  text-decoration: none;
  color: white;
}

/* TARJETA */

.card {
  background: #fff9f9;
  border-radius: 10px;
  padding: 10px;
  transition: 0.2s;
  height: 300px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow:
    0 0 2px 0 rgba(145 158 171 / 20%),
    0 12px 24px -4px rgba(145 158 171 / 12%);
}

.title {
  font-weight: 500;
  font-size: 17px !important;
  color: #1d1d1d;
}

.price {
  font-weight: 600;
  color: #dfab42;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.precio {
  color: #3ddc84;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.card a {
  display: inline-block;
  padding: 8px 12px;
  background: #2b8cff;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

/* PAGINA PRODUCTO */

.product-page {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-page img {
  width: 100%;
  border-radius: 10px;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-info p {
  color: #1d1d1d;
  margin-bottom: 20px;
}

.product-info h2 {
  color: #3ddc84;
  margin-bottom: 20px;
}

/* BOTONES */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 10px;
  font-weight: bold;
}

.whatsapp {
  background: #25d366;
  color: white;
}

.share {
  background: #1171f8;
  color: white;
  border: none;
  cursor: pointer;
}

/* FOOTER */

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  height: 300px;
  background-color: #f1f1f1;
  position: absolute;
  z-index: 9999;
  bottom: -18700px;
  
}

footer p{
  font-size: 14px;
  max-width: 900px;
  text-align: center;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width: 800px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  #productos {
    grid-template-columns: repeat(auto-fill, minmax(200px, auto));
  }
}

/* MOBILE */
@media (max-width: 500px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  #productos {
    grid-template-columns: repeat(auto-fill, minmax(150px, auto));
  }

  header h1 {
    font-size: 22px;
  }
}
