/* Mobile-first presentation; product-cart.js remains the only cart writer. */
.bear-preview .product-layout{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.bear-preview .bear-heading .eyebrow{font-size:10px;margin:0 0 6px}
.bear-preview .bear-heading h1{font-size:27px;line-height:1.4;margin:0 0 10px}
.bear-preview .bear-heading .price-block{display:flex;justify-content:space-between;align-items:center;margin:0;gap:12px}
.bear-preview .bear-heading .price-block>strong{font-size:23px;white-space:nowrap}
.bear-preview .bear-heading .price-block p{font-size:11px;line-height:1.6;margin:0;color:#765f80}
.bear-preview .bear-gallery{min-width:0;max-width:100%}
.bear-preview .bear-gallery-layout{display:flex;flex-direction:column;gap:10px}
.bear-preview .bear-gallery-main{min-width:0;position:relative}
.bear-preview .bear-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;aspect-ratio:1/1;background:#fffaff;border:1px solid #ddcfe7;border-radius:12px}
.bear-preview .bear-gallery-track::-webkit-scrollbar{display:none}
.bear-preview .bear-slide{flex:0 0 100%;min-width:0;margin:0;padding:8px;display:flex;align-items:center;justify-content:center;scroll-snap-align:start}
.bear-preview .bear-slide img{display:block;width:100%;height:100%;object-fit:contain;max-height:none;border-radius:5px}
.bear-preview .bear-zoom{position:absolute;right:10px;top:10px;display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 10px;border:1px solid #ddcfe7;border-radius:8px;background:#fffdfef2;color:#705582;font:inherit;font-size:10px;cursor:pointer}
.bear-preview .bear-zoom svg{width:17px;height:17px}
.bear-preview .bear-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}
.bear-preview .bear-gallery-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #ddcfe7;border-radius:50%;background:#f8f2fb;color:#76538b;cursor:pointer}
.bear-preview .bear-gallery-controls button:disabled{opacity:.35;cursor:default}
.bear-preview .bear-gallery-controls svg{width:22px;height:22px}
.bear-preview .bear-gallery-caption{display:flex;flex-direction:column;align-items:center;gap:3px;margin:0;text-align:center;font-size:12px;line-height:1.5;color:#6e557d}
.bear-preview #bear-gallery-count{font-size:10px;color:#8b789a}
.bear-preview .bear-thumbs{display:flex;gap:8px;justify-content:center}
.bear-preview .bear-thumbs button{width:54px;height:54px;flex-shrink:0;padding:3px;border:1px solid #ddcfe7;border-radius:7px;background:#fffaff;cursor:pointer}
.bear-preview .bear-thumbs button[aria-pressed=true]{border:2px solid #9870ad;background:#eee2f5}
.bear-preview .bear-thumbs img{display:block;width:100%;height:100%;object-fit:contain;border-radius:3px}
.bear-preview .product-info{padding:0;min-width:0}
.bear-preview .bear-offer{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #ddcfe7;border-radius:9px;padding:10px 12px;font-size:13px;background:#f5edf9;color:#705582;margin-bottom:12px}
.bear-preview .bear-offer span{font-size:10px;max-width:150px;text-align:right;line-height:1.5}
.bear-preview .bear-purchase{display:flex;gap:10px;align-items:stretch}
.bear-preview .bear-add{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;min-height:50px;padding:10px;border:1px solid #d8c8e4;border-radius:9px;background:#f4edf8;box-shadow:0 2px 5px #7048840a;color:#76588b;font:inherit;font-size:13px;font-weight:400;cursor:pointer}
.bear-preview .bear-add>span{font-size:22px;font-weight:400}
.bear-preview #bear-quantity[hidden]{display:none}
.bear-preview #bear-quantity{gap:0;padding:2px;border-radius:10px}
.bear-preview #bear-quantity button{width:42px;height:44px;border-radius:8px}
.bear-preview .bear-purchase+.buy-button{margin:10px 0 0;min-height:44px;background:#faf6fc;color:#795c8b;border:1px solid #ddcfe7;box-shadow:none;font-size:12px;padding:10px}
.bear-preview .buy-note{margin:8px 0 16px;font-size:10px;line-height:1.6}
.bear-preview .set-contents{padding-top:17px;border-top:1px solid #ddcfe7}
.bear-preview .set-contents h2{font-size:18px;line-height:1.5}
.bear-preview .set-contents li,.bear-preview .play-copy,.bear-preview .delivery-note{font-size:12px;line-height:1.9}
.bear-preview :is(.bear-thumbs button,.bear-gallery-controls button,.bear-add,.bear-zoom):focus-visible{outline:2px solid #965578;outline-offset:3px}
.bear-preview .bear-photo-dialog{width:min(1050px,calc(100% - 16px));max-height:calc(100dvh - 16px);padding:8px;border:1px solid #ddcfe7;border-radius:12px;background:#fffaff;box-sizing:border-box}
.bear-preview .bear-photo-dialog::backdrop{background:#281b35bd}
.bear-preview .bear-photo-dialog>button{position:sticky;top:0;float:right;min-width:44px;min-height:44px;border:1px solid #ddcfe7;border-radius:50%;background:white;color:#705582;font-size:26px;cursor:pointer;z-index:1}
.bear-preview .bear-photo-dialog>img{display:block;width:100%;height:calc(100dvh - 90px);max-height:1000px;object-fit:contain;clear:both}
@media(min-width:761px){.bear-preview .product-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:44px;row-gap:18px;align-items:start}.bear-preview .bear-heading{grid-column:2;grid-row:1}.bear-preview .bear-heading h1{font-size:35px}.bear-preview .bear-heading .price-block{display:block}.bear-preview .bear-heading .price-block p{margin-top:8px;font-size:12px}.bear-preview .bear-gallery{grid-column:1;grid-row:1/3}.bear-preview .product-info{grid-column:2;grid-row:2}.bear-preview .bear-gallery-layout{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:start}.bear-preview .bear-gallery-main{grid-column:2;grid-row:1}.bear-preview .bear-thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column}.bear-preview .bear-thumbs button{width:58px;height:58px}.bear-preview .bear-slide{padding:8px}.bear-preview .bear-gallery-track{aspect-ratio:1/1}.bear-preview .bear-add{font-size:14px}}
@media(max-width:350px){.bear-preview .bear-heading h1{font-size:24px}.bear-preview .bear-heading .price-block p{font-size:10px}.bear-preview .bear-offer{font-size:12px;gap:8px}.bear-preview .bear-offer span{font-size:9px;max-width:120px}.bear-preview .bear-add{font-size:11px}.bear-preview .bear-purchase{gap:7px}}
@media(prefers-reduced-motion:reduce){.bear-preview .bear-gallery-track{scroll-behavior:auto}}

.bear-preview .bear-heading .price-block{padding:0;border:0}.bear-preview .bear-zoom{top:auto;bottom:66px}
@media(max-width:760px){.bear-preview .bear-heading .eyebrow{display:none}.bear-preview .breadcrumbs{margin-bottom:16px}.bear-preview{padding-bottom:96px}.bear-preview .bear-purchase{position:static;padding:0;background:none;border:0;box-shadow:none}.bear-preview .bear-add{min-height:48px}.bear-preview .bear-zoom{min-width:44px;padding:8px}.bear-preview .bear-zoom span{display:none}}

.bear-preview .bear-add{line-height:1.4}.bear-preview .bear-add>span{line-height:1}

.bear-preview #bear-quantity{display:flex;flex:1;align-items:center;justify-content:space-between;gap:5px;padding:5px;border:1px solid #ded3e7;border-radius:9px;background:#fffc;box-shadow:none}
.bear-preview #bear-quantity button.ui-step{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
.bear-preview #bear-quantity output{min-width:20px;text-align:center;font-size:13px;font-weight:400;color:inherit}
.bear-preview .bear-add[hidden],.bear-preview #bear-quantity[hidden]{display:none}

.bear-preview .bear-add svg{width:17px;height:17px;flex-shrink:0}
