/* Homepage intro card and wide storefront rhythm. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 4vw, 66px);
  width: min(calc(100% - clamp(40px, 6vw, 112px)), 1640px);
  max-width: none;
  margin: clamp(16px, 2.2vw, 28px) auto 0;
  padding: clamp(22px, 2.7vw, 40px);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 26px;
  background: radial-gradient(ellipse at 8% 5%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 44%), linear-gradient(130deg, var(--theme-surface) 0%, var(--theme-surface-alt) 100%);
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -145px;
  width: 370px;
  height: 370px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  padding: 0;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 15px 0 15px;
  font-size: clamp(38px, 3.75vw, 54px);
  line-height: .99;
}

.hero-copy > p {
  max-width: 455px;
  margin: 0 0 18px;
  line-height: 1.7;
}

.hero-note {
  margin-top: 16px;
}

.hero-visual {
  width: 100%;
  padding: 0;
}

.hero-photo {
  height: clamp(238px, 20vw, 310px);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(45, 46, 45, .09);
}

.hero-slide-caption {
  overflow-wrap: anywhere;
}

.hero--no-slider {
  grid-template-columns: minmax(0, 1fr);
}

.hero--no-slider .hero-copy {
  max-width: 760px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(var(--home-feature-count, 3), minmax(0, 1fr));
  width: min(calc(100% - clamp(40px, 6vw, 112px)), 1640px);
  margin: clamp(18px, 2vw, 28px) auto clamp(12px, 1.8vw, 22px);
  border-block: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-surface) 72%, transparent);
}

.home-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 16px clamp(14px, 2.2vw, 30px);
}

.home-feature + .home-feature {
  border-left: 1px solid var(--theme-border);
}

.home-feature__number {
  flex: none;
  color: var(--theme-accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-feature strong,
.home-feature small {
  display: block;
}

.home-feature strong {
  color: var(--presentation-color-home-feature-title, var(--theme-text));
  font-family: var(--font-display);
  font-size: var(--presentation-size-home-feature-title, 13px);
  font-weight: 750;
  letter-spacing: -.025em;
}

.home-feature small {
  margin-top: 3px;
  color: var(--presentation-color-home-feature-description, var(--theme-muted));
  font-size: var(--presentation-size-home-feature-description, 10px);
  line-height: 1.45;
}

.home-shelf.catalog-section {
  max-width: 1640px;
  padding: 40px clamp(16px, 2.4vw, 38px) 18px;
}

.home-shelf.catalog-section--new {
  padding-top: 48px;
}

.home-shelf .product-grid--shelf {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.home-shelf--featured .product-grid--count-1 {
  grid-template-columns: minmax(0, 360px);
}

.home-shelf--featured .product-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 430px));
}

.home-shelf--featured .product-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-shelf--featured .product-grid--count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-shelf--featured .product-grid--shelf {
  justify-content: flex-start;
}

.home-shelf .product-grid--shelf .product-card {
  min-width: 0;
}

.studio-note {
  width: min(calc(100% - clamp(40px, 6vw, 112px)), 1640px);
  max-width: none;
  margin: clamp(64px, 7vw, 90px) auto clamp(60px, 6vw, 82px);
}

@media (max-width: 1100px) {
  .hero {
    gap: clamp(22px, 3vw, 36px);
    padding: clamp(25px, 3.6vw, 40px);
  }

  .hero-photo {
    height: clamp(238px, 26vw, 310px);
  }

  .home-shelf.catalog-section {
    padding-inline: clamp(22px, 4vw, 44px);
  }

  .home-shelf .product-grid--shelf {
    justify-content: flex-start;
  }

  .home-shelf--featured .product-grid--shelf .product-card {
    flex-basis: min(36vw, 320px);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: 18px;
    padding: 28px 22px 24px;
    gap: 22px;
  }

  .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(41px, 8vw, 56px);
  }

  .hero-copy > p {
    max-width: 560px;
  }

  .hero-photo {
    height: clamp(225px, 48vw, 330px);
  }

  .home-features {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .home-feature {
    gap: 10px;
    padding: 15px 14px;
  }

  .home-shelf.catalog-section {
    padding-top: 38px;
  }

  .home-shelf.catalog-section--new {
    padding-top: 44px;
  }

  .studio-note {
    width: calc(100% - 32px);
  }
}

@media (max-width: 560px) {
  .hero {
    width: calc(100% - 28px);
    margin-top: 14px;
    padding: 23px 18px;
    gap: 19px;
    border-radius: 20px;
  }

  .hero::after {
    right: -130px;
    bottom: -160px;
    width: 300px;
    height: 300px;
  }

  .hero-copy h1 {
    margin-top: 14px;
    margin-bottom: 14px;
    font-size: 40px;
  }

  .hero-copy > p {
    margin-bottom: 15px;
    font-size: 12px;
  }

  .hero-photo {
    height: 235px;
    border-radius: 16px;
  }

  .home-features {
    width: calc(100% - 28px);
    margin-top: 15px;
  }

  .home-feature {
    display: block;
    padding: 12px 9px;
  }

  .home-feature__number {
    display: block;
    margin-bottom: 6px;
    font-size: 8px;
  }

  .home-feature strong {
    font-size: var(--presentation-size-home-feature-title, 11px);
  }

  .home-shelf--featured .product-grid--shelf .product-card {
    flex-basis: min(84vw, 330px);
  }

  .home-feature small {
    font-size: var(--presentation-size-home-feature-description, 9px);
  }

  .home-shelf.catalog-section {
    padding-inline: 18px;
    padding-top: 34px;
  }

  .home-shelf.catalog-section--new {
    padding-top: 40px;
  }

  .studio-note {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .product-card__image img,
  .button {
    transition: none;
  }
}
