/* OBS Product Page Templates: sticky buy bar, option sheet, toast, demo switcher. */
/* sticky bar */
.obsppt-sticky{position:fixed;z-index:9990;inset-inline:0;inset-block-end:var(--obsppt-dock,0px);transform:translateY(110%);transition:transform .25s ease,visibility .25s;visibility:hidden;padding-bottom:env(safe-area-inset-bottom)}
.obsppt-sticky.is-on{transform:none;visibility:visible}
.obsppt-sticky__inner{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--obsppt-bg);border-block-start:1px solid var(--obsppt-border);box-shadow:0 -6px 20px rgba(0,0,0,.08);max-width:1320px;margin:0 auto}
.obsppt-sticky__img{width:44px;height:44px;object-fit:cover;border-radius:8px;display:none}
.obsppt-sticky__info{display:none;flex-direction:column;min-width:0;flex:1}
.obsppt-sticky__name{font-weight:600;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.obsppt-sticky__price{font-size:.9rem;font-weight:700}
.obsppt-sticky__price del{font-weight:400;color:var(--obsppt-muted)}
.obsppt-sticky__actions{display:flex;gap:8px;flex:1}
.obsppt-sticky .obsppt-btn{min-height:48px;font-size:.95rem}
.obsppt--sticky-floating .obsppt-sticky{inset-inline:12px;inset-block-end:calc(12px + var(--obsppt-dock,0px))}
.obsppt--sticky-floating .obsppt-sticky__inner{border-radius:20px;border:1px solid var(--obsppt-border);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.obsppt--sticky-floating .obsppt-sticky .obsppt-btn{border-radius:14px}
.obsppt--sticky-minimal .obsppt-sticky__inner{box-shadow:none;background:color-mix(in srgb,var(--obsppt-bg) 92%,transparent);backdrop-filter:blur(10px)}
.obsppt--sticky-off .obsppt-sticky{display:none}
.obsppt--sticky-off{padding-block-end:0}
/* bottom sheet */
.obsppt-sheet{position:fixed;inset:0;z-index:99990}
.obsppt-sheet[hidden]{display:none}
.obsppt-sheet__backdrop{touch-action:none;position:absolute;inset:0;background:rgba(0,0,0,.45);animation:obsppt-fade .2s}
.obsppt-sheet__panel{position:absolute;inset-inline:0;inset-block-end:0;max-height:88vh;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--obsppt-bg);color:var(--obsppt-text);border-radius:20px 20px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom));animation:obsppt-up .25s ease;outline:0}
.obsppt-sheet__panel::before{content:"";display:block;width:40px;height:4px;border-radius:9px;background:var(--obsppt-border);margin:4px auto 12px}
.obsppt-sheet__head{display:flex;align-items:center;gap:12px;margin-block-end:12px}
.obsppt-sheet__head img{width:56px;height:56px;object-fit:cover;border-radius:10px}
.obsppt-sheet__head>div{flex:1;min-width:0}
.obsppt-sheet__title{margin:0;font-weight:700}
.obsppt-sheet__close{width:44px;height:44px;border:0;background:var(--obsppt-surface);border-radius:50%;cursor:pointer;color:var(--obsppt-text);display:flex;align-items:center;justify-content:center;padding:0}
.obsppt-sheet__body{display:flex;flex-direction:column;gap:14px}
@keyframes obsppt-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes obsppt-fade{from{opacity:0}to{opacity:1}}
/* lightbox */
.obsppt-lightbox{position:fixed;inset:0;z-index:99995;background:#000;margin:0;padding:0;border:0;width:100vw;height:100vh;max-width:none;max-height:none;color:#fff}
.obsppt-lightbox::backdrop{background:#000}
.obsppt-lightbox__track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.obsppt-lightbox__track::-webkit-scrollbar{display:none}
.obsppt-lightbox__item{flex:0 0 100%;height:100%;overflow:auto;scroll-snap-align:center;display:flex;align-items:center;justify-content:center;touch-action:pan-x pan-y pinch-zoom}
.obsppt-lightbox__item img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;transition:transform .2s}
.obsppt-lightbox__item.is-zoom{align-items:flex-start;justify-content:flex-start}
.obsppt-lightbox__item.is-zoom img{max-width:none;max-height:none;width:250%;cursor:zoom-out}
.obsppt-lightbox__bar{position:absolute;inset-block-start:0;inset-inline:0;display:flex;justify-content:space-between;align-items:center;padding:12px;background:linear-gradient(rgba(0,0,0,.6),transparent);z-index:2}
.obsppt-lightbox__bar button{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.obsppt-lightbox__count{font-size:.9rem}
/* toast */
.obsppt-toast{position:fixed;z-index:99996;inset-inline:12px;inset-block-end:calc(var(--obsppt-sticky-h) + 20px + var(--obsppt-dock,0px));margin:0 auto;max-width:420px;background:#111;color:#fff;border-radius:14px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:.9rem;animation:obsppt-up .25s ease}
.obsppt-toast a{color:#fff;font-weight:700}
/* demo switcher */
.obsppt-switcher{margin:8px var(--obsppt-pad);background:#0f172a;color:#fff;border-radius:12px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center;gap:8px;font:600 13px/1.2 system-ui,sans-serif;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.obsppt-switcher select{min-height:48px;border-radius:8px;border:0;padding:12px 40px 12px 14px;font:16px/1.4 system-ui,sans-serif;color:#0f172a;background-color:#fff;max-width:60vw}

@media (min-width:768px){
  .obsppt-sticky__img,.obsppt-sticky__info{display:flex}
  .obsppt-sticky__actions{flex:0 1 420px}
  .obsppt-sheet__panel{max-width:560px;margin-inline:auto;border-radius:20px;inset-block-end:24px}
}
@media (min-width:900px){
  .obsppt--sticky-desktop{padding-block-end:calc(var(--obsppt-sticky-h) + 12px)}
  .obsppt-sticky{display:none}
  .obsppt--sticky-desktop .obsppt-sticky{display:block}
  .obsppt--sticky-off.obsppt--sticky-desktop .obsppt-sticky{display:none}
}
@media print{.obsppt-sticky,.obsppt-sheet,.obsppt-switcher,.obsppt-gallery__nav{display:none!important}}
html.obsppt-lock,html.obsppt-lock body{overflow:hidden!important;overscroll-behavior:none}
