.product-view.hidden,
.hidden {
  display: none !important;
}
.product-view {
  margin-top: 10px;
  padding: 12px 0 24px;
}
/* Единый loading до готовности item + readiness (direct-open / listing / search). */
.product-view--loading {
  pointer-events: none;
  min-height: 320px;
}
.product-view-loading-shell {
  padding: 8px 4px 0;
  max-width: 100%;
  box-sizing: border-box;
}
.product-view-loading-shell__media {
  width: 100%;
  height: 284px;
  border-radius: 22px;
  margin-bottom: 16px;
}
.product-view-loading-shell__row {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  width: 72%;
}
.product-view-loading-shell__row--short {
  width: 42%;
  margin-bottom: 0;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 16px 40px rgba(15, 23, 42, 0.04);
}
.product-image-wrapper {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 14px;
  min-height: 284px;
  height: 284px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(15, 23, 42, 0.05);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Двухслойная галерея (app_gallery_crossfade.js): только opacity между слоями, transform на слое */
.app-gallery-stack {
  position: relative;
  width: 88%;
  height: 88%;
  max-height: 100%;
  flex-shrink: 0;
}
.product-image.app-gallery-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--motion-duration-gallery) var(--motion-ease-gallery),
    transform var(--motion-duration-gallery) var(--motion-ease-gallery),
    filter var(--motion-duration-gallery) var(--motion-ease-gallery);
}
.product-image.app-gallery-layer.is-app-gallery-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.product-image {
  width: 88%;
  height: 88%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  display: block;
  will-change: transform, opacity;
  transition:
    opacity var(--motion-duration-gallery) var(--motion-ease-gallery),
    transform var(--motion-duration-gallery) var(--motion-ease-gallery),
    filter var(--motion-duration-gallery) var(--motion-ease-gallery);
  transform:
    translate3d(
      calc(var(--gallery-swipe-offset, 0px) + var(--gallery-parallax-x, 0px) + var(--gallery-transition-x, 0px)),
      calc(var(--gallery-parallax-y, 0px)),
      0
    )
    scale(var(--gallery-parallax-scale, 1));
}
.product-image-wrapper.is-pointer-active .product-image,
.product-image-wrapper.is-pointer-active .product-image.app-gallery-layer.is-app-gallery-visible {
  filter: saturate(1.02);
}
.product-image-wrapper.is-dragging .product-image,
.product-image-wrapper.is-dragging .product-image.app-gallery-layer {
  transition-duration: var(--motion-duration-instant);
}
.product-image--fade {
  opacity: 0;
  transform: scale(0.98);
}
.product-title {
  /* Размер/вес: app_typography.css (слой B, ниже shell) */
  margin: 0 0 6px;
}
/* Явный legacy: дубль title в теле только при forceInlineProductTitle (product shell step 6). */
.product-title--legacy-inline {
  margin: 0 0 6px;
}
.product-description {
  /* Размер/цвет: app_typography.css */
  margin: 0 0 10px;
}
.product-price {
  /* Размер: app_typography.css */
  margin-bottom: 12px;
}

/* Layered catalog_content (specs / pros-cons), только если есть данные */
.product-layered-content {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-content-section__title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}
.product-specs-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.product-specs-dl dt {
  margin: 0;
}
.product-specs-dl dd {
  margin: 0;
}
.product-pros-list,
.product-cons-list {
  margin: 4px 0 0;
  padding-left: 1.1em;
}
