/* MasterFresok — «Быстрый просмотр» с калькулятором */
.mfqv{--a:var(--theme-base-color,#3d8fe0);--ink:#1f2329;--mut:#5b6370;--line:#e1e5ea;--soft:#f6f7f9;--ok:#2e9e5b;--wa:#1fa855;position:fixed;inset:0;z-index:100000;font-family:inherit;color:var(--ink)}
.mfqv[hidden]{display:none!important}
.mfqv *,.mfqv *:before,.mfqv *:after{box-sizing:border-box}
html.mfqv-open{overflow:hidden}
.mfqv__bg{position:absolute;inset:0;background:rgba(20,24,30,.55)}
.mfqv__box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1140px,calc(100vw - 40px));height:min(740px,calc(100vh - 40px));background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.25);overflow:hidden}
.mfqv__x{position:absolute;right:14px;top:14px;z-index:3;width:42px;height:42px;border-radius:50%;border:0;background:#f1f3f5;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.mfqv__x svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
.mfqv__body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);height:100%}
.mfqv__load{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--mut);font-size:15px}
.mfqv__load span{width:22px;height:22px;border:3px solid #dfe3e8;border-top-color:var(--a);border-radius:50%;animation:mfqvr .8s linear infinite}
@keyframes mfqvr{to{transform:rotate(360deg)}}
.mfqv button{font:inherit;color:inherit}
.mfqv a{text-decoration:none}

.mfqv__media{background:var(--soft);padding:22px;display:flex;flex-direction:column;gap:12px;min-height:0}
.mfqv__stage{position:relative;flex:1;min-height:0;border-radius:14px;overflow:hidden;background:#e9ecef;display:flex;align-items:center;justify-content:center}
.mfqv__chip{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:13.5px;font-weight:700;color:var(--ink)!important;transition:transform .15s}
.mfqv__chip:hover{transform:translateY(-1px)}
.mfqv__chip svg{width:18px;height:18px;fill:none;stroke:var(--a);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mfqv__stage>img{width:100%;height:100%;object-fit:cover;display:block}
.mfqv__ths{display:flex;gap:8px;overflow-x:auto;flex:0 0 auto;padding-bottom:2px}
.mfqv__th{position:relative;flex:0 0 64px;width:64px;height:64px;border-radius:10px;border:2px solid transparent;padding:0;overflow:hidden;cursor:pointer;background:#fff}
.mfqv__th img{width:100%;height:100%;object-fit:cover;display:block}
.mfqv__th.is-on{border-color:var(--a)}

.mfqv__info{padding:26px 30px 22px 28px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;min-height:0}
.mfqv__head{padding-right:44px}
.mfqv__h{margin:0 0 6px!important;font-size:22px!important;line-height:1.25!important;font-weight:700!important;color:var(--ink)!important}
.mfqv__meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--mut)}
.mfqv__fav .item-action{display:inline-flex}
.mfqv__fav a{display:inline-flex!important;align-items:center;gap:6px;color:var(--mut)!important;font-size:13px;width:auto!important;height:auto!important;background:none!important;padding:0!important}
.mfqv__fav svg{width:18px;height:18px;fill:none;stroke:#e5303d;stroke-width:2}
.mfqv__fav a.active svg,.mfqv__fav .active a svg{fill:#e5303d}
.mfqv__sec{display:flex;flex-direction:column;gap:8px}
.mfqv__lbl{font-size:14px;font-weight:600;display:flex;justify-content:space-between;gap:10px}
.mfqv__size{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:8px;align-items:center}
.mfqv__size i{font-style:normal;text-align:center;color:#8a929c}
.mfqv__size label{position:relative;display:block;margin:0}
.mfqv__size label span{position:absolute;left:10px;top:-8px;background:#fff;padding:0 4px;font-size:11px;color:var(--mut);line-height:16px}
.mfqv__size input{width:100%;height:46px;border:1.5px solid #d5dbe3;border-radius:10px;padding:0 40px 0 12px;font:inherit;font-size:16px;font-weight:600;color:var(--ink);background:#fff;-moz-appearance:textfield}
.mfqv__size input::-webkit-outer-spin-button,.mfqv__size input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.mfqv__size input:focus{outline:none;border-color:var(--a)}
.mfqv__size em{position:absolute;right:12px;top:14px;font-style:normal;font-size:13px;color:var(--mut)}
.mfqv__note{font-size:12.5px;color:var(--mut);line-height:1.45}
.mfqv__ed{display:flex;align-items:center;gap:12px;margin-top:4px;padding:11px 14px;border-radius:12px;background:#eef5fd;border:1.5px solid #d3e5f8;color:var(--ink)!important;transition:border-color .15s,background .15s}
.mfqv__ed:hover{border-color:var(--a);background:#e6f0fc}
.mfqv__edi{flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:var(--a);display:flex;align-items:center;justify-content:center}
.mfqv__edi svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mfqv__edt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mfqv__edt b{font-size:14px}.mfqv__edt small{font-size:12px;color:var(--mut);line-height:1.4}
.mfqv__ed em{font-style:normal;font-size:13.5px;font-weight:700;color:var(--a);white-space:nowrap}
.mfqv__sk{height:46px;border-radius:10px;background:linear-gradient(90deg,#f0f2f5 25%,#e6e9ee 50%,#f0f2f5 75%);background-size:200% 100%;animation:mfqvs 1.2s linear infinite}
.mfqv__sk.is-s{height:96px}
@keyframes mfqvs{to{background-position:-200% 0}}
.mfqv__load.is-in{grid-column:auto;justify-content:flex-start;font-size:13.5px}
.mfqv__mats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.mfqv__mat{border:1.5px solid var(--line);border-radius:12px;background:#fff;padding:5px;display:flex;flex-direction:column;gap:4px;text-align:left;cursor:pointer;min-width:0}
.mfqv__mat:hover{border-color:#9fb4cc}
.mfqv__mat.is-on{border-color:var(--a);box-shadow:0 0 0 1px var(--a)}
.mfqv__mat img,.mfqv__mat i{display:block;width:100%;aspect-ratio:1/0.8;object-fit:cover;border-radius:8px;background:#ebe7e1}
.mfqv__mat b{font-size:11.5px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mfqv__mat small{font-size:10.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mfqv__mat.is-more{align-items:center;justify-content:center;font-weight:700;font-size:13px;background:var(--soft)}
.mfqv__minfo{font-size:12.5px;color:var(--mut);line-height:1.45}
.mfqv__minfo:empty{display:none}
.mfqv__foot{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.mfqv__bar{display:flex;flex-direction:column;gap:10px}
.mfqv__sum{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.mfqv__sum b{font-size:28px;font-weight:700}
.mfqv__sum span{font-size:13px;color:var(--mut)}
.mfqv__err{background:#fff4e5;color:#7a4b00;border-radius:10px;padding:9px 12px;font-size:13px}
.mfqv__err[hidden]{display:none}
.mfqv__btns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
.mfqv__btn{height:50px;border:0;border-radius:12px;background:var(--a);color:#fff!important;font-size:15px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;transition:filter .15s}
.mfqv__btn:hover{filter:brightness(.94)}
.mfqv__btn.is-sec{background:#fff;color:var(--a)!important;border:1.5px solid var(--a)}
.mfqv__btn.is-go{background:#eaf7ef;border-color:var(--ok);color:#1d6b3d!important}
.mfqv__btn.is-busy{opacity:.6;pointer-events:none}
.mfqv__btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mfqv__form{display:flex;flex-direction:column;gap:8px;margin:0}
.mfqv__formt{font-size:13.5px;font-weight:600}
.mfqv__formr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.mfqv__formr input{height:50px;border:1.5px solid #d5dbe3;border-radius:12px;padding:0 14px;font:inherit;font-size:16px;min-width:0}
.mfqv__formr input:focus{outline:none;border-color:var(--a)}
.mfqv__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.mfqv__done{background:#eaf7ef;color:#1d6b3d;border-radius:12px;padding:12px 14px;font-size:13.5px;line-height:1.45}
.mfqv__done b{display:block;font-size:15px;margin-bottom:2px}
.mfqv__st{font-size:13px;line-height:1.45}
.mfqv__st:empty{display:none}
.mfqv__st.is-err{color:#c4202c}
.mfqv__st.is-ok{color:#1d6b3d}
.mfqv__st a{color:var(--a)!important;font-weight:600}
.mfqv__links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.mfqv__links a{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--a)!important}
.mfqv__links a.is-wa{color:#178a45!important}
.mfqv__links svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mfqv__trust{list-style:none;margin:0;padding:10px 0 0;border-top:1px solid #eceff2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mfqv__trust li{display:flex;gap:5px;align-items:flex-start;font-size:12px;line-height:1.35;color:#4a5260;margin:0;padding:0}
.mfqv__trust li:before{display:none!important}
.mfqv__trust svg{flex:0 0 15px;width:15px;height:15px;fill:none;stroke:var(--ok);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mfqv__more{font-size:13px;font-weight:600;color:var(--mut)!important}

@media (max-width:900px){
  .mfqv__box{left:0;top:0;transform:none;width:100%;height:100%;border-radius:0}
  .mfqv__body{display:block;height:100%;overflow-y:auto;padding-bottom:150px}
  .mfqv__x{background:rgba(255,255,255,.92);position:fixed}
  .mfqv__media{padding:0;gap:8px;background:#fff}
  .mfqv__stage{height:min(78vw,420px);flex:none;border-radius:0}
  .mfqv__ths{padding:0 12px}
  .mfqv__th{flex-basis:56px;width:56px;height:56px}
  .mfqv__info{padding:14px 16px 0;overflow:visible}
  .mfqv__chip{left:10px;bottom:10px;font-size:12.5px;padding:8px 12px}
  .mfqv__ed em{display:none}
  .mfqv__head{padding-right:0}
  .mfqv__h{font-size:19px!important}
  .mfqv__mats{display:flex;overflow-x:auto;margin:0 -16px;padding:0 16px 4px}
  .mfqv__mat{flex:0 0 92px}
  .mfqv__trust{grid-template-columns:1fr 1fr}
  .mfqv__foot{margin-top:0}
  .mfqv__bar{position:fixed;left:0;right:0;bottom:0;z-index:2;background:#fff;padding:10px 16px calc(env(safe-area-inset-bottom) + 12px);box-shadow:0 -8px 18px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:8px}
  .mfqv__sum b{font-size:22px}
  .mfqv__sum span{font-size:12px}
  .mfqv__btns{grid-template-columns:minmax(0,1fr) auto}
  .mfqv__btn{height:50px}
  .mfqv__btn.is-sec{width:auto;font-size:0;gap:0;padding:0 14px}
  .mfqv__btn.is-sec svg{width:22px;height:22px}
  .mfqv__btn.is-go{font-size:13px;gap:6px}
}

/* списки товаров: выбор готовых предложений (M/L/XL, «Размер В х Ш») не показываем — размер и материал выбираются в окне */
html.mfqv-on .catalog-block__offers,
html.mfqv-on [itemprop="itemListElement"] .sku-props,
html.mfqv-on .catalog-list__item .sku-props,
html.mfqv-on .catalog-table__item .sku-props{display:none!important}
