/* Homepage after CHANGPHEL: cream editorial shop. Scoped to the front page. */

body.home,
body.front-page {
  --hp-cream: #fff7ef;
  --hp-cream-deep: #f3e6d8;
  --hp-ink: #2a2520;
  --hp-ink-soft: rgba(42, 37, 32, 0.62);
  --hp-line: rgba(42, 37, 32, 0.12);
  --bg-body: #fff7ef;
  --bg-body-darken: #f3e6d8;
  --bg-elevated: #fffaf4;
  --bg-card: #fffaf4;
  --color-body: #2a2520;
  --color-muted: rgba(42, 37, 32, 0.62);
  --color-dim: rgba(42, 37, 32, 0.42);
  --color-border: rgba(42, 37, 32, 0.12);
  --price: #8f2d2d;
  color: var(--hp-ink);
  background: var(--hp-cream);
}

body.home .announcement,
body.front-page .announcement {
  background: #2a2520;
  color: #fff7ef;
}

body.home .site-header,
body.front-page .site-header {
  background: rgba(255, 247, 239, 0.94);
  color: var(--hp-ink);
  border-bottom: 1px solid var(--hp-line);
}

body.home .logo--image img,
body.front-page .logo--image img {
  filter: invert(1);
}

body.home .nav a,
body.home .icon-btn,
body.front-page .nav a,
body.front-page .icon-btn {
  color: var(--hp-ink);
}

body.home .nav a:hover,
body.front-page .nav a:hover {
  color: var(--accent);
}

body.home .icon-btn:hover,
body.front-page .icon-btn:hover {
  background: rgba(42, 37, 32, 0.06);
}

body.home .mobile-nav,
body.front-page .mobile-nav {
  background: var(--hp-cream);
  color: var(--hp-ink);
}

body.home .mobile-nav .logo--image img,
body.front-page .mobile-nav .logo--image img {
  filter: invert(1);
}

body.home .icon-btn svg,
body.front-page .icon-btn svg {
  stroke: var(--hp-ink);
}

body.home .site-footer,
body.front-page .site-footer {
  background: #2a2520;
  color: #fff7ef;
}

body.home .site-footer .logo--image img,
body.front-page .site-footer .logo--image img {
  filter: none;
}

body.home .btn-ghost,
body.front-page .btn-ghost,
body.home .btn-outline,
body.front-page .btn-outline {
  color: var(--hp-ink);
  border-color: rgba(42, 37, 32, 0.35);
}

body.home .btn-solid,
body.front-page .btn-solid {
  background: #2a2520;
  color: #fff7ef;
}

body.home .btn-solid:hover,
body.front-page .btn-solid:hover {
  background: #b43d3d;
  color: #fff;
}

/* Hero — full viewport slideshow */
.hp-hero {
  position: relative;
  height: min(100vh, 1080px);
  min-height: 640px;
  overflow: hidden;
  background: #1a1210;
}

.hp-hero__track,
.hp-hero .hero__slide {
  position: absolute;
  inset: 0;
}

.hp-hero .hero__slide {
  opacity: 0;
  transition: opacity 0.8s var(--ease, ease);
}

.hp-hero .hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hp-hero__media,
.hp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hp-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 10, 0.45) 0%, transparent 48%),
    linear-gradient(0deg, rgba(20, 12, 10, 0.35) 0%, transparent 40%);
}

.hp-hero__media {
  position: absolute;
  inset: 0;
}

.hp-hero__caption {
  position: absolute;
  left: clamp(24px, 6vw, 80px);
  bottom: 14%;
  z-index: 2;
  max-width: 520px;
  color: #fff;
}

.hp-hero__caption h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hp-hero__kicker {
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hp-hero__more {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 4px;
}

.hp-hero .hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hp-hero .hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.hp-hero .hero__dot.is-active {
  background: #fff;
}

/* Brand story */
.hp-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 72px 0;
}

.hp-story__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1210;
}

.hp-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-story__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

.hp-story__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.hp-story__media > span {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.hp-story__copy h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
}

.hp-story__copy p {
  margin: 0 0 14px;
  color: var(--hp-ink-soft);
}

.hp-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hp-text-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* Collection showcase */
.hp-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(100% - 48px, 1280px);
  margin: 0 auto 56px;
}

.hp-show {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1210;
}

.hp-show img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s ease;
}

.hp-show:hover img {
  transform: scale(1.04);
}

.hp-show__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 18px;
  color: #fff;
  background: linear-gradient(0deg, rgba(20, 10, 8, 0.78), transparent);
}

.hp-show__label h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.hp-show__label span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Product rails */
.hp-rail,
.hp-look,
.hp-discover,
.hp-note,
.hp-sub {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hp-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hp-rail__head h2,
.hp-look .hp-rail__head h2,
.hp-discover .hp-eyebrow + .hp-discover__grid,
.hp-sub h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin: 0;
}

body.home .product-card,
body.front-page .product-card {
  background: transparent;
  border: 0;
  color: var(--hp-ink);
}

body.home .product-card__title,
body.front-page .product-card__title {
  color: var(--hp-ink);
}

body.home .product-card__price,
body.front-page .product-card__price {
  color: #8f2d2d;
}

body.home ul.products,
body.front-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Shop the look */
.hp-look__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hp-look__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1210;
}

.hp-look__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hp-look__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(0deg, rgba(20, 10, 8, 0.8), transparent);
}

.hp-look__cap h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

/* Discover */
.hp-discover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.hp-disc {
  display: block;
}

.hp-disc img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 14px;
}

.hp-disc h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.hp-disc p {
  margin: 0;
  color: var(--hp-ink-soft);
}

.hp-note {
  text-align: center;
  max-width: 720px;
  padding-top: 8px;
}

.hp-note__inner p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  margin: 0 0 16px;
}

.hp-sub {
  text-align: center;
  padding-bottom: 80px;
}

.hp-sub p {
  color: var(--hp-ink-soft);
}

body.home .subscribe-form,
body.front-page .subscribe-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 18px auto 0;
}

body.home .subscribe-form input,
body.front-page .subscribe-form input {
  flex: 1;
  border: 1px solid var(--hp-line);
  background: #fff;
  color: var(--hp-ink);
  padding: 12px 14px;
}

@media (max-width: 900px) {
  .hp-story,
  .hp-showcase,
  .hp-look__grid,
  .hp-discover__grid {
    grid-template-columns: 1fr;
  }

  .hp-hero {
    min-height: 520px;
    height: 78vh;
  }

  body.home ul.products,
  body.front-page ul.products {
    grid-template-columns: 1fr 1fr;
  }

  .hp-showcase .hp-show {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  body.home ul.products,
  body.front-page ul.products {
    grid-template-columns: 1fr;
  }

  .hp-hero__caption h2 {
    font-size: 32px;
  }
}
