/**
 * HAFSOIT BEAUTY — Maison de luxe (lookbook, fiche produit, typo)
 */

:root {
  --font-maison-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-maison-sans: 'Poppins', system-ui, sans-serif;
  --maison-ink: #141210;
  --maison-muted: #6e6458;
  --maison-line: rgba(20, 18, 16, 0.09);
  --maison-gold: #9b7c37;
  --maison-cream: #faf8f4;
  --maison-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maison-dur: 0.85s;
  --maison-dur-slow: 1.2s;
  --maison-max: 1280px;
}

body.hb-maison,
body.hb-editorial.hb-maison {
  font-family: var(--font-maison-sans);
}

body.hb-maison h1,
body.hb-maison h2,
body.hb-maison h3,
body.hb-maison .section-title h2,
body.hb-maison .hb-lookbook__tile h3,
body.hb-maison .pd-maison-story blockquote,
body.hb-maison .product-modal-info h2,
body.hb-maison .pd-maison-reco__title {
  font-family: var(--font-maison-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

body.hb-maison .section-title h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
}

/* ——— Lookbook asymétrique ——— */
.hb-lookbook {
  padding: clamp(80px, 14vw, 140px) 0;
  background: var(--maison-cream);
  overflow: hidden;
}

.hb-lookbook__header {
  max-width: var(--maison-max);
  margin: 0 auto clamp(48px, 8vw, 72px);
  padding: 0 clamp(20px, 5vw, 48px);
}

.hb-lookbook__mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 20px);
  max-width: 100%;
  padding: 0 clamp(16px, 4vw, 40px);
  margin: 0 auto;
}

.hb-lookbook__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 42vw, 520px);
  text-decoration: none;
  color: #f5efe4;
  overflow: hidden;
  border-radius: 0;
  background: var(--maison-ink);
  transition:
    transform var(--maison-dur) var(--maison-ease),
    box-shadow var(--maison-dur) var(--maison-ease);
}

.hb-lookbook__tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(20, 18, 16, 0.14);
}

.hb-lookbook__tile--feature {
  grid-column: 1 / span 7;
  grid-row: span 2;
  min-height: clamp(420px, 58vw, 640px);
}

.hb-lookbook__tile--a {
  grid-column: 8 / span 5;
  min-height: clamp(200px, 28vw, 300px);
}

.hb-lookbook__tile--b {
  grid-column: 8 / span 5;
}

.hb-lookbook__tile--c {
  grid-column: 1 / span 6;
}

.hb-lookbook__tile--d {
  grid-column: 7 / span 6;
}

.hb-lookbook__tile--text-first {
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(240px, 32vw, 380px);
  background: #fff;
  color: var(--maison-ink);
  border: 1px solid var(--maison-line);
}

.hb-lookbook__tile--text-first .hb-lookbook__media {
  flex: 1.15;
  min-height: 100%;
}

.hb-lookbook__tile--text-first .hb-lookbook__copy {
  flex: 0.85;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  color: var(--maison-ink);
}

.hb-lookbook__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hb-lookbook__tile--text-first .hb-lookbook__media {
  position: relative;
}

.hb-lookbook__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform var(--maison-dur-slow) var(--maison-ease);
  will-change: transform;
}

.hb-lookbook__tile:hover .hb-lookbook__media img {
  transform: scale(1.08);
}

.hb-lookbook__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(12, 10, 9, 0.72) 0%,
    rgba(12, 10, 9, 0.08) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.hb-lookbook__tile--text-first .hb-lookbook__veil {
  display: none;
}

.hb-lookbook__copy {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
}

.hb-lookbook__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--maison-gold-soft, #c4a962);
  margin-bottom: 8px;
}

.hb-lookbook__tile--text-first .hb-lookbook__label {
  color: var(--maison-gold);
}

.hb-lookbook__tile h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  color: inherit;
}

.hb-lookbook__excerpt {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.82;
  max-width: 28ch;
}

.hb-lookbook__tile--text-first .hb-lookbook__excerpt {
  color: var(--maison-muted);
  opacity: 1;
}

