/* Mobile purchase layout. Desktop and checkout behaviour remain unchanged. */
.mobile-product-nav { display: none; }
@media (max-width: 779px) {
  main#top { display: flex; flex-direction: column; }
  .mobile-product-nav {
    order: -4;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 76px 18px 10px;
    background: var(--cream-soft);
  }
  .mobile-product-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
  }
  #shop { order: -3; }
  #short-bodysuit { order: -2; }
  #high-waist-short { order: -1; }
  .product-detail.section { padding-block: 16px 40px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-gallery .gallery-main {
    height: clamp(190px, 29svh, 250px);
    min-height: 0;
    aspect-ratio: auto;
    box-shadow: none;
  }
  .product-gallery .gallery-main img {
    object-fit: contain;
    object-position: center;
    animation: none;
    transform: none;
  }
  .gallery-thumbs { gap: 8px; margin-top: 8px; }
  .gallery-thumbs button { flex-basis: 44px; height: 44px; }
  .gallery-zoom { width: 44px; height: 44px; right: 8px; bottom: 8px; }
  .product-buy { display: flex; flex-direction: column; padding: 0; }
  .product-buy h2 {
    order: -3;
    margin: 0;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.05;
  }
  .product-options {
    order: -2;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }
  .product-options .price-row { order: -2; margin: 0; }
  .product-options .price { font-size: 36px; }
  .product-options .price-note { order: -1; margin: 4px 0 8px; font-size: 12px; line-height: 1.4; }
  .option-head { min-height: 28px; font-size: 10px; letter-spacing: .1em; }
  .sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px; margin-top: 4px; }
  .sizes button { min-width: 0; height: 44px; padding-inline: 4px; letter-spacing: 0; }
  .fit { margin-top: 6px; line-height: 1.4; }
  .product-options .msg:empty { display: none; }
  .product-options .buy-button { width: 100%; min-height: 50px; margin-top: 10px; padding: 12px 18px; }
  .product-options .pay-logos { margin-top: 8px; gap: 5px 12px; font-size: 8px; }
  .product-assurance { order: -1; margin: 14px 0 22px; font-size: 12px; }
  .product-order { margin: 12px 0 18px; }
  /* Buying controls never wait for a scroll reveal; editorial sections still animate. */
  .product-gallery.rv.pre, .product-buy.rv.pre { opacity: 1; transform: none; }
  .product-buy .title-reveal { clip-path: none; transform: none; }
}
