/* Product pop-up as a full-screen showcase (owner, 2 Nov 2026; option C of three). The card you tap expands to fill the
   screen (product-showcase.js), then shrinks back into it on close. On PC: the photo, shown whole, fills the left side over
   its own background colour, with the workshop reel playing small in its corner; the details sit on the right, with
   "Add to my quote" and WhatsApp side by side in a bar that stays at the bottom. On phones: the reel in a round "story"
   pill at the top, the photo below it always whole (its frame takes the photo's shape), the Front / Side / 3D switch
   under it, then the details with the reel again as a card under the description. Loaded after match-day.css. */
/* ---------- shared: readable text, tidy details, the two buttons side by side in a bar that stays at the bottom ---------- */
html.v2 .product-dialog{background:var(--v-card)}
html.v2 .detail-content>p{color:var(--v-text);font-size:15.5px;line-height:1.65;margin-bottom:20px}
html.v2 .detail-content h2{max-width:none;margin-bottom:12px;font:780 clamp(28px,2.6vw,38px)/1.08 var(--v-disp);letter-spacing:-.025em;color:var(--v-ink)}
html.v2 .detail-specs{margin:0 0 6px;padding:0;border:0}
html.v2 .spec-row{padding:11px 0;border-top:1px solid var(--v-line);font-size:13.5px;color:var(--v-mute)}
html.v2 .spec-row:last-child{border-bottom:1px solid var(--v-line)}
html.v2 .spec-row strong{color:var(--v-ink);font-weight:600}
html.v2 .detail-footnote{margin-top:16px!important;text-align:left!important;color:var(--v-mute)}
html.v2 .detail-page{margin:6px 0 4px}
.pd-actions{position:sticky;bottom:0;z-index:4;display:flex;gap:10px;margin:22px calc(-1 * var(--pd-pad,40px)) 0;padding:14px var(--pd-pad,40px) calc(14px + env(safe-area-inset-bottom));background:var(--v-card);border-top:1px solid var(--v-line)}
.pd-actions #detail-add{flex:1;min-height:54px;margin:0;border-radius:999px;box-shadow:none!important}
.pd-actions #detail-more{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;margin:0;padding:0 22px;border:0;border-radius:999px;background:#1f8f4e;color:#fff;font:700 15px/1 var(--font);text-decoration:none}
.pd-actions #detail-more:hover{background:#18763f}
.pd-actions #detail-more span{display:none}
.pd-actions #detail-more::after{content:'WhatsApp'}
.pd-actions #detail-more svg{color:#fff;fill:currentColor}
/* the photo fills its panel: shown whole, and the space around it takes the photo's own background colour (sampled from
   its edges by product-showcase.js), so the photo seems to run edge to edge with no empty band */