.hb-lookbook__cta {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
}

/* ——— Fiche produit maison ——— */
.hb-product-page.hb-product-page--maison {
  max-width: none;
  padding: clamp(20px, 3vw, 32px) 0 calc(88px + env(safe-area-inset-bottom));
}

.hb-product-page--maison .hb-back-link {
  margin-left: clamp(16px, 4vw, 40px);
  margin-bottom: clamp(16px, 3vw, 28px);
}

.product-modal--maison {
  background: transparent !important;
  border-radius: 0 !important;
}

.pd-maison {
  max-width: var(--maison-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.pd-maison-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.pd-maison-gallery--sticky {
  position: sticky;
  top: calc(var(--header-height, 80px) + 12px);
  align-self: start;
}

.pd-maison-gallery__stage {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: unset;
  max-height: none;
  background: #fff;
  border: 1px solid var(--maison-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(10px, 2vw, 16px);
  box-sizing: border-box;
}

.pd-maison-gallery__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 98, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.pd-maison-gallery__stage .pd-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--maison-line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.5s var(--maison-ease), box-shadow 0.5s ease;
}

.pd-maison-gallery__stage .pd-zoom-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(20, 18, 16, 0.1);
}

.pd-maison-gallery__stage img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(42svh, 42vh, 400px);
  object-fit: contain;
  transition: opacity 0.55s var(--maison-ease), transform 0.55s var(--maison-ease);
}

.product-page-content .pd-maison-gallery__stage img {
  max-height: min(36svh, 36vh, 320px);
}

@media (min-width: 901px) {
  .product-page-content .pd-maison-gallery__stage img {
    max-height: min(52svh, 52vh, 520px);
  }
}

.pd-maison-gallery__stage.is-switching img {
  opacity: 0.7;
  transform: scale(0.98);
}

.pd-maison-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.pd-maison-thumb {
  flex: 0 0 clamp(64px, 12vw, 80px);
  aspect-ratio: 1;
  border: 1px solid var(--maison-line);
  background: #fff;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.45s ease, opacity 0.45s ease;
  opacity: 0.65;
}

.pd-maison-thumb.active,
.pd-maison-thumb:hover {
  opacity: 1;
  border-color: var(--maison-gold);
}

.pd-maison-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-maison-buy--sticky {
  position: relative;
  top: auto;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.pd-maison-buy .product-modal-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  color: var(--maison-gold);
  margin-bottom: 12px;
}

.pd-maison-buy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.pd-maison-buy .product-modal-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--maison-muted);
  margin-bottom: 20px;
}

.pd-maison-buy .product-modal-price {
  font-family: var(--font-maison-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--maison-ink);
}

.pd-maison-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--maison-line);
}

.pd-maison-actions .product-modal-add {
  width: 100%;
  min-height: 52px;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  border-radius: 0;
  background: var(--maison-ink);
  transition: background var(--maison-dur) ease, transform var(--maison-dur) var(--maison-ease);
}

.pd-maison-actions .product-modal-add:hover:not(:disabled) {
  background: #2a2622;
  transform: translateY(-2px);
}

.pd-maison-buy .hb-variant-zone {
  margin: 16px 0;
}

.pd-maison-buy .hb-variant-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maison-muted);
}

.pd-maison-buy .hb-variant-swatch {
  border-radius: 0;
  transition: border-color 0.45s ease, transform 0.45s var(--maison-ease);
}

.pd-maison-buy .hb-variant-swatch.is-active {
  border-color: var(--maison-ink);
}

.hb-lookbook.is-inview .hb-lookbook__tile {
  animation: hbLookbookIn 1.1s var(--maison-ease) forwards;
}

