/* Magnistretch® pillow — Italian-style full-bleed product page */

.mst-pillow-product.product-details-area {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.mst-pillow-product .mst-product-hero .container-fluid {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ---- Hero (full-bleed image + overlay thumbs + narrow sidebar) ---- */
.mst-product-hero {
  width: 100%;
  max-width: 100vw;
  background: #fff;
  padding-bottom: 8px;
  overflow: hidden;
}

.mst-product-hero__container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mst-product-hero__breadcrumb-wrap {
  padding: 16px 32px 12px;
  max-width: 100%;
}

.mst-product-hero__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.mst-product-hero__gallery-col {
  flex: 1 1 74%;
  min-width: 0;
  max-width: none;
  padding: 0;
  margin: 0;
}

.mst-product-hero__sidebar-col {
  flex: 0 0 26%;
  max-width: 400px;
  min-width: 280px;
  padding: 28px 48px 36px 28px;
  margin-left: auto;
  margin-right: 0;
  align-self: flex-start;
}

.mst-sidebar-panel {
  position: relative;
  top: 0;
  max-width: 360px;
}

.mst-divider {
  border: 0;
  border-top: 1px solid #e0e6ea;
  margin: 20px 0;
}

.mst-buy-actions .btn-add-to-cart-light,
.mst-buy-actions .btn-add-to-cart {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

/* Gallery — thumbs overlaid on main image (Italian), not beside it */
.mst-gallery-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 0;
}

.mst-nav-slider {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 76px;
  z-index: 6;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(1, 70, 99, 0.12);
}

.mst-nav-slide {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0;
  padding: 3px;
  background: #fff;
}

.mst-nav-slide.active,
.mst-nav-slider .slick-current .mst-nav-slide {
  border-color: #014663;
}

.mst-nav-slide img {
  width: 100%;
  height: auto;
  max-height: 68px;
  object-fit: cover;
  display: block;
}

.mst-big-slider {
  width: 100%;
  position: relative;
}

.mst-big-slider .mst-slide {
  outline: none;
}

.mst-big-slider .easyzoom-style {
  text-align: center;
  background: #fff;
  min-height: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mst-big-slider .easyzoom-style img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.mst-nav-arrow {
  border: 0;
  background: transparent;
  color: #014663;
  padding: 4px;
  cursor: pointer;
  display: block;
  margin: 2px auto;
  width: 100%;
  text-align: center;
}

@media (min-width: 992px) {
  .mst-nav-slider .slick-list {
    max-height: 360px;
  }

  .mst-nav-slider .slick-slide {
    width: 68px !important;
  }
}

/* ---- Clinical banner (HTML strip or legacy JPG fallback) ---- */
.mst-clinical-strip {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #eceff1;
  border-bottom: 1px solid #eceff1;
}

.mst-clinical-strip__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  max-width: 1680px;
  margin: 0 auto;
  min-height: 300px;
  background: #ffffff;
}

.mst-clinical-strip__photo {
  flex: 0 0 22%;
  max-width: 22%;
  overflow: hidden;
  background: #ffffff;
}

.mst-clinical-strip__photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mst-clinical-strip__center {
  flex: 1 1 auto;
  max-width: 56%;
  padding: 40px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mst-clinical-strip__brand {
  color: #014663;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.mst-clinical-strip__headline {
  color: #014663;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  line-height: 1.35;
  max-width: 520px;
}

.mst-clinical-strip__sub {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.45;
}

.mst-clinical-strip__stats {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 36px;
}

.mst-clinical-strip__stat {
  text-align: center;
  min-width: 100px;
}

.mst-clinical-strip__stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #014663;
  line-height: 1;
  margin-bottom: 6px;
}

.mst-clinical-strip__stat-label {
  display: block;
  font-size: 0.82rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-width: 140px;
  margin: 0 auto;
}

.mst-clinical-strip__patent {
  display: inline-block;
  background: #014663;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.mst-clinical-strip__footnote {
  font-size: 0.72rem;
  color: #777;
  font-style: italic;
  margin: 8px 0 0;
  max-width: 480px;
  line-height: 1.4;
}

.mst-product-clinical-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #eceff1;
  border-bottom: 1px solid #eceff1;
}

.mst-product-clinical-banner__canvas {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 0;
  background: #ffffff;
}

.mst-product-clinical-banner__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: #ffffff;
}

/* ---- Full-bleed content sections (Italian 50/50) ---- */
.mst-bleed-section {
  width: 100%;
  background: #fff;
  padding: 0;
  margin: 0;
}

.mst-bleed-section--alt {
  background: #f4f8fa;
}

.mst-bleed-section__row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 380px;
}

.mst-bleed-section__row--img-right {
  flex-direction: row;
}

.mst-bleed-section__row--img-left {
  flex-direction: row-reverse;
}

.mst-bleed-section__media {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 320px;
  overflow: hidden;
}

