/* ===== Rafahia Specific Styles ===== */

/* ===== Collections Section ===== */
.subsidiary__collections {
  margin-bottom: 80px;
}

.collection-section {
  margin-bottom: 100px;
}

.collection-section:last-child {
  margin-bottom: 0;
}

.collection-section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

/* ===== Product Grid - Louis Vuitton Style ===== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
  /* transform: translateY(-8px); */
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--background-card);
  border-radius: 8px;
  margin-bottom: 20px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-card__image {
  /* transform: scale(1.08); */
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color-light);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.product-card:hover .product-card__name {
  color: var(--accent-color);
}

/* ===== Carousel Dots Navigation (Mobile) ===== */
.collection-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 10px;
}

.collection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color-softer);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collection-dot.active {
  background: var(--text-color-light);
  width: 24px;
  border-radius: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .collection-section {
    margin-bottom: 80px;
  }

  .collection-section__title {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .collection-grid {
    gap: 30px;
    padding: 0 15px;
  }

  .collection-section {
    margin-bottom: 70px;
  }

  .collection-section__title {
    margin-bottom: 40px;
  }

  .product-card__image-wrapper {
    margin-bottom: 15px;
  }

  .product-card__name {
    font-size: 1rem;
  }
}

/* ===== Mobile Carousel Style (Louis Vuitton) ===== */
@media (max-width: 480px) {
  .collection-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    padding: 0;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    max-width: 100%;
  }

  .collection-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .product-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .product-card__image-wrapper {
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-card__name {
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Show dots navigation on mobile */
  .collection-dots {
    display: flex !important;
  }

  .subsidiary__collections {
    margin-bottom: 60px;
  }

  .collection-section {
    margin-bottom: 60px;
  }

  .collection-section__title {
    margin-bottom: 35px;
  }
}
