.mg-core-page {
  overflow: hidden;
}

.mg-page-hero {
  position: relative;
  min-height: min(820px, calc(100svh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--mg-white);
  background: var(--mg-tea);
}

.mg-page-hero__media,
.mg-page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mg-page-hero__media {
  object-fit: cover;
  object-position: center;
}

.mg-page-hero--editorial .mg-page-hero__media {
  object-position: center 46%;
}

.mg-page-hero__shade {
  background:
    linear-gradient(90deg, rgba(26, 34, 28, 0.75), rgba(26, 34, 28, 0.08) 72%),
    linear-gradient(0deg, rgba(24, 31, 26, 0.52), transparent 52%);
}

.mg-page-hero__copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(64px, 10vw, 112px);
}

.mg-page-hero h1 {
  max-width: 830px;
  margin: 0 0 20px;
  font: 500 clamp(56px, 8vw, 104px) / 0.9 var(--font-heading);
  letter-spacing: -0.03em;
}

.mg-page-hero p {
  max-width: 660px;
  margin: 8px 0 0;
  font-size: clamp(16px, 1.8vw, 20px);
}

.mg-page-hero__cn {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(20px, 2.6vw, 30px) !important;
}

.mg-section-cn {
  max-width: 680px;
  margin: -8px 0 0;
  color: rgba(40, 35, 30, 0.68) !important;
  font-family: "Noto Serif SC", serif;
}

.mg-thread-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-thread-process::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--mg-linen);
}

.mg-thread-process li {
  position: relative;
  text-align: center;
}

.mg-thread-bead {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  border: 1px solid var(--mg-linen);
  border-radius: 50%;
  color: var(--mg-paper);
  background: var(--mg-tea);
  box-shadow: 0 8px 22px rgba(52, 70, 58, 0.16);
  font-size: 12px;
}

.mg-thread-process h3,
.mg-value-grid h3,
.mg-mood-grid h3 {
  margin: 0 0 10px;
  font: 500 28px/1.05 var(--font-heading);
}

.mg-thread-process p,
.mg-value-grid p,
.mg-mood-grid p {
  margin: 0;
  color: rgba(40, 35, 30, 0.68);
  font-size: 14px;
}

.mg-configurator-section {
  background: rgba(216, 203, 183, 0.3);
}

.mg-configurator-shell {
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid rgba(185, 130, 69, 0.28);
  border-radius: var(--radius-xl);
  background: var(--mg-white);
  box-shadow: var(--shadow-card);
}

.mg-configurator-shell .woocommerce {
  width: 100%;
}

.mg-configurator-shell .product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
}

.mg-configurator-shell .woocommerce-product-gallery,
.mg-configurator-shell .summary {
  width: auto !important;
  float: none !important;
}

.mg-configurator-shell .product_title {
  font-size: clamp(42px, 5vw, 64px);
}

.mg-configurator-shell .woocommerce-tabs,
.mg-configurator-shell .related,
.mg-configurator-shell .upsells,
.mg-configurator-shell .product_meta {
  display: none;
}

.mg-help-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-5);
  color: rgba(40, 35, 30, 0.68);
  font-size: 14px;
}

.mg-help-actions .mg-text-link {
  flex: 0 0 auto;
  color: var(--mg-tea);
  font-weight: 600;
}

.mg-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.mg-value-grid article,
.mg-mood-grid article {
  padding: var(--space-6);
  border: 1px solid rgba(216, 203, 183, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.52);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mg-value-grid article:hover,
.mg-mood-grid article:hover {
  border-color: rgba(185, 130, 69, 0.56);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.mg-value-grid article > span,
.mg-mood-grid article > span {
  display: block;
  margin-bottom: 42px;
  color: var(--mg-amber);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.mg-dark-story {
  color: var(--mg-paper);
  background: var(--mg-tea);
}

.mg-dark-story h2 {
  color: var(--mg-paper);
}

.mg-dark-story p:not(.mg-kicker) {
  color: rgba(246, 240, 230, 0.72) !important;
}

.mg-story-collage {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.mg-story-collage__images {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: var(--space-4);
}

.mg-story-collage__images img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.mg-story-collage__images img:last-child {
  height: 430px;
}

.mg-editorial-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7) var(--space-5);
}

.mg-empty-collection {
  max-width: 720px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(216, 203, 183, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.64);
}

.mg-empty-collection h3 {
  margin: 0 0 14px;
  color: var(--mg-tea);
  font: 500 clamp(32px, 4vw, 48px) / 1.05 var(--font-heading);
}

.mg-empty-collection > p:not(.mg-kicker) {
  max-width: 580px;
  margin: 0 0 24px;
  color: rgba(40, 35, 30, 0.68);
}

.mg-empty-collection small {
  display: block;
  margin-top: 18px;
  color: rgba(40, 35, 30, 0.55);
}

.mg-editorial-product {
  min-width: 0;
}

.mg-editorial-product__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mg-linen);
}

