.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,
.product-details-message {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #697777;

  h1 {
    margin: 0;
    color: #1e3c38;
  }

  p {
    margin: 0;
    max-width: 420px;
  }

  button,
  a {
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: #497671;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    cursor: pointer;
  }
}

.product-details-message.error {
  color: #991b1b;
}

.product-details-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #d3dad9;
  border-top-color: #497671;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .product-details-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;
  }
}
