.product-page {
  --product-accent: #42685a;
  --product-accent-soft: #e6eee9;
  --product-reading: 1040px;
}

:root[data-theme="dark"] .product-page {
  --product-accent: #a6c0b2;
  --product-accent-soft: #25332c;
}

.product-page main { padding: 18px 0 0; }
.product-page-shell { width: min(calc(100% - 72px), 1240px); margin-inline: auto; }

/* Product-page search */
.header-search {
  width: min(29vw, 360px);
  height: 40px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.header-search:focus-within { border-color: var(--focus); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent); }
.header-search__toggle { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); pointer-events: none; }
.header-search__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.header-search input { min-width: 0; width: 100%; height: 38px; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.header-search input::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }

.product-identity {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--product-accent) 8%, transparent), transparent 38%), color-mix(in srgb, var(--surface) 84%, var(--bg));
  box-shadow: 0 18px 48px rgba(31, 39, 34, .055);
}
:root[data-theme="dark"] .product-identity { box-shadow: 0 20px 54px rgba(0, 0, 0, .16); }
.identity-header, .identity-title-row, .identity-body, .identity-copy-column { min-width: 0; }
.identity-title-row h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(24px, 3.45vw, 36px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.036em;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.identity-title-row h1 span { white-space: nowrap; }

.identity-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.identity-meta-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; min-width: 0; }
.identity-brand { margin: 0; padding-right: 15px; border-right: 1px solid var(--line); color: var(--product-accent); font-size: 12px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.identity-rating { width: fit-content; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
.identity-rating:hover > span:last-child, .identity-rating:focus-visible > span:last-child { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.identity-rating strong { color: var(--text); font-size: 15px; }
.rating-stars { display: inline-flex; align-items: center; gap: .075em; color: var(--star); font-size: 16px; line-height: 1; }
.rating-star { position: relative; display: inline-block; color: transparent; }
.rating-star::after { content: "☆"; position: absolute; inset: 0; color: var(--star); white-space: nowrap; }
.rating-star::before { content: "★"; position: absolute; z-index: 1; inset: 0 auto 0 0; width: var(--star-fill, 0%); overflow: hidden; color: var(--star); white-space: nowrap; }
.review-score .rating-stars { font-size: 12px; }
.rating-divider { color: var(--line-strong); }
.identity-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.identity-tags a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface) 78%, transparent); font-size: 11px; line-height: 1; text-decoration: none; }
.identity-tags a:hover { border-color: var(--line-strong); color: var(--text); }

