.page-wrapper {
  padding: 8rem 30rem;
}

.hero-info {
  justify-content: start;
  height: calc(100vh - 10rem);
  align-items: flex-start;
  gap: 5rem;
  width: 70%;
}

.hero-info section {
  align-items: flex-start;
}

.hero-info .slider {
  align-items: center;
}

.product-main-info {
  width: 45%;
}

.product-main-info p {
  font-size: 1.8rem;
}

.main {
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 5rem;
  gap: 5rem;
  width: 95%;
}

#slider {
  border: 0.15rem solid var(--color-secondary);
  border-radius: 1.5rem;
}

.heading {
  font-size: 3.7rem;
}

.subheading {
  font-size: 2.8rem;
}

.title {
  font-size: 3.5rem;
  line-break: anywhere;
}

.order-info {
  width: 30%;
  font-size: 1.8rem;
  padding: 3rem 4rem;
  border-radius: 1.5rem;
  border: none;
  background-color: var(--color-secondary-lighter);
  gap: 2rem;
}

.price-text {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-success);
}

.price-text.unavailable {
  color: var(--color-error);
}

.quantity {
  margin-bottom: 1rem;
}

.details-info {
  white-space-collapse: preserve;
  line-break: anywhere;
}

.details-info,
.additional-info,
.comments-info {
  align-items: center;
  gap: 3rem;
  font-size: 2rem;
  padding: 1.5rem 6rem;
}

.details-info .info-article {
  width: 100%;
  gap: 1rem;
}

.additional-info table tr:nth-child(odd) {
  background-color: var(--color-secondary-light);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 80%;
}

table tr td {
  border-right: 0.1rem solid var(--color-secondary);
  border-bottom: 0.1rem solid var(--color-secondary);
  padding: 1.5rem 3rem;
}

table tr th:first-child,
table tr td:first-child {
  border-left: 0.1rem solid var(--color-secondary);
}

table tr td {
  text-align: left;
  border-top: 0.1rem solid var(--color-secondary);
  line-break: anywhere;
  max-width: 70%;
  min-width: 30%;
}

table tr:first-child td:first-child {
  border-top-left-radius: 1rem;
}

table tr:first-child td:last-child {
  border-top-right-radius: 1rem;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 1rem;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 1rem;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
}

.slide-content {
  height: 100%;
  justify-content: center;
}

/* --- Quill editor --- */
#description-editor {
  border: none;

  blockquote {
    border-left: 0.5rem solid var(--color-secondary);
  }

  select {
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0 1rem;
    border-radius: 1rem;
  }
}

/* --- Comments --- */
.comments-info .star-icon {
  color: var(--color-orange);
}

.comments-info .comments-overview {
  gap: 10rem;
  margin: 4rem 0 8rem 0;
}

.comments-info .comments-overview .stars {
  transform: translateY(-1rem);
}

.comments-info .comments-overview .ratings-count {
  font-size: 1.8rem;
  text-align: center;
  opacity: 0.9;
  margin-top: -0.5rem;
}

.comments-info .comments-overview .average-rating {
  font-size: 5.5rem;
  font-weight: 600;
}

.comments-info .comments-overview .rating-stats {
  gap: 0.3rem;
  font-size: 1.8rem;
}

.comments-info .comments-overview .rating-stats .rating-bar .rating-label {
  width: 4rem;
  gap: 0rem;
}

.comments-info .comments-overview .rating-stats .rating-bar .rating-label span {
  width: 1.5rem;
}

.comments-info .comments-overview .rating-stats .bar-container {
  width: 30rem;
  height: 1rem;
  border-radius: 5rem;
  overflow: hidden;
  background-color: var(--color-secondary-light);
}

.comments-info .comments-overview .rating-stats .bar-container .bar-fill {
  background-color: var(--color-secondary);
  width: var(--bar-width, 0%);
  height: 100%;
}

.comments-info .comments {
  width: 100%;
  align-items: flex-start;
  gap: 4rem;
}

.comments-info .comments hr {
  opacity: 0.6;
}

.comments-info .comments .comment {
  width: 100%;
  gap: 1rem;
}

.comments-info .comments .comment .images {
  height: 10rem;
  gap: 2rem;
  object-fit: contain;
  margin: 1rem 0;
}

.comments-info .comments .comment .images .comment-image {
  height: 100%;
  border-radius: 1.5rem;
}

.comments-info .comments .comment .text {
  white-space: break-line;
}

.comments-info .comments .comment .comment-divider {
  height: 10rem;
  height: -webkit-fill-available;
  margin: 0 1rem 0 5rem;
}

.comments-info .comments .comment .comment-info {
  width: 20rem;
  flex-shrink: 0;
}

.comments-info .comments .comment .comment-main {
  gap: 2rem;
}

.comments-info .comments .comment:last-of-type + hr {
  display: none;
}

.comments-info .comments .comment .comment-info i {
  font-size: 3.2rem;
  color: var(--color-secondary);
}

.comments-info .comments .comment .date,
.comments-info .comments .comment .role-badge {
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  width: fit-content;
  background-color: var(--color-secondary-lighter);
  font-size: 1.5rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.comments-info .comments .comment .rating-box {
  gap: 3rem;
  margin-bottom: 1rem;
}

.comments-info .comments .comment .verified-badge {
  font-weight: 600;
  font-size: 1.8rem;
  gap: 0.7rem;
}

.comments-info .comments .comment .verified-badge i {
  color: var(--color-success);
}

.comment .comment-main .comment-actions {
  margin-top: 1.5rem;
  gap: 3rem;
}

.comment .comment-main .comment-reactions a {
  cursor: pointer;
}

.comment.reply {
  margin-left: 8rem;
}

.comments-info .comments .comment .comment-info {
  gap: 0.5rem;
}

.comments-info .comments .comment.reply .comment-info i {
  font-size: 2.8rem;
}

.no-comments-section {
  align-items: center;
}

.no-comments-section .message {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.15rem;
}

.no-comments-section .message i {
  font-size: 5rem;
  color: var(--color-secondary);
}

/* --- Responsive design --- */
@media (max-width: 1200px) {
  .title {
    font-size: 3rem;
  }

  .page-wrapper {
    padding: 8rem;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 8rem 5rem;
  }

  .details-info,
  .additional-info,
  .comments-info {
    padding: 1.5rem 3rem;
  }

  .main,
  .hero-info {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    height: auto;
  }

  .title {
    font-size: 3.5rem;
  }

  .main {
    gap: 15rem;
    margin-bottom: 10rem;
  }

  .product-main-info,
  .order-info,
  .slider {
    width: 90%;
  }

  .order-btns {
    justify-content: flex-end;
  }

  .product-main-info p {
    font-size: 2.2rem;
  }

  .order-info {
    font-size: 2.1rem;
  }

  .price-text {
    font-size: 2.3rem;
  }

  .btn.like {
    font-size: 1.6rem;
  }

  .comments-info .comments-overview {
    flex-direction: column;
    gap: 4rem;
  }

  .comments-info .comments .comment {
    gap: 3rem;
  }

  .comments-info .comments .comment.reply {
    margin-left: 5rem;
  }
}
