/**
 * Maison Designers commerce homepage.
 * Scoped to the live homepage only.
 */

body.page-md-home {
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: #111;
}

.site-main--md-home,
.md-home,
.md-home * ,
.md-home *::before,
.md-home *::after {
  box-sizing: border-box;
}

.site-main--md-home {
  --md-home-page: min(100%, 1460px);
  --md-home-inner: min(100%, 1320px);
  --md-home-gutter: var(--gutter, 2rem);
  --md-home-line: rgba(17, 17, 17, 0.12);
  --md-home-line-soft: rgba(17, 17, 17, 0.08);
  --md-home-text: rgba(17, 17, 17, 0.68);
  --md-home-muted: rgba(17, 17, 17, 0.52);
  --md-home-dark: #0e0e0e;
  --md-home-cream: #f7f6f3;
  font-synthesis-weight: none;
  overflow-x: clip;
}

.md-home {
  overflow-x: clip;
}

.md-home :is(h1, h2, h3, p, figure) {
  margin-top: 0;
}

.md-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.md-home :is(p, li) {
  color: var(--md-home-text);
  font-size: clamp(0.9rem, 0.94vw, 0.98rem);
  font-weight: 400;
  line-height: 1.58;
}

.md-home a {
  color: inherit;
  text-decoration: none;
}

.md-home-eyebrow,
.md-home-product__label,
.md-home-trust span {
  color: var(--md-home-muted);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.md-home-hero {
  position: relative;
  background: var(--md-home-dark);
}

.md-home-hero__swiper,
.md-home-hero__slide {
  min-height: clamp(28rem, 56vh, 36rem);
}

.md-home-hero__slide {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.md-home-hero__slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.08));
}

.md-home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  width: var(--md-home-inner);
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  padding: clamp(3.4rem, 7vw, 5.8rem) var(--md-home-gutter);
  color: #fff;
}

.md-home-hero .md-home-eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.md-home-hero__content h1,
.md-home-hero__content h2 {
  max-width: 14ch;
  color: inherit;
  font-size: clamp(2.12rem, 2.72vw, 2.78rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.99;
  text-transform: none;
}

.md-home-hero__content p:not(.md-home-eyebrow) {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.96rem, 1.08vw, 1.06rem);
  line-height: 1.6;
}

.md-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  margin-top: clamp(0.82rem, 1.5vw, 1.1rem);
}

.md-home-button,
.md-home .button,
.md-home input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.76rem;
  padding: 0 1.16rem;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.md-home a.md-home-button:not(.md-home-button--secondary),
.md-home button.md-home-button:not(.md-home-button--secondary),
.md-home input[type="submit"] {
  color: #fff !important;
}

.md-home a.md-home-button--secondary,
.md-home button.md-home-button--secondary {
  color: #111 !important;
}

.md-home-hero .md-home-button {
  border-color: #fff;
  background: #fff;
  color: #111 !important;
  text-shadow: none;
}

.md-home-button--secondary {
  background: transparent;
  color: #111 !important;
}

.md-home-hero .md-home-button--secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.18);
  color: #fff !important;
  text-shadow: none;
}

.md-home-button:is(:hover, :focus-visible),
.md-home .button:is(:hover, :focus-visible),
.md-home input[type="submit"]:is(:hover, :focus-visible) {
  border-color: #111 !important;
  background: #fff !important;
  color: #111 !important;
}

.md-home-button--secondary:is(:hover, :focus-visible) {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

.md-home-hero .md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible) {
  border-color: #fff !important;
  background: #111 !important;
  color: #fff !important;
  text-shadow: none !important;
}

.md-home-hero .md-home-button--secondary:is(:hover, :focus-visible) {
  border-color: #fff !important;
  background: #fff !important;
  color: #111 !important;
  text-shadow: none !important;
}

.md-home .md-home-hero a.md-home-button:not(.md-home-button--secondary),
.md-home .md-home-hero button.md-home-button:not(.md-home-button--secondary) {
  color: #111 !important;
}

.md-home .md-home-hero a.md-home-button--secondary,
.md-home .md-home-hero button.md-home-button--secondary {
  color: #fff !important;
}

.md-home .md-home-hero a.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible),
.md-home .md-home-hero button.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible) {
  color: #fff !important;
}

