@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url(https://db.onlinewebfonts.com/c/af8360322ea08b2e685007f3951b7c8f?family=Zico+Display+H%2BL+Inline);
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

@font-face {
  font-family: 'EurostileExtended';
  src: url('../../fonts/EurostileExtended-Black.woff2') format('woff2'),
      url('../../fonts/EurostileExtended-Black.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}


html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .catalogo-container {
  flex: 1;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.filtros-catalogo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px 15px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.filtros-catalogo select,
.filtros-catalogo button {
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.filtros-catalogo button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filtros-catalogo button:hover {
  background-color: #2980b9;
}

.sidebar-filtros button:hover {
  background-color: #2980b9;
}

.catalogo-container {
  display: flex;
  gap: 40px;
  padding: 30px 40px;
  align-items: flex-start;
}

.sidebar-filtros {
  width: 240px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-filtros h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

/* Categorías como lista vertical */
.sidebar-filtros .filtro-categorias,
.sidebar-filtros .filtro-orden {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-filtros label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.sidebar-filtros select,
.sidebar-filtros button {
  display: none;
}

/* Estilo para los botones de categoría */
.sidebar-filtros .categoria-btn,
.sidebar-filtros .orden-btn {
  padding: 10px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
  color: #333;
  font-weight: bold;
}

.sidebar-filtros .categoria-btn:hover,
.sidebar-filtros .orden-btn:hover {
  background-color: #dcdcdc;
}

.sidebar-filtros .categoria-btn.active,
.sidebar-filtros .orden-btn.active {
  background-color: #b1b1b1;
  color: #333;
}

/* Contenedor general del drop */
.drop-invierno-container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Centra todo horizontalmente */
  width: 100%;
}

/* Mantener el título centrado */
.titulo_container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.titulo_drop {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #222;
}

/* Productos centrados */
.catalogo-container {
  display: flex;
  justify-content: center; /* Centra los productos si hay menos cards */
  width: 100%;
}

.contenedor__productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
  max-width: 1300px;
  width: 100%;
}

/* Productos */
.contenedor__productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;       /* Centra horizontalmente los productos */
  align-content: start;          /* Alinea los productos desde arriba */
  justify-items: center;         /* Centra cada card dentro de su celda */
  width: 100%;
  max-width: 1300px;             /* Para mantenerlos centrados en pantallas grandes */
  margin: 0 auto;                /* Centrado del contenedor */
  padding-bottom: 60px;          /* Espacio extra antes del footer */
}

.link__producto {
  text-decoration: none;
  color: inherit;
}

.card__producto {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card__producto:hover {
  transform: scale(1.03);
}

.contenedor_imagen {
  width: 100%;
  height: 300px; /* Altura fija uniforme */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.contenedor_imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 5px;
  margin: 0;
  padding: 0;
}

.info__producto {
  padding: 15px;
  text-align: center;
}

.nombre__producto {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
  color: #222;
}

.precio__producto {
  font-size: 16px;
  color: #222222;
  font-weight: bold;
}

.sin-resultados {
  font-size: 1.3rem;
  text-align: center;
  color: #777;
  grid-column: 1 / -1;
}

footer {
    background-color: #111;
    color: #eee;
    padding: 40px 0 10px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 250px;
    margin: 20px 0;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    color: #bbb;
    margin: 8px 0;
}

.footer-section i {
    margin-right: 8px;
}

.social-icons a {
    color: #eee;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1da1f2;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 13px;
    color: #888;
}

/* Estilos responsivos para catálogo */
@media (max-width: 1024px) {
  .catalogo-container {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar-filtros {
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .contenedor__productos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .filtros-catalogo {
    flex-direction: column;
    gap: 10px;
    padding: 20px 10px;
  }

  .sidebar-filtros {
    padding: 15px;
  }

  .contenedor__productos {
    gap: 15px;
  }

  .card__producto {
    border-radius: 10px;
  }

  .nombre__producto {
    font-size: 16px;
  }

  .precio__producto {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contenedor__productos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .link__producto {
    width: 100%;
  }

  .card__producto {
    width: 100%;
    max-width: 100%;
  }

  .contenedor_imagen {
    height: auto;
  }

  .contenedor_imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.card__producto {
  width: 100%;
  margin: 0 auto;
  max-width: none;
}

/* Mejoras adicionales para responsive móvil y tablet */
@media (max-width: 1024px) {
  .contenedor__productos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalogo-container {
    padding: 15px 10px;
  }

  .card__producto {
    max-width: 100%;
  }

  .contenedor_imagen {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .catalogo-container {
    padding: 10px 5px;
  }

  .contenedor_imagen {
    height: 220px;
  }

  .nombre__producto {
    font-size: 15px;
  }

  .precio__producto {
    font-size: 14px;
  }

  .filtros-catalogo select,
  .filtros-catalogo button {
    font-size: 14px;
    padding: 8px 12px;
  }

  .sidebar-filtros {
    padding: 10px;
  }
}
