/* Conforma uses the standard PDP's gallery, typography, buttons and story grid. */
/* Preserve the brand red; this near-white surface clears small-text AA contrast. */
.pdp-conforma .product-page { background-color: #fafafa; }
body[data-tag="Orthotics"] .cat-header__note a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
body[data-tag="Orthotics"] .cat-card:hover .cat-card__title { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.pdp-conforma .product-layout { scroll-margin-top: 140px; }
.pdp-conforma .product-buy__name { text-transform: uppercase; }
.pdp-conforma .product-images { background: #f8f8f8; isolation: isolate; }
/* darken, not multiply — see "Product photography" in shop.css. Thumbs are the raw Shopify
   uploads (white on some, #F8 on others); they take the same blend. */
.pdp-conforma .product-images__hero,
.pdp-conforma .product-thumb { mix-blend-mode: darken; background: transparent; }
.pdp-conforma .pdp-archline { margin: 4px 0 12px; font-size: 16px; font-weight: 600; }
.pdp-conforma .conforma-lede { font-size: 16px; line-height: 1.6; color: var(--grey-90); margin: 10px 0 14px; max-width: 52ch; }
.conforma-profile-label { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.conforma-profile-label .opt-label { margin: 0; }
.conforma-profile-label button { border: 0; background: none; padding: 4px 0; color: var(--red-text); font: 600 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.conforma-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.conforma-profile { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--grey-300); padding: 8px 4px 10px; color: var(--black); text-decoration: none; background: var(--white); min-width: 0; }
.conforma-profile:hover, .conforma-profile[aria-current] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.conforma-profile img { width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; object-fit: contain; }
/* The picker chips are white, and a blend can only pull light pixels DOWN to a darker
   backdrop — so these local thumbs must sit on pure white. basso-thumb.webp shipped on
   #F8F8F8 and was white-pointed (248 → 255) on 2026-09-21; keep any re-export on white. */
.conforma-profile strong { font: 600 13px var(--font-body); line-height: 1.3; margin-top: 3px; }
.conforma-profile span { font-size: 11px; color: var(--grey-90); margin-top: 3px; }
.conforma-profile::before { content: ''; width: 24px; height: 3px; background: var(--profile-color); }
.conforma-profile--basso { --profile-color: #c4a331; }
.conforma-profile--medio { --profile-color: #268fd0; }
.conforma-profile--alto { --profile-color: #e70000; }
.conforma-profile--stretta { --profile-color: #9165c5; }
.conforma-profile-note, .conforma-sizing-note { font-size: 12px; line-height: 1.5; color: var(--grey-90); margin: 0 0 16px; }
.pdp-conforma #pdp-options { min-height: 185px; scroll-margin-top: 140px; }
.pdp-conforma .gender-toggle { margin-bottom: 16px; }
.pdp-conforma .opt-grid { gap: 6px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pdp-conforma .opt-btn { min-width: 60px; min-height: 44px; }
.pdp-conforma .pdp-weartest { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.pdp-conforma .product-trust { flex-wrap: wrap; font-size: 12px; gap: 8px 18px; }
.pdp-conforma .product-trust a { color: inherit; text-underline-offset: 3px; }
.pdp-conforma .conforma-return-note { margin: 10px 0 0; font-size: 12px; color: var(--grey-90); }
.conforma-proof { max-width: 1320px; margin: 48px auto 0; padding: 26px 24px; border-block: 1px solid var(--grey-300); display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.conforma-proof p { margin: 0; padding: 0 16px; font-size: 13px; line-height: 1.5; }
.conforma-proof p + p { border-left: 1px solid var(--grey-300); }
.conforma-proof strong { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1.15; text-transform: uppercase; margin-bottom: 4px; color: var(--black); }
.pdp-conforma .pdp-block__head { font-size: clamp(34px, 4vw, 54px); }
.pdp-conforma .conforma-film { position: relative; width: 100%; max-width: 440px; margin-inline: auto; }
.pdp-conforma .conforma-film video { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 70%; background: #111; }
.conforma-film__toggle { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.conforma-film__toggle:disabled { cursor: default; }
/* Actual exploded artwork, with HTML labels and SVG leaders at each layer.
   On phones the numbered leaders stay with the art; full-size copy sits below. */
.conforma-construction { max-width: 1320px; margin: 80px auto 0; padding: 0 24px; scroll-margin-top: 150px; }
.conforma-construction__head .pdp-block__head { max-width: none; margin-bottom: 16px; }
.conforma-construction__head > p:last-child { max-width: 60ch; color: var(--grey-90); font-size: 16px; line-height: 1.65; margin: 0; }
.conforma-diagram { position: relative; margin-top: 24px; }
.conforma-diagram__art { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.conforma-diagram__art > img { position: absolute; left: 25%; top: 10%; width: 50%; height: auto; }
.conforma-diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.conforma-diagram__lines path { fill: none; stroke: var(--red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.conforma-diagram__lines rect { fill: var(--red); }
.conforma-diagram__lines--mobile { display: none; }
.conforma-diagram__labels { list-style: none; padding: 0; margin: 0; }
.conforma-layer { position: absolute; width: 20%; }
.conforma-layer__number { display: block; font-size: 11px; letter-spacing: .12em; font-weight: 600; color: var(--grey-30); margin-bottom: 10px; }
.conforma-layer h3 { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.05; font-weight: 400; text-transform: uppercase; letter-spacing: var(--heading-ls); margin: 0 0 10px; }
.conforma-layer p { font-size: 15px; line-height: 1.6; color: var(--grey-90); margin: 0; }
.conforma-layer--cover { top: 12%; right: 0; }
.conforma-layer--foam { top: 59%; right: 0; }
.conforma-layer--base { top: 29%; left: 0; }
.conforma-layer--zones { top: 67%; left: 0; }
@media (max-width: 1000px) {
  .conforma-construction { margin-top: 56px; }
  .conforma-diagram__art { max-width: 600px; margin: 0 auto; aspect-ratio: 600 / 530; }
  .conforma-diagram__art > img { left: 10%; top: calc(78 / 530 * 100%); width: 80%; }
  .conforma-diagram__lines--desktop { display: none; }
  .conforma-diagram__lines--mobile { display: block; }
  .conforma-diagram__marker rect { fill: var(--white); stroke: var(--red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .conforma-diagram__marker text { font: 600 20px var(--font-body); text-anchor: middle; dominant-baseline: central; fill: var(--black); }
  .conforma-diagram__labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 8px; }
  .conforma-layer { position: static; inset: auto; width: auto; padding-top: 16px; border-top: 1px solid var(--grey-300); }
  .conforma-layer h3 { font-size: 25px; }
  .conforma-layer p { font-size: 15px; }
}
@media (max-width: 480px) {
  .conforma-diagram__labels { grid-template-columns: 1fr; gap: 0; }
  .conforma-layer { position: relative; padding: 18px 0 18px 38px; }
  .conforma-layer__number { position: absolute; left: 0; top: 21px; }
  .conforma-layer h3 { font-size: 24px; margin-bottom: 6px; }
}
.conforma-arch-panel { margin: 80px auto 0; max-width: 1272px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 48px; background: var(--black); color: var(--white); }
.conforma-arch-panel .pdp-block__eyebrow { color: #bdbdbd; }
.conforma-arch-panel .pdp-block__head { color: var(--white); }
.conforma-arch-panel p { font-size: 16px; line-height: 1.65; }
.conforma-arch-panel .btn { margin-top: 12px; }
.conforma-arch-panel__profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.conforma-arch-panel__profiles a { text-align: center; text-decoration: none; color: white; }
/* Profile tiles (direct-child links only — the footnote link below must not get a tile).
   The grey tile is drawn UNDER the photo (::before) so the photo can darken-blend into it —
   a background on the img would be part of the blended layer, and the panel behind is black
   (darken against black = black). */
.conforma-arch-panel__profiles > a { position: relative; isolation: isolate; }
.conforma-arch-panel__profiles > a::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; background: #f8f8f8; }
.conforma-arch-panel__profiles > a img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: transparent; mix-blend-mode: darken; }
.conforma-arch-panel__profiles strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 24px; margin-top: 12px; }
.conforma-arch-panel__profiles span { font-size: 12px; }
.conforma-arch-panel__note { grid-column: 1/-1; color: #ddd; margin: 8px 0 0; }
.conforma-arch-panel__note a { color: #d7bcfa; text-decoration: underline; text-underline-offset: 3px; }
.pdp-conforma .conforma-fit-steps { counter-reset: fit; list-style: none; padding: 0; margin: 0; }
.conforma-fit-steps li { counter-increment: fit; position: relative; padding: 18px 0 18px 42px; border-top: 1px solid var(--grey-300); font-size: 16px; line-height: 1.6; }
.conforma-fit-steps li::before { content: '0' counter(fit); position: absolute; left: 0; top: 18px; color: var(--red-text); font-weight: 600; font-size: 13px; }
.conforma-fit-steps strong { display: block; color: var(--black); }
.pdp-conforma .conforma-fit-steps { order: 2; }
.pdp-conforma .pdp-faq { max-width: 1000px; }
.pdp-conforma .pdp-faq__q summary { min-height: 44px; }
/* Match the shared shoe rule's specificity so the expanded FAQ stays visible. */
body.pdp-conforma #pdp-desc { display: block; margin: 0 0 24px; padding: 0; font-size: 15px; color: var(--grey-90); border: 0; }
.pdp-conforma .pdp-faq a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pdp-conforma .conforma-custom-link { font-weight: 600; }
.pdp-conforma .pdp-faq a:hover { color: var(--black); }
.pdp-conforma #pdp-desc p { margin-bottom: 12px; }
.pdp-conforma #pdp-desc ul { padding-left: 24px; }
.pdp-conforma #pdp-desc li { margin-bottom: 8px; }
.pdp-conforma .pdp-sticky__name { display: inline; }
.conforma-finder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; margin: 24px 0; border: 1px solid var(--grey-300); background: var(--white); }
.conforma-finder p { margin: 0; font-size: 13px; line-height: 1.55; }
.conforma-finder strong { display: block; font-size: 14px; }
.conforma-finder .btn { min-height: 44px; padding: 10px 18px; font-size: 12px; }
.conforma-choosing { margin: 64px 0; padding-top: 36px; border-top: 1px solid var(--grey-300); }
.conforma-choosing > p { max-width: 76ch; font-size: 16px; line-height: 1.65; }
.conforma-choosing .pdp-block__eyebrow { color: var(--black); }
.conforma-choosing .pdp-block__head { max-width: none; font-size: clamp(32px, 4vw, 48px); }
.conforma-choosing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.conforma-choosing__grid > div { position: relative; padding: 24px; border-top: 3px solid var(--guide-accent); }
.conforma-choosing__arch { --guide-accent: #268fd0; background: #f0f7fc; }
.conforma-choosing__arch::before { content: ''; position: absolute; height: 3px; inset: -3px 0 auto; background: linear-gradient(to right, #c4a331 0 33.333%, #268fd0 33.333% 66.666%, var(--red) 66.666%); }
.conforma-choosing__fit { --guide-accent: #9165c5; background: #f5f0fa; }
.conforma-choosing__custom { --guide-accent: var(--red); background: var(--white); }
.conforma-choosing h3 { font: 400 28px/1.1 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.conforma-choosing__grid h3 { color: var(--guide-accent); }
.conforma-choosing__grid p { font-size: 15px; line-height: 1.65; color: var(--grey-90); }
.conforma-choosing a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.conforma-choosing__custom a { color: var(--red); }
.conforma-choosing .conforma-choosing__return { font-size: 13px; color: var(--grey-90); }
.pdp-conforma :is(a, button, summary):focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.conforma-arch-panel :is(a, button):focus-visible { outline-color: white; }
@media (max-width: 800px) {
  .conforma-choosing__grid { grid-template-columns: 1fr; gap: 16px; }
  .pdp-conforma .opt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp-conforma .product-layout { gap: 26px; }
  .pdp-conforma .pdp-block { gap: 28px; margin-top: 56px; }
  .pdp-conforma .pdp-block__copy { order: 1; }
  .pdp-conforma .pdp-block__media { order: 2; }
  .conforma-proof { margin-top: 36px; padding: 22px 12px; }
  .conforma-proof p { padding: 0 8px; font-size: 11px; }
  .conforma-proof strong { font-size: 28px; }
  .conforma-arch-panel { margin: 56px 24px 0; padding: 28px 24px; grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .pdp-conforma .product-layout { padding-inline: 20px; margin-top: 18px; }
  .pdp-conforma .product-images__hero { max-height: 350px; }
  .conforma-profiles { gap: 5px; }
  .conforma-profile { padding-inline: 2px; }
  .conforma-profile strong { font-size: 11px; }
  .conforma-profile span { font-size: 10px; }
  .pdp-conforma .opt-btn { min-width: 56px; }
  .pdp-conforma .pdp-sticky__name { font-size: 12px; }
  .pdp-conforma .pdp-sticky__val { font-size: 12px; }
  .conforma-finder { padding: 14px 16px; }
}
