*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Barlow Condensed', sans-serif;
  background: #f5f4f2;
}

.hero {
  position: relative;
  width: 100vw;
  height: calc(100vh - 56px);
  min-height: 480px;
  overflow: hidden;
  cursor: pointer;
}

.slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide:nth-child(1) { background: linear-gradient(135deg, #dce8f8 0%, #e8d8f4 50%, #f4d8e8 100%); }
.slide:nth-child(2) { background: linear-gradient(135deg, #d8f4e8 0%, #d8eef4 50%, #c8e8f8 100%); }
.slide:nth-child(3) { background: linear-gradient(135deg, #f8e8d8 0%, #f4d8d0 50%, #f0d0d8 100%); }
.slide:nth-child(4) { background: linear-gradient(135deg, #e8f4d8 0%, #d0f0d8 50%, #c8e8d0 100%); }
.slide:nth-child(5) { background: linear-gradient(135deg, #e8d8f8 0%, #d8d0f8 50%, #d0d8f8 100%); }

.slide-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; }
.slide-blob.b1 { width: 280px; height: 280px; top: -80px; left: 18%; filter: blur(2px); }
.slide-blob.b2 { width: 160px; height: 160px; bottom: 40px; left: 12%; filter: blur(1px); }
.slide-blob.b3 { width: 200px; height: 200px; top: 40px; right: 28%; opacity: .4; filter: blur(3px); }
.slide-blob.b4 { width: 90px; height: 90px; bottom: 80px; right: 20%; opacity: .5; }

/* LEFT text */
.slide-content {
  position: relative;
  z-index: 4;
  flex: 0 0 42%;
  padding: 0 0 0 8%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slide-eyebrow { font-weight: 400; font-size: clamp(16px, 1.8vw, 24px); color: #555; }
.slide-title   { font-weight: 800; font-size: clamp(32px, 5vw, 62px); color: #111; line-height: 1.05; }
.slide-desc    { font-weight: 400; font-size: clamp(13px, 1.3vw, 16px); color: #666; line-height: 1.65; max-width: 360px; }

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: transparent;
  border: 2px solid #333;
  color: #333;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, color .2s;
}
.slide-btn:hover { background: #111; color: #fff; }
.slide-btn .btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

/* RIGHT shoe */
.slide-img-wrap {
  flex: 0 0 58%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  overflow: visible;
}

.slide-shoe {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.18));
  z-index: 2;
  opacity: 0;
  transform: translateX(60px) scale(.92);
  transition: transform .7s cubic-bezier(.22,.68,0,1.15), opacity .5s ease;
}
.slide.is-active .slide-shoe {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* THUMBNAIL STRIP */
#thumbStrip {
  position: absolute;
  bottom: 28px;
  right: 5%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 10;
  overflow: hidden;
  pointer-events: auto;
}

.s-thumb {
  background: rgba(255,255,255,.82);
  border-radius: 14px;
  border: 2px solid transparent;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 72px;
  height: 64px;
  padding: 6px;
  flex-shrink: 0;
  transition: border-color .3s, width .4s cubic-bezier(.77,0,.18,1), height .4s cubic-bezier(.77,0,.18,1), padding .4s, box-shadow .3s, transform .3s;
}

/* small thumbs — clickable */
.s-thumb:not(.is-featured) {
  cursor: pointer;
}
.s-thumb:not(.is-featured):hover {
  border-color: rgba(155,28,28,.4);
  transform: translateY(-3px);
}

/* big featured thumb — NOT clickable, no hover, static */
.s-thumb.is-featured {
  width: 175px;
  height: 90px;
  padding: 10px 14px 10px 10px;
  border-color: #9b1c1c;
  box-shadow: 0 6px 20px rgba(155,28,28,.22);
  flex-direction: row;
  gap: 10px;
  align-items: center;
  cursor: default;
}

.s-thumb-img { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.s-thumb.is-featured .s-thumb-img { width: 66px; height: 66px; }

.s-thumb-info { overflow: hidden; max-width: 0; opacity: 0; transition: max-width .4s cubic-bezier(.77,0,.18,1), opacity .3s ease .1s; white-space: nowrap; }
.s-thumb.is-featured .s-thumb-info { max-width: 120px; opacity: 1; }

.s-thumb-name  { font-weight: 800; font-size: 13px; color: #111; line-height: 1.2; }
.s-thumb-price { font-weight: 600; font-size: 12px; color: #555; display: flex; align-items: center; gap: 5px; }
.s-thumb-add   { color: #9b1c1c; font-weight: 800; font-size: 16px; }

/* DOTS */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.20);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s, width .3s, border-radius .3s;
}
.hero-dot.active { background: #9b1c1c; width: 28px; border-radius: 4px; }

/* PAGE LOAD ENTRANCE */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 50;
  animation: curtainLift .9s cubic-bezier(.77,0,.18,1) .1s forwards;
  pointer-events: none;
}
@keyframes curtainLift {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

.slide.is-active .slide-eyebrow { animation: fadeUp .6s cubic-bezier(.22,.68,0,1.15) .7s both; }
.slide.is-active .slide-title   { animation: fadeUp .7s cubic-bezier(.22,.68,0,1.15) .85s both; }
.slide.is-active .slide-desc    { animation: fadeUp .6s cubic-bezier(.22,.68,0,1.15) 1s both; }
.slide.is-active .slide-btn     { animation: fadeUp .6s cubic-bezier(.22,.68,0,1.15) 1.15s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide.is-active .slide-shoe { animation: shoeEnter .85s cubic-bezier(.22,.68,0,1.15) .6s both; }
@keyframes shoeEnter {
  from { opacity: 0; transform: translateX(80px) scale(.88); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

#thumbStrip { animation: fadeUp .6s ease 1.3s both; }
.hero-dots  { animation: fadeUp .5s ease 1.4s both; }

.hero.loaded .slide.is-active .slide-eyebrow,
.hero.loaded .slide.is-active .slide-title,
.hero.loaded .slide.is-active .slide-desc,
.hero.loaded .slide.is-active .slide-btn { animation: fadeUp .45s cubic-bezier(.22,.68,0,1.15) both; }
.hero.loaded .slide.is-active .slide-shoe { animation: shoeEnter .55s cubic-bezier(.22,.68,0,1.15) both; }

@media (max-width: 720px) {
  .hero { height: auto; min-height: 100svh; }
  .slide { flex-direction: column; padding: 36px 6% 140px; align-items: flex-start; }
  .slide-content { flex: none; width: 100%; }
  .slide-img-wrap { flex: none; width: 100%; height: 260px; }
  .slide-thumbs { right: 50%; transform: translateX(50%); bottom: 16px; }
}