.mst-bleed-section__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.mst-bleed-section__copy {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mst-bleed-section__title {
  color: #014663;
  font-weight: 700;
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.mst-bleed-section__lead,
.mst-bleed-section__text {
  color: #333;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.mst-bleed-section__checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.mst-bleed-section__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: #014663;
}

.mst-bleed-section__checks li i {
  color: #014663;
  font-size: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}

.mst-bleed-section__footnote {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 0;
  font-style: italic;
}

.mst-bleed-section__lab {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #014663;
}

.mst-bleed-section__lab i {
  margin-right: 6px;
}

.mst-clinical-badge {
  display: inline-block;
  background: #014663;
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Structure (full-width grey band, diagram blends into grey) ---- */
.mst-structure-section {
  background: #f4f8fa;
}

.mst-structure-section__row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 480px;
  background: #f4f8fa;
}

.mst-structure-section__copy {
  flex: 0 0 50%;
  max-width: 50%;
  background: #f4f8fa;
  padding: 48px 48px 48px 56px;
}

.mst-structure-section__media {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 48px;
  background: #f4f8fa;
}

.mst-structure-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.mst-structure-block {
  padding-top: 14px;
  border-top: 1px solid #d0dae0;
}

.mst-structure-block__key {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #014663;
  line-height: 1;
  margin-bottom: 8px;
}

.mst-structure-block__title {
  font-size: 1rem;
  font-weight: 700;
  color: #014663;
  margin-bottom: 8px;
}

.mst-structure-block__text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
}

.mst-structure-diagram {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ---- Materials ---- */
.mst-materials-section__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px;
}

.mst-material-row__name {
  color: #014663;
}

.mst-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  padding: 0;
}

.mst-cert-pill {
  background: #fff;
  border: 1px solid #014663;
  color: #014663;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  list-style: none;
}

/* ---- Shared UI ---- */
.mst-flagship-badge {
  display: inline-block;
  background: #c9a227;
  color: #014663;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

.mst-breadcrumb a {
  color: #014663;
}

.mst-product-title {
  font-size: 1.75rem;
  color: #014663;
  font-weight: 700;
  line-height: 1.2;
}

.mst-product-collection a {
  color: #b09987;
  font-weight: 600;
  text-decoration: none;
}

.mst-model-picker {
  border: 1px solid #d8e2e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.mst-model-picker__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f4f8fa;
  border: 0;
  font-weight: 700;
  color: #014663;
  text-align: left;
  width: 100%;
}

.mst-model-picker__list {
  display: none;
  flex-direction: column;
}

.mst-model-picker__list.is-open {
  display: flex;
}

.mst-model-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #e8ecef;
  text-decoration: none;
  color: #014663;
}

.mst-model-item:hover {
  background: #f8fbfc;
}

.mst-model-item.is-active {
  background: #e8f2f8;
  border-left: 3px solid #014663;
}

.mst-model-item__thumb {
  width: 56px;
  height: 40px;
  object-fit: contain;
  background: #f4f8fa;
  border-radius: 4px;
}

.mst-comfort-list {
  padding-left: 18px;
  color: #333;
  font-size: 0.95rem;
}

.mst-pos-pill {
  display: inline-block;
  background: #014663;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 2px 4px 2px 0;
}

.mst-lifestyle-banner {
  width: 100%;
  background: #f4f6f8;
  padding: 0;
}

.mst-lifestyle-banner__img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.mst-cta-band {
  background: #014663;
  width: 100%;
}

.mst-cta-band__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Line landing (category) */
.mst-line-hero {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.mst-line-hero__overlay {
  background: linear-gradient(180deg, rgba(1, 70, 99, 0.55) 0%, rgba(1, 70, 99, 0.88) 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.mst-line-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(1, 70, 99, 0.12);
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.mst-line-card__img-wrap {
  background: #f4f8fa;
  padding: 24px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mst-line-card__img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 992px) {
  .mst-model-picker__list {
    display: flex;
  }

  .mst-model-picker__toggle {
    display: none;
  }
}

@media (max-width: 991px) {
  .mst-product-hero__breadcrumb-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mst-product-hero__row {
    flex-wrap: wrap;
  }

  .mst-product-hero__gallery-col,
  .mst-product-hero__sidebar-col {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mst-product-hero__sidebar-col {
    margin-left: 0;
    padding-top: 8px;
  }

  .mst-sidebar-panel {
    max-width: none;
  }

  .mst-gallery-wrap {
    padding-bottom: 12px;
  }

  .mst-nav-slider {
    position: static;
    width: 100%;
    margin-top: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .mst-nav-slider .slick-list {
    height: auto !important;
  }

  .mst-big-slider .easyzoom-style {
    min-height: 320px;
  }

  .mst-bleed-section__row,
  .mst-structure-section__row {
    flex-wrap: wrap;
    min-height: 0;
  }

  .mst-bleed-section__media,
  .mst-bleed-section__copy,
  .mst-structure-section__copy,
  .mst-structure-section__media {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .mst-bleed-section__copy {
    padding: 32px 20px;
  }

  .mst-bleed-section__media img {
    min-height: 240px;
  }

  .mst-structure-section__copy {
    padding: 32px 20px;
  }

  .mst-structure-section__media {
    padding: 24px 20px 40px;
  }

  .mst-structure-blocks {
    grid-template-columns: 1fr;
  }

  .mst-bleed-section__row--img-left,
  .mst-bleed-section__row--img-right {
    flex-direction: column;
  }

  .mst-bleed-section__row--img-left .mst-bleed-section__media {
    order: -1;
  }

  .mst-clinical-strip__inner {
    flex-wrap: wrap;
    min-height: 0;
  }

  .mst-clinical-strip__photo {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 200px;
  }

  .mst-clinical-strip__photo--left {
    order: 1;
  }

  .mst-clinical-strip__photo--right {
    order: 2;
  }

  .mst-clinical-strip__center {
    flex: 0 0 100%;
    max-width: 100%;
    order: 0;
    padding: 32px 20px 24px;
  }

  .mst-clinical-strip__stats {
    gap: 16px 24px;
  }

  .mst-clinical-strip__stat-value {
    font-size: 1.85rem;
  }
}
