.detail-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 36px 60px;
}

/* Reference-inspired item presentation; no third-party badges or claims. */
body { background: #faf8f6; }
.detail-page { color: #322c37; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }

.breadcrumbs {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 12px 0 28px 106px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(340px, 38%);
  gap: 24px;
  align-items: start;
}

.thumbs {
  display: grid;
  gap: 10px;
}

.thumbs button {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  background: #fff;
  padding: 0;
}

.thumbs button.active {
  border: 3px solid #222;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border-radius: 10px;
  background: #f6f5f4;
}

.gallery img {
  width: 100%;
  height: 590px;
  display: block;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
  color: var(--text-primary);
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow.left {
  left: 18px;
}

.gallery-arrow.right {
  right: 18px;
}

.purchase-panel {
  position: relative;
  min-width: 0;
  padding: 4px 0 0 6px;
}

.detail-digital-label {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.floating-heart {
  position: absolute;
  top: 18px;
  left: -66px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
  color: var(--text-primary);
  font-size: 27px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 18px;
}

.detail-price .price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.detail-price .old,
.detail-price .discount-label {
  font-size: 13px;
  line-height: 20.8px;
}

.purchase-panel h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.detail-shop-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.35;
}

.detail-shop-line strong {
  font-weight: 700;
}

.shop-stars {
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0;
}

.shop-reviews {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.protection,
.klarna {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f5f2;
  color: var(--text-secondary);
  font-size: 15px;
}

.buy-now,
.cart-now {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 2px solid #322833;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.buy-now {
  background: #fff;
  color: var(--text-primary);
}

.cart-now {
  background: #322833;
  color: #fff;
}

.collection {
  width: 100%;
  margin: 18px 0 26px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.detail-block {
  padding-top: 28px;
  border-top: 0;
  margin-top: 12px;
}

.store-info-block {
  padding-bottom: 22px;
}

.buy-now:disabled,
.cart-now:disabled {
  cursor: not-allowed;
  border-color: #aaa4a8;
  background: #f3efed;
  color: #827a81;
  opacity: .72;
}

.gallery.image-missing,
.thumbs button.image-missing {
  background: #f3efed;
}

.detail-block h2 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: 20px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 0;
}
.detail-heading::-webkit-details-marker { display: none; }
.detail-heading::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 6px 5px 18px; }
details[open] > .detail-heading::after { transform: rotate(225deg); margin-bottom: 0; }
.detail-heading:focus-visible, .learn-more:focus-visible { outline: 3px solid #426cf1; outline-offset: 4px; border-radius: 8px; }
.detail-feature-icon { width: 26px; height: 28px; flex: none; }

.detail-heading span {
  font-size: 24px;
  line-height: 1;
}

.highlight-title {
  margin: 20px 0 12px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

.highlight-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 34px;
  color: var(--text-primary);
  transform: scale(.65);
  transform-origin: top left;
}

.highlight-icon.designer::before {
  content: "";
  position: absolute;
  inset: 5px 4px 4px;
  border: 4px solid currentColor;
  border-radius: 2px;
}

.highlight-icon.designer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 4px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.highlight-icon.download::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 2px;
  width: 5px;
  height: 22px;
  background: #322833;
  border-radius: 2px;
}

.highlight-icon.download::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 17px;
  height: 17px;
  border-right: 5px solid #322833;
  border-bottom: 5px solid #322833;
  transform: rotate(45deg);
}

.highlight-icon.paperclip::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 14px;
  height: 29px;
  border: 4px solid #322833;
  border-left-width: 5px;
  border-radius: 12px;
}

.highlight-icon.paperclip::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 7px;
  height: 19px;
  border: 3px solid #322833;
  border-left: 0;
  border-radius: 0 9px 9px 0;
}

.highlight-icon.measure::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-left: 5px solid #322833;
  border-bottom: 5px solid #322833;
}

.highlight-icon.measure::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 2px;
  width: 11px;
  height: 11px;
  border-top: 5px solid #322833;
  border-right: 5px solid #322833;
}

.translated-detail {
  margin-top: 36px;
  overflow-wrap: anywhere;
}

