/* sections/featured-collections.liquid */

.featured-collections-section {
  padding-top: 11rem;
  padding-bottom: 3rem;
  max-width: 1280px;
  padding-left: 0px;
  padding-right: 0px;
}

.featured-collections__header {
  text-align: left; /* Align header text left */
}

.featured-collections__heading {
  margin-bottom: 0.5rem; /* Adjust spacing */
  font-weight: bold; /* Make heading bold */
  color: #000000; /* Make heading black */
  font-size: 3.6rem; /* Match featured products heading size */
  /* Inherits h2 style */
}

.featured-collections__subheading {
  margin-top: 0;
  /* Inherits subtitle style */
  color: #000000; /* Make subheading black */
  font-style: italic; /* Make subheading italic */
}

.featured-collections__grid {
  margin: 0; /* Remove default grid margin if any */
  padding: 0; /* Remove default grid padding if any */
  gap: 25px;
  /* Uses base.css flexbox grid */
}

.featured-collections__card.grid__item {
  max-width: none; /* Override base.css potentially limiting max-width */
  position: relative; /* For positioning the text overlay */
  overflow: hidden; /* Hide overflow if needed */
}

.collection-card__link {
  display: flex;
  flex-direction: column;
  position: relative; /* Needed for overlay child */
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.collection-card__image-wrapper {
  height: 100%;
  width: 100%;
}

/* Override base.css padding for taller portrait images */
.collection-card__image-wrapper.media--portrait {
  padding-bottom: 144%; /* Approx 15% taller than 125% */
}

.collection-card__link--below .collection-card__image-wrapper.media--portrait {
  padding-bottom: 100%;
}

.collection-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Optional: zoom effect on hover */
}

.collection-card__link:hover .collection-card__image {
  transform: scale(1.05); /* Optional: zoom effect on hover */
}

.collection-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem; /* Adjust padding as needed */
  text-align: center;
  color: #ffffff; /* White text */
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Gradient overlay for text visibility */
}

.collection-card__title {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.5rem; /* Space between title and link */
  text-transform: uppercase;
  /* Inherits h3 style */
}

.collection-card__shop-now {
  color: #ffffff;
  font-size: 0.9rem; /* Smaller font size for shop now */
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  display: inline-block; /* Needed for link styling */
}

.collection-card__shop-now:hover {
  color: #ffffff; /* Keep white on hover */
  text-decoration-thickness: 0.15rem;
}

.placeholder.collection-card__image-wrapper {
  background-color: #f5f5f5;
}

.placeholder-svg.collection-card__image {
  height: 100%;
  width: 100%;
}

/* Style 2: Info below image */
.collection-card__info--below {
  position: static;
  background: #fff;
  color: #111;
  text-align: center;
  padding: 1.25rem 0 0.75rem 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}
.collection-card__info--below .collection-card__title {
  color: #111;
  margin-bottom: 0.25rem;
  text-transform: none;
  font-size: 2.4rem;
  font-weight: 600;
}
.collection-card__info--below .collection-card__shop-now {
  color: #0D6EFD;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  display: inline-block;
  margin-top: 0.25rem;
}

@media (max-width: 750px) {
  .featured-collections__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .featured-collections__card.grid__item {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .collection-card__link {
    min-width: 0;
    max-width: 343px;
    margin: auto;
    width: 100%;
  }
  .collection-card__image-wrapper.media--portrait {
    padding-bottom: 72%!important;
  }
  .featured-collections__heading{
    font-size: 2.5rem;
  }
  .collection-card__info--below .collection-card__title{
    font-size: 2rem;
    font-weight: 600;
  }
  
}