.hb-lookbook.is-inview .hb-lookbook__tile:nth-child(1) { animation-delay: 0.05s; }
.hb-lookbook.is-inview .hb-lookbook__tile:nth-child(2) { animation-delay: 0.12s; }
.hb-lookbook.is-inview .hb-lookbook__tile:nth-child(3) { animation-delay: 0.18s; }
.hb-lookbook.is-inview .hb-lookbook__tile:nth-child(4) { animation-delay: 0.24s; }
.hb-lookbook.is-inview .hb-lookbook__tile:nth-child(5) { animation-delay: 0.3s; }

.hb-lookbook:not(.is-inview) .hb-lookbook__tile {
  opacity: 0.001;
  transform: translateY(20px);
}

.hb-lookbook.is-inview .hb-lookbook__tile {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hbLookbookIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-product-page--maison .hb-product-sticky-bar {
  background: rgba(250, 248, 244, 0.97);
  border-top: 1px solid var(--maison-line);
}

.hb-product-page--maison .hb-product-sticky-bar__add {
  border-radius: 0;
  letter-spacing: 0.18em;
}

/* Story */
.pd-maison-story {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(56px, 9vw, 88px);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--maison-line);
  border-bottom: 1px solid var(--maison-line);
}

.pd-maison-story__eyebrow {
  margin: 0 0 20px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--maison-gold);
}

.pd-maison-story blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--maison-ink);
}

.pd-maison-story cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-maison-sans);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maison-muted);
}

/* Tabs éditoriaux */
.pd-maison-tabs.product-modal-tabs {
  border-top: 1px solid var(--maison-line);
  padding-top: 8px;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.pd-maison-tabs .product-modal-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: center;
  border-bottom: 1px solid var(--maison-line);
  padding-bottom: 0;
}

.pd-maison-tabs .product-modal-tab {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 0;
  border: none;
  background: none;
  color: var(--maison-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.45s ease;
}

.pd-maison-tabs .product-modal-tab.active {
  color: var(--maison-ink);
}

.pd-maison-tabs .product-modal-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--maison-ink);
}

.pd-maison-tabs .product-modal-panel {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 0 16px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--maison-muted);
}

.pd-maison-ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-maison-ingredients li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--maison-line);
}

.pd-maison-ingredients dt {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maison-ink);
  margin: 0;
}

.pd-maison-ingredients dd {
  margin: 0;
  color: var(--maison-muted);
}

.pd-maison-delivery-steps {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.pd-maison-delivery-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  list-style: none;
}

.pd-maison-delivery-steps strong {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maison-gold);
  min-width: 4.5em;
}

/* Recommandations */
.pd-maison-reco {
  padding: clamp(48px, 8vw, 72px) 0;
  border-top: 1px solid var(--maison-line);
}

.pd-maison-reco__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}

.pd-maison-reco__sub {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maison-muted);
  margin: 0 0 clamp(32px, 5vw, 48px);
}

.pd-maison-reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.pd-maison-reco-grid .product-card-shell:hover {
  transform: translateY(-4px);
}

/* Zoom premium */
body.pd-zoom-open .pd-zoom-lightbox {
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.pd-zoom-open .pd-zoom-lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  object-fit: contain;
  animation: pdZoomIn 0.7s var(--maison-ease) forwards;
}

@keyframes pdZoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pd-zoom-close {
  transition: opacity 0.45s ease;
}

/* Mobile fiche + lookbook */
@media (max-width: 900px) {
  .hb-lookbook__mosaic {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hb-lookbook__tile,
  .hb-lookbook__tile--feature,
  .hb-lookbook__tile--a,
  .hb-lookbook__tile--b,
  .hb-lookbook__tile--c,
  .hb-lookbook__tile--d {
    grid-column: 1;
    grid-row: auto;
    min-height: clamp(300px, 70vw, 420px);
  }

  .hb-lookbook__tile--text-first {
    flex-direction: column;
  }

  .pd-maison-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .pd-maison-gallery--sticky,
  .pd-maison-buy--sticky {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .pd-maison-thumbs {
    scroll-padding-left: 16px;
  }

  .pd-maison-ingredients li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ——— Lookbook plein écran ——— */
.hb-lookbook__expand {
  position: absolute;
  top: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 239, 228, 0.35);
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.45);
  color: #f5efe4;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.55s var(--maison-ease),
    background 0.55s ease,
    border-color 0.55s ease;
}

.hb-lookbook__expand:hover {
  transform: scale(1.08);
  background: rgba(12, 10, 9, 0.72);
  border-color: rgba(201, 169, 98, 0.55);
}

.hb-lookbook-cinema {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.75s var(--maison-ease),
    visibility 0.75s;
}

.hb-lookbook-cinema.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.hb-lookbook-cinema[hidden]:not(.is-open) {
  display: none !important;
}

.hb-lookbook-cinema__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hb-lookbook-cinema__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 239, 228, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5efe4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.45s ease, transform 0.45s var(--maison-ease);
}

