/* ==========================================================
   Home page
   ========================================================== */

/* ---------------- Hero carousel ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.hero-track {
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 420px;
  padding: 0 8%;
  overflow: hidden;
  color: #fff;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.theme-sale { background: linear-gradient(110deg, #ff3f6c 0%, #ff6a5c 55%, #ff905a 100%); }
.theme-sneaker { background: linear-gradient(110deg, #0b1d3a 0%, #19376d 60%, #576cbc 100%); }
.theme-luxe { background: linear-gradient(110deg, #111 0%, #2b2118 60%, #6b4f2a 100%); }
.theme-beauty { background: linear-gradient(110deg, #0db7af 0%, #34c3a3 50%, #a7e9af 100%); }

.hero-copy {
  position: relative;
  max-width: 460px;
}

.hero-eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  margin: 8px 0 10px;
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.theme-luxe .hero-title {
  color: #e9c46a;
}

.hero-sub {
  font-size: 20px;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 30px;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  flex: none;
  width: 520px;
  height: 340px;
}

.hero-plate {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14%;
}

.plate-0 { width: 280px; height: 280px; left: 120px; top: 30px; z-index: 2; }
.plate-1 { width: 170px; height: 170px; left: 0; top: 150px; z-index: 1; }
.plate-2 { width: 190px; height: 190px; right: 0; top: 0; z-index: 1; }

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-arrow.prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.hero-arrow.next::before { transform: translate(-70%, -50%) rotate(-45deg); }

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s;
}

.hero-dots button.is-active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ---------------- Offer strip ---------------- */

.offer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 24px 32px 0;
  padding: 16px;
  border: 1px dashed var(--pink);
  border-radius: 4px;
  background: #fff5f7;
  font-size: 18px;
  text-align: center;
}

.offer-badge {
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ---------------- Deals row ---------------- */

.deal-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
}

.countdown span {
  margin-right: 6px;
}

.countdown b {
  display: inline-block;
  min-width: 34px;
  padding: 4px 0;
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-row .product-card {
  scroll-snap-align: start;
}

/* ---------------- Brand tiles ---------------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.brand-tile {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(40, 44, 63, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(40, 44, 63, 0.14);
}

.brand-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
}

.brand-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px 16px;
  text-align: center;
}

.brand-meta strong {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-off {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.brand-cta {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------------- Category tiles ---------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 20px;
}

.category-tile {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tile);
  color: #fff;
  transition: transform 0.2s;
}

.category-tile:hover {
  transform: scale(1.03);
}

.category-img {
  margin: 10px 10px 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px 6px 0 0;
  background: #fff;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.category-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 14px;
  text-align: center;
}

.category-meta strong {
  font-size: 16px;
  font-weight: 600;
}

.category-meta span {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.category-meta em {
  font-style: normal;
  font-size: 14px;
  opacity: 0.9;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .hero-art {
    width: 400px;
    transform: scale(0.8);
    transform-origin: right center;
  }

  .brand-grid,
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .hero {
    margin-top: 0;
  }

  .hero-slide {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    height: 380px;
    padding: 24px 20px 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-cta {
    margin-top: 14px;
  }

  .hero-art {
    order: -1;
    width: 300px;
    height: 170px;
    margin-bottom: 12px;
    transform: none;
  }

  .plate-0 { width: 160px; height: 160px; left: 70px; top: 0; }
  .plate-1 { width: 100px; height: 100px; left: 0; top: 66px; }
  .plate-2 { width: 110px; height: 110px; left: auto; right: 0; top: 10px; }

  .offer-strip {
    margin: 16px 16px 0;
    font-size: 15px;
  }

  .brand-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .brand-off,
  .category-meta span {
    font-size: 18px;
  }

  .product-row {
    grid-auto-columns: 46%;
    gap: 10px;
  }
}
