/* === CONTENEDOR PRINCIPAL === */
.modulo-marcas-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
  background: #f9f9f9;
}

/* === SIDEBAR === */
.marcas-sidebar {
  flex: 0 0 250px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  height: fit-content;
}

.marcas-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.marcas-lista li {
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 12px;
  background: #f7f7f7;
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.marcas-lista li:hover {
  transform: scale(1.03);
}

.marcas-lista img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

/* === ZONA DE PRODUCTOS === */
.productos-por-marca {
  flex: 1 1 0%;
  min-width: 0;
}

.titulo-marca-activa {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* === GRILLA DE PRODUCTOS === */
.productos-marca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* === TARJETAS DE PRODUCTO === */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s forwards;
}

.product-image-container {
  text-align: center;
}

.product-image-container img {
  max-height: 160px;
  object-fit: contain;
  width: 100%;
}

/* === BADGE, SKU, TÍTULO, PRECIO, BOTONES === */
.badge {
  background: #009578;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.ref {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.product-price {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 700;
  margin: 0.5rem 0;
}

.actions-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.actions-buttons .button,
.actions-buttons .add_to_cart_button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  background: #0074cc;
  color: #fff;
  border: none;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.actions-buttons .add_to_cart_button:hover {
  background: #005fa3;
}

.actions-buttons .tinvwl_add_to_wishlist_button {
  background: #eee;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
}

.tinvwl-tooltip {
  display: none;
}

/* === ANIMACIONES === */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .productos-marca-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .modulo-marcas-container {
    flex-direction: column;
  }

  .marcas-sidebar {
    width: 100%;
    order: 2;
  }

  .productos-por-marca {
    width: 100%;
    order: 1;
  }

  .productos-marca-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .actions-buttons {
    flex-direction: column;
    align-items: center;
  }

  .actions-buttons .button,
  .actions-buttons .add_to_cart_button {
    width: 100%;
    text-align: center;
  }
}