.description-section { margin: 0 0 34px; }
.description-section + .description-section {
  padding-top: 12px;
}
.detail-block .description-section h3 {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}
.detail-block .description-section p {
  margin: 0 0 24px;
  color: #322c37;
  line-height: 1.65;
}
.chapter-decoration { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.05em; }
.translated-detail.is-collapsed .description-section:not(:first-child),
.translated-detail.is-collapsed .description-section:first-child p:not(:first-of-type) { display: none; }
.translated-detail.is-collapsed .description-section:first-child p:first-of-type { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.detail-price .is-sale, .detail-price .discount-label { color: #507b26; }
.description-section p:last-child { margin-bottom: 0; }
.highlight-list:empty { display: none; }

@media (min-width: 981px) {
  .gallery, .thumbs { position: sticky; top: 150px; }
  .thumbs { max-height: calc(100dvh - 166px); overflow-y: auto; }
}

.detail-more[hidden] {
  display: none;
}

.detail-more p:first-child {
  margin-top: 0;
}

.learn-more {
  height: 42px;
  margin: 12px 0 4px;
  padding: 0 18px;
  border: 2px solid #322833;
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.learn-more[hidden] {
  display: none;
}

.learn-more[aria-expanded="true"] {
  margin-top: 18px;
}

.detail-block p,
.detail-block h3,
.detail-block li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.detail-block h3 {
  margin: 18px 0 8px;
  color: var(--text-primary);
  font-weight: 700;
}

.detail-block ul {
  padding-left: 20px;
}

.seller-mini {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.seller-mini > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #f1d0b5;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.seller-mini strong {
  color: var(--text-primary);
  font-size: 17px;
}

.seller-mini p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.message-seller {
  width: 100%;
  height: 46px;
  border: 2px solid #322833;
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.reviews-section,
.recommend-section {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid #e5e5e5;
}

.reviews-section {
  border-top: 0;
}

.reviews-title {
  margin: 0 0 22px;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 700;
}

.review-overview {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 30px;
}

.review-average {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-average > span:first-child {
  color: var(--text-primary);
  font-size: 48px;
  line-height: 1;
}

.big-star {
  color: #ffb21a;
  font-size: 36px;
  line-height: 1;
}

.average-label {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.35;
}

.average-label span {
  color: var(--text-secondary);
}

.score-metrics {
  display: flex;
  gap: 44px;
  align-items: center;
}

.metric {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 4px solid #ffc13b;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 25px;
  font-weight: 700;
}

.metric p {
  margin: 0;
  color: var(--text-primary);
  font-size: 19px;
  line-height: 1.25;
}

.review-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 44px;
}

.review-tabs button {
  min-width: 126px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #f3efed;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.reviews-list {
  display: grid;
}

.reviews-empty {
  margin: 0;
  padding: 28px;
  border-radius: 16px;
  background: #f8f6f3;
  color: var(--text-secondary);
  font-size: 17px;
}

.review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ded8d3;
}

.review-item:last-child {
  border-bottom: 0;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.review-stars .star-row {
  color: #ffb21a;
  font-size: 18px;
}

.product-pill {
  padding: 4px 10px;
  border: 2px solid #8b817b;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.review-text {
  margin: 12px 0 20px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.seller-reply {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  max-width: 520px;
  margin-left: 24px;
}

.seller-avatar,
.reviewer-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.seller-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6f513f, #e5c7af);
}

.reply-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.reply-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.review-meta {
  display: flex;
  justify-content: end;
  gap: 12px;
  align-items: center;
  min-width: 220px;
  color: var(--text-primary);
  font-size: 16px;
}

.reviewer-avatar {
  width: 28px;
  height: 28px;
  background: #1f2937;
}

.reviewer-name {
  font-weight: 700;
}

.date-sep {
  color: #d0cac5;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.recommend-card {
  min-width: 0;
}

.recommend-card img {
  width: 100%;
  aspect-ratio: 1 / .82;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

.recommend-card h3 {
  display: -webkit-box;
  min-height: 38px;
  margin: 8px 0 4px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recommend-price {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .breadcrumbs { margin-left: 0; }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .thumbs {
    display: flex;
    order: 1;
    overflow-x: auto;
  }
  .thumbs button { flex: 0 0 64px; height: 64px; }

  .gallery {
    min-height: 420px;
  }

  .gallery img {
    height: 420px;
  }

  .floating-heart {
    position: static;
    margin-bottom: 12px;
  }

  .purchase-panel {
    position: static;
    padding-left: 0;
    order: 2;
  }

  .reviews-list,
  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-list {
    grid-template-columns: 1fr;
  }

  .review-overview,
  .score-metrics,
  .review-tabs {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .review-item {
    grid-template-columns: 1fr;
  }

  .review-meta {
    justify-content: start;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .detail-page { padding: 16px 16px 40px; }
  .breadcrumbs { font-size: 12px; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
  .detail-layout { gap: 16px; }
  .gallery { min-height: 0; }
  .gallery img { height: auto; aspect-ratio: 1; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 32px; }
  .purchase-panel h1 { line-height: 1.5; }
  .detail-block { padding-top: 24px; }
  .detail-block p { font-size: 15px; }
}
