.b-product-hero {
  padding: 24px 0 64px;
}

.b-product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Галерея 2×2 */
.b-product-hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.b-product-hero__photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2, #F1EBE2);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}

.b-product-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.b-product-hero__photo--top img    { object-position: center top; }
.b-product-hero__photo--center img { object-position: center center; }
.b-product-hero__photo--detail img { object-position: 30% 20%; transform: scale(1.15); }
.b-product-hero__photo--fabric img { object-position: 70% 80%; transform: scale(1.3); }

.b-product-hero__zoom {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 251, 247, .92);
  color: var(--text, #3B3437);
  pointer-events: none;
}

/* Инфо */
.b-product-hero__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.b-product-hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--lavender-soft, #E9E1EF);
  color: var(--accent, #6E5A7E);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.b-product-hero__title {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text, #3B3437);
}

/* Артикул — мелкий приглушённый текст рядом с названием */
.b-product-hero__sku {
  margin: -4px 0 10px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted, #8A7F7A);
}

.b-product-hero__price {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text, #3B3437);
}

.b-product-hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.b-product-hero__stars {
  color: var(--accent, #6E5A7E);
  letter-spacing: 2px;
  font-size: 15px;
}

.b-product-hero__rating-value {
  font-weight: 700;
  color: var(--text, #3B3437);
}

.b-product-hero__reviews {
  color: var(--muted, #8A7F7A);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color .2s ease;
}

.b-product-hero__reviews:hover {
  color: var(--accent, #6E5A7E);
}

.b-product-hero__desc {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #8A7F7A);
}

.b-product-hero__option {
  width: 100%;
  margin-bottom: 22px;
}

.b-product-hero__option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.b-product-hero__option-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #3B3437);
}

.b-product-hero__option-head .b-product-hero__option-label {
  margin-bottom: 0;
}

.b-product-hero__color-name {
  font-weight: 400;
  color: var(--muted, #8A7F7A);
}

.b-product-hero__size-guide {
  font-size: 13px;
  color: var(--muted, #8A7F7A);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color .2s ease;
}

.b-product-hero__size-guide:hover {
  color: var(--accent, #6E5A7E);
}

.b-product-hero__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b-product-hero__size {
  min-width: 52px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 4px;
  background: var(--surface, #FDFBF7);
  font: inherit;
  font-size: 15px;
  color: var(--text, #3B3437);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.b-product-hero__size:hover {
  border-color: var(--accent, #6E5A7E);
}

.b-product-hero__size.is-active {
  background: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
  color: #fff;
  /* Размытая тень в цвет акцента на выбранной опции */
  box-shadow: 0 4px 18px rgba(110, 90, 126, .45);
}

.b-product-hero__colors {
  display: flex;
  gap: 10px;
}

.b-product-hero__color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 50%;
  background: var(--surface, #FDFBF7);
  cursor: pointer;
  transition: border-color .2s ease;
}

.b-product-hero__color span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch, #8C6E57);
}

.b-product-hero__color.is-active {
  border-color: var(--accent, #6E5A7E);
  box-shadow: 0 0 0 2px var(--lavender-soft, #E9E1EF),
              0 4px 18px rgba(110, 90, 126, .45);
}

.b-product-hero__buy {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.b-product-hero__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 4px;
  background: var(--surface, #FDFBF7);
}

.b-product-hero__qty-btn {
  width: 40px;
  height: 100%;
  min-height: 48px;
  border: none;
  background: none;
  font: inherit;
  font-size: 18px;
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  transition: color .2s ease;
}

.b-product-hero__qty-btn:hover {
  color: var(--accent, #6E5A7E);
}

.b-product-hero__qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #3B3437);
}

.b-product-hero__add {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
}

.b-product-hero__fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-bottom: 28px;
}

.b-product-hero__fav.is-active svg path {
  fill: currentColor;
}

/* Поделиться */
.b-product-hero__share {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 28px;
}

.b-product-hero__share-label {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted, #8A7F7A);
}

.b-product-hero__share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-product-hero__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 50%;
  background: var(--surface, #FDFBF7);
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.b-product-hero__share-btn:hover {
  color: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
  background: var(--lavender-soft, #E9E1EF);
  transform: translateY(-1px);
}

/* Аккордеоны */
.b-product-hero__accordions {
  width: 100%;
  border-top: 1px solid var(--line, #E4DCD2);
}

.b-product-hero__accordion {
  border-bottom: 1px solid var(--line, #E4DCD2);
}

.b-product-hero__accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #3B3437);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.b-product-hero__accordion-summary::-webkit-details-marker {
  display: none;
}

/* Иконка слева от заголовка аккордеона */
.b-product-hero__accordion-lead {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.b-product-hero__accordion-icon {
  flex: none;
  color: var(--accent, #6E5A7E);
}

.b-product-hero__accordion-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1.5px solid var(--muted, #8A7F7A);
  border-bottom: 1.5px solid var(--muted, #8A7F7A);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.b-product-hero__accordion[open] > .b-product-hero__accordion-summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.b-product-hero__accordion-body {
  padding: 0 2px 18px;
}

.b-product-hero__accordion-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, #8A7F7A);
}

.b-product-hero__size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text, #3B3437);
}

.b-product-hero__size-table th,
.b-product-hero__size-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line, #E4DCD2);
}

.b-product-hero__size-table th {
  font-weight: 600;
  color: var(--muted, #8A7F7A);
}

@media (max-width: 768px) {
  .b-product-hero { padding: 16px 0 48px; }
  .b-product-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .b-product-hero__title { font-size: 32px; }
  .b-product-hero__price { font-size: 21px; }
  .b-product-hero__zoom { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .b-product-hero__gallery { gap: 10px; }
  .b-product-hero__title { font-size: 28px; }
  .b-product-hero__buy { flex-direction: column; }
  .b-product-hero__qty { justify-content: space-between; }
  .b-product-hero__qty-btn { min-height: 44px; }
}

/* --------------------------------------------------------------------------
   Лайтбокс галереи (.amo-lightbox) — разметку создаёт assets/js/lightbox.js
   -------------------------------------------------------------------------- */
.amo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(43, 36, 40, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.amo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.amo-lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(920px, 100%);
  max-height: 100%;
}

.amo-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2, #F1EBE2);
  box-shadow: 0 30px 80px rgba(20, 14, 18, .45);
  touch-action: pan-y;
}

.amo-lightbox__img {
  display: block;
  width: 100%;
  max-height: min(72vh, 780px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(.985);
  transition: transform .28s ease, opacity .18s ease;
}

.amo-lightbox.is-open .amo-lightbox__img {
  transform: scale(1);
}

.amo-lightbox__img.is-switching {
  opacity: 0;
}

.amo-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(253, 251, 247, .92);
  color: var(--text, #3B3437);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.amo-lightbox__arrow:hover {
  background: var(--accent, #6E5A7E);
  color: #fff;
}

.amo-lightbox__arrow--prev { left: 14px; }
.amo-lightbox__arrow--next { right: 14px; }

.amo-lightbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(253, 251, 247, .14);
  color: #FDFBF7;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.amo-lightbox__close:hover {
  background: rgba(253, 251, 247, .28);
  transform: rotate(90deg);
}

.amo-lightbox__counter {
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(253, 251, 247, .85);
  font-variant-numeric: tabular-nums;
}

.amo-lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px;
}

.amo-lightbox__thumb {
  flex: none;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2, #F1EBE2);
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, border-color .2s ease;
}

.amo-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.amo-lightbox__thumb:hover {
  opacity: .85;
}

.amo-lightbox__thumb.is-active {
  border-color: var(--lavender, #B9A7C9);
  opacity: 1;
}

@media (max-width: 768px) {
  .amo-lightbox { padding: 12px; }
  .amo-lightbox__img { max-height: 62vh; }
  .amo-lightbox__arrow {
    width: 40px;
    height: 40px;
  }
  .amo-lightbox__arrow--prev { left: 8px; }
  .amo-lightbox__arrow--next { right: 8px; }
  .amo-lightbox__close {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
  }
  .amo-lightbox__thumb {
    width: 48px;
    height: 48px;
  }
}
