.product-detail-component {
  max-width: 1032px;
  margin: auto;
}

.product-detail-wrapper {
  display: grid;
  grid-auto-columns: 1fr;
  grid-column-gap: 3.75rem;
  grid-row-gap: 3.75rem;
  grid-template-rows: auto;
  grid-template-columns: 0.75fr 1fr;
  align-items: start;
}

.product-detail-card,
.product-detail-content {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

/* Left Side - Sticky Card */
.product-detail-card {
  position: sticky;
  top: 6.25rem;
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-text {
  font-weight: 300;
  letter-spacing: 0.07vw;
}

.product-detail-price {
  text-transform: capitalize;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 3.33vw;
  font-weight: 400;
  line-height: 3.89vw;
  white-space: nowrap;
  margin-bottom: 36px;
}

.product-detail-form {
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.product-detail-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-field label {
  margin-bottom: 0.3125rem;
  font-weight: 300;
  display: block;
}

.product-detail-select,
.product-detail-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1.11vw;
  font-family: "Satoshi", sans-serif;
  background-color: var(--white);
  color: var(--black);
  transition: border-color 0.3s ease;
}

.product-detail-select:focus,
.product-detail-input:focus {
  outline: none;
  border-color: var(--primary);
}

.product-detail-input {
  -moz-appearance: textfield;
}

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

.product-detail-button {
  background-color: var(--black);
  color: var(--white);
  border-radius: 50px;
  font-size: 1.11vw;
  font-weight: 400;
  transition: background-color 0.3s ease;
  width: max-content;
  border: 1px solid var(--black);
  text-transform: uppercase;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0.78vw 2.22vw;
  display: flex;
}

.product-detail-button:hover {
  background-color: var(--black);
  color: var(--white);
}

/* Right Side - Rich Text */
.product-detail-content {
  padding: 0;
}

.product-detail-rich-text {
  font-size: 1.11vw;
  line-height: 1.89vw;
  color: var(--matte);
}

.product-detail-rich-text h1,
.product-detail-rich-text h2,
.product-detail-rich-text h3,
.product-detail-rich-text h4,
.product-detail-rich-text h5,
.product-detail-rich-text h6 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--black);
  font-weight: 600;
}

.product-detail-rich-text h2 {
  font-size: 2.22vw;
  line-height: 2.78vw;
}

.product-detail-rich-text h3 {
  font-size: 1.67vw;
  line-height: 2.22vw;
}

.product-detail-rich-text p {
  margin-bottom: 16px;
}

.product-detail-rich-text ul,
.product-detail-rich-text ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.product-detail-rich-text li {
  margin-bottom: 8px;
  font-size: 1.11vw;
  line-height: 2.22vw;
  letter-spacing: 0.07vw;
  font-weight: 300;
}

.product-detail-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 24px 0;
}

.product-detail-rich-text a {
  color: var(--primary);
  text-decoration: underline;
}

.product-detail-rich-text a:hover {
  color: var(--black);
}

/* Responsive */
@media (max-width: 991px) {
  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 10%;
    padding-right: 10%;
  }

  .product-detail-card {
    position: relative;
    top: 0;
  }

  .product-detail-title {
    font-size: 24px;
    line-height: 32px;
  }

  .product-detail-text {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
  }

  .product-detail-price {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .product-detail-field label {
    font-size: 14px;
  }

  .product-detail-select,
  .product-detail-input {
    font-size: 16px;
    width: 250px;
  }

  .product-detail-button {
    font-size: 16px;
    padding: 0.7rem 2rem;
    letter-spacing: 0.0625rem;
  }

  .product-detail-rich-text {
    font-size: 16px;
    line-height: 24px;
  }

  .product-detail-rich-text h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .product-detail-rich-text h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .product-detail-rich-text h4 {
    font-size: 2rem;
    line-height: 3rem;
  }

  .product-detail-rich-text li {
    font-size: 1rem;
    line-height: 2rem;
  }

  .product-detail-card h3 {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

@media (max-width: 576px) {
  .product-detail-rich-text {
    text-align: center !important;
  }

  .product-detail-rich-text li {
    font-size: 1rem;
    line-height: 2rem;
  }

  .product-detail-card h3 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
  }

  .product-detail-price {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }
}
