/* ================= RECENTLY VIEWED ================= */

.recently-viewed {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}

.recently-viewed__title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
  color: var(--text-primary);
}

/* GRID */
.recently-viewed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .recently-viewed__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.recently-viewed__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* CARD */
.recent-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGE */
.recent-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

/* HOVER ZOOM */
.recent-card:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.recent-card__overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(42, 36, 30, 0);
  transition: 0.4s;

  z-index: 2;
}

/* HOVER BACKGROUND */
.recent-card:hover .recent-card__overlay {
  background: rgba(42, 36, 30, 0.2);
}

/* ICON */
.recent-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(0.9);
  transition: 0.3s;
}

/* ICON SHOW */
.recent-card:hover .recent-card__icon {
  opacity: 1;
  transform: scale(1);
}