.mg-editorial-product__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mg-editorial-product:hover .mg-editorial-product__image img {
  transform: scale(1.03);
}

.mg-piece-number,
.mg-stock-label {
  position: absolute;
  top: 16px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mg-piece-number {
  left: 16px;
  color: var(--mg-tea);
  background: rgba(246, 240, 230, 0.9);
}

.mg-stock-label {
  right: 16px;
  color: var(--mg-paper);
  background: var(--mg-tea);
}

.mg-editorial-product__copy {
  padding: 18px 4px 0;
}

.mg-editorial-product__copy > p {
  margin: 0 0 6px;
  color: var(--mg-amber);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mg-editorial-product h3 {
  margin: 0 0 14px;
  font: 500 34px/1.05 var(--font-heading);
}

.mg-editorial-product__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: rgba(40, 35, 30, 0.68);
  font-size: 13px;
}

.mg-editorial-product__meta a {
  color: var(--mg-tea);
  font-weight: 600;
}

.mg-piece-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}

.mg-piece-notes span {
  padding: 7px 12px;
  border: 1px solid var(--mg-linen);
  border-radius: var(--radius-full);
  color: var(--mg-tea);
  font-size: 11px;
}

.mg-gallery-band,
.mg-scent-moods {
  background: rgba(155, 169, 139, 0.18);
}

.mg-scene-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: var(--space-4);
}

.mg-scene-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.mg-scene-grid img:not(:first-child) {
  height: 390px;
  align-self: end;
}

.mg-notify-panel {
  padding-block: var(--space-9);
  background: var(--mg-linen);
}

.mg-notify-panel__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.mg-notify-panel h2 {
  max-width: 720px;
}

.mg-notify-panel p:not(.mg-kicker) {
  max-width: 650px;
}

.mg-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.mg-mood-grid h4 {
  margin: 0 0 18px;
  color: var(--mg-tea);
  font: 500 17px/1.5 "Noto Serif SC", serif;
}

.mg-faq-block {
  max-width: 900px;
}

.mg-faq-block details {
  border-top: 1px solid var(--mg-linen);
}

.mg-faq-block details:last-child {
  border-bottom: 1px solid var(--mg-linen);
}

.mg-faq-block summary {
  position: relative;
  padding: 22px 42px 22px 0;
  list-style: none;
  color: var(--mg-tea);
  font-weight: 600;
  cursor: pointer;
}

.mg-faq-block summary::-webkit-details-marker {
  display: none;
}

.mg-faq-block summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 22px;
  font-weight: 400;
}

.mg-faq-block details[open] summary::after {
  content: "−";
}

.mg-faq-block details p {
  max-width: 720px;
  margin: 0;
  padding: 0 0 24px;
  color: rgba(40, 35, 30, 0.68);
}

.mg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.mg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .mg-thread-process,
  .mg-value-grid,
  .mg-mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mg-thread-process::before {
    display: none;
  }

  .mg-configurator-shell .product,
  .mg-story-collage {
    grid-template-columns: 1fr;
  }

  .mg-scene-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mg-scene-grid img:first-child {
    grid-column: 1 / -1;
  }

  .mg-notify-panel__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .mg-page-hero {
    min-height: calc(100svh - 68px);
  }

  .mg-page-hero__media {
    object-position: 60% center;
  }

  .mg-page-hero__shade {
    background: linear-gradient(0deg, rgba(26, 34, 28, 0.86), rgba(26, 34, 28, 0.08) 78%);
  }

  .mg-page-hero__copy {
    padding-bottom: 54px;
  }

  .mg-page-hero h1 {
    font-size: clamp(48px, 14vw, 64px);
  }

  .mg-page-hero__cn {
    font-size: 19px !important;
  }

  .mg-thread-process,
  .mg-value-grid,
  .mg-mood-grid,
  .mg-editorial-products,
  .mg-scene-grid {
    grid-template-columns: 1fr;
  }

  .mg-thread-process li {
    text-align: left;
  }

  .mg-thread-bead {
    margin: 0 0 18px;
  }

  .mg-configurator-shell {
    margin-inline: -8px;
    padding: 16px;
  }

  .mg-configurator-shell .product_title {
    font-size: 40px;
  }

  .mg-help-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mg-story-collage__images {
    grid-template-columns: 1fr;
  }

  .mg-story-collage__images img,
  .mg-story-collage__images img:last-child,
  .mg-scene-grid img,
  .mg-scene-grid img:not(:first-child) {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .mg-scene-grid img:first-child {
    grid-column: auto;
  }

  .mg-editorial-product h3 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-reveal {
    opacity: 1;
    transform: none;
  }
}
