.product-details-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}

.product-details-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.product-engagement {
  display: grid;
  gap: 14px;
}

.product-tab-content {
  display: grid;
  gap: 16px;
  animation: section-fade-in 280ms ease-out both;
}

.product-engagement-stacked {
  gap: 16px;
}

.product-details-loading {
  min-height: 420px;
}

.product-details-message {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-details-message.error {
  ::ng-deep .app-empty-state__title {
    color: var(--error-color);
  }
}

.product-details-loading-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}

.product-details-loading-gallery {
  aspect-ratio: 1 / 1;
}

.product-details-loading-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .product-details-page {
    padding: 18px;
    gap: 24px;
  }

  .product-details-layout,
  .product-details-loading-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-details-main {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .product-details-page {
    padding: 14px;
    gap: 20px;
  }

  .product-details-message {
    min-height: 320px;
    padding: 0 6px;
  }
}
