#fw-section-custom-html-77fbdec4-0499-454a-8813-7fbad2b4edf8 {

.affiliates {
  text-align: center;
  padding: 2rem 1rem;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.affiliate-card {
  position: relative; /* needed for pseudo-element */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* clip pseudo-element */
}

.affiliate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Spinning border pseudo-element */
.affiliate-card::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid white;
  border-radius: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: rotate(0deg);
  transition: opacity 0.3s ease;
}

.affiliate-card:hover::before {
  opacity: 1;
  animation: spinBorder 1.5s linear infinite;
}

@keyframes spinBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.affiliate-card img {
  width: 120px;
  height: 120px;
  border-radius: 0.5rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.affiliate-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

}


#fw-section-featured-collection-0 {

/* Round corners of product images in the featured collection */
.collection__grid .tile__item {
    border-radius: 12px;   /* adjust px value for more/less rounding */
    overflow: hidden;      /* ensures corners are properly clipped */
}

}