.hdsf-product-page .product-main {
  padding: 153px 120px 120px;
  background: #fff;
}

.product-intro,
.product-content-grid,
.product-reviews,
.product-related {
  width: min(100%, var(--hdsf-max));
  margin: 0 auto;
}

.product-title-block {
  margin-bottom: 32px;
}

.product-title-block h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.product-submeta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--hdsf-muted);
  font-size: 16px;
}

.product-rating strong,
.product-rating {
  color: #111827;
}

.product-rating::first-letter {
  color: #facc15;
}

.product-rating em {
  color: var(--hdsf-muted);
  font-style: normal;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 340px;
}

.gallery-main,
.gallery-side > *,
.gallery-more {
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.gallery-main img,
.gallery-side img,
.gallery-more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-more {
  position: relative;
}

.gallery-more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
}

.gallery-more span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f9fafb;
  font-size: 32px;
  font-weight: 700;
}

.product-content-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.product-copy {
  color: var(--hdsf-muted);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.4;
}

.product-copy p {
  margin: 0 0 22px;
}

.product-accordions {
  margin-top: 40px;
  border-top: 1px solid var(--hdsf-border);
}

.product-accordions details {
  border-bottom: 1px solid var(--hdsf-border);
  padding: 24px 0;
}

.product-accordions summary {
  display: flex;
  justify-content: space-between;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.product-accordions summary::after {
  content: "+";
}

.product-accordions details[open] summary::after {
  content: "−";
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions details p {
  margin: 16px 0 0;
}

.product-booking-card {
  position: sticky;
  top: 115px;
  padding: 24px;
  border: 1px solid var(--hdsf-border);
  border-radius: 8px;
  background: #fff;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-card-head .badge {
  position: static;
}

.product-booking-card h2 {
  margin: 0 0 24px;
  color: #111827;
  font-size: 24px;
  line-height: 1.4;
}

.product-booking-price {
  margin-bottom: 24px;
}

.product-booking-price span {
  display: block;
  color: var(--hdsf-muted);
  font-size: 16px;
}

.product-booking-price strong {
  color: #111827;
  font-size: 32px;
  line-height: 1.4;
}

.product-booking-card ul {
  margin: 0 0 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--hdsf-border);
  color: var(--hdsf-muted);
  list-style: none;
}

.product-booking-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-booking-card li img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.product-booking-card li span {
  min-width: 0;
}

.product-booking-card .button {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 16px;
}

.booking-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #fff085;
  border-radius: 12px;
  background: #fefce8;
  color: #a65f00;
  font-size: 14px;
}

.booking-note img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.product-reviews {
  margin-top: 80px;
  width: min(100%, 996px);
}

.review-summary {
  display: grid;
  grid-template-columns: 229px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 200px;
}

.review-score strong {
  display: block;
  color: #111827;
  font-size: 38px;
  line-height: 1.4;
}

.review-score span {
  color: var(--hdsf-muted);
  font-size: 16px;
}

.rating-bars {
  display: grid;
  gap: 12px;
}

.rating-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: center;
  color: #111827;
  font-size: 16px;
}

.rating-row span,
.rating-row b {
  font-weight: 400;
}

.rating-row span {
  white-space: nowrap;
}

.rating-row em {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  font-style: normal;
}

.rating-row i {
  display: block;
  height: 100%;
  background: var(--hdsf-navy);
}

.review-controls {
  margin: 32px 0 64px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.review-controls input,
.review-controls button {
  height: 38px;
  border: 1px solid var(--hdsf-border);
  border-radius: 4px;
  background: #fff;
  color: var(--hdsf-muted);
  font: inherit;
}

.review-controls input {
  width: 300px;
  padding: 8px 16px;
}

.review-controls button {
  min-width: 160px;
  padding: 8px 16px;
  text-align: left;
}

.product-review-list {
  display: grid;
  gap: 40px;
}

.product-review {
  display: grid;
  grid-template-columns: 229px minmax(0, 1fr);
  gap: 0;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hdsf-border);
}

.review-person {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.review-person > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff6467;
  color: #111827;
  font-size: 16px;
}

.review-person strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.review-person small {
  color: var(--hdsf-muted);
  font-size: 14px;
}

.review-detail {
  color: var(--hdsf-muted);
}

.review-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.review-stars span {
  color: #facc15;
  letter-spacing: 0;
}

.review-stars time {
  color: var(--hdsf-muted);
  font-size: 14px;
}

.review-detail h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
}

.review-detail p {
  margin: 0;
  color: var(--hdsf-muted);
  font-size: 16px;
  line-height: 1.4;
}

.product-review .review-thumbs {
  margin: 24px 0 0;
}

.review-pagination {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.review-pagination span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--hdsf-muted);
  font-size: 16px;
}

.review-pagination .is-active {
  background: var(--hdsf-navy);
  color: #fff;
}

.product-related {
  margin-top: 80px;
}

.product-related > h2 {
  margin: 0 0 24px;
  color: #111827;
  font-size: 24px;
  text-align: center;
}

@media (max-width: 1100px) {
  .hdsf-product-page .product-main {
    padding-left: 40px;
    padding-right: 40px;
  }

  .product-content-grid {
    grid-template-columns: 1fr;
  }

  .product-booking-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .hdsf-product-page .product-main {
    padding: 88px 16px 120px;
  }

  .product-title-block {
    margin-bottom: 24px;
  }

  .product-title-block h1 {
    font-size: 18px;
  }

  .product-submeta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .product-gallery {
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-main {
    height: 260px;
  }

  .gallery-side {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-side > *:nth-child(4) {
    display: none;
  }

  .gallery-side > * {
    aspect-ratio: 1.78;
  }

  .gallery-more span {
    font-size: 16px;
  }

  .product-content-grid {
    margin-top: 24px;
    gap: 40px;
  }

  .product-booking-card {
    order: -1;
    padding: 24px;
  }

  .product-card-head {
    flex-wrap: wrap;
  }

  .product-card-head .product-rating {
    font-size: 14px;
  }

  .product-booking-card h2 {
    font-size: 18px;
  }

  .product-booking-price span,
  .product-booking-card li,
  .booking-note,
  .product-copy {
    font-size: 14px;
  }

  .product-booking-price strong {
    font-size: 18px;
  }

  .product-copy p {
    margin-bottom: 20px;
  }

  .product-accordions summary {
    font-size: 14px;
  }

  .product-reviews {
    margin-top: 64px;
  }

  .product-reviews h2 {
    font-size: 20px;
  }

  .review-summary,
  .product-review {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .review-score strong {
    font-size: 24px;
  }

  .rating-row {
    grid-template-columns: 45px minmax(0, 1fr) 24px;
    gap: 12px;
    font-size: 14px;
  }

  .review-controls {
    margin: 32px 0 40px;
    flex-direction: column;
    gap: 12px;
  }

  .review-controls input,
  .review-controls button {
    width: 100%;
  }

  .review-stars {
    align-items: flex-start;
  }

  .review-detail h3 {
    font-size: 16px;
  }

  .review-detail p,
  .review-person strong,
  .review-person small {
    font-size: 14px;
  }

  .product-related {
    margin-top: 64px;
  }
}
