/* Mobile product pages: a single photo -> info -> purchase flow.
   Scoped to the product route; desktop and other pages stay unchanged. */
@media (max-width: 620px) {
  main > .section:first-child { padding-top: 18px; padding-bottom: 24px; }
  #productRoot > .crumbs { margin-bottom: 12px; line-height: 1.5; }
  #productRoot .product-page { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  /* Keep landscape banners and portrait product photos in one stable frame. */
  #productRoot .product-stage.product-gallery { gap: 8px; }
  #productRoot .gallery-photo-button {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: #fff;
  }
  #productRoot .gallery-photo-button > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    padding: 12px;
  }
  #productRoot .gallery-thumb-strip { gap: 8px; min-height: 0; padding: 0; }
  #productRoot .gallery-thumb-strip button {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }
  #productRoot .gallery-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 44px;
    padding: 4px 0 0;
    border-top: 0;
  }
  #productRoot .gallery-toolbar .gallery-open {
    gap: 6px;
    padding: 7px 0;
    min-width: 0;
    white-space: normal;
    text-align: left;
    font-size: 11px;
  }
  #productRoot .gallery-toolbar .gallery-open svg { flex: 0 0 16px; width: 16px; height: 16px; }
  #productRoot .gallery-counter { font-size: 11px; }
  #productRoot .gallery-arrows { gap: 4px; }
  #productRoot .gallery-arrows button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  #productRoot .gallery-arrows svg { width: 18px; height: 18px; }

  /* Group product identity, pricing and availability. */
  #productRoot .product-topline { gap: 10px; align-items: center; }
  #productRoot .product-topline > .kicker { min-width: 0; font-size: 10px; line-height: 1.5; }
  #productRoot .product-share {
    gap: 6px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 0 7px 8px;
    border: 0;
    font-size: 11px;
  }
  #productRoot .product-share svg { width: 16px; height: 16px; }
  #productRoot .product-info h1 {
    font-size: clamp(28px, 7.3vw, 36px);
    line-height: 1.08;
    margin: 8px 0 12px;
    overflow-wrap: anywhere;
  }
  #productRoot .product-info .big-price { font-size: clamp(26px, 7.2vw, 32px); }
  #productRoot .product-info .compare {
    display: inline-block;
    margin: 0 0 0 8px;
    font-size: 12px;
    vertical-align: baseline;
  }
  #productRoot .product-info .stock { display: block; margin: 10px 0 6px; }
  #productRoot .product-info .condition-detail { margin: 0 0 12px; gap: 8px; }

  /* Match the wishlist to the full purchase area, not just the add button. */
  #productRoot .product-info .qtyline {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
    margin: 14px 0 0;
  }
  #productRoot .product-info .qtybox {
    width: 124px;
    height: 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #productRoot .product-info .qtybox button,
  #productRoot .product-info .qtybox span { height: 46px; }
  #productRoot .product-info .qtyline > #addProduct { min-height: 48px; }
  #productRoot .product-info .qtyline > .product-wishlist-action {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
  }
  #productRoot .wishlist-product-button { min-height: 48px; }

  #productRoot .product-detail-panels { margin-top: 20px; }
  #productRoot .product-detail-panel > summary { min-height: 52px; }
  #productRoot .product-detail-panel .spec-list { gap: 10px 14px; }

  /* Preserve the original animated fish, but stop its speech bubble
     covering details and keep its mobile contact target unobtrusive. */
  body:has(#productRoot) .whatsapp-float {
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 52px;
    height: 50px;
  }
  body:has(#productRoot) .jb-chat-character { width: 52px; height: 50px; }
  body:has(#productRoot) .jb-chat-prompt { display: none; }
  body:has(#productRoot) .toast { bottom: 74px; }
}
