.terrier-product .hook-hero {
  background: #202d2c;
  border-color: #3d4b48;
}

.terrier-product .hook-category { letter-spacing: .11em; }
.terrier-photo {
  background: radial-gradient(ellipse at 53% 43%, #64706a 0%, #455855 39%, #2c403e 70%, #263735 100%);
  cursor: zoom-in;
  text-decoration: none;
}
.terrier-product .terrier-photo > span {
  position: absolute;
  bottom: 13px;
  right: 13px;
  padding: 5px 9px;
  border: 1px solid #b4c3be;
  border-radius: 6px;
  color: #fff;
  background: #1c2a28;
  font-size: 12px;
  line-height: 1.3;
}
.terrier-product .terrier-photo:hover > span { background: #3a4a45; }
.terrier-product .hook-specs tbody td { white-space: normal; overflow-wrap: break-word; }
.terrier-product .hook-specs tbody th { width: 42%; overflow-wrap: break-word; }

.terrier-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 14px;
  overflow: hidden;
  border: 1px solid #667d76;
  border-radius: 16px;
  color: #fff;
  background: #263735;
}
.terrier-dialog::backdrop { background: #0d1919df; }
.terrier-dialog form { display: flex; justify-content: end; margin: 0 0 4px; }
.terrier-dialog button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #c4d4cc;
  border-radius: 6px;
  color: #fff;
  background: #1c2a28;
  font: inherit;
  cursor: pointer;
}
.terrier-dialog-media {
  max-height: calc(100dvh - 102px);
  overflow: auto;
  overscroll-behavior: contain;
}
.terrier-dialog img {
  display: block;
  width: min(100%, 578px);
  height: auto;
  margin-inline: auto;
}

@media (min-width: 769px) {
  .terrier-product .hook-hero { grid-template-rows: 1fr auto auto auto 1fr; }
  .terrier-product .hook-category { grid-row: 2; }
  .terrier-product .hook-hero h1 { grid-row: 3; }
  .terrier-product .hook-intro { grid-row: 4; }
  .terrier-product .terrier-photo { grid-row: 1 / -1; }
}

@media (max-width: 430px) {
  .terrier-product .terrier-photo > span { bottom: 7px; right: 7px; font-size: 11px; }
}

@media (max-width: 768px) {
  .terrier-product .hook-intro,
  .terrier-product .hook-section {
    padding-inline-end: max(44px, calc(env(safe-area-inset-right, 0px) + 44px));
  }
  .terrier-product .terrier-photo > span {
    inset-inline-end: max(48px, calc(env(safe-area-inset-right, 0px) + 48px));
  }
}
