/* Shared by the six enhanced product pages; the reviewed Mylar page is unchanged. */
.product-page-enhanced .detail-grid-with-images .detail-card-image img {
  object-fit: contain !important;
}
.detail-related[data-related-packaging] .related-packaging-intro {
  max-width: 880px;
  margin: 0 0 24px;
}
.detail-related[data-related-packaging] .related-packaging-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}
.detail-related[data-related-packaging] .related-packaging-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e3ded4;
  background: #fffdf8;
  color: #171613;
  transition: border-color .18s ease, transform .18s ease;
}
.detail-related[data-related-packaging] .related-packaging-card:hover {
  border-color: #a07840;
  transform: translateY(-2px);
}
.detail-related[data-related-packaging] .related-packaging-card:focus-visible {
  outline: 2px solid #a07840;
  outline-offset: 4px;
}
.detail-related[data-related-packaging] .related-packaging-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.detail-related[data-related-packaging] .related-packaging-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}
.detail-related[data-related-packaging] .related-packaging-copy h3 {
  min-height: 2.8em;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
}
.detail-related[data-related-packaging] .related-packaging-copy p {
  flex: 1;
  margin: 0 0 18px;
  color: #716d65;
  font-size: 14px;
  line-height: 1.75;
}
.detail-related[data-related-packaging] .related-packaging-link {
  color: #795a30;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.detail-related[data-related-packaging] .related-packaging-guide {
  margin: 24px 0 0;
  color: #716d65;
  font-size: 14px;
  line-height: 1.8;
}
.detail-related[data-related-packaging] .related-packaging-guide a {
  color: #795a30;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1023px) {
  .detail-related[data-related-packaging] .related-packaging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .detail-related[data-related-packaging] .related-packaging-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-related[data-related-packaging] .related-packaging-card {
    transition: none;
  }
  .detail-related[data-related-packaging] .related-packaging-card:hover {
    transform: none;
  }
}
