/* Product page extras: Share (PdpShare.astro, pxs-*) and Notify me on WhatsApp (PdpNotify.astro, pxn).
   Polène theme tokens from site.css; glass and scrim use the shared --glass / --scrim tokens. */

/* share button: same square as the wishlist heart beside it */
.pxs-b{flex:0 0 46px;width:46px;height:46px;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink);background:#fff;transition:border-color .2s}
.pxs-b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.pxs-b[aria-expanded=true]{border-color:var(--ink)}
@media(hover:hover){.pxs-b:hover{border-color:var(--ink)}}
.pxs-b:focus-visible{outline:1px solid var(--ink);outline-offset:2px}

/* notify: an outlined bar under the buy row, as wide as it */
.pxn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:560px;min-height:46px;margin-top:8px;padding:0 16px;border:1px solid var(--ink);color:var(--ink);background:transparent;transition:background .2s,color .2s}
.pxn[hidden]{display:none}
.pxn svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
@media(hover:hover){.pxn:hover{background:var(--ink);color:#fff}}
.pxn:focus-visible{outline:1px solid var(--ink);outline-offset:2px}

/* share sheet: glass; a bottom sheet on phones, a small popover by the button from 768px */
.pxs-scrim{position:fixed;inset:0;z-index:150;background:var(--scrim,rgba(17,17,17,.28));-webkit-backdrop-filter:blur(var(--scrim-blur,6px));backdrop-filter:blur(var(--scrim-blur,6px));opacity:0;transition:opacity .3s}
.pxs-scrim.on{opacity:1}
.pxs-scrim[hidden],.pxs-sh[hidden]{display:none}
.pxs-sh{position:fixed;z-index:151;left:0;right:0;bottom:0;padding:8px 20px calc(12px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;color:var(--ink);font-family:var(--sans);text-align:left;
  background:var(--glass,rgba(255,255,255,.86));-webkit-backdrop-filter:var(--glass-blur,saturate(180%) blur(24px));backdrop-filter:var(--glass-blur,saturate(180%) blur(24px));
  box-shadow:0 -8px 40px rgba(0,0,0,.14);transform:translateY(100%);transition:transform .35s var(--ease,cubic-bezier(.2,.7,.2,1));touch-action:none}
.pxs-sh.on{transform:none}
.pxs-sh:before{content:"";display:block;width:36px;height:4px;margin:0 auto 4px;border-radius:2px;background:rgba(17,17,17,.2)}
.pxs-hd{display:flex;justify-content:space-between;align-items:center;min-height:44px}
.pxs-hd .caps{color:var(--muted)}
.pxs-x{width:44px;height:44px;display:grid;place-items:center;margin-right:-14px;color:var(--ink)}
.pxs-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4}
.pxs-pr{display:flex;align-items:center;gap:12px;padding:2px 0 14px;border-bottom:1px solid rgba(17,17,17,.1)}
.pxs-pr img{flex:none;width:40px;height:50px;object-fit:cover;background:var(--photo,#f7f7f7)}
.pxs-pr b{display:block;font-weight:400;color:var(--muted);margin-bottom:2px}
.pxs-pr span span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:19px}
.pxs-a{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 2px;font:400 15px/20px var(--sans);color:var(--ink);text-align:left;border-bottom:1px solid rgba(17,17,17,.1)}
#pxsWa{border-bottom:0}
.pxs-a svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.pxs-a:focus-visible,.pxs-x:focus-visible{outline:1px solid var(--ink);outline-offset:-1px}
@media(hover:hover){.pxs-a:hover{background:rgba(17,17,17,.04)}}
@media(min-width:768px){
  .pxs-scrim{display:none}
  .pxs-sh{left:auto;right:auto;bottom:auto;width:300px;padding:4px 16px 6px;border-radius:12px;touch-action:auto;
    box-shadow:0 14px 44px rgba(0,0,0,.16),0 0 0 1px rgba(17,17,17,.06);transform:translateY(-4px) scale(.98);transform-origin:top right;opacity:0;transition:transform .2s ease,opacity .2s ease}
  .pxs-sh.up{transform-origin:bottom right;transform:translateY(4px) scale(.98)}
  .pxs-sh.on{transform:none;opacity:1}
  .pxs-sh:before{display:none}
}
@media(prefers-reduced-motion:reduce){.pxs-sh,.pxs-scrim{transition:none}}
@media(prefers-reduced-transparency:reduce){.pxs-sh{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
