.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-intro {
  position: relative;
  z-index: 2;
}

.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: 80px;
  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: "";
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23111827' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.product-accordions details[open] summary::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 8h12' stroke='%23111827' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.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;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-card-head .badge img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #4b5563;
}

.product-rating-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-weight: 600;
}

.product-rating-star img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.product-rating em {
  font-style: normal;
  color: #4b5563;
}

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

.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: 24px;
  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;
  color: var(--hdsf-white);
}

.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: 16px;
  line-height: 1.4;
  letter-spacing: 0.16px;
  width: 100%;
  box-sizing: border-box;
}

.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-star {
  color: #facc15;
}

.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 {
  height: 38px;
  border: 1px solid var(--hdsf-border);
  border-radius: 4px;
  background: #fff;
  color: var(--hdsf-muted);
  font: inherit;
}

.review-search-wrapper {
  position: relative;
  width: 300px;
  line-height: 0;
}

.review-search-wrapper input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  box-sizing: border-box;
}

.review-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hdsf-muted);
  pointer-events: none;
}

.review-right-controls {
  display: flex;
  gap: 12px;
}

.review-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.review-select-wrapper select {
  height: 38px;
  border: 1px solid var(--hdsf-border);
  border-radius: 4px;
  background: #fff;
  color: var(--hdsf-muted);
  font: inherit;
  padding: 0 36px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 130px;
}

.review-select-wrapper select:focus {
  outline: 2px solid var(--hdsf-navy);
  outline-offset: 1px;
}

.select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--hdsf-muted);
}

.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-search-wrapper,
  .review-controls input {
    width: 100%;
  }

  .review-right-controls {
    width: 100%;
  }

  .review-select-wrapper,
  .review-select-wrapper select {
    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;
  }
}

/* ── Sticky Booking Bar ───────────────────────────────────── */
.sticky-booking-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 120px;
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.sticky-bar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticky-bar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-bar-meta .badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sticky-bar-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #4b5563;
}

.sticky-rating-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-weight: 600;
}

.sticky-rating-star img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.sticky-bar-rating em {
  font-style: normal;
  color: #4b5563;
}

.sticky-bar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #0a0d09;
}

.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.sticky-bar-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.sticky-bar-price span {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.4;
}

.sticky-bar-price strong {
  font-size: 20px;
  font-weight: 600;
  color: #0a0d09;
  line-height: 1.4;
}

.sticky-bar-divider {
  width: 1px;
  align-self: stretch;
  background: #e5e7eb;
}

.sticky-bar-btn,
.sticky-bar-btn:visited,
.sticky-bar-btn:hover {
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff !important;
}

.sticky-bar-btn img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* ── Mobile: button-only bar ─────────────────────────────── */
@media (max-width: 768px) {
  .sticky-booking-bar {
    padding: 12px 16px;
    justify-content: center;
  }

  .sticky-bar-left,
  .sticky-bar-right .sticky-bar-price,
  .sticky-bar-divider {
    display: none;
  }

  .sticky-bar-right {
    width: 100%;
    gap: 0;
  }

  .sticky-bar-btn {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
  }
}

/* Push footer/content up so sticky bar doesn't cover it */
.hdsf-product-page .site-footer {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}


/* ── Gallery Lightbox ─────────────────────────────────────── */
.product-gallery [data-gallery-open],
.product-gallery img[data-gallery-open] {
  cursor: pointer;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.gallery-lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Wrap: prev | card | next */
.lightbox-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1300px;
  padding: 0 20px;
}

/* Prev / Next arrows — hidden */
.lightbox-prev,
.lightbox-next {
  display: none;
}

/* Card */
.lightbox-card {
  flex: 1;
  min-width: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Main image area */
.lightbox-stage {
  position: relative;
  height: 520px;
  flex-shrink: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* X close — hidden on desktop */
.lightbox-close {
  display: none;
}

/* Mobile-only header elements — hidden on desktop */
.lightbox-mobile-header,
.lightbox-mobile-sub {
  display: none;
}

/* Dots (mobile only) */
.lightbox-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
  flex-shrink: 0;
}

.lightbox-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
}

.lightbox-dot.is-active {
  background: #22264b;
}

/* Thumbnail strip */
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb {
  flex: 0 0 130px;
  height: 90px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  outline: none;
}

.lightbox-thumb.is-active {
  border-color: #fff;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info bar — hidden on desktop, shown on mobile only */
.lightbox-info {
  display: none;
}

.lightbox-info-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lightbox-info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-info-meta .badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lightbox-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #4b5563;
}

.lightbox-rating strong { color: #111827; }
.lightbox-rating em { font-style: normal; }

.lightbox-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.lightbox-info-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.lightbox-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.lightbox-price span {
  font-size: 13px;
  color: #4b5563;
}

.lightbox-price strong {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.lightbox-book-btn {
  color: #fff !important;
  font-size: 15px;
  padding: 10px 20px;
  white-space: nowrap;
}

.lightbox-book-btn img {
  width: 20px;
  height: 20px;
}

/* ── Mobile lightbox — same as desktop + dots ─────────────── */
@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 24px 16px 140px;
    align-items: center;
  }

  .lightbox-wrap {
    gap: 0;
    padding: 0;
    max-width: 100%;
    align-items: stretch;
  }

  .lightbox-stage {
    height: 260px;
  }

  .lightbox-dots {
    display: flex;
    padding: 12px 0 8px;
  }

  /* Thumbnail strip pinned to bottom of screen */
  .lightbox-thumbs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 2;
  }

  .lightbox-thumb {
    flex: 0 0 80px;
    height: 56px;
  }
}
