/* ============================================================
   The product page (buy.html): one product, its photos, its colours, options and sub-options, and a way to buy it.
   Built from the shop's own parts: the quick look's photo stage, price, stock line, spec table, buttons and perks
   (products.css), the filter chips, swatches and radio rows, and the cards. Needs store.css and products.css first.
   ============================================================ */

/* the path to the product stays on one line: a long name ends in "…" */
.by-page .crumbs{min-width:0;white-space:nowrap}
.by-page .crumbs a{flex:none}
.by-page .crumbs span[aria-current]{min-width:0;overflow:hidden;text-overflow:ellipsis}

.by-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:6px}

/* ---------- Photos: the chosen colour's, big on its stage, the others as thumbnails ---------- */
.by-gallery{position:sticky;top:calc(var(--hdr-h,76px) + 14px);transition:top .38s cubic-bezier(.3,.9,.3,1);display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;min-width:0}
.by-gallery.is-single{grid-template-columns:minmax(0,1fr)}
.by-stage{position:relative;display:grid;place-items:center;min-height:560px;padding:36px;border-radius:var(--r-xl);border:1px solid var(--line-soft);
  background:radial-gradient(circle at 50% 50%,#fff 0%,#fff 25%,var(--bs,#F1F0EB) 100%);overflow:hidden}
.by-stage img{max-width:86%;max-height:440px;object-fit:contain;filter:drop-shadow(0 26px 30px rgba(20,22,26,.25));animation:qvIn .6s cubic-bezier(.2,.8,.3,1);cursor:zoom-in}
/* the lens: a circle that follows the mouse and shows the photo bigger */
.by-lens{position:absolute;z-index:3;width:190px;height:190px;border-radius:50%;background-color:#fff;background-repeat:no-repeat;pointer-events:none;
  border:3px solid #fff;box-shadow:0 0 0 1px rgba(22,24,28,.08),0 22px 44px -14px rgba(22,24,28,.45);opacity:0;transform:scale(.6);transition:opacity .18s ease,transform .25s cubic-bezier(.3,1.4,.5,1)}
.by-stage.is-zoom .by-lens{opacity:1;transform:none}
.by-stage.is-zoom img{cursor:none}
.by-full{position:absolute;top:16px;inset-inline-end:16px;z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-xs);color:var(--ink);transition:background .2s ease,transform .2s ease}
.by-full:hover{background:#fff;transform:scale(1.06)}
.by-full .ico{font-size:18px}
.by-hint{position:absolute;inset-inline-start:18px;bottom:16px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:26px;padding-inline:10px;border-radius:999px;background:rgba(255,255,255,.92);
  font-size:11px;font-weight:600;color:var(--sub);transition:opacity .2s ease}
.by-hint .ico{font-size:14px;color:var(--brand)}
.by-stage.is-zoom .by-hint{opacity:0}
@media (hover:none),(pointer:coarse){.by-hint{display:none}.by-lens{display:none}}
.by-stage .flag{top:18px;inset-inline-start:18px}
.by-nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:40px;height:40px;margin-top:-20px;border-radius:50%;background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-xs);color:var(--ink);transition:background .2s ease,transform .2s ease}
.by-nav:hover{background:#fff;transform:scale(1.06)}
.by-nav .ico{font-size:18px}
.by-nav.is-prev{inset-inline-start:14px}
.by-nav.is-next{inset-inline-end:14px}
.by-count{position:absolute;right:18px;bottom:16px;height:26px;padding-inline:10px;display:inline-flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.92);
  font-size:11px;font-weight:650;color:var(--sub);font-variant-numeric:tabular-nums}
/* the count is dir="ltr" (1 / 6 reads the same everywhere), so its own start and end do not turn: right to left, the other corner by hand */
html[dir="rtl"] .by-count{right:auto;left:18px}
.by-thumbs{order:-1;display:flex;flex-direction:column;gap:8px;max-height:560px;overflow-y:auto;scrollbar-width:none;padding:2px}
.by-thumbs[hidden]{display:none}
.by-thumbs::-webkit-scrollbar{display:none}
.by-thumb{display:grid;place-items:center;width:74px;height:74px;flex:none;padding:8px;border-radius:16px;border:1.5px solid var(--line-soft);cursor:pointer;
  background:radial-gradient(circle at 50% 60%,#fff 20%,#F1F0EB 85%);transition:border-color .2s ease,transform .2s ease}
.by-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.by-thumb:hover{border-color:#D6D1C3;transform:translateY(-1px)}
.by-thumb.is-on{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 14%,transparent)}

/* ---------- What it is, what to pick, and how to buy it ---------- */
.by-info{min-width:0;padding:28px 30px 26px;border-radius:var(--r-xl);border:1px solid var(--line-soft);background:var(--card)}
.by-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.by-top .qv-brand{margin:0}
.by-fav{margin-inline-start:auto;width:42px;height:42px}
.by-cond-pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding-inline:11px;border-radius:999px;font-size:12px;font-weight:700}
.by-cond-pill .ico{font-size:14px}
.by-cond-pill.is-new{background:#E8F3EA;color:#2F7A46}
.by-cond-pill.is-used{background:#FBF1DC;color:#946200}
.by-cond-pill.is-open_box{background:#E8EEFB;color:#2F5BD3}
.by-info h1{margin-top:14px;font-size:clamp(21px,2.1vw,26px);line-height:1.15;letter-spacing:.005em;text-transform:uppercase}
/* the key features under the name: every one as a tag, the whole value shown (it wraps); with more than six, the first
   five and "Show N more", which opens the rest (buy.js). Two to a row on a phone (the 600px rules) */
.by-feats{margin-top:14px}
.by-feats .by-label{margin-bottom:8px}
.by-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.by-facts .by-fact{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;min-height:34px;padding-block:4px;padding-inline:5px 12px;border-radius:17px;background:#F4F3EF}
.by-facts:not(.is-all) li.is-more{display:none}
.by-facts.is-opening li.is-more{animation:drIn .35s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(var(--k,0) * 40ms)}
.by-fact-ic{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#fff;color:var(--bh,var(--brand))}
.by-fact-ic .ico{font-size:13px}
.by-fact > span:last-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 5px;min-width:0}
.by-facts small{flex:none;font-size:10.5px;font-weight:600;color:var(--muted)}
.by-facts b{min-width:0;font-size:12px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.by-fact-more-li{display:flex}
.by-fact-more{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding-inline:13px;border-radius:17px;border:1px dashed color-mix(in srgb,var(--brand) 40%,transparent);
  font-size:12px;font-weight:650;color:var(--brand);transition:background .2s ease,border-color .2s ease}
.by-fact-more:hover{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,transparent)}
.by-fact-more .ico{font-size:14px;transition:transform .25s ease}
.by-fact-more.is-open .ico{transform:rotate(180deg)}
.by-price-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-top:18px}
.by-price-row .price{font-size:32px}
.by-old{font-size:15px;font-weight:600;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.by-ends{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:12.5px;font-weight:600;color:var(--sale)}
.by-ends .ico{font-size:15px}
.by-stock{display:inline-flex;align-items:center;gap:7px;height:28px;padding-inline:11px;border-radius:999px;background:#E8F3EA;color:#2F6B3D;font-size:12px;font-weight:700}
.by-stock i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:beat 1.8s ease-in-out infinite}
.by-stock.is-low{background:#FBF1DC;color:#8A5A0B}
.by-stock.is-out{background:#FBEAEA;color:var(--sale)}
.by-stock.is-low i,.by-stock.is-out i{animation:none}
.by-perks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;padding:16px 0 0;list-style:none;border-top:1px solid var(--line-soft)}
.by-perks li{display:flex;align-items:center;gap:9px;min-width:0}
.by-perk-ic{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;background:var(--brand-soft);color:var(--brand)}
.by-perk-ic .ico{font-size:17px}
.by-perks b{display:block;font-size:12px;font-weight:700;line-height:1.25}
.by-perks small{display:block;margin-top:1px;font-size:10.5px;line-height:1.3;color:var(--muted)}
.by-lead{margin:10px 0 0;font-size:13.5px;line-height:1.6;color:var(--sub)}
.by-info .qv-price{margin-top:18px}
.by-held{color:var(--muted)}
.by-pick{margin-top:20px;padding-top:18px;border-top:1px solid var(--line-soft)}
.by-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-bottom:10px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.by-label b{font-size:13px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--ink)}
/* Condition: new green, used yellow, open box blue */
.by-cond b.is-new{color:#2F7A46}
.by-cond b.is-used{color:#946200}
.by-cond b.is-open_box{color:#2F5BD3}
/* colours: the filter swatches, as buttons */
.by-colors{display:flex;flex-wrap:wrap;gap:8px}
.by-color{position:relative;display:flex;align-items:center;gap:9px;min-width:0;padding-block:7px;padding-inline:8px 12px;border:1.5px solid var(--line-soft);border-radius:13px;background:#fff;
  text-align:start;transition:border-color .15s ease,background .15s ease}
.by-color:hover{border-color:#D6D1C3}
.by-color .fc-name{display:flex;flex-direction:column;font-size:12.5px}
.by-color small{font-size:10.5px;font-weight:600;color:var(--muted)}
.by-color.is-on{border-color:var(--brand);background:#FFFBF8}
.by-color.is-on .fc-dot{box-shadow:inset 0 0 0 1px rgba(22,24,28,.14),0 0 0 2px #fff,0 0 0 4px var(--brand)}
.by-color:disabled,.by-chip:disabled,.by-sub:disabled{cursor:not-allowed;opacity:.5}
.by-color:disabled .fc-name > span,.by-chip:disabled b{text-decoration:line-through}
.by-color:focus-visible,.by-chip:focus-visible,.by-sub:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 35%,transparent)}
/* option values: the filter chips, as buttons */
.by-chips{display:flex;flex-wrap:wrap;gap:8px}
.by-chip{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:6px 15px;border:1.5px solid var(--line);border-radius:999px;background:#fff;
  font-size:13px;font-weight:600;color:var(--sub);transition:border-color .15s ease,background .15s ease,color .15s ease}
.by-chip b{font-weight:650;color:var(--ink)}
.by-chip small{font-size:10.5px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.by-chip:hover{border-color:#CFCABB}
.by-chip.is-on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}
.by-chip.is-on b{color:var(--brand-ink)}
.by-chip.is-on small{color:var(--brand)}
/* sub-options: the filter's radio rows, as buttons */
.by-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px;margin-top:10px;padding:6px;border-radius:14px;background:#FAF9F6;border:1px solid var(--line-soft)}
.by-sub{width:100%;text-align:start}
.by-sub .fo-box{border-radius:50%}
.by-sub.is-on .fo-box{background:var(--brand);border-color:var(--brand)}
.by-sub.is-on .fo-box::after{content:"";width:7px;height:7px;border-radius:50%;background:#fff}
.by-info .qv-buy{margin-top:22px}
/* Order on WhatsApp: this product as picked, under the buttons (buy.js) */
.by-wa{width:100%;justify-content:center;height:46px;margin-top:10px;font-size:13.5px;border-radius:14px}
.by-info .qv-qty button:disabled{opacity:.35;cursor:not-allowed}
.by-note{display:flex;align-items:center;gap:6px;margin:10px 0 0;font-size:12px;color:var(--muted)}
.by-note .ico{font-size:15px;color:var(--brand)}

/* ---------- Below: the key features, the words about it and its tags ---------- */
.by-more{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:22px;margin-top:22px}
.by-card{min-width:0;padding:24px 26px;border-radius:var(--r-lg);border:1px solid var(--line-soft);background:var(--card)}
.by-card h2{font-size:15px;letter-spacing:.14em;text-transform:uppercase}
.by-card .qv-specs{margin-top:12px;font-size:13px}
.by-card .qv-specs th .ico{margin-inline-end:8px;font-size:15px;color:var(--bh,var(--brand));vertical-align:-2px}
.by-card p{margin:12px 0 0;font-size:13.5px;line-height:1.7;color:var(--sub);white-space:pre-line}
.by-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.by-tags a{display:inline-flex;align-items:center;height:28px;padding-inline:11px;border-radius:999px;background:#F4F3EF;font-size:11.5px;font-weight:600;color:var(--sub);transition:background .2s ease,color .2s ease}
.by-tags a:hover{background:var(--brand-soft);color:var(--brand-ink)}
.pl-card .card-media > a{display:contents}

/* ---------- Reviews: the average and the stars on one side, what shoppers said on the other ---------- */
.by-rate{display:inline-flex;align-items:center;gap:7px;margin-top:8px;font-size:12.5px;color:var(--sub);transition:color .2s ease}
.by-rate .stars{font-size:13px}
.by-rate b{font-weight:700;color:var(--ink)}
.by-rate:hover{color:var(--brand-ink)}
.stars.is-big{font-size:18px;letter-spacing:2px}
.by-reviews{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:22px;align-items:start;margin-top:22px;scroll-margin-top:calc(var(--hdr-h,76px) + 14px)}
.by-reviews[hidden]{display:none}
.by-rv-side{position:sticky;top:calc(var(--hdr-h,76px) + 14px);transition:top .38s cubic-bezier(.3,.9,.3,1)}
.by-rv-sum{display:flex;align-items:center;gap:14px;margin-top:16px}
.by-rv-sum > span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.by-rv-sum small{font-size:12px;color:var(--muted)}
.by-rv-sum b{font-size:14px;font-weight:700}
.by-rv-sum .by-rv-avg{font-family:var(--f-num);font-size:46px;font-weight:800;line-height:1;letter-spacing:-.02em}
.by-rv-none{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:16px;background:var(--brand-soft);color:var(--brand)}
.by-rv-none .ico{font-size:22px}
.by-rv-dist{display:grid;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.by-rv-dist li{display:grid;grid-template-columns:30px minmax(0,1fr) 28px;align-items:center;gap:10px;font-size:12px;font-weight:650;color:var(--sub)}
.by-rv-s{display:inline-flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
.by-rv-s .ico{font-size:11px;color:var(--gold)}
.by-rv-bar{height:8px;border-radius:999px;background:#F1EFE8;overflow:hidden}
.by-rv-bar i{display:block;height:100%;border-radius:inherit;background:var(--gold);animation:rvGrow .8s cubic-bezier(.2,.8,.3,1) backwards;transform-origin:left center}
html[dir="rtl"] .by-rv-bar i{transform-origin:right center}
@keyframes rvGrow{from{transform:scaleX(0)}}
.by-rv-k{text-align:end;color:var(--muted);font-variant-numeric:tabular-nums}
.by-rv-act{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line-soft)}
.by-rv-act .btn{justify-content:center}
.by-rv-mine{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:#F7F6F2}
.by-rv-mine-top{display:flex;align-items:center;gap:8px}
.by-rv-mine b{font-size:12.5px;font-weight:700}
.by-rv-mine small{font-size:12px;line-height:1.5;color:var(--sub)}
.by-rv-mine.is-pending b{color:#8A5A0B}
.by-rv-mine.is-shown b{color:var(--ok)}
.by-rv-mine.is-hidden b{color:var(--sale)}
.by-rv-list{display:grid;gap:12px;min-width:0}
.by-rv{padding:20px 22px;border-radius:var(--r-lg);border:1px solid var(--line-soft);background:var(--card);animation:qvIn .5s cubic-bezier(.2,.8,.3,1) backwards}
.by-rv-who{display:flex;align-items:center;gap:11px;min-width:0}
.by-rv-av{width:40px;height:40px;flex:none;border-radius:13px;font-size:14px}
.by-rv-name{display:flex;flex-direction:column;min-width:0}
.by-rv-name b{font-size:13.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.by-rv-buyer{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-size:11px;font-weight:650;color:var(--ok)}
.by-rv-buyer .ico{font-size:13px}
.by-rv-who time{flex:none;margin-inline-start:auto;font-size:11.5px;color:var(--muted)}
.by-rv-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:14px}
.by-rv-line .stars{font-size:14px}
.by-rv h3{font-family:var(--f-text);font-size:14px;font-weight:700;letter-spacing:0}
.by-rv > p{margin:8px 0 0;font-size:13.5px;line-height:1.65;color:var(--sub);white-space:pre-line;overflow-wrap:anywhere}
.by-rv-reply{margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--brand-soft);border-inline-start:3px solid var(--brand)}
.by-rv-reply b{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--brand-ink)}
.by-rv-reply b .ico{font-size:14px}
.by-rv-reply p{margin:5px 0 0;font-size:13px;line-height:1.6;color:var(--sub);white-space:pre-line;overflow-wrap:anywhere}
.by-rv-empty{display:flex;align-items:center;gap:14px}
.by-rv-empty p{margin:0}
.by-rv-more{justify-self:center}
/* writing one: five stars to pick, a title and the words */
.by-rv-form{display:grid;gap:16px;animation:qvIn .45s cubic-bezier(.2,.8,.3,1)}
.by-rv-form p{margin:0}
.by-rv-pick{display:flex;align-items:center;gap:4px}
.by-rv-pick button{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#DDD9CC;transition:color .15s ease,transform .2s cubic-bezier(.3,1.4,.5,1),background .15s ease}
.by-rv-pick button .ico{font-size:26px}
.by-rv-pick button.is-on{color:var(--gold)}
.by-rv-pick button:hover{transform:scale(1.12)}
.by-rv-pick button:focus-visible{outline:none;background:var(--brand-soft)}
.by-rv-word{margin-inline-start:8px;font-size:13px;font-weight:700;color:var(--ink)}
.by-rv-form .by-rv-err{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--sale)}
.by-rv-err .ico,.by-rv-hint .ico{font-size:15px;flex:none}
.by-rv-form .by-rv-hint{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.5;color:var(--muted)}
.by-rv-btns{display:flex;justify-content:flex-end;gap:8px}
.by-rv-btns .btn:disabled{opacity:.6;cursor:progress}

/* ---------- Full screen: the photo big on a dark stage ---------- */
.by-viewer{position:fixed;inset:0;z-index:95;display:grid;place-items:center;visibility:hidden;opacity:0;transition:opacity .25s ease,visibility 0s linear .25s}
.by-viewer.is-open{visibility:visible;opacity:1;transition:opacity .25s ease}
.by-v-bg{position:absolute;inset:0;background:rgba(14,15,18,.9);backdrop-filter:blur(6px)}
.by-viewer img{position:relative;max-width:min(1100px,90vw);max-height:calc(100vh - 170px);object-fit:contain;filter:drop-shadow(0 30px 40px rgba(0,0,0,.45));transform:scale(.96);transition:transform .35s cubic-bezier(.2,.8,.3,1)}
.by-viewer.is-open img{transform:none}
.by-v-x{position:absolute;top:18px;inset-inline-end:18px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;transition:background .2s ease}
.by-v-x:hover{background:rgba(255,255,255,.22)}
.by-v-x .ico{font-size:20px}
.by-v-count{position:absolute;top:28px;left:24px;font-size:12px;font-weight:650;color:rgba(255,255,255,.75);font-variant-numeric:tabular-nums}
html[dir="rtl"] .by-v-count{left:auto;right:24px}          /* dir="ltr" like the count on the stage */
.by-v-nav{position:absolute;top:50%;display:grid;place-items:center;width:48px;height:48px;margin-top:-24px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;transition:background .2s ease,transform .2s ease}
.by-v-nav:hover{background:rgba(255,255,255,.24);transform:scale(1.06)}
.by-v-nav .ico{font-size:20px}
.by-v-nav.is-prev{inset-inline-start:20px}
.by-v-nav.is-next{inset-inline-end:20px}
.by-v-thumbs{position:absolute;left:50%;bottom:20px;display:flex;gap:8px;max-width:calc(100vw - 32px);overflow-x:auto;translate:-50% 0;scrollbar-width:none}
.by-v-thumb{display:grid;place-items:center;width:62px;height:62px;flex:none;padding:6px;border-radius:14px;background:rgba(255,255,255,.1);border:1.5px solid transparent;transition:border-color .2s ease,background .2s ease}
.by-v-thumb img{max-width:100%;max-height:100%;object-fit:contain;filter:none;transform:none}
.by-v-thumb.is-on{border-color:#fff;background:rgba(255,255,255,.2)}
.by-viewer.is-single .by-v-nav,.by-viewer.is-single .by-v-count{display:none}

/* ---------- The phone's bar: the price and the buttons stay in reach ---------- */
.by-bar{display:none}
@media (max-width:900px){
  .by-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:60;display:flex;align-items:center;gap:8px;padding-block:8px;padding-inline:14px 8px;border-radius:18px;border:1px solid var(--line-soft);
    background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 18px 40px -16px rgba(22,24,28,.45);transform:translateY(130%);transition:transform .35s cubic-bezier(.3,1,.4,1)}
  .by-bar.is-on{transform:none}
  .by-bar.is-on ~ .toast{bottom:86px}   /* the message sits above the bar while it shows */
  .by-bar-txt{flex:1;min-width:0}
  .by-bar-txt b{display:block;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .by-bar-txt .price{font-size:16px}
  .by-bar-cart{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:13px;background:#F3F2ED;color:var(--ink)}
  .by-bar-cart .ico{font-size:18px}
  .by-bar-buy{height:44px;padding-inline:16px;flex:none}
  body.has-bar .to-top{bottom:84px}
}

/* ---------- Nothing with that number ---------- */
.by-none{display:flex;flex-direction:column;align-items:center;gap:10px;margin:40px auto 0;max-width:460px;padding:44px 26px;text-align:center;border-radius:var(--r-xl);border:1px solid var(--line-soft);background:var(--card)}
.by-none h1{font-size:24px;text-transform:uppercase}
.by-none p{margin:0;font-size:13.5px;color:var(--sub)}
.by-none .btn{margin-top:8px}

@media (max-width:1100px){
  .by-stage{min-height:460px}
  .by-stage img{max-height:360px}
}
@media (max-width:900px){
  .by-grid,.by-more,.by-reviews{grid-template-columns:minmax(0,1fr)}
  .by-rv-side{position:static}
  .by-gallery{position:static;grid-template-columns:minmax(0,1fr)}
  .by-thumbs{order:0;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:visible}
  .by-stage{min-height:340px;padding:24px}
  .by-stage img{max-height:280px}
}
@media (max-width:600px){
  .by-info{padding:20px 18px}
  .by-info h1{font-size:20px}
  .by-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .by-facts .by-fact{padding-block:7px;padding-inline:6px 10px;border-radius:14px}
  .by-fact > span:last-child{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:1px}
  .by-fact-more{width:100%;border-radius:14px}
  .by-price-row .price{font-size:27px}
  .by-perks{grid-template-columns:minmax(0,1fr);gap:10px}
  .by-full{top:12px;inset-inline-end:12px}
  .by-card{padding:20px 18px}
  .by-rv{padding:18px}
  .by-rv-btns .btn{flex:1;justify-content:center}
  .by-thumb{width:62px;height:62px}
  .by-info .qv-buy{flex-wrap:wrap}
  .by-info .qv-add{min-width:calc(50% - 30px)}
}
@media (prefers-reduced-motion:reduce){
  .by-stage img{animation:none}
  .by-lens,.by-viewer,.by-viewer img,.by-bar{transition:none}
  .by-stock i{animation:none}
  .by-facts.is-opening li.is-more{animation:none}
  .by-fact-more .ico{transition:none}
  .by-thumb,.by-nav{transition:none}
  .by-rv,.by-rv-form,.by-rv-bar i{animation:none}
  .by-rv-pick button{transition:none}
}

/* the page is at least a screen tall from its first paint, so the footer does not jump down when the product is drawn */
body > main.wrap{min-height:100vh}
