/* 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%;
}

/* ---- Hero: standard product grid (col-8 / col-4) + thumb overlay on image ---- */
.mst-product-hero {
  background: #fff;
}

.mst-product-hero__row {
  margin-left: 0;
  margin-right: 0;
}

.mst-product-hero__gallery-col,
.mst-product-hero__sidebar-col {
  padding-left: calc(var(--bs-gutter-x) * 0.6);
  padding-right: calc(var(--bs-gutter-x) * 0.6);
}

.mst-gallery-wrap {
  position: relative;
  width: 100%;
}

.mst-gallery-cert-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 9;
  width: auto;
  max-width: 110px;
  height: auto;
  pointer-events: none;
  display: block;
}

.mst-pillow-product .mst-gallery-wrap .mst-nav-slider.product-dec-left {
  position: absolute;
  top: 0;
  left: 0;
  float: none;
  width: 90px;
  padding: 8px 6px 8px 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
}

.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: 56px;
  object-fit: contain;
  display: block;
}

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

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

/* Match default product page — no forced zoom / tall min-height */
.mst-pillow-product .mst-big-slider .easyzoom-style {
  position: relative;
  background: #fff;
}

.mst-pillow-product .mst-big-slider .easyzoom img {
  width: 100%;
}

.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%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  overflow: hidden;
}

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

.mst-product-clinical-banner__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  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 — слика без текст (глава/перница), панел под неа */
.mst-line-hero {
  display: flex;
  flex-direction: column;
}

/* Category lines: split hero само на mobile */
.mst-line-hero--mobile-only {
  display: none;
}

.mst-line-hero__media {
  width: 100%;
  min-height: 220px;
  height: clamp(200px, 38vw, 340px);
  background-color: #e8ecef;
  overflow: hidden;
}

.mst-line-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.mst-line-hero__panel {
  background: linear-gradient(180deg, #013a56 0%, #014663 100%);
  padding: 20px 0 24px;
}

.mst-line-hero__content {
  max-width: 920px;
  margin: 0 auto;
}

.mst-line-hero__title,
.mst-line-hero__tagline,
.mst-line-hero__intro {
  color: rgba(255, 255, 255, 0.98);
}

.mst-line-hero__title {
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 0.4rem;
}

.mst-line-hero__tagline {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 0.35rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mst-line-hero__intro {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.mst-line-hero__intro--sub {
  font-size: 0.86rem;
  opacity: 0.88;
  margin-bottom: 0;
}

.mst-line-hero .mst-flagship-badge {
  background: linear-gradient(135deg, #f5d76e 0%, #e8c547 45%, #d4ad2a 100%);
  color: #014663;
  border: 1px solid rgba(212, 173, 42, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 0.65rem;
  font-size: 10px;
}

.mfx-line-hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  max-width: 880px;
}

.mfx-line-hero-trust--below {
  margin: 14px auto 12px;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mfx-line-hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.mfx-line-hero-trust--below .mfx-line-hero-trust__item img {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  width: 18px;
  height: 18px;
}

.mst-line-hero__ctas {
  margin-top: 4px;
}

.mst-line-hero__ctas .btn-light {
  color: #014663;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 28px;
}

@media (max-width: 767px) {
  .mst-line-hero--mobile-only {
    display: flex;
    flex-direction: column;
  }

  .mfx-pillow-line-shop {
    padding-top: 24px !important;
  }

  .mfx-pillow-line-shop .shop-topbar-wrapper {
    border: 0;
    padding: 0 0 8px;
  }

  .mfx-pillow-line-shop .shop-topbar-wrapper p {
    color: #014663;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .mfx-pillow-category-slider--hide-mobile {
    display: none !important;
  }

  .mst-line-hero__media {
    height: clamp(180px, 52vw, 260px);
    background-position: center 38%;
  }

  .mst-line-hero__panel {
    padding: 16px 0 18px;
  }

  .mst-line-hero__intro--desktop {
    display: none;
  }

  .mst-line-hero__title {
    font-size: 1.22rem;
    margin-bottom: 0.35rem;
  }

  .mst-line-hero__tagline {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .mfx-line-hero-trust--below {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 12px -4px 10px;
    padding: 8px 4px 6px;
    scrollbar-width: none;
  }

  .mfx-line-hero-trust--below::-webkit-scrollbar {
    display: none;
  }

  .mfx-line-hero-trust--below .mfx-line-hero-trust__item {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  .mst-line-hero--mobile-only {
    display: none !important;
  }

  /* Desktop: оригинал — центриран блок, цел hero во кадар */
  .mst-line-hero:not(.mst-line-hero--mobile-only) {
    position: relative;
    display: block;
    min-height: 420px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__img {
    object-fit: cover;
    object-position: center center;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__panel {
    position: relative;
    z-index: 2;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(
      180deg,
      rgba(1, 45, 68, 0.38) 0%,
      rgba(1, 55, 78, 0.48) 50%,
      rgba(1, 70, 99, 0.58) 100%
    );
    padding: 48px 0 52px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__title,
  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__tagline,
  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__intro {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 4px 28px rgba(1, 45, 68, 0.55);
    margin-left: auto;
    margin-right: auto;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__title {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__tagline {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    max-width: 780px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__intro {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 780px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__intro--sub {
    font-size: 0.92rem;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-flagship-badge {
    padding: 7px 16px;
    margin-bottom: 1rem;
    font-size: 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mfx-line-hero-trust--below {
    justify-content: center;
    margin: 28px auto 24px;
    max-width: 880px;
  }

  .mst-line-hero:not(.mst-line-hero--mobile-only) .mst-line-hero__ctas {
    text-align: center;
  }
}

.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) {
  /* Italian mobile: full-width image, small thumbs overlaid top-left */
  .mst-product-hero__sidebar-col.pt-50 {
    padding-top: 24px !important;
  }

  .mst-gallery-cert-badge {
    top: 10px;
    right: 10px;
    max-width: 88px;
  }

  .mst-pillow-product .mst-gallery-wrap .mst-nav-slider.product-dec-left {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 72px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.92);
    z-index: 12;
  }

  .mst-nav-slide img {
    max-height: 44px;
  }

  .mst-nav-slider .slick-list {
    max-height: 220px !important;
  }

  .mst-pillow-product .mst-big-slider .easyzoom-style {
    min-height: 0;
  }

  .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;
  }
}
