/* The phone product page (≤ 760 px) = the APPROVED desktop page (partials/p_desk_f.html, p04d) in the normal flow.
   Ihab 2026-10-30 13:48 «نسخه الموبيل اتفقنا تعمل من اخر نسخه معتمده لسطح المكتب … السله … ترتيب القطاعات … تحديد مقاسات المنتج».
   Same sections in the same order: hero (one whole 9:16 picture, D14) · the piece in place · about + materials + YOUR ORDER
   (the same order card: width / height, parts, price, add to cart; the material board next to it) · atelier · every picture ·
   benefits. The older phone page (.pf-old) and its order bar are off. */
@media (max-width:760px){
  html body:not(.adm) main.p2.pf-on > .pf-old{display:none!important}
  html body:not(.adm) main.p2.pf-on .pf{display:block!important}
  html body:not(.adm) .p2-bar,html body:not(.adm) .pm-bar,html body:not(.adm) [data-p2-bar]{display:none!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st{width:100%!important;max-width:100%!important;zoom:1!important;height:auto!important;
    display:flex!important;flex-direction:column;gap:14px;padding:28px 16px 32px!important;margin:0!important;box-sizing:border-box}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st>*{position:relative!important;left:auto!important;right:auto!important;top:auto!important;
    bottom:auto!important;width:auto!important;max-width:100%!important;min-width:0;transform:none!important;margin:0!important}
  html body:not(.adm) main.p2 .pf img{max-width:100%}

  /* 1 · hero: the 9:16 picture whole, the words over its calm lower part (the approved phone veil) */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-hero{min-height:min(calc(100vw * 16 / 9),92svh)}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-hero .pf-hbg{object-position:50% 50%!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-hero .pf-hshade{background:var(--ph-veil,linear-gradient(0deg,rgba(14,10,7,.94) 0%,rgba(14,10,7,.84) 22%,rgba(14,10,7,.5) 36%,rgba(14,10,7,0) 52%))!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-hero{min-height:min(calc(100vw * 16 / 9),92svh);justify-content:flex-end;padding-top:90px!important;padding-bottom:22px!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-txt{direction:inherit!important;text-align:start!important;align-items:stretch}
  html:not(#m1):not(#m2) body:not(.adm) main.p2.pf-on .pf-hero.pf-mir .pf-txt{text-align:start!important;align-items:stretch!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-txt .pf-name b{font-size:40px!important;line-height:1.15!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-acts{display:flex!important;flex-wrap:wrap;gap:8px}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-acts .pf-btn{min-height:42px;flex:1 1 40%}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-acts .pf-gold{flex-basis:100%}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-place-lk{display:none!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-hnav{order:-1;align-self:flex-start}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-dots{display:none!important}
  /* the desktop photo-format chooser (21:9 · 9:16 · 1:1) stays on the phone, in the flow under the actions; its drawer opens full width */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-sizes{display:block!important;direction:inherit!important;text-align:start!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-sizes .pf-sz{justify-content:flex-start;gap:10px}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-drop:not([hidden]){display:flex!important;width:100%!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-drop .pf-dimg img{max-height:180px;width:auto}

  /* 2 · the piece in place: the strip scrolls sideways at 200 px high */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-pstrip{height:auto!important;padding:0!important;margin-inline:-16px!important;padding-inline:16px!important;overflow-x:auto}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-pstrip .pf-pc{zoom:.66;flex:none}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-pnav{order:2}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-phr{display:none!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-pft{flex-direction:column;gap:8px}

  /* 3 · about + materials + your order: facts in two columns, the piece, parts, options, then the material board and the order card */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:10px}
  /* Ihab 2026-11-01 23:50 «صورة كاملة»: the whole picture at the full width, in its own proportions */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-piece{height:auto!important;aspect-ratio:auto!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-piece>img{width:100%;height:auto!important;max-height:82vh;object-fit:contain}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-tabs{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-tabs .pf-tab{flex:none}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-big{width:min(220px,60vw)!important;height:min(220px,60vw)!important;align-self:center}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-bigc{width:auto!important;align-self:center;text-align:center!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-strip{overflow-x:auto;flex-wrap:nowrap}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-strip .pf-s{flex:none}
  /* Ihab Q8: the material board sits next to the cart only → right before the order card */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-build>.pf-mood{order:20;width:min(260px,70vw)!important;height:auto!important;aspect-ratio:1/1;align-self:center}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-build>.pf-mood img{width:100%;height:100%;object-fit:contain}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-build>.pf-cap-mood{order:21;text-align:center!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-build>.pf-ord{order:22;width:100%!important;padding:18px 16px!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ord .pf-in{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ord .pf-in input{min-width:0;width:100%}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ord .pf-btns{display:flex;flex-wrap:wrap;gap:8px}

  /* 4 · atelier */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-at{flex-direction:column!important;align-items:stretch!important;gap:16px}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-atb{display:flex;flex-wrap:wrap;gap:8px}

  /* 5 · every picture: rows scroll sideways */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allb{padding:32px 16px!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-gal{display:block!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allb{position:relative!important;display:block!important;width:auto!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allb .sb{position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;transform:none!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allrow{display:flex!important;flex-wrap:nowrap!important;gap:3px;width:auto;max-width:none;overflow-x:auto;scrollbar-width:none;margin:16px -16px 0!important;padding:0 16px;scroll-snap-type:x proximity}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allrow::-webkit-scrollbar{display:none}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allrow .pf-ac{flex:none;height:180px!important;width:auto!important;aspect-ratio:auto;scroll-snap-align:start;border-radius:6px;overflow:hidden}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allrow .pf-ac img{height:100%;width:auto;max-width:none;display:block}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-allnav{display:none!important}

  /* benefits band: four items in a 2 × 2 grid (the home phone benefits) */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .ws-ben{height:auto!important;display:grid!important;grid-template-columns:1fr 1fr;gap:18px 10px;padding:26px 16px!important;width:auto!important;zoom:1!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-a{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-a>.a{position:static!important;transform:none!important;left:auto!important;top:auto!important;white-space:normal!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-ic{width:26px;height:26px}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-en{font-size:10px!important;letter-spacing:.1em}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-ar{font-size:12px!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-ben .wb-sep{display:none!important}

  /* the engineering office bar on the phone: the price + «view your order» only */
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-dbar .pf-dbi{width:100%!important;zoom:1!important;height:64px;padding:0 16px!important;gap:12px;justify-content:space-between}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-dbar .pf-dbi>:not(.pr):not(.go){display:none!important}
  html:not(#m1):not(#m2) body:not(.adm) main.p2 .pf-st-build>.pf-mb{order:20;position:static!important;inset:auto!important;width:min(300px,86vw)!important;align-self:center}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-head{min-height:20px;overflow:visible}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-head p{font-size:12px;line-height:20px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-fig>img{max-height:none}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-codes{font-size:12px;line-height:20px;margin-bottom:24px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-panel{inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-window{padding:16px 14px max(16px,env(safe-area-inset-bottom,0px));grid-template-rows:auto auto minmax(0,1fr)}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-panel header{padding-bottom:12px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-panel h3{display:block}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-panel h3 small{display:block;margin-top:3px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-strip{gap:12px;padding:14px 7px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-detail{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto;gap:14px;padding-top:14px;overflow:auto}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-sample{width:min(100%,360px);aspect-ratio:1;justify-self:center;min-height:180px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-specs{width:100%;padding-bottom:4px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-specs h4{margin-bottom:8px}
  html:not(#m1):not(#m2) body:not(.adm) .pf-mb-specs dl>div{padding:8px 0}
  html body:not(.adm).page-product{padding-bottom:64px}
}
