/* assets/css/collections.css */

/* we already have variables in :root from styles.css */

/* =========================
   HERO CAROUSEL
========================= */

.collections-hero {
  margin-top: 90px;
  position: relative;
  background: #000;
  color: #fff;
}

.hero-carousel {
  position: relative;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.hero-carousel__track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.03);
  transition: opacity .6s ease, transform .6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 70%);
}

.hero-slide__content {
  position: absolute;
  left: 5%;
  bottom: 10%;
  color: #fff;
  max-width: 450px;
  text-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: fadeUp 0.8s ease both;
}

.hero-slide__eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .5rem;
}

.hero-slide__title {
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.4rem);
  letter-spacing: .15em;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .75rem;
}

.hero-slide__desc {
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 380px;
  letter-spacing: .05em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* carousel arrows */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  line-height: 1;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all .2s ease;
}

.hero-carousel__arrow:hover {
  background: rgba(139, 69, 19, 0.6);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(139, 69, 19, .5);
}

.hero-carousel__arrow--left {
  left: 1rem;
}

.hero-carousel__arrow--right {
  right: 1rem;
}

/* dots */
.hero-dots {
  position: absolute;
  left: 5%;
  bottom: 1.5rem;
  z-index: 6;
  display: flex;
  gap: .5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .6);
}

.hero-dot.is-active {
  background: var(--copper);
  border-color: var(--copper);
  box-shadow: 0 15px 30px rgba(139, 69, 19, .7);
}

/* =========================
   COLLECTION BLOCK(s)
========================= */

.collection-block {
  padding: 3rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.collection-block__head {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.collection-block__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.collection-block__title {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem);
  color: var(--black);
  letter-spacing: .1em;
  font-weight: 300;
  margin-bottom: .75rem;
}

.collection-block__desc {
  font-size: .95rem;
  line-height: 1.6;
  color: #444;
  max-width: 600px;
  letter-spacing: .03em;
}

/* =========================
   SLIDER STRIP
========================= */

.collection-slider {
  position: relative;
}

.collection-slider__track-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.collection-slider__track-wrapper::-webkit-scrollbar {
  display: none;
}

.collection-slider__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

/* Make cards behave like slide items */
.collection-slider .shop-card {
  flex: 0 0 auto;
  min-width: 240px;
  max-width: 260px;
  scroll-snap-align: start;
}

/* arrows for desktop/tablet */
.collection-slider__arrow {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  line-height: 0;
  font-size: 1rem;
  color: var(--black);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.collection-slider__arrow:hover {
  color: var(--copper);
  border-color: var(--copper);
  box-shadow: 0 24px 48px rgba(139, 69, 19, .25);
}

.collection-slider__arrow--left {
  left: -0.75rem;
}

.collection-slider__arrow--right {
  right: -0.75rem;
}

/* Mobile: hide arrows (you swipe) */
@media (max-width: 768px) {
  .collection-slider__arrow {
    display: none;
  }
}

/* =========================
   REVEAL ANIMATION UTIL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* responsive tweaks */
@media (max-width: 480px) {
  .collection-block {
    padding: 2rem 5%;
  }

  .collection-block__title {
    letter-spacing: .08em;
  }

  .hero-carousel {
    min-height: 320px;
    height: 55vh;
  }

  .hero-slide__title {
    letter-spacing: .12em;
  }
}