.pd-fill{position:relative;overflow:hidden;background:var(--pd-bg,#e9edf3);transition:background .4s ease}
.pd-fill .detail-image{position:absolute;inset:var(--pd-inset,0);width:auto;height:auto;margin:0;border-radius:0;max-width:none;aspect-ratio:auto!important;background-size:contain!important;background-position:50% 50%!important;background-color:transparent!important}
.pd-fill .detail-3d{position:absolute;inset:0;width:100%;height:100%;margin:0;aspect-ratio:auto;border-radius:0;background:transparent}
.pd-fill .detail-3d-host{width:100%;height:100%}
.pd-fill .media-switch{position:absolute;left:50%;bottom:20px;z-index:3;margin:0;transform:translateX(-50%)}
.pd-fill .media-tabs{background:var(--v-card);border:0;box-shadow:0 0 0 1px rgba(47,42,43,.1)}
.pd-fill .media-hint{display:none}
/* the reel as a small playing video in the photo's corner (A and C) */
.pd-pip{position:absolute;z-index:3;display:block!important;margin:0!important;padding:0!important;background:none!important;width:var(--pd-pip,96px)}
.pd-pip[hidden]{display:none!important}
.pd-pip .dr-copy{display:none}
.pd-pip .dr-tile{display:block;width:100%;border-radius:14px;box-shadow:0 0 0 3px #fff,0 12px 24px -14px rgba(0,0,0,.6)}
.pd-pip::after{content:'▶  How we make it';display:block;width:max-content;margin-top:9px;padding:6px 10px;border-radius:999px;background:#fff;color:#2f2a2b;font:700 11px/1 var(--font);pointer-events:none}

/* ---------- motion: the backdrop fades, the photo settles, the words arrive one after another (PC; phones zoom the
   whole window out of the card instead, in product-showcase.js) ---------- */
html.v2 .product-dialog[open]::backdrop{animation:pdFade .45s ease both}
html.v2 .product-dialog.pd-out::backdrop{opacity:0;transition:opacity .3s ease}
@keyframes pdFade{from{opacity:0}}
.product-dialog.pd-enter .detail-content>*:not(.close-button){opacity:0;transform:translateY(14px)}
.product-dialog.pd-enter.pd-go .detail-content>*:not(.close-button){opacity:1;transform:none;transition:opacity .5s ease calc(var(--i,0) * 50ms + var(--pd-delay,160ms)),transform .75s cubic-bezier(.2,.9,.2,1) calc(var(--i,0) * 50ms + var(--pd-delay,160ms))}
.product-dialog.pd-enter .detail-image{transform:scale(1.07)}
.product-dialog.pd-enter.pd-go .detail-image{transform:none;transition:transform 1.1s cubic-bezier(.2,.9,.2,1)}
.product-dialog.pd-enter .pd-pip,.product-dialog.pd-enter .media-switch{opacity:0}
.product-dialog.pd-enter.pd-go .pd-pip,.product-dialog.pd-enter.pd-go .media-switch{opacity:1;transition:opacity .6s ease .45s}

/* ---------- the showcase: full screen; on PC the photo on the left, the details on the right ---------- */
html.v2 .product-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;overflow:hidden;background:var(--v-bg)}
html.v2 .product-dialog::backdrop{background:transparent;backdrop-filter:none}
html.v2 .product-dialog-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);height:100%;align-items:stretch}
html.v2 .detail-media{--pd-inset:3% 4% 9%}
html.v2 .detail-content{position:static;display:flex;flex-direction:column;justify-content:safe center;height:100%;overflow-y:auto;padding:70px clamp(36px,4.5vw,72px) 0;--pd-pad:clamp(36px,4.5vw,72px)}
html.v2 .detail-content>*{max-width:540px}
html.v2 .detail-content h2{font-size:clamp(36px,3.6vw,54px)}
html.v2 .detail-content>.close-button{position:absolute;top:22px;right:22px;z-index:5;width:44px;height:44px;font-size:24px}
html.v2 .pd-actions{max-width:none;background:var(--v-bg)}
html.v2 .pd-pip{--pd-pip:124px;left:28px;bottom:28px}
/* C on phones: the same reel as a bigger card under the description; elsewhere it stays hidden */
.pd-reel-card{display:none!important}
@media (max-width:650px){
  /* phones: the reel sits in its own row at the top, the photo below it is always shown whole (nothing covers or cuts
     it), the Front / Side / 3D switch sits under the photo, then the details */
  html.v2 .product-dialog{overflow-y:auto;transform-origin:0 0}   /* product-showcase.js zooms it out of the card */
  html.v2 .product-dialog-layout{display:block;height:auto}
  html.v2 .detail-media{display:flex;flex-direction:column;align-items:center;gap:12px;height:auto;padding:12px 16px 18px}
  html.v2 .detail-media:not(:has(> .pd-pip:not([hidden])))::before{content:'';display:block;height:40px}
  /* the photo's frame takes the photo's own shape (--pd-ar, from product-showcase.js), so the whole photo shows with no empty bands;
     a very tall photo is capped at half the screen */
  html.v2 .pd-fill .detail-image{position:relative;inset:auto;flex:none;width:100%;height:auto;max-height:52vh;aspect-ratio:var(--pd-ar,1)!important;border-radius:14px;z-index:1}
  html.v2 .detail-3d{position:relative;inset:auto;flex:none;width:100%;height:min(46vh,calc(100vw - 32px));z-index:1}
  html.v2 .media-switch{position:static;left:auto;bottom:auto;transform:none}
  html.v2 .detail-content{display:block;height:auto;overflow:visible;position:relative;z-index:2;padding:24px 20px 0;border-radius:26px 26px 0 0;background:var(--v-bg);--pd-pad:20px}
  html.v2 .sheet-close{position:fixed;top:0;right:0;height:auto}
  /* the reel row: a small round playing reel with an Instagram-coloured ring, in a light pill so it reads on any photo */
  html.v2 .pd-pip:not([hidden]){display:flex!important}
  html.v2 .pd-pip{order:-1;position:relative;inset:auto;align-items:center;gap:11px;align-self:flex-start;width:auto;max-width:calc(100% - 52px);margin:0!important;padding:5px 18px 5px 5px!important;border-radius:999px;background:rgba(255,255,255,.9)!important;cursor:pointer}
  html.v2 .pd-pip::after{content:none}
  html.v2 .pd-pip .dr-tile{position:relative;flex:none;width:54px;height:54px;aspect-ratio:auto;padding:2.5px;border-radius:50%;background:linear-gradient(45deg,#f58529,#dd2a7b 55%,#8134af);box-shadow:none}
  html.v2 .pd-pip .dr-tile video,html.v2 .pd-pip .dr-tile .dr-anim{position:absolute;inset:2.5px;width:calc(100% - 5px);height:calc(100% - 5px);border-radius:50%;border:2px solid #fff;object-fit:cover}
  html.v2 .pd-pip .dr-sound{display:none}
  html.v2 .pd-pip .dr-copy{display:block;min-width:0}
  html.v2 .pd-pip .dr-copy b{color:#2f2a2b;font-size:14.5px;line-height:1.2}
  html.v2 .pd-pip .dr-copy span:not(.dr-tap){display:none}
  html.v2 .pd-pip .dr-copy .dr-tap{margin-top:3px;font-size:12px;line-height:1.3}
  html.v2 .pd-reel-card:not([hidden]){display:flex!important;align-items:center;gap:16px;margin:4px 0 22px;padding:10px;border-radius:20px;background:var(--v-bg2);cursor:pointer}
  html.v2 .pd-reel-card .dr-tile{position:relative;flex:none;width:118px;border-radius:14px}
  html.v2 .pd-reel-card .dr-tile .dr-anim{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  html.v2 .pd-reel-card .dr-copy b{font-size:17px}
  html.v2 .pd-reel-card .dr-copy span{font-size:13.5px}
  html.v2 .pd-reel-card .dr-tap::before{content:'▶  '}
}

@media (prefers-reduced-motion:reduce){
  .product-dialog.pd-enter .detail-content>*,.product-dialog.pd-enter .detail-image,.product-dialog.pd-enter .pd-pip,.product-dialog.pd-enter .media-switch{opacity:1!important;transform:none!important;transition:none!important}
}
