.qv2-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
  padding:22px;
}
.qv2-backdrop.is-open{ display:flex; }

.qv2-modal{
  width:min(1100px, 96vw);
  background:#fff;
  border-radius:16px;
  position:relative;
  box-shadow:0 18px 80px rgba(0,0,0,.35);
  overflow:hidden;
}
.qv2-close{
  position:absolute; top:10px; right:14px;
  border:0; background:transparent;
  font-size:34px; line-height:1;
  cursor:pointer;
  color:#111;
  z-index:2;
}
.qv2-content{ padding:18px; }

.qv2{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:18px;
}
@media (max-width: 900px){
  .qv2{ grid-template-columns:1fr; }
}

.qv2__main{
  width:100%;
  height:420px;
  background:#f3f4f6;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.qv2__mainimg{
  width:100%;
  height:100%;
  object-fit:contain;
}

.qv2__thumbs{
  margin-top:10px;
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:4px;
}
.qv2__thumb{
  flex:0 0 auto;
  width:70px; height:70px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  overflow:hidden;
  cursor:pointer;
  padding:0;
}
.qv2__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.qv2__thumb.is-active{ outline:2px solid rgba(99,102,241,.55); border-color:transparent; }
.qv2__videoBadge{
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
  font-weight:800; font-size:11px;
  color:#0f172a;
  background:#eef2ff;
}

.qv2__topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.qv2__title{
  font-weight:900;
  font-size:20px;
  line-height:1.2;
}
.qv2__open{
  white-space:nowrap;
  font-weight:700;
  text-decoration:none;
}
.qv2__meta{ margin-top:10px; display:grid; gap:6px; }
.qv2__price strong{ font-size:18px; }
.qv2__neg{ margin-left:8px; font-weight:700; color:#64748b; }

.qv2__desc{
  margin-top:10px;
  color:#111827;
  max-height:120px;
  overflow:auto;
  padding-right:6px;
}

.qv2__block{ margin-top:12px; }
.qv2__h{ font-weight:900; margin-bottom:6px; }
.qv2__chars{ list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.qv2__chars li{ display:flex; justify-content:space-between; gap:10px; }
.qv2__k{ color:#64748b; font-weight:700; }
.qv2__v{ color:#0f172a; font-weight:800; }

.qv2__seller{ display:grid; gap:6px; }
.qv2__sellerName{ font-weight:900; }
.qv2__phone{ font-weight:900; text-decoration:none; }


/* важно: чтобы absolute работал */
.product-item .product-img{ position:relative; }

/* кнопка снизу */
.product-item .wb-qv-hover{
  position:absolute;
  left:10px; right:10px;
  bottom:10px;
  display:flex;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
  z-index:6;
}

.product-item:hover .wb-qv-hover{
  opacity:1;
  pointer-events:auto;
}

.wb-qv-hover__btn{
  border:0;
  padding:9px 14px;
  border-radius:12px;
  background: rgba(255,255,255,.96);
  color:#0f172a;
  font-weight:700;
  font-size:13px;
  box-shadow:0 10px 28px rgba(2,6,23,.18);
}

/* на телефоне hover нет — показываем всегда */
@media (hover:none){
  .product-item .wb-qv-hover{
    opacity:1;
    pointer-events:auto;
  }
}




/* ✅ правая колонка — контейнер для абсолютной кнопки снизу */
.qv2__right{
  position: relative;
  padding-bottom: 70px; /* запас под кнопку, чтобы текст/характеристики не наезжали */
}

/* ✅ "Открыть полностью" — теперь это нижняя кнопка */
.qv2__open{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 14px;
  border-radius: 12px;

  background: #0d6efd;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

/* ✅ крестик всегда выше всего */
.qv2-close{
  z-index: 10;
}
