/* Mobile viewport containment and full product preview */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body,
  main,
  .site-header,
  .hero,
  .hero-copy,
  .hero-visual,
  .category-section,
  .section-heading,
  .category-grid,
  .product-section,
  .collection-groups,
  .collection-group,
  .collection-group-heading,
  .product-slider,
  .product-grid,
  .product-card,
  .story-section,
  .story-image,
  .story-copy,
  .contact-section,
  footer {
    min-width: 0;
    max-width: 100%;
  }

  main {
    width: 100%;
    overflow-x: hidden;
  }

  .site-header > *,
  .section-heading > *,
  .collection-group-heading > *,
  .product-info > *,
  .story-section > * {
    min-width: 0;
  }

  .hero h1,
  .section-heading h2,
  .collection-group-heading h3,
  .product-info h4,
  .story-copy h2,
  .contact-section h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .product-slider,
  .product-grid {
    width: 100%;
  }

  .product-modal-backdrop {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .product-modal {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    height: calc(100dvh - 6px);
    max-height: calc(100dvh - 6px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(240px, 42dvh, 360px) minmax(0, 1fr);
    overflow: hidden;
  }

  .modal-product-image {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f5eadc;
  }

  .modal-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }

  .modal-product-content,
  .modal-product-scroll,
  .modal-section,
  .modal-product-meta,
  .color-options,
  .size-options,
  .mobile-measurements,
  .modal-order-area,
  .modal-order-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .modal-product-content {
    overflow: hidden;
  }

  .modal-product-scroll {
    padding: 22px 18px 18px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-product-scroll h2 {
    max-width: 100%;
    font-size: clamp(30px, 10vw, 38px);
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .modal-product-meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .modal-product-meta span,
  .modal-product-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .modal-product-meta strong {
    margin-left: auto;
    text-align: right;
  }

  .color-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .color-option {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    overflow: hidden;
  }

  .color-option > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .size-options {
    overflow: hidden;
  }

  .mobile-measurements dl div {
    min-width: 0;
  }

  .mobile-measurements dt,
  .mobile-measurements dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .modal-order-area {
    overflow: hidden;
  }

  .modal-order-button {
    gap: 12px;
    font-size: clamp(13px, 4vw, 15px);
  }

  .modal-order-button span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@supports (overflow: clip) {
  @media (max-width: 720px) {
    html,
    body,
    main {
      overflow-x: clip;
    }
  }
}
