/* ══════════════════════════════════════════════════════════
   Страница товара — product.css
   ══════════════════════════════════════════════════════════ */

/* ── Хлебные крошки ──────────────────────────────────────── */
.breadcrumb-wrap {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  font-size: .82rem;
  color: var(--sub);
}
.breadcrumb__link {
  color: var(--sub);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb__link:hover { color: var(--rose); }
.breadcrumb__sep { color: var(--line); font-size: .9rem; }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ── Страница товара ─────────────────────────────────────── */
.product-page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── Галерея ─────────────────────────────────────────────── */
.product-gallery {
  position: sticky;
  top: 90px;
}

.pg__main-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush-lt);
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.pg__main {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg__main img,
.pg__main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg__thumbs {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .3rem;
}
.pg__thumbs::-webkit-scrollbar { display: none; }

.pg__thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  background: none;
  padding: 0;
}
.pg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg__thumb.active,
.pg__thumb:hover { border-color: var(--rose); transform: scale(1.05); }

.pg__thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--blush-lt);
  font-size: 1.4rem;
  color: var(--rose);
}

/* ── Название товара ─────────────────────────────────────── */
.pg__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--accent-dk);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* ── Доставка ────────────────────────────────────────────── */
.product-delivery-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--blush-lt);
  border-radius: var(--radius-sm);
  padding: .8rem 1.1rem;
  font-size: .87rem;
  color: var(--text);
  margin-top: 1.2rem;
}
.product-delivery-note a { color: var(--rose); text-decoration: none; }
.product-delivery-note a:hover { text-decoration: underline; }

/* ── Поделиться ──────────────────────────────────────────── */
.product-share {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.product-share__label {
  font-size: .8rem;
  color: var(--sub);
}
.product-share__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.product-share__btn:hover { opacity: .8; }
.product-share__btn--wa { background: #25D366; color: #fff; }
.product-share__btn--vk { background: #0077FF; color: #fff; }

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-gallery { position: static; }
  .pg__main { min-height: 300px; }
}

@media (max-width: 480px) {
  .product-page { padding-top: 1.5rem; }
  .pg__main { min-height: 250px; }
  .pg__thumb { width: 56px; height: 56px; }
}
