/* ==========================================================================
   FEATURE: CAROUSEL HERO SLIDER & COLLECTION BOXES
   Auto-rotating, smooth transitions, touch-swipe, centered dot indicators
   & 4 Dimension-Matched Interactive Collection Boxes
   (227x107px, 107x107px, 107x107px, 90x225px)
   ========================================================================== */

.carousel-section-website {
  max-width: var(--max-width, 1280px);
  margin: 18px auto 26px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.hero-carousel-wrapper {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.hero-carousel-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #F4F6F3;
  touch-action: pan-y;
  user-select: none;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  direction: ltr !important;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hero-carousel-slide:hover img {
  transform: scale(1.02);
}

/* Prev / Next Floating Arrows */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.25s ease;
}

.hero-carousel-container:hover .hero-carousel-arrow {
  opacity: 0.95;
}

.hero-carousel-arrow:hover {
  opacity: 1 !important;
  background: #FFFFFF;
  color: var(--primary-red, #FB3E38);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(251, 62, 56, 0.25);
}

.hero-carousel-arrow.prev {
  left: 16px;
}

.hero-carousel-arrow.next {
  right: 16px;
}

/* Indicators (Dots) */
.hero-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.hero-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E2E8F0;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-indicator-dot:hover {
  background: #94A3B8;
  transform: scale(1.25);
}

.hero-indicator-dot.active {
  background: var(--primary-red, #FB3E38);
  width: 10px;
  height: 10px;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(251, 62, 56, 0.25);
}

/* ==========================================================================
   COLLECTION BOXES (Exact Dimensions & Layout from Reference Design)
   Box 1: 227x107px | Box 2: 107x107px | Box 3: 107x107px | Box 4: 90x225px
   ========================================================================== */

.hero-collection-section {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.collection-boxes-container {
  display: flex;
  gap: 14px;
  align-items: stretch;
  direction: ltr !important; /* Preserves exact geometry */
}

/* Left Column: Top wide box + Bottom row of 2 square boxes */
.collection-col-left {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 227px;
}

/* Bottom Row inside Left Column */
.collection-row-bottom {
  display: flex;
  gap: 13px;
  width: 227px;
}

/* Right Column: Tall vertical box */
.collection-col-right {
  display: flex;
  width: 90px;
}

/* Base Collection Box Card */
.collection-box {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 10, 70, 0.08);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-sizing: border-box;
}

.collection-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(251, 62, 56, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(251, 62, 56, 0.35);
}

.collection-box:active {
  transform: translateY(-1px) scale(0.98);
}

.collection-box-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 8px;
  box-sizing: border-box;
  position: relative;
}

/* Image container (ready for when real images are provided) */
.collection-box-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.collection-box:hover .collection-box-img {
  transform: scale(1.06);
}

/* Exact Dimension Specifiers */
.box-227x107 {
  width: 227px;
  height: 107px;
}

.box-107x107 {
  width: 107px;
  height: 107px;
}

.box-90x225 {
  width: 90px;
  height: 225px;
}

/* Icons Cluster / Placeholder Collages */
.collection-box-icons-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.collection-box-icons-cluster.vertical {
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}

.c-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.box-227x107 .c-badge-icon {
  font-size: 26px;
}

.box-107x107 .c-badge-icon {
  font-size: 24px;
}

.box-90x225 .c-badge-icon {
  font-size: 22px;
}

.collection-box:hover .c-badge-icon {
  transform: scale(1.15) rotate(4deg);
}

.collection-box:hover .c-badge-icon:nth-child(even) {
  transform: scale(1.15) rotate(-4deg);
}

/* Subtle keyframe animations */
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.collection-box:hover .pulse {
  animation: softPulse 1.2s infinite ease-in-out;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-carousel-wrapper {
    flex-direction: column;
    gap: 22px;
  }

  .hero-carousel-container {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero-collection-section {
    width: 100%;
    overflow-x: auto;
    padding: 10px 4px 16px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .hero-carousel-container {
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  .hero-carousel-arrow {
    width: 34px;
    height: 34px;
    opacity: 0.8;
  }

  .hero-carousel-arrow.prev {
    left: 8px;
  }

  .hero-carousel-arrow.next {
    right: 8px;
  }

  .hero-carousel-indicators {
    gap: 7px;
    margin-top: 10px;
  }

  .collection-boxes-container {
    transform: scale(0.95);
    transform-origin: center top;
  }
}

@media (max-width: 480px) {
  .collection-boxes-container {
    transform: scale(0.88);
    transform-origin: center top;
  }
}
