/* ============ glass info popup (фигма 1:677/1:816 деск, 1:746 моб) ============
   Оверлей с блюром; плита скейлится JS-ом (деск 1440x850, моб 400x800). */

.gp-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.gp-overlay.is-open { opacity: 1; }
.gp-overlay[hidden] { display: none; }

.gp-plate {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 850px;
  transform-origin: top left;
}

.gp-box { position: absolute; left: 361px; top: 175.5px; width: 720px; height: 499px; }

.gp-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-photo img { max-width: 100%; max-height: 100%; transition: opacity 0.15s ease-in-out; }

.gp-name {
  position: absolute;
  left: 358px;
  top: 287px;
  width: 280px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  font-family: var(--verdana-ext);
  font-weight: 700;
  font-style: italic;
  font-size: 44px;
  line-height: 34px;
  letter-spacing: -0.1em;
  color: var(--ink);
  filter: drop-shadow(0 0 6px rgba(240,251,255,0.35));
}
.gp-desc {
  position: absolute;
  left: 358px;
  top: 340.4px;
  width: 280px;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 18.4px;
  color: var(--ink);
}
.gp-colors { position: absolute; left: 106px; top: 340px; width: 200px; }
.gp-color {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 20px;
  margin-bottom: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease-in-out;
}
.gp-color.is-active, .gp-color:hover { opacity: 1; }
.gp-dot {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background-size: cover;
  overflow: hidden;
}
.gp-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("assets/gp-dot-gloss.webp") center / cover no-repeat;
  mix-blend-mode: hard-light; /* фигма: шар-глянец HARD_LIGHT поверх цвета */
}
.gp-color span {
  font-family: var(--led);
  font-size: 12px;
  line-height: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.gp-btns { position: absolute; left: 358px; right: auto; top: 444px; display: flex; justify-content: flex-start; gap: 20px; } /* «Купить» по левому краю описания */
.gp-btns a {
  font-family: var(--led);
  font-size: 14px;
  line-height: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
.gp-btns a:hover { color: #fff; }
.gp-close {
  position: absolute;
  left: 358px;
  top: 473px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.gp-close img { width: 100%; height: 100%; display: block; }

/* стрелки-шевроны переключения модели (Vector 109/110) */
.gp-arr {
  position: absolute;
  top: 306.5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.gp-arr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-left: 1.5px solid #f0fbff;
  border-bottom: 1.5px solid #f0fbff;
  filter: drop-shadow(0 0 5px rgba(197,96,255,0.8));
}
.gp-prev { left: 249px; }
.gp-prev::before { transform: translate(-50%,-50%) rotate(45deg); }
.gp-next { left: 1152px; }
.gp-next::before { transform: translate(-50%,-50%) rotate(225deg); }

@media (max-width: 700px) {
  /* мобильная раскладка (1:746, плита 400x800) */
  .gp-plate { width: 400px; height: 800px; }
  .gp-box { left: 0; top: 0; width: 400px; height: 800px; }
  .gp-photo { left: 19px; top: 217px; width: 360px; height: 150px; }
  .gp-name { left: 59px; top: 382px; width: 280px; justify-content: center; } /* фигма: имя по центру */
  .gp-desc { left: 59px; top: 430px; width: 280px; text-align: center; }
  /* общая колонка «Купить» + точки цветов и общая нижняя линия цветов + крестика —
     держится при любом числе цветов (2–5) */
  .gp-box { --gp-col-left: 187px; --gp-col-bottom: 23px; }
  .gp-btns { left: var(--gp-col-left); right: auto; top: 524px; justify-content: flex-start; } /* «Купить» по левому краю точек */
  .gp-colors { left: var(--gp-col-left); top: auto; bottom: var(--gp-col-bottom); width: 190px; } /* растёт вверх — у Lauda 5 цветов */
  .gp-color:last-child { margin-bottom: 0; } /* низ блока = низ последней строки */
  .gp-close { left: 20px; top: auto; bottom: var(--gp-col-bottom); } /* левый нижний угол, низ вровень с низом цветов */
  .gp-arr { top: 165px; }
  .gp-prev { left: 154px; }
  .gp-next { left: 206px; }
  .gp-arr::before { width: 11px; height: 11px; }
}
