body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}
.header {
  background: #111;
  text-align: center;
  padding: 1rem;
  border-bottom: 2px solid #d4af37;
}
.logo { height: 60px; margin-bottom: 0.5rem; }
.main-nav { display: flex; justify-content: center; gap: 1rem; }
.main-nav a {
  color: #fff; text-decoration: none;
  border: 1px solid #d4af37; padding: 0.5rem 1rem;
  border-radius: 5px;
}
.main-nav a:hover {
  background: #d4af37; color: #000;
}
.main-container {
  display: flex; gap: 2rem; padding: 2rem;
}
.filters {
  width: 220px; background: #111; padding: 1rem;
  border-radius: 8px; border: 1px solid #444;
}
.filters label {
  display: block; margin-bottom: 1rem;
}
.filters select {
  width: 100%; background: #222;
  color: #fff; padding: 0.5rem; border: none;
  border-radius: 5px;
}
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2em;
  gap: 2em;
}
.product {
  background: #111;
  padding: 1em;
  border: 1px solid #444;
  border-radius: 10px;
  width: 30%; /* Aproximadamente 3 por fila */
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.product-images {
  overflow: hidden;
  height: 220px; /* Más alto para imágenes grandes */
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-images img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.product-images:hover img.zoomable {
  transform: scale(1.8);
  z-index: 10;
}
.footer {
  background-color: #111;
  color: white;
  padding: 2em 1em;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-info,
.footer-social {
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.social-icons img {
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* En pantallas grandes, puedes distribuir horizontalmente */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  .footer-info,
  .footer-social {
    text-align: left;
  }
}
/* Aseguramos que .product-list siempre un elemento flexible bien alineado */
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* mejor que center para alineación más limpia */
  gap: 1.5rem;
  padding: 2rem;
}

/* Ajuste en .product para que se vea ordenado incluso con pocos elementos */
.product {
  /* Si queda uno o dos elementos, mantener buen tamaño y alineado izquierdo */
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  min-width: 250px;
  background: #111;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 1rem;
  box-sizing: border-box;
}
/* Ajustes generales para móviles */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    height: 40px;
    margin-bottom: 0.5em;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
  }

  .main-container {
    flex-direction: column;
    padding: 0 1em;
  }

  aside.filters {
    width: 100%;
    margin-bottom: 1.5em;
  }

  main.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .product {
    width: 100%;
  }

  footer.footer {
    text-align: center;
    padding: 1em 0;
  }
}
.footer {
  background-color: #222;
  color: #eee;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 0 1rem 1rem 1rem;
}

.footer-section h3 {
  border-bottom: 2px solid #1fdd57;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #1fdd57;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

.legal-section {
  max-width: 800px;
  margin: 2rem auto;
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  color: #333;
}

.legal-section h4 {
  margin-top: 0;
  color: #1fdd57;
}
.cart-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 300px;
  max-height: 70vh;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow-y: auto;
  padding: 15px;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.cart-container h3 {
  margin-top: 0;
}

.cart-container button {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #222;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.cart-container button:hover {
  background-color: #444;
}

.cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #222;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

.cart:hover {
  background-color: #444;
}
@media (max-width: 600px) {
  .cart-container {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }

  .cart {
    right: 5%;
    bottom: 50px;
    font-size: 3em;
    padding: 10px 15px;
  }
}
.cart-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 400px;
  max-height: 80vh;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 15px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.cart-container h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.cart-container button {
  margin-top: 10px;
  padding: 20px;
  width: 100%;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cart-container button:hover {
  background-color: #333;
}

.cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

.cart:hover {
  background-color: #333;
}

@media (max-width: 600px) {
  .cart-container {
    width: 90%;
    right: 5%;
    bottom: 90px;
  }

  .cart {
    right: 5%;
    bottom: 20px;
    font-size: 1em;
  }
}
.cart-container {
  color: #000 !important; /* texto negro dentro del carrito */
}
<style>
  .add-to-cart-btn {
    font-size: 1.2em;          /* Letras más grandes */
    background-color: #0000FF; /* Verde vibrante */
    color: white;              /* Texto blanco */
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .add-to-cart-btn:hover {
    background-color: #218838; /* Verde más oscuro al pasar el mouse */
  }
</style>
.product-images.slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.product-images.slider .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-images.slider .front {
  z-index: 2;
}

.product-images.slider .back {
  z-index: 1;
  transform: translateX(100%);
}

.product-images.slider:hover .front {
  transform: translateX(-100%);
}

.product-images.slider:hover .back {
  transform: translateX(0);
}
.product-images.slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.product-images.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Imagen frontal visible por defecto */
.product-images.slider .front {
  z-index: 2;
  transform: translateX(0%);
}

/* Imagen trasera inicia fuera del contenedor */
.product-images.slider .back {
  z-index: 1;
  transform: translateX(100%);
}

/* Al pasar el cursor: deslizar la frontal fuera y la trasera dentro */
.product-images.slider:hover .front {
  transform: translateX(-100%);
}

.product-images.slider:hover .back {
  transform: translateX(0%);
}
.footer-social {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
}
.social-icons img {
  display: inline-block !important;
  width: 32px !important;
  height: auto !important;
}
