/* =========================================================
   RR - ML Archive (Shop/Categorías)
   - 1 columna full width arriba (rr-ml-archive-top)
   - 2 columnas abajo: sidebar izquierda + grid derecha
   - cards producto estilo ML (content-product.php)
   ========================================================= */

.rr-ml-archive {
  width: 100%;
}

/* Contenedor centrado tipo ML */
.rr-ml-archive__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Bloque full width para “lo de arriba” (carrusel subcats) */
.rr-ml-archive-top {
  width: 100%;
  margin: 0 0 14px;
}

/* Layout 2 columnas */
.rr-ml-archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

/* Sidebar */
.rr-ml-archive-sidebar {
  position: sticky;
  top: 92px; /* ajustá si tu header es más alto */
}

.rr-ml-sidebar .widget {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  margin: 0 0 12px;
}

.rr-ml-sidebar .widget-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* Barra arriba del grid */
.rr-ml-archive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  margin: 0 0 12px;
}

/* Grid productos */
.rr-ml-products-grid ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Card producto (li.rr-ra-card viene de tu content-product.php) */
.rr-ml-products-grid li.rr-ml-card,
.rr-ml-products-grid li.rr-ra-card {
  margin: 0 !important;
}

.rr-ml-card__link {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}

.rr-ml-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.rr-ml-card__img {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rr-ml-card__img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.rr-ml-card__body {
  padding: 10px 12px 12px;
}

.rr-ml-card__title {
  font-size: 13px;
  line-height: 1.25;
  color: #333;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

.rr-ml-card__old {
  font-size: 11px;
  color: #8c8c8c;
  text-decoration: line-through;
  margin: 0;
}

.rr-ml-card__price {
  font-size: 20px;
  font-weight: 400;
  color: #111;
  margin: 0;
}

.rr-ml-card__off {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #00a650; /* verde ML */
  margin-top: 2px;
}

.rr-ml-card__ship {
  font-size: 12px;
  color: #00a650;
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 991px) {
  .rr-ml-archive-layout {
    grid-template-columns: 1fr;
  }

  .rr-ml-archive-sidebar {
    position: static;
    top: auto;
    order: 2;
  }

  .rr-ml-products-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rr-ml-card__img img {
    height: 150px;
  }
}
