/* =====================================================
   COLLECTIONS ARCHIVE PAGE
===================================================== */

.collections-page {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* =====================================================
   HERO
===================================================== */

.collections-hero {
  position: relative;
  padding-top: 16px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(119, 85, 112, 0.13),
      transparent 30%
    ),
    linear-gradient(180deg, #f8f5f8 0%, #fff 100%);
}

.collections-hero::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -5rem;

  width: min(44vw, 42rem);
  height: min(52vw, 48rem);

  background: url("/wp-content/uploads/2026/05/bg-shape.webp") center / contain
    no-repeat;

  opacity: 0.22;
  pointer-events: none;
}

.collections-hero .container {
  position: relative;
  z-index: 2;
}

.collections-hero__content {
  max-width: 57rem;
  margin-top: clamp(1rem, 4vw, 2.5rem);
}

.collections-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;

  margin-bottom: 1rem;

  color: var(--color-accent, #775570);

  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.collections-hero__eyebrow::before {
  content: "";

  width: 2.125rem;
  height: 0.0625rem;

  background: currentColor;
  opacity: 0.45;
}

.collections-hero__title {
  max-width: 55rem;
  margin: 0;

  color: var(--color-text, #343036);

  font-size: clamp(3rem, 6vw, 6.25rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.collections-hero__text {
  max-width: 48rem;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;

  color: var(--color-muted, #6d6870);

  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
}

/* =====================================================
   COLLECTIONS CONTENT
===================================================== */

.collections-content {
  position: relative;
  padding: clamp(3.5rem, 7vw, 7rem) 0;

  background:
    radial-gradient(
      circle at 10% 22%,
      rgba(119, 85, 112, 0.07),
      transparent 25%
    ),
    linear-gradient(180deg, #fff 0%, #f8f5f8 100%);
}

.collections-content::after {
  content: "";
  position: absolute;
  left: -14rem;
  bottom: -16rem;

  width: 36rem;
  height: 48rem;

  background: url("/wp-content/uploads/2026/05/bg-shape.webp") center / contain
    no-repeat;

  opacity: 0.12;
  pointer-events: none;
}

.collections-content .container {
  position: relative;
  z-index: 2;
}

/* =====================================================
   GRID
===================================================== */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.125rem, 2vw, 1.75rem);
}

/* =====================================================
   COLLECTION CARD
===================================================== */

.collection-archive-card {
  min-width: 0;
}

.collection-archive-card__link {
  display: flex;
  flex-direction: column;

  height: 100%;
  overflow: hidden;

  border: 0.0625rem solid rgba(119, 85, 112, 0.11);
  border-radius: 1.75rem;

  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  text-decoration: none;

  box-shadow: 0 1.125rem 3rem rgba(49, 37, 50, 0.055);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.collection-archive-card__link:hover {
  transform: translateY(-0.5rem);

  border-color: rgba(119, 85, 112, 0.24);

  box-shadow: 0 1.75rem 4.25rem rgba(49, 37, 50, 0.13);
}

/* =====================================================
   IMAGE
===================================================== */

.collection-archive-card__image {
  position: relative;

  aspect-ratio: 1 / 0.92;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(119, 85, 112, 0.11),
      transparent 58%
    ),
    #f4f0f4;
}

.collection-archive-card__image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;

  height: 38%;

  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(36, 27, 37, 0.17) 100%
  );

  pointer-events: none;
}

.collection-archive-card__image > img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transform: scale(1.01);

  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}

.collection-archive-card__link:hover .collection-archive-card__image > img {
  transform: scale(1.065);
  filter: saturate(1.04) contrast(1.025);
}

.collection-archive-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.collection-archive-card__placeholder img {
  width: 5rem;
  height: auto;

  object-fit: contain;
  opacity: 0.42;
}

/* =====================================================
   COUNT BADGE
===================================================== */

.collection-archive-card__count {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 2.125rem;
  padding: 0.45rem 0.85rem;

  border: 0.0625rem solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.84);
  color: var(--color-accent, #775570);

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 0.625rem 1.5rem rgba(35, 27, 36, 0.12);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
}

/* =====================================================
   CARD BODY
===================================================== */

.collection-archive-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 1.5rem 1.5rem 1.625rem;
}

.collection-archive-card__label {
  margin-bottom: 0.55rem;

  color: rgba(119, 85, 112, 0.66);

  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.collection-archive-card__title {
  margin: 0;

  color: var(--color-text, #343036);

  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;

  transition: color 0.25s ease;
}

.collection-archive-card__link:hover .collection-archive-card__title {
  color: var(--color-accent, #775570);
}

.collection-archive-card__description {
  display: -webkit-box;
  overflow: hidden;

  margin: 1rem 0 0;

  color: var(--color-muted, #6d6870);

  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.collection-archive-card__more {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  margin-top: auto;
  padding-top: 1.5rem;

  color: var(--color-accent, #775570);

  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;

  background-image: linear-gradient(
    90deg,
    var(--color-accent, #775570),
    var(--color-accent, #775570)
  );
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 0.0625rem;

  transition:
    background-size 0.3s ease,
    color 0.3s ease;
}

.collection-archive-card__link:hover .collection-archive-card__more {
  background-size: 100% 0.0625rem;
}

/* =====================================================
   EMPTY STATE
===================================================== */

.collections-empty {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem);

  border: 0.0625rem solid rgba(119, 85, 112, 0.12);
  border-radius: 2rem;

  background: rgba(255, 255, 255, 0.84);
  text-align: center;

  box-shadow: 0 1.5rem 4rem rgba(49, 37, 50, 0.08);
}

.collections-empty h2 {
  margin: 0;

  color: var(--color-text, #343036);

  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.collections-empty p {
  margin: 1rem 0 1.75rem;

  color: var(--color-muted, #6d6870);
  line-height: 1.7;
}

/* =====================================================
   RESPONSIVE 1240
===================================================== */

@media (max-width: 1240px) {
  .collections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =====================================================
   RESPONSIVE 920
===================================================== */

@media (max-width: 920px) {
  .collections-hero__content {
    max-width: 46rem;
  }

  .collections-grid {
    gap: 1rem;
  }

  .collection-archive-card__body {
    padding: 1.25rem 1.25rem 1.375rem;
  }
}

/* =====================================================
   RESPONSIVE 768
===================================================== */

@media (max-width: 768px) {
  .collections-hero {
    padding-top: 1.5rem;
  }

  .collections-hero__content {
    margin-top: 2.5rem;
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-archive-card__link {
    border-radius: 1.4rem;
  }

  .collection-archive-card__image {
    aspect-ratio: 1 / 0.9;
  }

  .collection-archive-card__description {
    -webkit-line-clamp: 2;
  }
}

/* =====================================================
   RESPONSIVE 520
===================================================== */

@media (max-width: 520px) {
  .collections-hero {
    padding-bottom: 3.25rem;
  }

  .collections-hero__title {
    font-size: clamp(2.75rem, 14vw, 4.25rem);
  }

  .collections-hero__text {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .collections-content {
    padding: 3rem 0;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .collection-archive-card__image {
    aspect-ratio: 1 / 0.82;
  }

  .collection-archive-card__body {
    padding: 1.25rem;
  }

  .collection-archive-card__count {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}
