@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500&display=swap');

.collection-area {
  width: 100%;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.collection-title {
  font-size: 2.2rem;
  font-weight: 300;
  white-space: nowrap;
  transform: perspective(100px) rotateX(5deg);
  flex-shrink: 0;
  margin-right: 1rem;
  line-height: 1;
}

/* SCROLL WRAPPER */
.scroll-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar {
  display: none;
}

/* LIST ITEMS */
.collection-slide {
  flex-shrink: 0;
  text-align: center;
  max-width: 200px;
  list-style: none;
}

/* CIRCLE IMAGE FIXED RATIO */
.image-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1; /* Prevent CLS */
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-wrapper:hover::after {
  opacity: 1;
}

/* TEXTS */
.collection-name {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  white-space: nowrap;
}

.collection-name.sale-title::after {
  content: "";
  display: block;
  margin: 3px auto 0;
  width: 80%;
  height: 2px;
  background-color: red;
}

.collection-description {
  font-size: 0.875rem;
  font-weight: 300;
  color: #777;
  margin-top: 0.25rem;
  max-width: 160px;
  margin-inline: auto;
  line-height: 1.3;
}

/* RESPONSIVE */
@media (min-width: 769px) {
  .image-wrapper {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .collection-title {
    font-size: 1.5rem;
  }
  .scroll-row {
    gap: 1rem;
  }
  .collection-name {
    font-size: 0.875rem;
  }
  .collection-description {
    font-size: 0.75rem;
  }
  .image-wrapper {
    width: 100px;
    height: 100px;
  }
}
