/* Mobile-only refinements: one complete hero, aligned contact actions and stable account tabs. */
@media (max-width: 760px) {
  /* Match the selected product line instead of keeping every mobile action blue. */
  .products[data-category="face"] { --mobile-category-action: #8c5f69; }
  .products[data-category="body"] { --mobile-category-action: #496b83; }
  .products:is([data-category="face"],[data-category="body"]) .category-tab[aria-selected="true"] {
    background: var(--mobile-category-action); border-color: var(--mobile-category-action); color: #fff;
  }
  .products:is([data-category="face"],[data-category="body"]) :is(.category-add,.add-to-cart):not(:disabled) {
    background: var(--mobile-category-action); border-color: var(--mobile-category-action); color: #fff;
  }
  .products:is([data-category="face"],[data-category="body"]) :is(.category-add,.add-to-cart):not(:disabled):hover {
    background: var(--mobile-category-action); border-color: var(--mobile-category-action); color: #fff;
  }
  .product-page[data-product-kind="face"] { --mobile-category-action: #8c5f69; }
  .product-page[data-product-kind="body"] { --mobile-category-action: #496b83; }
  .product-page:is([data-product-kind="face"],[data-product-kind="body"]) .product-page__add:not(:disabled),
  .product-page:is([data-product-kind="face"],[data-product-kind="body"]) .product-page__gallery button[aria-selected="true"] {
    background: var(--mobile-category-action); border-color: var(--mobile-category-action); color: #fff;
  }
  .hero {
    height: auto;
    min-height: 100svh;
    box-sizing: border-box;
    grid-template-rows: auto auto;
    row-gap: 24px;
  }
  .hero > div:first-child { min-width: 0; animation: none; transform: none; text-align: center; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero-principles { justify-items: center; text-align: center; }
  .hero .hero-principles p { margin-left: auto; margin-right: auto; }
  .hero .hero-actions { justify-content: center; align-items: center; }
  .hero-stage {
    height: clamp(160px, calc(100svh - 560px), 300px);
    min-height: 160px; margin: 0; padding: 24px 0; box-sizing: border-box;
    overflow: hidden; isolation: isolate; animation: none; transform: none;
  }
  .hero .hero-capsule { width: min(70vw, 300px); height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
  .hero-stage:before, .hero .orbit { width: min(64vw, clamp(112px, calc(100svh - 608px), 200px)); }
  .hero-stage:before { box-shadow: none; }
  .hero .pdrn-canvas { display: none; }
  .hero-capsule-note { display: none; }

  /* A compact product card on phones; the desktop campaign banner stays intact. */
  .products[data-category="body"] .body-feature {
    display: flex; flex-direction: column; height: auto; min-height: 0;
    border-radius: 24px; overflow: hidden;
  }
  .products[data-category="body"] .body-art {
    order: -1; height: 310px; min-height: 310px; flex: none; overflow: hidden;
  }
  .products[data-category="body"] .body-art img {
    inset: 7% 12%; width: 76%; height: 86%; transform: none; filter: none;
  }
  .products[data-category="body"] .body-art:after { display: none; }
  .products[data-category="body"] .body-copy { padding: 24px; }
  .products[data-category="body"] .body-copy h3 { font-size: 26px; line-height: 1.15; }
  .products[data-category="body"] .body-copy p { margin-top: 14px; font-size: 14px; }
  .products[data-category="body"] .body-copy footer { margin-top: 24px; }

  /* Keep the same real purchase control within thumb reach, above the safe area. */
  .product-page { display: block; clip-path: none; transform: none; transition: visibility .2s; }
  .product-page__visual { position: relative; height: 390px; min-height: 390px; }
  .product-page__content { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
  .product-page__purchase {
    position: fixed; z-index: 6; bottom: 0; left: 0; right: 0;
    display: flex; flex-wrap: nowrap; align-items: center; gap: 14px;
    margin: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #dce5ef; box-shadow: 0 -8px 24px rgba(49,73,102,.06);
  }
  .product-page__price { width: auto; flex: none; font-size: 22px; white-space: nowrap; }
  .product-page__add { width: auto; flex: 1; min-width: 0; padding: 10px 14px; min-height: 52px; font-size: 13px; }

  /* Touch scrolling must not trigger the desktop hover crop / packshot swap. */
  .catalog-panel[data-panel="face"] .card:is(:hover,:focus-within) .pack,
  .catalog-panel[data-panel="face"] .pack {
    opacity: 1; clip-path: none; filter: none; transform: translateX(-50%);
  }
  .catalog-panel[data-panel="face"] .face { display: none; }
  .catalog-panel[data-panel="face"] .visual:after { display: none; }
  .catalog-panel[data-panel="face"] .card { opacity: 1; transform: none; transition: none; }
  .category-product:is(:hover,:focus-within) .category-product-visual img,
  .products[data-category="body"] .body-feature:hover .body-art img { transform: none; }
  .category-product-visual { flex-shrink: 0; }

  .support-intro, .support-actions { min-width: 0; }
  .support-actions { width: 100%; justify-items: stretch; gap: 12px; }
  .support-primary, .support-secondary {
    width: 100%; box-sizing: border-box; min-height: 52px;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 16px; font-size: 14px; line-height: 1.4;
    border-radius: 16px; text-align: center; text-decoration: none;
  }
  .support-primary { gap: 10px; }
  .support-secondary { border: 1px solid var(--brand-blue); }
  .support-secondary:hover { background: var(--white); }

  .account-layout, .account-content, .account-panel { min-width: 0; }
  .account-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%; box-sizing: border-box; padding: 8px; gap: 8px;
    overflow: visible; white-space: normal; scroll-snap-type: none;
  }
  .account-tabs button { min-width: 0; min-height: 48px; padding: 12px 8px; text-align: center; font-size: 14px; }
  .account-empty, .account-feature { margin-top: 28px; }
}
