/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f0f0ee;
  font-family: 'DM Sans', sans-serif;
  color: #111;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: #f0f0ee;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: #111;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.nav-search { font-size: 16px; }

.cart-count {
  display: inline-block;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  text-align: center;
  line-height: 18px;
  margin-left: 4px;
}

.nav-menu {
  font-size: 20px;
  letter-spacing: -2px;
}

/* ===========================
   HERO
=========================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding-top: 64px;
  padding-left: 80px;
  padding-right: 170px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: rgba(200,200,195,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   DISCOVER TEXT
=========================== */
.hero-discover {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.discover-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 4px;
  color: #111;
}

.discover-new {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 8px;
}

/* ===========================
   BRAND LOGOS
=========================== */
.hero-brands {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}

.brand:hover { color: #111; }

/* ===========================
   SCROLL HINT
=========================== */
.scroll-hint {
  position: absolute;
  bottom: 90px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-hint span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #aaa, transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===========================
   CAROUSEL WRAPPER
=========================== */
.carousel-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 40px 0 20px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: none;
  width: 100%;
}

/* ===========================
   CARDS
=========================== */
.card.active::before {
  content: attr(data-label);
  position: absolute;
  bottom: 170px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 200px;
  color: rgba(32, 48, 77, 0.5);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  letter-spacing: 4px;
}


.card {
  flex-shrink: 0;
  border-radius: 24px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: visible;
  transform-origin: center center;
}

.card.side {
  width: 200px;
  height: 300px;
  opacity: 0.6;
  transform: scale(0.85);
  filter: brightness(0.95);
  z-index: 2;
}

.card.side-right {
  width: 200px;
  height: 300px;
  opacity: 0.5;
  transform: scale(0.85);
  filter: brightness(0.9);
}

.card.active {
  width: 340px;
  height: 550px;
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  z-index: 3;
}

.card.hidden {
  width: 0;
  height: 300px;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.card-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  align-self: flex-start;
  margin-left: 4px;
}

.card.side .card-number { font-size: 38px; }

/* Shoe Image */
.card-shoe {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
  margin: 10px 0;
}

.shoe-img {
  width: 270px;
  height: auto;
  object-fit: contain;
  transform: rotate(-8deg) translateY(-5px);
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.25));
  transition: transform 0.4s ease;
}

.card.active .shoe-img {
  width: 280px;
  transform: rotate(-15deg) translateY(-20px);
}

.card.active:hover .shoe-img {
  transform: rotate(-15deg) translateY(-30px) scale(1.05);
}

.card.side .shoe-img {
  width: 120px;
}

/* Card Info */
.card-info {
  width: 100%;
  color: #fff;
}

.card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.active .card-name { font-size: 15px; }

.card-price {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 14px;
}

.card.active .card-price { font-size: 14px; }

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.card-btn:hover {
  background: rgba(255,255,255,0.45);
  transform: scale(1.1);
}

.card.side .card-info { display: none; }

/* ===========================
   BOTTOM BAR
=========================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  background: #f0f0ee;
  z-index: 100;
}

.nav-arrows { display: flex; gap: 20px; }

.arrow-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
  padding: 6px 0;
}

.arrow-btn:hover { opacity: 0.5; }

.social-links { display: flex; gap: 24px; position: absolute; /* ← add this */
  right: 480px; }

.social-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.social-links a:hover { color: #111; }

/* ===========================
   PROGRESS DOTS
=========================== */
.progress-dots {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 100;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: all 0.3s ease;
}

.dot.active {
  width: 20px;
  border-radius: 3px;
  background: #111;
}

/* ===========================
   DETAIL SECTION
=========================== */
.detail-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
  gap: 80px;
  overflow: hidden;
}

/* Colored background blob */
.detail-bg {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  opacity: 0.12;
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

/* Left side — shoe */
.detail-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.detail-shoe {
    display: none;
  width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
  transform: rotate(-12deg) translateY(-80px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.7s ease;
}

.detail-shoe.visible {
  display: none;
  opacity: 1;
  transform: rotate(-12deg) translateY(0);
}

/* Right side — info */
.detail-right {
  flex: 1;
  max-width: 460px;
  z-index: 2;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.detail-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.detail-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.detail-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: #111;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.detail-desc {
  font-size: 15px;
  font-weight: 400;
  color: #666;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 360px;
}

.detail-sublabel {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

/* Color swatches */
.detail-colors { margin-bottom: 28px; }

.color-swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.swatch:first-child {
  border-color: #111;
  transform: scale(1.15);
}

.swatch:hover { transform: scale(1.15); }

/* Size options */
.detail-sizes { margin-bottom: 36px; }

.size-options {
  display: flex;
  gap: 10px;
}

.size-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: #111;
  color: #111;
}

.size-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Price + Cart */
.detail-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
}

.detail-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #111;
  letter-spacing: 1px;
}

.detail-cart-btn {
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  background: #111;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.detail-cart-btn:hover {
  background: #333;
  transform: scale(1.03);
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {

  html, body {
    max-width: 100vw;
  }

  .navbar {
    padding: 0 20px;
    height: 56px;
  }

  .nav-links { display: none; }


  .card.active::before {
  font-size: 100px;
  bottom: 150px;
}

  .hero {
    padding-top: 56px;
    padding-left: 0;
    padding-right: 90px;
    height: 100vh;
    overflow: visible;
    justify-content: center; /* force center on mobile */
  }

  .hero::before {
    width: 320px;
    height: 320px;
  }

  .hero-discover { left: 12px; }
  .discover-text { font-size: 42px; }

  .hero-brands {
    right: 10px;
    gap: 14px;
  }

  .brand { font-size: 10px; }

  .carousel-wrapper {
    max-width: 100%;
    overflow: visible;
  }

  .card.side-left {
    opacity: 0;
    display: none;
  }

  .card.side-right {
    opacity: 0;
    display: none;
  }

  .card {
    overflow: visible;
  }


  .card.active .shoe-img {
    width: 170px;
    transform: rotate(-8deg) translateY(0px);
    display: block;
    margin: 0 auto;
  }

  .card-shoe {
    overflow: visible;
    width: 100%;
    margin: 0;
  }

  .card.active {
    width: 260px;
    height: 380px;
    max-width: 80vw;
  }

  .card.side {
    width: 130px;
    height: 240px;
  }

  .bottom-bar { padding: 14px 20px; }
  .progress-dots { bottom: 60px; }
  .scroll-hint { display: none; }

  .detail-section {
    flex-direction: column;
    padding: 80px 24px 60px;
    gap: 40px;
    text-align: center;
  }

  .detail-shoe { width: 220px; }

  .color-swatches,
  .size-options,
  .detail-bottom {
    justify-content: center;
  }
}

.flying-shoe {
    opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  transition: none;
}

.flying-shoe img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  transform: rotate(-15deg);
}

.card.scrolled .card-shoe {
  opacity: 0;
}

@media (max-width: 768px) {
  .flying-shoe {
    display: block;
  }
}





