/* ==================================================
   Collections
   Collection grid, cards, sliders, controls, sparkles, and collection text
   ================================================== */

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

.collection-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}

.collection-card-large {
  grid-row: 1 / 3;
}

/* ========================================
   COLLECTION CARDS
======================================== */

.collection-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;

  background: var(--white, #ffffff);
  border-radius: 24px;

  box-shadow:
    0 8px 24px rgba(31, 43, 43, 0.07),
    0 2px 8px rgba(31, 43, 43, 0.04);

  transition:
    transform 350ms ease,
    box-shadow 350ms ease;
}

/* Gold border that fades and expands into place */
.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;

  border: 1px solid rgba(190, 148, 64, 0);
  border-radius: inherit;

  transform: scale(0.985);

  transition:
    transform 350ms ease,
    border-color 350ms ease;
}

/* Soft glow beneath the card */
.collection-card::after {
  content: "";
  position: absolute;
  inset: 20% 5% 5%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      rgba(47, 125, 120, 0.16),
      rgba(197, 154, 74, 0.08) 45%,
      transparent 72%
    );

  filter: blur(22px);
  opacity: 0;

  transition:
    opacity 350ms ease,
    transform 350ms ease;
}

.collection-card:hover,
.collection-card:focus-within {
  transform: translateY(-8px);

  box-shadow:
    0 22px 48px rgba(31, 43, 43, 0.13),
    0 8px 18px rgba(31, 43, 43, 0.08);
}

.collection-card:hover::before,
.collection-card:focus-within::before {
  border-color: rgba(190, 148, 64, 0.72);
  transform: scale(1);
}

.collection-card:hover::after,
.collection-card:focus-within::after {
  opacity: 1;
  transform: scale(1.04);
}


/* ========================================
   SLIDER IMAGE AREA
======================================== */

.collection-slider {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.9),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(239, 227, 195, 0.92),
      rgba(248, 242, 226, 0.72)
    );
}

.collection-slider,
.collection-content {
  position: relative;
  z-index: 1;
}

.collection-slider-teal {
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.75),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(47, 132, 133, 0.22),
      rgba(221, 239, 235, 0.86)
    );
}

.collection-slider-coral {
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.8),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(226, 137, 124, 0.23),
      rgba(250, 229, 220, 0.9)
    );
}


/* Soft light sweep */
.collection-slider::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -75%;
  z-index: 3;
  width: 38%;
  height: 180%;
  pointer-events: none;

  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 246, 210, 0.24),
    rgba(255, 255, 255, 0.36),
    transparent
  );

  transform: rotate(12deg);
}

.collection-card:hover .collection-slider::before,
.collection-card:focus-within .collection-slider::before {
  animation: collection-light-sweep 900ms ease;
}

.collection-slider.run-light-sweep::before {
  animation: collection-light-sweep 900ms ease;
}




/* ========================================
   SLIDES
======================================== */

.collection-slides {
  position: absolute;
  inset: 0;
}

.collection-slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;
  transform: translateX(0) scale(1.015);

  transition:
    opacity 550ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 550ms ease;
}

.collection-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* Next-slide movement */
.collection-slide.is-entering-right {
  visibility: visible;
  transform: translateX(34px) scale(1.015);
}

.collection-slide.is-exiting-left {
  visibility: visible;
  opacity: 0;
  transform: translateX(-26px) scale(0.985);
}

/* Previous-slide movement */
.collection-slide.is-entering-left {
  visibility: visible;
  transform: translateX(-34px) scale(1.015);
}

.collection-slide.is-exiting-right {
  visibility: visible;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
}

/*
  This targets actual product images once you add them.
*/
.collection-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1);
  transition: transform 900ms ease;
}

.collection-card:hover .collection-slide.is-active img,
.collection-card:focus-within .collection-slide.is-active img {
  transform: scale(1.045);
}