.hb-lookbook-cinema__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.hb-lookbook-cinema__figure {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 48px) clamp(200px, 28vh, 280px);
  box-sizing: border-box;
}

.hb-lookbook-cinema__figure img {
  width: 100%;
  max-width: min(1200px, 96vw);
  max-height: 100%;
  object-fit: contain;
  transform: scale(1.02);
  transition: transform 1.1s var(--maison-ease);
}

.hb-lookbook-cinema.is-open .hb-lookbook-cinema__figure img {
  transform: scale(1);
}

.hb-lookbook-cinema__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 48px) max(28px, env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.92) 0%, transparent 100%);
  color: #f5efe4;
}

.hb-lookbook-cinema__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--maison-gold-soft, #c4a962);
  margin-bottom: 10px;
}

.hb-lookbook-cinema__title {
  margin: 0 0 10px;
  font-family: var(--font-maison-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.hb-lookbook-cinema__excerpt {
  margin: 0 auto 20px;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(245, 239, 228, 0.78);
}

.hb-lookbook-cinema__cta {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f5efe4;
  border: 1px solid rgba(201, 169, 98, 0.45);
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.55s ease, border-color 0.55s ease;
}

.hb-lookbook-cinema__cta:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.7);
}

body.hb-lookbook-cinema-open {
  overflow: hidden;
}

/* ——— Modal fiche produit maison ——— */
.product-modal-overlay--maison {
  align-items: stretch;
  padding: 0;
  background: rgba(12, 10, 9, 0.62);
}

@media (min-width: 900px) {
  .product-modal-overlay--maison {
    padding: 12px;
    align-items: center;
  }
}

.product-modal-overlay--maison .product-modal.product-modal--overlay {
  width: 100%;
  max-width: 1100px;
  max-height: 96vh;
  border-radius: 0;
  background: var(--maison-cream);
  transform: translateY(100%);
}

@media (min-width: 900px) {
  .product-modal-overlay--maison .product-modal.product-modal--overlay {
    border-radius: 0;
    max-height: 94vh;
    transform: translateY(24px) scale(0.98);
  }
}

.product-modal-overlay--maison.active .product-modal.product-modal--overlay {
  transform: translateY(0) scale(1);
}

.product-modal-overlay--maison .product-modal-scroll {
  max-height: 96vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.product-modal-overlay--maison .product-modal-close {
  top: 12px;
  right: 12px;
  border: 1px solid var(--maison-line);
  background: rgba(250, 248, 244, 0.95);
  z-index: 20;
}

.pd-maison--overlay .pd-maison-gallery--sticky,
.pd-maison--overlay .pd-maison-buy--sticky {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
}

.pd-maison--overlay .pd-maison-hero {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.pd-maison--overlay .pd-maison-reco {
  padding-bottom: 24px;
}

.pd-maison--overlay .pd-maison-reco-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pd-maison--overlay .pd-maison-tabs {
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .pd-maison--overlay .pd-maison-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
    gap: clamp(20px, 3vw, 36px);
  }

  .pd-maison--overlay .pd-maison-gallery__stage {
    max-height: min(52vh, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-lookbook__media img,
  .pd-maison-gallery__stage img,
  .hb-lookbook-cinema,
  .hb-lookbook-cinema__figure img {
    transition: none;
  }
}