.md-home .md-home-hero a.md-home-button--secondary:is(:hover, :focus-visible),
.md-home .md-home-hero button.md-home-button--secondary:is(:hover, :focus-visible) {
  color: #111 !important;
}

.md-home .md-home-assurance a.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible),
.md-home .md-home-editorial a.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible),
.md-home .md-home-assurance button.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible),
.md-home .md-home-editorial button.md-home-button:not(.md-home-button--secondary):is(:hover, :focus-visible) {
  border-color: #111 !important;
  background: #fff !important;
  color: #111 !important;
}

.md-home .md-home-assurance a.md-home-button--secondary:is(:hover, :focus-visible),
.md-home .md-home-editorial a.md-home-button--secondary:is(:hover, :focus-visible),
.md-home .md-home-assurance button.md-home-button--secondary:is(:hover, :focus-visible),
.md-home .md-home-editorial button.md-home-button--secondary:is(:hover, :focus-visible) {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

.md-home-hero__nav {
  position: absolute;
  right: max(var(--md-home-gutter), calc((100vw - 1320px) / 2 + var(--md-home-gutter)));
  bottom: clamp(1.2rem, 2vw, 1.8rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
}

.md-home-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.md-home-hero__nav .md-home-icon-button {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.md-home-icon-button:is(:hover, :focus-visible) {
  border-color: #111;
  background: #111;
  color: #fff;
}

.md-home-hero__nav .md-home-icon-button:is(:hover, :focus-visible) {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.md-home-hero-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.md-home-hero-pagination .swiper-pagination-bullet {
  width: 1.45rem;
  height: 1px;
  margin: 0 !important;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

.md-home-hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.md-home-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--md-home-inner);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--md-home-gutter);
  border-bottom: 1px solid var(--md-home-line);
}

.md-home-trust a {
  display: grid;
  gap: 0.32rem;
  min-height: 4.7rem;
  padding: 0.76rem 0.92rem;
  border-left: 1px solid var(--md-home-line-soft);
}

.md-home-trust a:last-child {
  border-right: 1px solid var(--md-home-line-soft);
}

.md-home-trust strong {
  color: #111;
  font-size: clamp(0.88rem, 0.9vw, 0.96rem);
  font-weight: 400;
  line-height: 1.25;
}

.md-home-section {
  width: var(--md-home-page);
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(2.1rem, 3.8vw, 3.55rem) var(--md-home-gutter);
}

.md-home-section + .md-home-section {
  border-top: 1px solid var(--md-home-line-soft);
}

.md-home-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem 1.2rem;
  align-items: end;
  margin-bottom: clamp(0.9rem, 1.6vw, 1.3rem);
}

.md-home-section__header .md-home-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.md-home-section__header h2 {
  max-width: 34rem;
  color: #111;
  font-size: clamp(1.52rem, 1.9vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

.md-home-section__header > a {
  color: #111;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.md-home-category-swiper,
.md-home-products-swiper {
  overflow: hidden;
}

.md-home-category a {
  display: grid;
  gap: 0.8rem;
}

.md-home-category figure {
  overflow: hidden;
  aspect-ratio: 0.92;
  background: var(--md-home-cream);
}

.md-home-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.md-home-category h3,
.md-home-product h3 {
  color: #111;
  font-size: clamp(0.98rem, 1vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.md-home-category p {
  max-width: 24rem;
  margin-bottom: 0;
}

.md-home-category a:is(:hover, :focus-visible) img,
.md-home-product a:is(:hover, :focus-visible) img {
  transform: scale(1.035);
}

.md-home-product-rail {
  position: relative;
}

.md-home-product__link {
  display: grid;
  gap: 0.68rem;
  height: 100%;
  border: 0;
  background: #fff;
}

.md-home-product__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 0.84;
  border: 1px solid var(--md-home-line-soft);
  background: #f8f8f6;
}

.md-home-product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.28s ease;
}

.md-home-product__body {
  display: grid;
  gap: 0.3rem;
  min-height: 7.25rem;
  padding: 0;
}

.md-home-product__label {
  margin-bottom: 0.04rem;
  color: var(--md-home-muted);
}

.md-home-product__price {
  margin-bottom: 0;
}

.md-home-product__price,
.md-home-product__price :is(span, bdi) {
  color: #111;
  font-size: 0.86rem;
  line-height: 1.3;
}

.md-home-slider-line {
  position: relative;
  height: 1.45rem;
  margin-top: 1.15rem;
  background: transparent;
}

.md-home-slider-line::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--md-home-line-soft);
}

.md-home-slider-line__drag {
  position: relative;
  top: 0.7rem;
  height: 1px;
  background: #111;
}

.md-home-slider-line.swiper-scrollbar-lock {
  display: block;
}

.md-home-slider-line.swiper-scrollbar-lock .md-home-slider-line__drag {
  display: none;
}

.md-home-assurance {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  width: var(--md-home-inner);
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(2.8rem, 4.5vw, 4.4rem) var(--md-home-gutter);
  border-top: 1px solid var(--md-home-line-soft);
}

.md-home-assurance__copy {
  display: grid;
  gap: 0.72rem;
  position: sticky;
  top: 6rem;
}

.md-home-assurance__copy h2,
.md-home-editorial h2 {
  max-width: 34rem;
  color: #111;
  font-size: clamp(1.52rem, 1.9vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

.md-home-assurance__copy > p:not(.md-home-eyebrow),
.md-home-editorial p {
  max-width: 64ch;
}

.md-home-assurance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--md-home-line);
  background: var(--md-home-line);
}

.md-home-assurance__grid article {
  display: grid;
  align-content: start;
  gap: 0.58rem;
  min-height: 12.2rem;
  padding: clamp(1rem, 1.8vw, 1.45rem);
  background: #fff;
}

.md-home-assurance__grid span {
  color: var(--md-home-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.md-home-assurance__grid h3 {
  max-width: 22rem;
  color: #111;
  font-size: clamp(0.98rem, 1.05vw, 1.14rem);
  font-weight: 400;
  line-height: 1.2;
}

.md-home-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: var(--md-home-inner);
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(2.8rem, 4.5vw, 4.4rem) var(--md-home-gutter);
  border-top: 1px solid var(--md-home-line-soft);
}

.md-home-editorial figure {
  overflow: hidden;
  aspect-ratio: 1.26;
  background: var(--md-home-cream);
}

.md-home-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-home-editorial > div {
  display: grid;
  gap: 0.78rem;
}

@media (max-width: 980px) {
  .md-home-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-home-assurance,
  .md-home-editorial {
    grid-template-columns: 1fr;
  }

  .md-home-assurance__copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-main--md-home {
    --md-home-gutter: 1rem;
  }

  .md-home-hero__swiper,
  .md-home-hero__slide {
    min-height: clamp(29rem, 66vh, 34rem);
  }

  .md-home-hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78));
  }

  .md-home-hero__content {
    width: min(100%, 22.5rem);
    max-width: calc(100vw - 2rem);
    margin-inline: var(--md-home-gutter) auto;
    padding-inline: 0;
    padding-block: 3.4rem 4.7rem;
  }

  .md-home-hero__content h1,
  .md-home-hero__content h2 {
    max-width: 13ch;
    font-size: clamp(1.82rem, 6.8vw, 2.05rem);
  }

  .md-home-hero__content p:not(.md-home-eyebrow) {
    max-width: 21rem;
    font-size: 0.9rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .md-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .md-home-button,
  .md-home .button,
  .md-home input[type="submit"] {
    width: 100%;
    min-height: 2.86rem;
    padding: 0.82rem 0.95rem;
    font-size: 0.66rem;
    white-space: normal;
  }

  .md-home-hero__nav {
    right: var(--md-home-gutter);
    left: var(--md-home-gutter);
    justify-content: space-between;
  }

  .md-home-trust,
  .md-home-assurance__grid {
    grid-template-columns: 1fr;
  }

  .md-home-trust a {
    min-height: auto;
    padding: 0.88rem 0;
    border-left: 0;
    border-right: 0 !important;
    border-bottom: 1px solid var(--md-home-line-soft);
  }

  .md-home-section__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .md-home-section__header > a {
    justify-self: start;
  }

  .md-home-assurance__grid article {
    min-height: auto;
  }
}
