/* MOHAB PDP Layered Hero & Statement — Shopline 3.0 */
@property --mohab-bg-reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.mohab-pdp-hero-root {
  --mph-ink: #1d1d1f;
  --mph-ink-3: #86868b;
  --mph-green: #384521;
  --mph-green-dark: #2c361a;
  --mph-gold: #d28f26;
  --mph-nav-h: 48px;
  --mph-gutter: 6%;
  position: relative;
  width: 100%;
  background: #ffffff;
  font-family: "DIN Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--mph-ink);
  overflow: hidden;
}

.mohab-pdp-hero-root *,
.mohab-pdp-hero-root *::before,
.mohab-pdp-hero-root *::after {
  box-sizing: border-box;
}

.mohab-pdp-hero-root img {
  display: block;
  max-width: 100%;
}

.mohab-pdp-hero-root a {
  text-decoration: none;
}

/* ============ Stage (3440/1935 artwork ratio, capped at 100vh on desktop) ============ */
.mph-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3440 / 1935;
  max-height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

.mph-stage--dark {
  background: #14161a;
}

.mph-layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
}

.mph-stage--dark .mph-layers {
  background: #14161a;
}

.mph-layer--bg {
  position: absolute;
  left: var(--mph-bg-x, 50%);
  top: var(--mph-bg-y, 50%);
  width: var(--mph-bg-w, 100%);
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  --mohab-bg-reveal: 130%;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 calc(var(--mohab-bg-reveal) - 25%),
    transparent var(--mohab-bg-reveal)
  );
  mask-image: linear-gradient(
    to top,
    #000 calc(var(--mohab-bg-reveal) - 25%),
    transparent var(--mohab-bg-reveal)
  );
  animation: mohab-pdp-bg-rise 1.9s ease-out 0.1s both;
}

.mph-layer--bg-static {
  animation: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.mph-layer--product {
  position: absolute;
  left: var(--mph-prod-x, 52%);
  top: var(--mph-prod-y, 42%);
  width: var(--mph-prod-w, 34%);
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: mohab-pdp-prod-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

@keyframes mohab-pdp-bg-rise {
  from {
    --mohab-bg-reveal: 0%;
  }
  to {
    --mohab-bg-reveal: 130%;
  }
}

@keyframes mohab-pdp-prod-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Dark photo mode gradient */
.mph-stage--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.16) 52%,
    rgba(0, 0, 0, 0.32) 100%
  );
  pointer-events: none;
}

/* ============ Breadcrumb ============ */
.mph-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: calc(var(--mph-nav-h) + 20px) var(--mph-gutter) 0;
  pointer-events: none;
}

.mph-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mph-ink-3);
  pointer-events: auto;
}

.mph-breadcrumb a {
  color: var(--mph-ink-3);
  transition: color 0.18s ease;
}

.mph-breadcrumb a:hover {
  color: var(--mph-ink);
}

.mph-stage--dark .mph-breadcrumb,
.mph-stage--dark .mph-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.mph-stage--dark .mph-breadcrumb a:hover {
  color: #ffffff;
}

.mph-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Brand Statement & Scroll Cue ============ */
.mph-statement {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 var(--mph-gutter) clamp(14px, 1.8vw, 28px);
  text-align: center;
  color: var(--mph-green);
}

.mph-stage--dark .mph-statement {
  color: #ffffff;
}

.mph-statement__line {
  margin: 0;
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: inherit;
}

.mph-statement__sub {
  max-width: 660px;
  margin: clamp(6px, 0.8vw, 12px) auto 0;
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.45;
  color: var(--mph-green);
  opacity: 0.88;
}

.mph-stage--dark .mph-statement__sub {
  color: rgba(255, 255, 255, 0.84);
}

.mph-scroll-btn {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 3.8vw, 56px);
  height: clamp(38px, 3.8vw, 56px);
  margin-top: clamp(10px, 1.1vw, 18px);
  border: 0;
  border-radius: 50%;
  background: var(--mph-green);
  color: #ffffff !important;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 24px rgba(56, 69, 33, 0.22);
}

.mph-scroll-btn:hover {
  background: var(--mph-green-dark);
  transform: translateY(3px);
  box-shadow: 0 14px 28px rgba(56, 69, 33, 0.3);
}

.mph-scroll-btn svg {
  width: 22px;
  height: 22px;
}

/* Placeholder when no images uploaded yet */
.mph-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #f8f7f4 0%, #eae7e0 100%);
  color: #7c7a74;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* ============ Mobile ============ */
@media (max-width: 767px) {
  .mohab-pdp-hero-root {
    --mph-gutter: 20px;
  }

  .mph-stage {
    aspect-ratio: auto;
    max-height: none;
    padding-top: var(--mph-nav-h);
  }

  .mph-layers {
    position: relative;
    inset: auto;
    aspect-ratio: 3440 / 1935;
  }

  .mph-layer--product {
    width: var(--mph-prod-w-mobile, 42%);
  }

  .mph-top-bar {
    position: static;
    padding: 14px var(--mph-gutter) 8px;
  }

  .mph-statement {
    position: static;
    padding: 20px var(--mph-gutter) 36px;
    background: #ffffff;
    color: var(--mph-green);
  }

  .mph-stage--dark .mph-statement {
    background: #14161a;
    color: #ffffff;
  }

  .mph-statement__line {
    font-size: 26px;
  }

  .mph-statement__sub {
    font-size: 14px;
  }

  .mph-scroll-btn {
    width: 46px;
    height: 46px;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mph-layer--bg,
  .mph-layer--product {
    animation: none !important;
    opacity: 1 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
