/* Collection Carousel Block Styling */

/* ── Type 1: Category cards ── */
.category-section {
  width: 100%;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.category-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
}

.category-section .section-title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.75rem;
  line-height: 1.1;
}

.category-section .section-subtitle {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.category-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-image {
  transform: scale(1.08);
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.category-content {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: auto;
  width: max-content;
  max-width: calc(100% - 60px);
  color: #fff;
  z-index: 5;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-content {
  transform: translateY(-5px);
}

.category-title {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 10px;
  color: #fff;
  white-space: nowrap;
}

.category-link {
  display: inline-block;
  font-family: var(--font-cta);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 3px;
  white-space: nowrap;
}

/* ── Type 2: Collection cards ── */
.collections-section {
  width: 100%;
}

.collections-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  position: relative;
  cursor: pointer;
}

.collection-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15/1;
  overflow: hidden;
  background-color: #f6f5f2;
}

.collection-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover .collection-img {
  transform: scale(1.05);
}

.collection-label {
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-cta);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-color);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.collection-card:hover .collection-label {
  color: var(--accent-color);
}

/* ── Owl nav buttons (shared) ── */
.category-carousel-wrapper .owl-nav button,
.collections-carousel-wrapper .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  color: var(--text-color) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
  font-size: 1rem;
}

.category-carousel-wrapper .owl-nav button:hover,
.collections-carousel-wrapper .owl-nav button:hover {
  opacity: 1 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.category-carousel-wrapper .owl-nav button.owl-prev,
.collections-carousel-wrapper .owl-nav button.owl-prev {
  left: 0;
  border-radius: 0 30px 30px 0;
}

.category-carousel-wrapper .owl-nav button.owl-next,
.collections-carousel-wrapper .owl-nav button.owl-next {
  right: 0;
  border-radius: 30px 0 0 30px;
}

.category-carousel-wrapper .owl-nav button.disabled,
.collections-carousel-wrapper .owl-nav button.disabled {
  opacity: 0.2 !important;
  cursor: default;
}

@media screen and (max-width: 768px) {
  .category-section .section-title {
    font-size: 2.15rem;
  }

  .category-section .section-subtitle {
    font-size: 0.9rem;
  }

  .category-card {
    height: 350px;
  }

  .category-content {
    bottom: 30px;
    left: 24px;
    max-width: calc(100% - 48px);
  }

  .category-title {
    font-size: 1.85rem;
    white-space: normal;
  }

  .category-link {
    font-size: 0.78rem;
  }

  .category-carousel-wrapper .owl-nav button,
  .collections-carousel-wrapper .owl-nav button {
    width: 40px;
    height: 40px;
  }
}
