/* ── КАРТОЧКА ТОВАРА ────────────────────────────────────────── */

/* Основной layout — галерея слева, инфо справа */
.prod-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 0;
}
@media(max-width:900px) {
  .prod-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }
  .prod-gallery {
    position: static !important;
    top: auto !important;
    order: 1;
  }
  .prod-info { order: 2; }

}

/* Галерея */
.prod-gallery { position: sticky; top: 90px; z-index: 1; }
.prod-main-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg2);
  cursor: zoom-in;
}
.prod-main-img img {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: auto !important; /* перебивает aspect-ratio:4/3 из hub.css, который тоже грузится на этой странице и обрезает портретные фото */
  object-fit: contain !important; /* перебивает object-fit:cover из hub.css (та же пара классов используется на странице "Наши работы") */
  padding: 24px;
  transition: transform .4s;
  display: block;
  margin: 0 auto;
}
.prod-main-img:hover img { transform: scale(1.04); }
.prod-img-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}
.prod-img-new {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}
.prod-zoom-hint {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.prod-main-img:hover .prod-zoom-hint { opacity: 1; }

/* Миниатюры */
.prod-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.prod-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  background: var(--bg2);
  transition: border-color .2s;
}
.prod-thumb.active { border-color: var(--blue); }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain !important; }

.prod-real-photo-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.4;
}
.prod-real-photo-note svg { flex-shrink: 0; color: var(--blue); }

/* Информационный блок */
.prod-info { display: flex; flex-direction: column; gap: 0; }

.prod-info-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.prod-info h1 {
  font-family: var(--font-display);
  font-size: clamp(20px,2.4vw,32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.prod-info-desc {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Цена */
.prod-price-box {
  background: var(--bg2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.prod-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.prod-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink3);
  font-family: var(--font-body);
  margin-left: 4px;
}
.prod-price-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink3);
  font-family: var(--font-body);
  margin-top: 2px;
}
.prod-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Характеристики списком */
.prod-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prod-features li {
  font-size: 14px;
  color: var(--ink);
  padding: 7px 12px 7px 32px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.4;
}
.prod-features li::before {
  content: '✓';
  position: absolute;
  left: 10px;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
}

/* Гарантии */
.prod-guarantees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prod-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
}
.prod-guarantee-icon {
  color: #16a34a;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Лайтбокс */
.prod-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255,255,255,.97);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.prod-lightbox.open { display: flex; }
.prod-lightbox-overlay {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.prod-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
}
.prod-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.prod-lightbox-close {
  position: fixed;
  top: 16px; right: 16px;
  background: rgba(0,0,0,.06);
  border: none;
  color: #111;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.prod-lightbox-close:hover { background: rgba(0,0,0,.12); }
.prod-lightbox-prev,
.prod-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.06);
  border: none;
  color: #111;
  font-size: 28px;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.prod-lightbox-prev { left: 12px; }
.prod-lightbox-next { right: 12px; }
.prod-lightbox-prev:hover,
.prod-lightbox-next:hover { background: rgba(0,0,0,.12); }
.prod-lightbox-counter {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0,0,0,.55);
  font-size: 13px;
  z-index: 2;
}

/* Технические характеристики в правой панели */
.prod-specs {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.prod-spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.prod-spec:last-child { border-bottom: none; }
.prod-spec:nth-child(even) { background: var(--bg2); }
.prod-spec span { color: var(--ink2); }
.prod-spec b { color: var(--ink); font-weight: 600; text-align: right; max-width: 55%; }

/* ── ПОХОЖИЕ ДВЕРИ ───────────────────────────────────────── */
.prod-related { margin-top: 56px; }

.prod-related-title {
  font-family: var(--font-display);
  font-size: clamp(22px,2.5vw,32px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

/* Стрелки карусели */
.prod-carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}
.prod-carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  font-family: var(--font-display);
  font-weight: 700;
}
.prod-carousel-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
}

/* ── Лайтбокс фикс ───────────────────────────────────────── */
.prod-lightbox-inner {
  max-width: min(90vw, 800px);
  max-height: 90vh;
}
.prod-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
@media(max-width:600px) {
  .prod-lightbox-prev { left: 4px; }
  .prod-lightbox-next { right: 4px; }
  .prod-lightbox-close { top: -36px; font-size: 28px; }
}
