/* JERSIX P15: keep the product layout inside its column on phones/tablets. */
@media (max-width: 1100px) {
  .product-page .pd-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .product-page .pd-grid > *,
  .product-page .gallery-wrap,
  .product-page .buy-panel {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-page .main-media,
  .product-page .thumbs,
  .product-page .price-zone,
  .product-page .price-zone > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .product-page .gallery-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .product-page .main-media {
    order: 0 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  .product-page .media-badge {
    z-index: 2;
    pointer-events: none;
  }

  .product-page .thumbs {
    order: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px !important;
    padding: 3px 2px 6px !important;
  }

  .product-page .thumb {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 62px !important;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .product-page > .container {
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
  }

  .product-page .main-media {
    height: clamp(240px, 38vh, 360px) !important;
    height: clamp(240px, 38svh, 360px) !important;
    min-height: 0 !important;
    max-height: 360px !important;
    aspect-ratio: auto !important;
  }

  .product-page .jx-gallery-zoom,
  .product-page #main-img {
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .product-page .jx-mobile-product-title {
    display: block;
    font: 600 25px/1.15 Oswald, sans-serif;
    margin: 0 0 14px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .product-page .buy-panel > .title {
    display: none !important;
  }

  .product-page .meta,
  .product-page .meta .badge,
  .product-page .fs-live-signals > span {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .product-page .fs-live-signals {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-page .fs-live-signals > span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .product-page .price-web > span,
  .product-page .transfer-deal-head > span,
  .product-page .transfer-deal > small {
    font-size: 10px !important;
    line-height: 1.45 !important;
  }

  .product-page .price-zone {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-page .price-web,
  .product-page .transfer-deal-head {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }

  .product-page .price-web .price,
  .product-page .transfer-deal > small,
  .product-page .detail-4x3-note {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  .product-page .sizes {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)) !important;
    gap: 8px !important;
  }

  .product-page .buy-panel .size {
    min-width: 0 !important;
    min-height: 44px !important;
    width: 100% !important;
    height: auto !important;
    padding: 9px 4px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .product-page .option-head > *,
  .product-page .cta > * {
    min-width: 0 !important;
  }

  body:has(.product-page) .fs-mobile-buybar {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 44%) !important;
    height: auto !important;
    min-height: 76px !important;
  }

  body:has(.product-page) .fs-mobile-buybar > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:has(.product-page) .fs-mobile-buybar small,
  body:has(.product-page) .fs-mobile-buybar span {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body:has(.product-page) .image-zoom-modal {
    z-index: 200100 !important;
  }
}