/* Temporary placeholder styling */
.collection-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;

  color: rgba(45, 68, 68, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;

  transition:
  transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
  letter-spacing 350ms ease,
  opacity 350ms ease;
}

.collection-card:hover .collection-slide.is-active .collection-placeholder,
.collection-card:focus-within .collection-slide.is-active .collection-placeholder {
  transform: scale(1.035) translateY(-4px);
  letter-spacing: 0.075em;
  opacity: 0.88;
}

.collection-card-large:hover .collection-slide.is-active .collection-placeholder,
.collection-card-large:focus-within .collection-slide.is-active .collection-placeholder {
  transform: scale(1.045) translateY(-7px);
}

.collection-card-large::after {
  inset: 12% 4% 4%;
}


/* ========================================
   SLIDER ARROWS
======================================== */

.collection-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;

  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;

  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(31, 43, 43, 0.12);

  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.9);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    opacity 250ms ease,
    transform 250ms ease,
    background-color 250ms ease;
}

.collection-arrow:hover {
  background: rgba(255, 255, 255, 0.98);
}

.collection-arrow:focus-visible {
  opacity: 1;
  outline: 3px solid rgba(190, 148, 64, 0.45);
  outline-offset: 3px;
}

.collection-arrow-prev {
  left: 16px;
}

.collection-arrow-next {
  right: 16px;
}

.collection-card:hover .collection-arrow,
.collection-card:focus-within .collection-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}


/* ========================================
   SLIDER DOTS
======================================== */

.collection-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 6;

  display: flex;
  justify-content: center;
  gap: 8px;
}

.collection-dot {
  width: 7px;
  height: 7px;
  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 5px rgba(31, 43, 43, 0.16);

  cursor: pointer;

  transition:
    width 250ms ease,
    background-color 250ms ease,
    transform 250ms ease;
}

.collection-dot:hover {
  transform: scale(1.2);
}

.collection-dot.is-active {
  width: 22px;
  background: var(--gold, #be9440);
}

.collection-dot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}


/* ========================================
   SMALL GOLD SPARKLES
======================================== */

.collection-sparkle {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  pointer-events: none;

  border-radius: 50%;
  background: var(--gold, #be9440);
  box-shadow: 0 0 10px rgba(190, 148, 64, 0.65);

  opacity: 0;
}

.sparkle-one {
  top: 25%;
  right: 18%;
}

.sparkle-two {
  top: 42%;
  right: 10%;
  width: 3px;
  height: 3px;
}

.sparkle-three {
  top: 17%;
  right: 32%;
  width: 4px;
  height: 4px;
}

.collection-slider.is-changing .sparkle-one {
  animation: collection-sparkle 1700ms ease-out;
}

.collection-slider.is-changing .sparkle-two {
  animation: collection-sparkle 1700ms 180ms ease-out;
}

.collection-slider.is-changing .sparkle-three {
  animation: collection-sparkle 1700ms 340ms ease-out;
}




/* ========================================
   COLLECTION TEXT
======================================== */

.collection-content {
  position: relative;
  z-index: 4;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;

  padding: 18px 22px 20px;

  color: inherit;
  text-decoration: none;
}

.collection-card-large .collection-content {
  padding: 24px 28px 27px;
}

.collection-card:not(.collection-card-large) .collection-content {
  gap: 3px;
}

.collection-card:not(.collection-card-large) .collection-content strong {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.collection-card:not(.collection-card-large) .collection-link {
  font-size: 0.8rem;
}

.collection-kicker {
  color: var(--teal, #2f8585);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.collection-content strong {
  color: var(--charcoal);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 4px;

  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 700;
}

.collection-link span {
  transition: transform 250ms ease;
}

.collection-card:hover .collection-link span,
.collection-card:focus-within .collection-link span {
  transform: translateX(5px);
}

.collection-content:focus-visible {
  outline: 3px solid rgba(190, 148, 64, 0.45);
  outline-offset: -6px;
}


/* ========================================
   MOBILE
======================================== */




/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */
