/**
 * Personalization — Curated For You Grid
 *
 * Part of the SkyyRose Experience Engine, Phase 4.
 *
 * @package SkyyRose_Flagship
 * @since   6.4.0
 */

/* ==========================================================================
   Section wrapper
   ========================================================================== */

.skyy-curated {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skyy-curated__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.skyy-curated__header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skyy-curated__heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.skyy-curated__sub {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Product grid
   ========================================================================== */

.skyy-curated__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .skyy-curated__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ==========================================================================
   Skeleton placeholders
   ========================================================================== */

@keyframes skyy-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.skyy-curated__skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skyy-curated__skeleton-img,
.skyy-curated__skeleton-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 800px 100%;
  animation: skyy-shimmer 1.6s infinite linear;
  border-radius: 6px;
}

.skyy-curated__skeleton-img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.skyy-curated__skeleton-text {
  height: 14px;
}

.skyy-curated__skeleton-text--short {
  width: 55%;
  height: 12px;
}

/* ==========================================================================
   Product card
   ========================================================================== */

.skyy-curated__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skyy-curated__card-img-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0f0f0f;
}

.skyy-curated__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyy-curated__card:hover .skyy-curated__card-img {
  transform: scale(1.04);
}

.skyy-curated__card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skyy-curated__card-collection {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #b76e79;
  font-weight: 600;
  text-transform: uppercase;
}

.skyy-curated__card-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.skyy-curated__card-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}

.skyy-curated__card-name a:hover {
  color: #b76e79;
}

.skyy-curated__card-price {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

.skyy-curated__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b76e79;
  text-decoration: none;
  transition: opacity 0.15s;
}

.skyy-curated__card-cta:hover {
  opacity: 0.75;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .skyy-curated__skeleton-img,
  .skyy-curated__skeleton-text {
    animation: none;
  }

  .skyy-curated__card-img {
    transition: none;
  }
}