.share-control, .copy-control { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.share-control { min-width: 42px; height: 38px; grid-template-columns: 17px auto; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 76%, transparent); font-size: 11px; font-weight: 650; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.share-control:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.share-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.identity-body { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(38px, 4.5vw, 58px); align-items: stretch; margin-top: clamp(24px, 2.6vw, 31px); }
.identity-copy-column { display: flex; flex-direction: column; min-height: 100%; padding: 24px 25px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface)); }
.product-summary { min-width: 0; padding: 0; }
.product-summary-title, .identity-facts-title { margin: 0 0 13px; color: var(--product-accent); font-size: 10px; font-weight: 760; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.product-summary-copy { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.product-summary-copy p { margin: 0; }
.product-summary-copy p + p { margin-top: 10px; }

.identity-facts-card { width: 100%; margin: auto 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.identity-facts { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 18px 30px; margin: 0; }
.identity-facts > div { min-width: 0; }
.identity-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.identity-facts dd { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.42; }
.identity-facts code { color: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.identity-facts dd:has(.copy-control) { display: flex; align-items: center; gap: 5px; }
.copy-control { width: 27px; height: 27px; border-radius: 8px; }
.copy-control:hover { color: var(--text); background: var(--surface); }
.copy-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.evidence-gallery { width: min(100%, 370px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-self: start; align-content: start; justify-self: end; }

.gallery-main-wrap {
  position: relative;
  width: 100%;
}

.evidence-main {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 772;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: 0 16px 42px rgba(31, 39, 34, .10);
}

:root[data-theme="dark"] .evidence-main {
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.evidence-main > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .24s ease;
}

.evidence-main:hover > img {
  transform: scale(1.012);
}

.evidence-expand {
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background: rgba(17, 22, 19, .72);
  color: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.evidence-expand svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evidence-counter {
  position: absolute;
  left: 11px;
  bottom: 11px;
  width: max-content;
  min-width: 49px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 9px;
  background: rgba(17, 22, 19, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.evidence-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.evidence-thumb {
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  opacity: .58;
  transition: opacity .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.evidence-thumb:hover {
  opacity: .92;
  transform: translateY(-2px);
}

.evidence-thumb.is-active {
  border-color: var(--text);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--text);
}

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

.share-control:focus-visible,
.copy-control:focus-visible,
.evidence-main:focus-visible,
.evidence-thumb:focus-visible,
.image-modal-close:focus-visible,
.image-modal-nav:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 32%, transparent);
  outline-offset: 3px;
}

.product-index {
  position: sticky;
  top: 76px;
  z-index: 35;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(14px);
}

.product-index button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 630;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.product-index button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.product-index button.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.product-index button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 2px;
}

.product-index strong {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
}

.product-document {
  width: min(100%, var(--product-reading));
  margin: 0 auto 96px;
}

.document-section {
  padding: 46px 0 52px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 142px;
}

.document-section[hidden] {
  display: none;
}

.document-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.document-kicker {
  margin: 0 0 8px;
  color: var(--product-accent);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-heading--kicker-only {
  margin-bottom: 18px;
}

.document-heading h2.document-kicker {
  margin: 0;
  color: var(--product-accent);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-heading h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -.027em;
}

.document-heading h2 span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 580;
  vertical-align: top;
}


.review-entry {
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(31, 39, 34, .055);
}
.review-entry + .review-entry { margin-top: 16px; }

:root[data-theme="dark"] .review-entry {
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

.review-entry-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.review-author {
  min-width: 0;
}

.review-author > strong {
  display: block;
  font-size: 14px;
}

.review-author p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.scan-mark {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: var(--product-accent);
}

.scan-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-score {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.review-score strong {
  font-size: 12px;
}

.review-copy {
  max-width: 790px;
  margin: 22px 0 0 56px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.review-copy p {
  margin: 0;
}

.review-copy p + p {
  margin-top: 11px;
}

.composition-panel {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.composition-panel p { margin: 0; }
.composition-panel p + p { margin-top: 14px; }

.app-strip {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  margin: 42px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--product-accent) 10%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 88%, var(--bg));
  box-shadow: 0 12px 32px rgba(31, 39, 34, .045);
  scroll-margin-top: 112px;
}

:root[data-theme="dark"] .app-strip {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}

.app-strip-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--product-accent) 18%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--product-accent-soft) 48%, var(--surface));
}

.app-strip-mark img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 11px;
}

.app-strip h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.app-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.app-strip-links {
  display: flex;
  gap: 7px;
}

.app-strip-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-size: 10px;
  font-weight: 680;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.app-strip-links a:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.related-section {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 16px;
}

.related-card {
  min-width: 0;
}

.related-card a {
  display: block;
  height: 100%;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.related-photo {
  aspect-ratio: 640 / 772;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}

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

.related-info {
  padding: 11px 3px 0;
}

.related-info p {
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-info h3 {
  min-height: 36px;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-info span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.related-info b {
  color: var(--star);
  font-weight: 500;
}

.related-card a:hover .related-photo {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(31, 39, 34, .08);
}

.related-card a:focus-visible .related-photo {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}

html.product-image-modal-open,
body.product-image-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.image-modal {
  margin: auto;
  padding: 24px;
  border: none;
  background: transparent;
  max-width: min(92vw, 760px);
  max-height: 100svh;
  overflow: visible;
  overscroll-behavior: none;
  touch-action: none;
}

.image-modal::backdrop {
  background: rgba(5, 8, 11, .9);
  backdrop-filter: blur(8px);
}

.image-modal-close,
.image-modal-nav {
  position: fixed;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(10, 14, 20, .74);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.image-modal-close {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 52px;
  height: 52px;
}

.image-modal-nav {
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
}

.image-modal-nav-prev { left: max(20px, env(safe-area-inset-left)); }
.image-modal-nav-next { right: max(20px, env(safe-area-inset-right)); }

.image-modal-close:hover,
.image-modal-nav:hover {
  background: rgba(10, 14, 20, .92);
  border-color: rgba(255, 255, 255, .26);
}

.image-modal-close svg,
.image-modal-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-modal-counter {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(10, 14, 20, .72);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.image-modal .modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(var(--modal-drag-x, 0), var(--modal-drag-y, 0), 0);
  transition: transform .18s cubic-bezier(.2, 0, .2, 1);
  touch-action: none;
  will-change: transform;
}

.image-modal.is-dragging .modal-content,
.image-modal.is-pinching .modal-content,
.image-modal.is-panning .modal-content {
  transition: none;
}

.image-modal img {
  width: auto;
  height: auto;
  display: block;
  max-width: min(100%, 760px);
  max-height: calc(100svh - 48px);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  object-fit: contain;
  cursor: zoom-out;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(var(--image-pan-x, 0), var(--image-pan-y, 0), 0) scale(var(--image-zoom, 1));
  transform-origin: center;
  transition: transform .18s ease;
  will-change: transform;
}

.image-modal.is-zoomed img { cursor: grab; }
.image-modal.is-pinching img,
.image-modal.is-panning img { cursor: grabbing; transition: none; }

.product-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: min(90vw, 420px);
  transform: translateX(-50%);
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  background: rgba(25, 31, 27, .94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.product-toast[hidden] { display: none; }

@media (max-width: 1080px) {
  .product-page-shell { width: min(calc(100% - 48px), 1050px); }
  .product-identity { padding: 28px; }
  .identity-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .evidence-gallery { width: 340px; }
  .product-document { width: min(100%, 930px); }
  .header-search { width: min(31vw, 320px); }
}

@media (max-width: 860px) {
  .product-identity { padding: 22px; border-radius: 22px; }
  .identity-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .evidence-gallery { width: 300px; }
  .evidence-thumbs { gap: 8px; }
  .evidence-thumb { flex-basis: 48px; width: 48px; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search { width: 230px; }
  .header-search input { font-size: 12px; }
}

@media (max-width: 760px) {
  .product-page main { padding-top: 13px; }
  .product-page-shell { width: min(calc(100% - 28px), 680px); }
  .product-identity { padding: 20px; border-radius: 20px; }
  .identity-title-row h1 { font-size: clamp(24px, 7.4vw, 34px); line-height: 1.12; }
  .identity-meta { grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
  .identity-meta-main { gap: 9px 12px; }
  .identity-brand { width: 100%; padding-right: 0; border-right: 0; }
  .share-control { width: 40px; height: 40px; grid-template-columns: 1fr; gap: 0; padding: 0; border-radius: 11px; }
  .share-control span { display: none; }
  .identity-body { grid-template-columns: 1fr; gap: 28px; }
  .identity-copy-column { padding: 20px; }
  .identity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-gallery { width: min(100%, 380px); justify-self: center; }
  .product-index { top: 66px; min-height: 52px; overflow-x: auto; margin: 14px 0 0; padding: 6px; scrollbar-width: none; }
  .product-index::-webkit-scrollbar { display: none; }
  .product-index button { flex: 0 0 auto; }
  .product-document { margin-bottom: 66px; }
  .document-section { padding: 42px 0; scroll-margin-top: 126px; }
  .document-heading h2 { font-size: 26px; }
  .review-entry { padding: 20px 17px 22px; border-radius: 17px; }
  .review-copy { margin-left: 0; font-size: 14px; }
  .composition-panel { padding: 20px; font-size: 13px; }
  .app-strip { grid-template-columns: 44px minmax(0, 1fr); gap: 0 13px; padding: 18px; }
  .app-strip-mark { width: 44px; height: 44px; border-radius: 13px; }
  .app-strip-mark img { width: 34px; height: 34px; }
  .app-strip-links { grid-column: 2; margin-top: 11px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .image-modal { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); max-width: 100vw; }
  .image-modal-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 48px; height: 48px; }
  .image-modal-nav { width: 46px; height: 46px; }
  .image-modal-nav-prev { left: max(9px, env(safe-area-inset-left)); }
  .image-modal-nav-next { right: max(9px, env(safe-area-inset-right)); }
  .image-modal-counter { bottom: max(12px, env(safe-area-inset-bottom)); }
  .image-modal img { max-width: 100%; max-height: 78svh; border-radius: 15px; }

  .header-search { position: relative; width: 40px; height: 40px; padding: 0; overflow: visible; background: transparent; border-color: transparent; }
  .header-search input { position: fixed; left: 14px; right: 14px; top: 74px; width: calc(100% - 28px); height: 48px; display: none; padding: 0 16px 0 46px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .header-search.is-open input { display: block; }
  .header-search__toggle { pointer-events: auto; }
}

@media (max-width: 520px) {
  .identity-facts { grid-template-columns: 1fr; }
  .evidence-thumb { flex-basis: 52px; width: 52px; }
}

@media (max-width: 390px) {
  .product-identity { padding: 17px; }
  .identity-title-row h1 .title-variant { white-space: normal; }
  .document-heading { align-items: start; }
  .review-entry-head { grid-template-columns: 42px minmax(0, 1fr); }
  .review-score { grid-column: 2; }
  .app-strip-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-main > img,
  .image-modal .modal-content,
  .image-modal img {
    transition: none;
  }
}

/* Review discussions */
.review-metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 18px 0 0 56px;
  color: var(--muted);
}

.review-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
}

.review-metric svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-metric--comments { margin-left: auto; }

button.review-metric--comments {
  padding: 3px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}

button.review-metric--comments:hover {
  color: var(--text);
  background: var(--surface-soft);
}

button.review-metric--comments[aria-expanded="true"] {
  color: var(--product-accent);
}

button.review-metric--comments:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 2px;
}

.review-comments {
  margin: 20px 0 0 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  animation: comments-reveal .18s ease both;
}

.review-comments[hidden] { display: none; }

@keyframes comments-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-item {
  position: relative;
  min-width: 0;
}

.review-comments > .comment-item + .comment-item { margin-top: 22px; }

.comment-node {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.comment-bubble {
  min-width: 0;
  padding-top: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.comment-meta strong { font-size: 12px; }
.comment-meta time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.comment-copy { color: var(--muted); font-size: 12px; line-height: 1.58; }
.comment-copy p { margin: 0; }
.comment-copy p + p { margin-top: 7px; }

.comment-children {
  margin: 15px 0 0 17px;
  padding-left: 27px;
  border-left: 1px solid color-mix(in srgb, var(--muted) 28%, var(--line));
}

.comment-children > .comment-item + .comment-item { margin-top: 16px; }

.comment-children > .comment-item > .comment-node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 17px;
  width: 18px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 28%, var(--line));
}

/* At the third visual level, continue the conversation without an endless staircase. */
.comment-item[data-comment-depth="2"] > .comment-children,
.comment-item[data-comment-overflow="true"] > .comment-children {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.comment-item[data-comment-depth="2"] > .comment-children > .comment-item > .comment-node::before,
.comment-item[data-comment-overflow="true"] > .comment-children > .comment-item > .comment-node::before {
  display: none;
}

.comment-reply-preview {
  display: none;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 7px;
  padding-left: 8px;
  overflow: hidden;
  border-left: 2px solid color-mix(in srgb, var(--muted) 34%, var(--line));
  color: var(--muted);
  font-size: 10px;
  line-height: 1.38;
  white-space: nowrap;
}

.comment-reply-preview::before {
  content: "В ответ";
  flex: 0 0 auto;
  color: var(--muted);
}

.comment-reply-preview strong { flex: 0 0 auto; color: var(--text); font-weight: 720; }
.comment-reply-preview span { overflow: hidden; text-overflow: ellipsis; }
.comment-item[data-comment-overflow="true"] > .comment-node .comment-reply-preview { display: flex; }

@media (max-width: 760px) {
  .review-metrics,
  .review-comments { margin-left: 0; }
  .review-metric--comments { margin-left: 0; }
  .comment-meta { display: block; }
  .comment-meta time { display: block; margin-top: 2px; }

  .comment-children {
    margin-left: 14px;
    padding-left: 21px;
  }

  .comment-children > .comment-item > .comment-node::before {
    left: -21px;
    width: 14px;
  }

  /* Mobile keeps two visual levels; deeper replies use compact parent context. */
  .comment-item[data-comment-depth="1"] > .comment-children,
  .comment-item[data-comment-deep="true"] > .comment-children {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .comment-item[data-comment-depth="1"] > .comment-children > .comment-item > .comment-node::before,
  .comment-item[data-comment-deep="true"] > .comment-children > .comment-item > .comment-node::before {
    display: none;
  }

  .comment-item[data-comment-deep="true"] > .comment-node .comment-reply-preview { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .review-comments { animation: none; }
}


/* Optional product sections and empty-review state */
.identity-rating--empty { color: var(--muted); }
.identity-rating--empty strong { color: var(--text); }
.product-summary-copy--empty { color: var(--muted); font-style: italic; }
.reviews-empty { min-height: 300px; display: grid; justify-items: center; align-content: center; padding: 44px 28px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 82%, var(--bg)); text-align: center; }
.reviews-empty__mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); }
.reviews-empty__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.reviews-empty h3 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.reviews-empty p { max-width: 520px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.reviews-empty a { min-height: 40px; display: inline-flex; align-items: center; margin-top: 22px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 680; }
.reviews-empty a:hover { border-color: var(--muted); background: var(--surface-soft); }

/* Dynamic product states */
.review-avatar--initials,
.comment-avatar--initials { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-weight: 760; }
.review-avatar--initials { width: 48px; height: 48px; font-size: 14px; }
.comment-avatar--initials { width: 38px; height: 38px; font-size: 11px; }
.gallery-empty { min-height: 460px; display: grid; place-items: center; align-content: center; gap: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-soft); color: var(--muted); }
.gallery-empty img { opacity: .42; }
.review-load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.related-empty { grid-column: 1 / -1; margin: 0; padding: 42px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .gallery-empty { min-height: 320px; }
}
