.product-detail-page {
  min-height: 760px;
  padding: clamp(136px, 14vw, 168px) 0 clamp(78px, 9vw, 110px);
  background: #ffffff;
  color: #171717;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
  gap: clamp(42px, 8vw, 92px);
  align-items: center;
}

.product-detail-media {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 45vw, 560px);
}

.product-detail-media img {
  width: min(100%, 560px);
  max-height: 560px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-detail-info {
  display: grid;
  gap: 1.35rem;
  align-content: center;
}

.product-detail-category {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.5rem 0.78rem;
}

.product-detail-info h1 {
  margin: 0;
  color: #242424;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.product-detail-price {
  margin: 0;
  color: #050505;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.product-detail-description {
  max-width: 48ch;
  margin: 0;
  color: #232323;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}

.product-detail-stock {
  margin: -0.2rem 0 0;
  color: #666666;
  font-size: 0.94rem;
  font-weight: 800;
}

.product-quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.product-quantity-label {
  color: #242424;
  font-weight: 900;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 42px 52px 42px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  background: #ffffff;
}

.quantity-stepper button,
.quantity-stepper input {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.quantity-stepper button {
  color: #050505;
  background: #f0f0f0;
}

.quantity-stepper button:hover,
.quantity-stepper button:focus {
  background: #e3e3e3;
}

.quantity-stepper input {
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-detail-actions {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.7rem;
}

.detail-action-primary,
.detail-action-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  padding: 0.8rem 1.1rem;
}

.detail-action-primary {
  background: #050505;
  cursor: pointer;
}

.detail-action-primary:hover,
.detail-action-primary:focus {
  color: #ffffff;
  background: #1f1f1f;
}

.detail-action-primary.is-success {
  background: #B8860B;
}

.cart-feedback {
  margin: -0.2rem 0 0;
  color: #B8860B;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.cart-feedback a {
  color: #050505;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-action-secondary {
  background: #8e8e8e;
}

.detail-action-secondary:hover,
.detail-action-secondary:focus {
  color: #ffffff;
  background: #727272;
}

.product-not-found {
  max-width: 620px;
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0 auto;
  text-align: center;
}

.product-not-found h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.product-not-found p {
  margin: 0;
  color: #666666;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .product-detail-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-detail-media {
    min-height: 320px;
  }

  .product-detail-info {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .product-detail-page {
    padding-top: 124px;
  }

  .product-detail-info h1 {
    font-size: 2rem;
  }

  .product-detail-actions {
    gap: 0.65rem;
  }

  .detail-action-primary,
  .detail-action-secondary {
    width: 100%;
  }
}
