/* ---------- Product detail (ref layout) ---------- */
.product-page {
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  /* background: #f3f4f6; */
  box-sizing: border-box;
}
.product-page > .container {
  width: var(--content-col);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  grid-template-areas: "gallery info";
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}
.product-gallery {
  grid-area: gallery;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.product-info {
  grid-area: info;
  min-width: 0;
}
.product-short-description {
  padding: 20px 0px;
}
.product-gallery-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.product-gallery-stage .product-cover-wrap {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  order: 1;
}
.product-cover-wrap {
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 320px;
  box-sizing: border-box;
}
.product-cover-wrap.is-showing-video {
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  background: transparent;
}
.product-cover-wrap .product-mark {
  width: min(280px, 88%);
}
.product-thumbs {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  order: 2;
  width: 100%;
  gap: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.product-thumb {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    0 1px 4px rgba(28, 25, 23, 0.06),
    inset 0 0 0 2px transparent;
  transition:
    box-shadow 0.2s ease;
}
.product-thumb:hover {
  box-shadow:
    0 1px 4px rgba(28, 25, 23, 0.06),
    inset 0 0 0 2px #c5c0b8;
}
.product-thumb.is-active {
  box-shadow:
    0 1px 4px rgba(28, 25, 23, 0.06),
    inset 0 0 0 2px #1c1917;
}
.product-thumb-img,
.product-thumb img,
.product-thumb video.product-thumb-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
}
.product-thumb--video {
  position: relative;
}
.product-thumb-video-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: #1c1917;
}
.product-thumb-video-preview {
  pointer-events: none;
  background: #1c1917;
}
.product-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 9, 0.38);
  color: #fff;
  pointer-events: none;
}
.product-thumb--video:hover .product-thumb-play,
.product-thumb--video.is-active .product-thumb-play {
  background: rgba(12, 10, 9, 0.28);
}
.product-thumb-play svg {
  display: block;
  margin-left: 2px;
}
/* Author card below product info card (right column) */
.product-author-card {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 6px rgba(28, 25, 23, 0.05);
  box-sizing: border-box;
}
.author-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.author-card-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef4ff;
  color: #1e5bb8;
  overflow: hidden;
}
.author-card-avatar.has-photo {
  background: #e8e4de;
}
.author-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card-text {
  flex: 1 1 auto;
  min-width: 0;
}
.author-card-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #78716c;
  margin-top: 2px;
}
.author-card-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1e5bb8;
  font-family: var(--font-heading);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.author-card-name:hover {
  text-decoration: underline;
}
.author-card-bio {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #57534e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-card-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  padding: 7px 18px;
  border: 1px solid #d6d0c8;
  border-radius: 8px;
  background: #fff;
  color: #1c1917;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.author-card-follow:hover {
  border-color: #1e5bb8;
  color: #1e5bb8;
  background: #f8fafc;
}

/* Amazon Book Review promo below author card */
.amazon-book-review {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-top: 18px;
  padding: 8px 4px;
  box-sizing: border-box;
}
.amazon-book-review__icon {
  flex: 0 0 auto;
  line-height: 0;
  margin-top: 2px;
}
.amazon-book-review__icon svg {
  display: block;
  width: 64px;
  height: 53px;
}
.amazon-book-review__body {
  flex: 1 1 auto;
  min-width: 0;
}
.amazon-book-review__title {
  display: block;
  margin: 0 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #c45500;
}
.amazon-book-review__desc {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f1111;
}
.amazon-book-review__link {
  color: #0066c0;
  text-decoration: none;
  white-space: nowrap;
}
.amazon-book-review__link:hover {
  color: #c45500;
  text-decoration: underline;
}

.product-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #57534e;
}
.product-meta-line + .product-meta-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ebe3;
}
.product-meta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 8px;
  background: #eef4ff;
  color: #1e5bb8;
}
.product-meta-line .product-link {
  color: #1e5bb8;
  text-decoration: none;
  font-weight: 600;
}
.product-meta-line .product-link:hover {
  text-decoration: underline;
}
.product-mark {
  width: min(340px, 88%);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 24px;
}
.product-mark::before {
  display: none;
}
.product-mark strong {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}
.product-mark small {
  display: block;
  margin-top: 10px;
  opacity: 0.85;
}
.product-info-card {
  background: #fff;
  /* border: 1px solid #e8e4de; */
  /* border-radius: 14px; */
  padding: 28px 32px 24px;
  /* box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06); */
  box-sizing: border-box;
}
.product-info h1 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #1c1917;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-info .product-short-desc {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: #57534e;
}
.product-info .product-short-desc p {
  margin: 0 0 0.6em;
}
.product-info .product-short-desc p:last-child {
  margin-bottom: 0;
}
.product-info .product-author {
  margin: 0 0 10px;
  color: #030407;
  font-size: 15px;
  line-height: 1.4;
}
.product-info .product-author a {
  color: inherit;
  text-decoration: none;
}
.product-info .product-author a:hover {
  text-decoration: underline;
}
/* Rating below author name */
.product-info .product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.product-info .product-rating .stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
}
.product-info .product-rating .star {
  --star-fill: 100%;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  line-height: 1;
}
.product-info .product-rating .star-bg,
.product-info .product-rating .star-fg {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 1em;
}
.product-info .product-rating .star-bg {
  color: rgba(0, 0, 0, 0.14);
}
.product-info .product-rating .star-fg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--star-fill);
  color: var(--color-star);
}
.product-info .product-rating-value {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.product-info .product-rating-value em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.85;
}
.product-info .product-review-count {
  color: #1e5bb8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.product-info .product-review-count:hover {
  text-decoration: underline;
}
.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.product-info .price-lg {
  color: #872C2C;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
/* Sale price (ins) */
.product-info .price-lg ins {
  text-decoration: none;
  color: #872C2C;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
/* Old price (del) */
.product-info .price-lg del {
  color: #a8a29e;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 500;
  text-decoration: line-through;
}
.product-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 13px;
  color: #78716c;
}
.product-trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-trust-badges__icon {
  display: inline-flex;
  color: #1e5bb8;
}
.product-trust-badges__label {
  color: #78716c;
}
.product-trust-badges__value {
  color: #78716c;
}
.product-stock-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 20px;
  padding: 2px 0 2px 12px;
  border-left: 3px solid #c62828;
  box-sizing: border-box;
}
.product-stock-note__status {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2e7d32;
}
.product-stock-note.is-out-of-stock .product-stock-note__status {
  color: #c62828;
}
.product-stock-note.is-on-backorder .product-stock-note__status {
  color: #b45309;
}
.product-stock-note__ships {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1c1917;
}
.product-info .stock {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.product-info .stock.in-stock {
  color: #7a9a3a;
  font-size: 15px;
  margin: 0 0 18px;
}
.product-info .tagline {
  font-size: 15px;
  color: var(--color-text);
  margin-top: 20px;
  line-height: 1.75;
}
/* Collapsible content — show ~10 lines, then fade + toggle */
.product-info .tagline .tagline-content {
  position: relative;
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
/* Individual tagline sections */
.product-info .tagline .tagline-section {
  margin-bottom: 16px;
}
.product-info .tagline .tagline-section:last-child {
  margin-bottom: 0;
}
.product-info .tagline .tagline-heading {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #12100e;
  margin: 0 0 8px;
  line-height: 1.3;
}
.product-info .tagline .tagline-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}
.product-info .tagline .tagline-body p,
.product-info .tagline .tagline-body li {
  font-size: 1rem;
}
.product-info .tagline .tagline-body p {
  margin: 0 0 8px;
}
.product-info .tagline .tagline-body p:last-child {
  margin-bottom: 0;
}
/* Fade-out overlay at the bottom when collapsed */
.product-info .tagline .tagline-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-white) 85%);
  pointer-events: none;
}
.product-info .tagline.is-expanded .tagline-content {
  max-height: none;
  overflow: visible;
}
.product-info .tagline.is-expanded .tagline-content::after {
  display: none;
}
.product-info .tagline .tagline-toggle {
  display: none;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  align-items: center;
  gap: 4px;
}
.product-info .tagline .tagline-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 0.3s ease;
}
.product-info .tagline.is-expanded .tagline-toggle::after {
  transform: rotate(180deg);
}
.product-info .tagline .tagline-toggle:hover {
  color: var(--color-blue-deep);
  text-decoration: underline;
}
.product-info .tagline .tagline-toggle.is-visible {
  display: inline-flex;
}
/* PC: expand tagline by default (no clamp / no Read more). */
@media (min-width: 768px) {
  .product-info .tagline .tagline-content {
    max-height: none;
    overflow: visible;
  }
  .product-info .tagline .tagline-content::after {
    display: none;
  }
  .product-info .tagline .tagline-toggle {
    display: none !important;
  }
}
/* Three detail sections (Key Highlights / Who This Book Is For / Take Away) */
.product-info .tagline .detail-section {
  margin-bottom: 18px;
}
.product-info .tagline .detail-section:last-child {
  margin-bottom: 14px;
}
.product-info .tagline .detail-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  line-height: 1.3;
}
.product-info .tagline .detail-section p {
  margin: 0 0 0.8em;
}
.product-info .tagline .detail-section ul,
.product-info .tagline .detail-section ol {
  margin: 0 0 0.8em;
  padding-left: 1.2em;
}
.product-info .tagline .detail-section li {
  margin: 0 0 0.4em;
}
.product-info .tagline p {
  margin: 0.9em 0 0.9em;
}
.product-info .tagline p:last-of-type {
  margin-bottom: 0;
}

.buy-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  width: 100%;
}
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #d6d0c8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.qty-box button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #1c1917;
  cursor: pointer;
  font-size: 18px;
}
.qty-box input,
#qty {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  border: 0;
  border-left: 1px solid #ede8e1;
  border-right: 1px solid #ede8e1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1c1917;
  background: transparent;
}
.qty-box input[type="number"]::-webkit-inner-spin-button,
.qty-box input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-box input[type="number"] {
  -moz-appearance: textfield;
}
.buy-row .btn-solid.add-btn,
.product-info .btn-solid.add-btn,
.buy-row .buy-now-btn,
.product-info .buy-now-btn,
.buy-row .btn-outline.add-btn,
.product-info .btn-outline.add-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ff6b4a;
  border-radius: 10px;
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.buy-row .btn-solid.add-btn::before,
.product-info .btn-solid.add-btn::before,
.buy-row .buy-now-btn::before,
.product-info .buy-now-btn::before,
.buy-row .btn-outline.add-btn::before,
.product-info .btn-outline.add-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff6b4a;
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.buy-row .btn-solid.add-btn:hover,
.product-info .btn-solid.add-btn:hover,
.buy-row .buy-now-btn:hover,
.product-info .buy-now-btn:hover,
.buy-row .btn-outline.add-btn:hover,
.product-info .btn-outline.add-btn:hover {
  background: #fff;
  border-color: #ff6b4a;
  color: #ff6b4a;
}
.buy-row .btn-solid.add-btn:hover::before,
.product-info .btn-solid.add-btn:hover::before,
.buy-row .buy-now-btn:hover::before,
.product-info .buy-now-btn:hover::before,
.buy-row .btn-outline.add-btn:hover::before,
.product-info .btn-outline.add-btn:hover::before {
  transform: scaleX(0);
}
.buy-row .btn-solid.add-btn svg,
.product-info .btn-solid.add-btn svg,
.buy-row .buy-now-btn svg,
.product-info .buy-now-btn svg,
.buy-row .btn-outline.add-btn svg,
.product-info .btn-outline.add-btn svg {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Hide WooCommerce “View cart” link after AJAX add-to-cart */
.buy-row .added_to_cart,
.product-info .added_to_cart,
.product-page a.added_to_cart {
  display: none !important;
}

/* Stripe Link pay button removed — buy only */
.pay-btn {
  display: none !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumb .breadcrumb-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a:hover {
  color: var(--color-secondary);
}
.breadcrumb span {
  margin: 0 8px;
}
.breadcrumb span:last-child {
  color: #1e5bb8;
  font-weight: 600;
}

.product-tabs {
  margin: 12px 0 20px;
  width: 100%;
  padding: 8px 28px 24px;
  background: #fff;
  /* border: 1px solid #e8e4de; */
  /* border-radius: 14px; */
  /* box-shadow: 0 1px 6px rgba(28, 25, 23, 0.04); */
  box-sizing: border-box;
}
.product-tabs.product-description {
  margin-top: 0;
}

.product-support-faq {
  margin: 16px 0 0;
  width: 100%;
  padding: 8px 4px 4px;
  box-sizing: border-box;
}
.product-support-faq__item {
  border: 0;
  border-bottom: 1px solid #ebe7e1;
  padding: 4px 0 12px;
  margin: 0 0 8px;
}
.product-support-faq__item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.product-support-faq__question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1c1917;
}
.product-support-faq__question::-webkit-details-marker {
  display: none;
}
.product-support-faq__chevron {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid #d6d0c8;
  color: #57534e;
  background: #fafaf8;
  transition: transform 0.2s ease;
}
.product-support-faq__item:not([open]) .product-support-faq__chevron {
  transform: rotate(180deg);
}
.product-support-faq__answer {
  padding: 8px 0 4px 32px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #57534e;
}
.product-support-faq__answer p {
  margin: 0;
}
.product-support-faq__answer a {
  color: #1e5bb8;
  text-decoration: underline;
}
.product-support-faq__answer a:hover {
  color: #164a96;
}
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 0;
  margin-bottom: 24px;
}
.tab-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #57534e;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.tab-nav button + button {
  margin-left: 0;
}
.tab-nav__icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.tab-nav__label {
  line-height: 1.2;
}
.tab-nav button.is-active {
  background: #1e5bb8;
  border-color: #1e5bb8;
  color: #fff;
  position: relative;
  z-index: 1;
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

/* Who It's For / Book Details — underline tab style (fig.1) */
.product-meta-tabs {
  margin: 28px 0 50px;
  width: 100%;
  padding: 8px 28px 24px;
  background: #fff;
  box-sizing: border-box;
}
.meta-tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 36px;
  border-bottom: 1px solid #e5e5e5;
  margin: 0 0 22px;
}
.meta-tab-nav__btn {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1.3;
}
.meta-tab-nav__btn:hover {
  color: #57534e;
}
.meta-tab-nav__btn.is-active {
  color: #111827;
}
.meta-tab-nav__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #111827;
}
.meta-tab-panel {
  display: none;
}
.meta-tab-panel.is-active {
  display: block;
}
.product-meta-tabs .book-details-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.product-meta-tabs .who-for-panel__body {
  color: #1c1917;
}
.product-meta-tabs .returns-panel__body a,
.product-meta-accordion .returns-panel__body a {
  color: #1e5bb8;
  text-decoration: underline;
}
.product-meta-tabs .returns-panel__body p,
.product-meta-accordion .returns-panel__body p {
  margin: 0 0 0.85em;
}
.product-meta-tabs .returns-panel__body p:last-child,
.product-meta-accordion .returns-panel__body p:last-child {
  margin-bottom: 0;
}

/* Mobile accordion hidden on desktop */
.product-meta-accordion {
  display: none;
}

.book-details-card {
  background: #fafaf8;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  padding: 24px 28px 8px;
  box-sizing: border-box;
}
.book-details-title {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0;
  text-transform: none;
}
.book-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 0;
}
.book-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ebe7e1;
}
.book-details-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  color: #78716c;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}
.book-details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef4ff;
  color: #1e5bb8;
}
.book-details-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.book-details-label-text {
  min-width: 0;
}
.book-details-value {
  flex: 1 1 auto;
  text-align: right;
  color: #1c1917;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}
.who-for-panel__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0;
  text-transform: none;
}
.who-for-panel__body {
  max-width: 920px;
}
.who-for-panel__body ul {
  margin: 0.6em 0 0;
  padding-left: 1.2em;
}
.who-for-panel__body li {
  margin: 0 0 0.45em;
}
@media (max-width: 720px) {
  .book-details-card {
    padding: 18px 16px 4px;
  }
  .book-details-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .book-details-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .book-details-row {
    padding: 12px 0;
  }
}
.desc-heading {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 22px;
  text-transform: none;
  letter-spacing: 0;
}
.desc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 28px;
}
.desc-gallery figure {
  margin: 0;
  background: var(--color-cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.desc-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-cream);
  aspect-ratio: 4 / 3;
}
.desc-body {
  /* max-width: 920px; */
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.85;
}
.desc-body p,
.desc-body li {
  font-size: 1rem;
}
.desc-body p {
  margin: 0 0 1.1em;
}
.desc-body strong {
  color: var(--color-secondary);
}
.desc-body ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.desc-body li {
  margin: 0 0 0.55em;
}
.desc-body .shop-media-text {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 28px 0;
  width: 100%;
  box-sizing: border-box;
}
.desc-body .shop-media-text--img-right {
  flex-direction: row-reverse;
}
.desc-body .shop-media-text__media {
  flex: 0 0 46%;
  max-width: 46%;
  min-width: 0;
}
.desc-body .shop-media-text__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
}
.desc-body .shop-media-text__media figure {
  margin: 0;
}
.desc-body .shop-media-text__content {
  flex: 1 1 auto;
  min-width: 0;
}
.desc-body .shop-media-text__content > :first-child {
  margin-top: 0;
}
.desc-body .shop-media-text__content > :last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .desc-body .shop-media-text,
  .desc-body .shop-media-text--img-right {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .desc-body .shop-media-text__media {
    flex: 0 0 auto;
    max-width: 100%;
  }
}
.tab-panel h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  text-transform: none;
}
/* Reviews section (below FAQ): smaller copy + stars */
.product-reviews {
  margin: 8px 0 60px;
  width: 100%;
  padding: 8px 4px 4px;
  box-sizing: border-box;
}
.product-reviews__title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #1c1917;
}
#tab-reviews,
.product-reviews {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text);
}
#tab-reviews .woocommerce-Reviews-title,
#tab-reviews .comment-reply-title,
#tab-reviews h2,
#tab-reviews h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
#tab-reviews #review_form_wrapper {
  margin: 0 0 28px;
  padding: 0;
}
#tab-reviews #review_form {
  background: #fff;
  border: 1px solid #d6d0c8;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
}
#tab-reviews #review_form .comment-reply-title {
  display: block;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid #ebe7e1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1917;
}
#tab-reviews #review_form .comment-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#tab-reviews #review_form .comment-notes,
#tab-reviews #review_form .logged-in-as {
  margin: 0;
}
#tab-reviews #review_form .comment-form-comment,
#tab-reviews #review_form .comment-form-rating,
#tab-reviews #review_form .shop-review-images-field,
#tab-reviews #review_form .comment-form-author,
#tab-reviews #review_form .form-submit {
  margin: 0;
}
#tab-reviews #review_form .comment-form-comment textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5e1db;
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  color: #1c1917;
}
#tab-reviews #review_form .comment-form-comment textarea:focus {
  outline: none;
  border-color: #c5c0b8;
  background: #fff;
}
#tab-reviews #review_form .comment-form-rating .stars {
  margin: 0;
  font-size: 1.15rem !important;
}
#tab-reviews #review_form p.stars a::before,
#tab-reviews #review_form .stars a::before {
  color: rgba(28, 25, 23, 0.28);
}
#tab-reviews #review_form p.stars:hover a::before,
#tab-reviews #review_form p.stars.selected a:not(.active)::before,
#tab-reviews #review_form p.stars.selected a.active::before {
  color: var(--color-star, #ffcc00);
}
#tab-reviews #review_form p.stars:hover a:hover ~ a::before,
#tab-reviews #review_form p.stars.selected a.active ~ a::before {
  color: rgba(28, 25, 23, 0.28);
}
#tab-reviews #review_form .shop-review-images-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
#tab-reviews #review_form .form-submit {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}
#tab-reviews #review_form .form-submit input[type="submit"],
#tab-reviews #review_form .form-submit .submit,
#tab-reviews #review_form .form-submit a.submit,
#tab-reviews #review_form .form-submit a.shop-review-submit-login {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #1e5bb8;
  border-radius: 8px;
  background: #1e5bb8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
#tab-reviews #review_form .form-submit input[type="submit"]:hover:not(:disabled),
#tab-reviews #review_form .form-submit .submit:hover:not(:disabled),
#tab-reviews #review_form .form-submit input[type="submit"]:focus-visible:not(:disabled),
#tab-reviews #review_form .form-submit .submit:focus-visible:not(:disabled),
#tab-reviews #review_form .form-submit a.submit:hover,
#tab-reviews #review_form .form-submit a.shop-review-submit-login:hover,
#tab-reviews #review_form .form-submit a.submit:focus-visible,
#tab-reviews #review_form .form-submit a.shop-review-submit-login:focus-visible {
  background: #164a96;
  border-color: #164a96;
  color: #fff;
}
#tab-reviews #review_form .form-submit input[type="submit"]:disabled,
#tab-reviews #review_form .form-submit .submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #1e5bb8;
  border-color: #1e5bb8;
  color: #fff;
}
#tab-reviews .shop-review-form--guest .comment-notes,
#tab-reviews .shop-review-form--guest .comment-form-cookies-consent {
  display: none !important;
}
#tab-reviews #comments {
  margin-top: 8px;
}
#tab-reviews .comment-form-comment > label:not(.screen-reader-text),
#tab-reviews .comment-form-rating > label:not(.screen-reader-text),
#tab-reviews .shop-review-images-field__title,
#tab-reviews .shop-review-images-hint {
  display: none !important;
}
#tab-reviews .description p,
#tab-reviews .comment-text p,
#tab-reviews .description,
#tab-reviews .comment-content,
#tab-reviews .woocommerce-review__author,
#tab-reviews .meta,
#tab-reviews .woocommerce-review__published-date,
#tab-reviews .comment-form,
#tab-reviews .comment-notes,
#tab-reviews label {
  font-size: 0.9rem !important;
  line-height: 1.65;
}
#tab-reviews .stars,
#tab-reviews .comment-form-rating .stars {
  font-size: 0.85rem !important;
  margin-bottom: 8px;
  gap: 2px;
}
/* Review list: same fractional ★ markup as homepage Reader Reviews */
#tab-reviews .shop-review-head__body > .stars,
#tab-reviews .shop-review-head__row .stars,
#tab-reviews .comment-text > .stars {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 3px;
  margin: 0;
  font-size: 1.05rem !important;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}
#tab-reviews .shop-review-head__body > .stars .star,
#tab-reviews .shop-review-head__row .stars .star,
#tab-reviews .comment-text > .stars .star {
  --star-fill: 100%;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  line-height: 1;
}
#tab-reviews .shop-review-head__body > .stars .star-bg,
#tab-reviews .shop-review-head__body > .stars .star-fg,
#tab-reviews .shop-review-head__row .stars .star-bg,
#tab-reviews .shop-review-head__row .stars .star-fg,
#tab-reviews .comment-text > .stars .star-bg,
#tab-reviews .comment-text > .stars .star-fg {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 1em;
}
#tab-reviews .shop-review-head__body > .stars .star-bg,
#tab-reviews .shop-review-head__row .stars .star-bg,
#tab-reviews .comment-text > .stars .star-bg {
  color: rgba(196, 165, 116, 0.22);
}
#tab-reviews .shop-review-head__body > .stars .star-fg,
#tab-reviews .shop-review-head__row .stars .star-fg,
#tab-reviews .comment-text > .stars .star-fg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--star-fill);
  color: var(--color-star, #c4a574);
}
/* Product review card header: avatar | name | stars, then date */
#tab-reviews .comment_container {
  display: block;
  margin: 0 0 14px;
}
#tab-reviews .comment-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  /* border-top: 1px solid #e8e4de; */
  border-bottom: 1px solid #e8e4de;
  padding: 14px 16px 16px;
  box-sizing: border-box;
}
#tab-reviews .shop-review-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
}
#tab-reviews .shop-review-head__body {
  min-width: 0;
  flex: 1 1 auto;
}
#tab-reviews .shop-review-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 4px;
}
#tab-reviews .shop-review-head__row .woocommerce-review__author {
  font-weight: 700;
  color: #1c1917;
  font-size: 0.95rem !important;
  line-height: 1.3;
}
#tab-reviews .shop-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  line-height: 1;
}
#tab-reviews .shop-review-verified__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111312;
  color: #fff;
}
#tab-reviews .shop-review-verified__icon svg {
  display: block;
}
#tab-reviews .shop-review-verified__text {
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  color: #3f3f46;
  white-space: nowrap;
}
#tab-reviews .shop-review-head__row .woocommerce-review__verified {
  font-size: 0.8rem;
  color: #78716c;
  font-style: normal;
}
#tab-reviews .shop-review-head .woocommerce-review__published-date {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem !important;
  line-height: 1.4;
  color: #78716c;
}
#tab-reviews .shop-review-head__body > .stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 1.05rem !important;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}
#tab-reviews .shop-review-avatar,
.woocommerce-Reviews .shop-review-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #1c1917;
  font-family: var(--font-heading, inherit);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  float: none;
}
#tab-reviews .shop-review-votes {
  position: static;
  align-self: flex-end;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  line-height: 1;
}
#tab-reviews .shop-review-votes__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 30px;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#tab-reviews .shop-review-votes__item:disabled {
  cursor: wait;
  opacity: 0.7;
}
#tab-reviews .shop-review-votes__item.is-loading {
  pointer-events: none;
}
#tab-reviews .shop-review-votes__item.is-active .shop-review-votes__icon {
  color: #1c1917;
}
#tab-reviews .shop-review-votes__icon {
  display: inline-flex;
  color: #78716c;
}
#tab-reviews .shop-review-votes__icon svg {
  display: block;
}
#tab-reviews .shop-review-votes__count {
  font-size: 0.9rem;
  font-weight: 500;
  color: #a8a29e;
  font-variant-numeric: tabular-nums;
}
#tab-reviews .shop-review-votes.has-voted .shop-review-votes__item.is-active .shop-review-votes__count {
  color: #78716c;
}
.tab-panel .review-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.product-hero-img {
  width: 100%;
  max-width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  display: block;
  border-radius: 8px;
}
.product-hero-img[hidden] {
  display: none !important;
}
.product-hero-video {
  /* Shrink-wrap the video frame — element box follows the video/poster
     aspect ratio, so there is no letterbox area to paint black */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 720px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
  object-position: center;
}
.product-hero-video[hidden] {
  display: none !important;
}

/* Reviews full width below + upsells grid */
.related {
  margin: 40px 0 60px;
  border-top: 0;
  width: 100%;
}

.related-grid .shop-card {
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background var(--transition);
}

.related-grid .shop-card:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  transform: translateY(-2px);
}

.related-grid .shop-card .cover {
  border-radius: 10px;
}

.review-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--color-secondary);
}
.review-form select,
.review-form textarea,
.review-form input {
  width: 100%;
  border: 1px solid var(--color-beige);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--color-white);
}
.shop-review-images-field {
  margin: 14px 0 0;
}
.shop-review-images-field__title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.shop-review-images-field .optional {
  font-weight: 400;
  color: #78716c;
}
.shop-review-images-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shop-review-images-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  height: 96px;
  margin: 0;
  border: 1.5px dashed #d6d0c8;
  border-radius: 10px;
  background: #fafaf9;
  color: #57534e;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  font-weight: 500;
}
.shop-review-images-trigger:hover,
.shop-review-images-trigger:focus-within {
  border-color: #0b3a82;
  background: #f5f8fc;
  color: #0b3a82;
}
.shop-review-images-trigger__icon {
  display: flex;
  line-height: 0;
}
.shop-review-images-trigger__text {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.shop-review-images-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px !important;
  color: #78716c;
  line-height: 1.4;
}
.shop-review-images-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.shop-review-images-previews[hidden] {
  display: none !important;
}
.shop-review-images-previews .preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e4de;
  background: #f5f5f4;
}
.shop-review-images-previews .preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-review-images-previews .preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.shop-review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.shop-review-image-link {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e4de;
  background: #f5f5f4;
}
.shop-review-image-link img,
.shop-review-images .shop-review-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  background: var(--color-white);
}

/* ---------- Product attributes bar ---------- */
.product-attributes-bar {
  margin-top: 20px;
  border-top: 1px solid #ede8e1;
  padding: 18px 0 4px;
  position: relative;
}
.attributes-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.attributes-scroll::-webkit-scrollbar {
  display: none;
}
.attributes-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 100%;
}
.attribute-item {
  flex: 0 0 170px;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 20px;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}
.attribute-item + .attribute-item {
  margin-left: 0;
}
.attr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef4ff;
  color: #1e5bb8;
  flex-shrink: 0;
}
.attr-icon svg {
  flex-shrink: 0;
}
.attr-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.attr-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.attr-value .attr-chevron {
  display: inline-block;
  font-size: 12px;
  color: var(--color-muted);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.attr-value.is-open .attr-chevron {
  transform: rotate(180deg);
}
/* Attribute item with dropdown expands below */
.attribute-item.has-dropdown {
  position: relative;
}
.attribute-item .attr-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 20;
  min-width: 180px;
  white-space: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}
.attribute-item.is-open .attr-dropdown {
  display: block;
}
/* Fade edge (right only) to indicate scrollability */
.product-attributes-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to left, var(--color-white), transparent);
}
/* Scroll arrow buttons */
.attr-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  color: var(--color-secondary);
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.attr-scroll-arrow:hover {
  background: var(--color-cream);
  border-color: var(--color-secondary);
}
.attr-scroll-arrow svg {
  width: 16px;
  height: 16px;
}
.attr-scroll-prev {
  left: 8px;
}
.attr-scroll-next {
  right: 8px;
}
.attr-scroll-arrow.is-hidden {
  display: none;
}

/* ---------- Product detail: responsive ---------- */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .product-page {
    padding: 24px 0 0;
  }
  .product-layout {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    grid-template-areas: "gallery info";
    gap: 20px;
  }
  .product-info-card {
    padding: 22px 24px 20px;
    background: #fff;
    /* border: 1px solid #e8e4de; */
    /* border-radius: 14px; */
    padding: 28px 32px 24px;
    /* box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06); */
    box-sizing: border-box;
  }
  .product-info h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  }
  .product-hero-img {
    width: min(300px, 100%);
    max-height: 400px;
    margin: 0;
    object-position: left center;
  }
  .product-hero-video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
    object-position: center;
  }
  .product-author-card {
    max-width: 100%;
    width: 100%;
  }
  .tab-panel .desc-body {
    max-width: 100%;
  }
  .desc-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .related {
    padding: 32px 0 48px;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .product-page {
    padding: 12px 0 0;
    overflow-x: hidden;
  }
  .product-page > .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "info";
    gap: 16px;
    padding-bottom: 24px;
    width: 100%;
    min-width: 0;
  }
  .product-gallery {
    min-height: 0;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  /* Mobile: same stacked gallery (main image above, thumbs in a row) */
  .product-gallery-stage {
    gap: 12px;
  }
  .product-gallery-stage .product-cover-wrap {
    width: 100%;
  }
  .product-cover-wrap {
    min-width: 0;
    min-height: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .product-thumbs {
    gap: 8px;
    padding-bottom: 4px;
    /* Hide scrollbar until the user is actively swiping */
    scrollbar-width: none;
  }
  .product-thumbs::-webkit-scrollbar {
    height: 0;
    display: none;
  }
  .product-thumbs.is-scrolling {
    scrollbar-width: thin;
  }
  .product-thumbs.is-scrolling::-webkit-scrollbar {
    display: block;
    height: 3px;
  }
  .product-thumbs.is-scrolling::-webkit-scrollbar-track {
    background: transparent;
  }
  .product-thumbs.is-scrolling::-webkit-scrollbar-thumb {
    background: #c5c0b8;
    border-radius: 2px;
  }
  .product-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
  .product-info-card {
    padding: 20px 18px 18px;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .product-trust-badges {
    gap: 10px 16px;
    font-size: 12px;
    margin-bottom: 18px;
  }
  .product-price-row {
    margin-bottom: 14px;
  }
  .buy-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .buy-row .btn-outline.add-btn,
  .buy-row .btn-solid.add-btn,
  .buy-row .buy-now-btn,
  .product-info .btn-outline.add-btn,
  .product-page .buy-row .btn-outline.ajax_add_to_cart,
  .product-page .buy-row .add-btn.ajax_add_to_cart,
  .product-page .buy-row .buy-now-btn {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
  .product-hero-img {
    width: 100%;
    max-width: 100%;
    max-height: min(70vh, 520px);
    object-fit: contain;
    object-position: left center;
    margin: 0;
  }
  .product-hero-video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(70vh, 520px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }
  .product-mark {
    width: min(100%, 88%);
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }
  .product-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }
  .product-info h1 {
    font-size: clamp(20px, 5vw, 26px);
    line-height: 1.25;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .product-info .product-short-desc {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px;
    overflow-wrap: break-word;
  }
  .product-info .price-lg {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }
  .product-info .price-lg ins {
    font-size: inherit;
  }
  .product-info .price-lg del {
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
  }
  .product-info .stock.in-stock {
    font-size: 14px;
    margin: 0 0 14px;
  }
  /* Author card - fix max-width overflow */
  .product-author-card {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .author-card-label {
    font-size: 11px;
  }
  .author-card-name {
    font-size: 15px;
  }
  .author-card-bio {
    font-size: 12px;
  }
  .author-card-follow {
    padding: 4px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .author-card-body {
    gap: 8px;
  }
  .buy-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 8px;
    width: 100%;
  }
  .buy-row .btn-solid.add-btn,
  .buy-row .btn-outline.add-btn,
  .buy-row .buy-now-btn,
  .product-page .buy-row .btn-outline.ajax_add_to_cart,
  .product-page .buy-row .add-btn.ajax_add_to_cart,
  .product-page .buy-row .buy-now-btn {
    width: 100%;
    padding: 12px 24px 10px;
    font-size: 14px;
    box-sizing: border-box;
  }
  .qty-box {
    width: 100%;
  }
  .qty-box button {
    width: 48px;
    height: 52px;
    flex-shrink: 0;
  }
  .qty-box input,
  #qty {
    flex: 1;
    height: 52px;
    min-width: 0;
  }
  .product-info .tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 14px;
    overflow-wrap: break-word;
  }
  .product-info .tagline .detail-section {
    margin-bottom: 14px;
  }
  .product-cat-line {
    margin-top: 10px;
    font-size: 13px;
    overflow-wrap: break-word;
  }
  .product-tags-line {
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: break-word;
  }
  /* Attributes bar */
  .product-attributes-bar {
    margin-top: 14px;
    padding: 12px 0;
    overflow: hidden;
  }
  .attribute-item {
    flex: 0 0 115px;
    width: 115px;
    padding: 4px 6px;
    gap: 4px;
  }
  .attr-icon {
    width: 26px;
    height: 26px;
  }
  .attr-icon svg {
    width: 16px;
    height: 16px;
  }
  .attr-label {
    font-size: 11px;
  }
  .attr-value {
    font-size: 12px;
  }
  .attr-scroll-arrow {
    width: 28px;
    height: 28px;
  }
  .attr-scroll-arrow svg {
    width: 14px;
    height: 14px;
  }
  /* Tabs — single-row scroll; avoid 3+1 wrap layout */
  .product-tabs {
    margin: 20px 0 16px;
    padding: 18px 16px;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .product-meta-tabs {
    margin: 4px 0 20px;
    padding: 4px 16px 18px;
  }
  .product-meta-tabs--desktop {
    display: none;
  }
  .product-meta-accordion {
    display: block;
    margin: 12px 0 16px;
    width: 100%;
    padding: 0 16px;
    background: #fff;
    box-sizing: border-box;
  }
  .product-meta-accordion__item {
    margin: 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  .product-meta-accordion__item + .product-meta-accordion__item {
    border-top: 0;
  }
  .product-meta-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
    line-height: 1.3;
  }
  .product-meta-accordion__summary::-webkit-details-marker {
    display: none;
  }
  .product-meta-accordion__label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .product-meta-accordion__chevron {
    display: inline-flex;
    flex-shrink: 0;
    color: #111827;
    transition: transform 0.2s ease;
  }
  .product-meta-accordion__item[open] .product-meta-accordion__chevron,
  .product-meta-accordion__item.is-open .product-meta-accordion__chevron {
    transform: rotate(180deg);
  }
  .product-meta-accordion__collapse {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }
  .product-meta-accordion__body {
    padding: 0 0 16px;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.28s ease,
      transform 0.35s ease;
  }
  .product-meta-accordion__item.is-open .product-meta-accordion__body,
  .product-meta-accordion__item[open].is-open .product-meta-accordion__body {
    opacity: 1;
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .product-meta-accordion__collapse,
    .product-meta-accordion__body,
    .product-meta-accordion__chevron {
      transition: none;
    }
  }
  .product-meta-accordion .book-details-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .product-meta-accordion .book-details-grid {
    grid-template-columns: 1fr;
  }
  .meta-tab-nav {
    gap: 0 24px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .meta-tab-nav::-webkit-scrollbar {
    display: none;
  }
  .meta-tab-nav__btn {
    flex: 0 0 auto;
    padding-bottom: 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .tab-nav {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-nav button {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .desc-body {
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
  }
  .desc-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 20px;
  }
  /* Related products */
  .related {
    padding: 24px 0 40px;
  }
  .related .section-head h2 {
    font-size: clamp(20px, 5vw, 26px);
  }
  .related-grid {
    gap: 14px;
  }
  /* Breadcrumb */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .breadcrumb span {
    margin: 0 4px;
  }
  .breadcrumb a {
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .product-cover-wrap {
    padding: 0;
    min-height: 0;
  }
  .product-hero-img {
    width: 100%;
    max-width: 100%;
    max-height: min(65vh, 440px);
    margin: 0;
    object-position: left center;
  }
  .product-hero-video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(65vh, 440px);
    margin: 0 auto;
    object-position: center;
  }
  .product-gallery {
    padding: 0;
  }
  .product-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }
  .product-author-card {
    padding: 12px 14px;
  }
  .author-card-follow {
    padding: 4px 12px;
    font-size: 11px;
  }
  .attribute-item {
    flex: 0 0 110px;
    width: 110px;
  }
  .tab-nav button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .product-info .price-lg {
    font-size: clamp(18px, 7vw, 24px);
  }
  .product-info .price-lg del {
    font-size: clamp(11px, 4vw, 14px);
  }
}

/* ---------- Sticky add-to-cart bar (product detail) ---------- */
.product-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #224795;
  color: #fff;
  box-shadow: 0 -4px 24px rgba(28, 25, 23, 0.18);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.22s ease,
    visibility 0.22s ease;
}
.product-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.product-sticky-bar__info {
  min-width: 0;
  flex: 1 1 auto;
}
.product-sticky-bar__title {
  margin: 0 0 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-sticky-bar__price {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.product-sticky-bar__price .woocommerce-Price-amount,
.product-sticky-bar__price bdi,
.product-sticky-bar__price .amount {
  color: #fff !important;
}
.product-sticky-bar__price del {
  opacity: 0.55;
  font-weight: 500;
  margin-right: 6px;
}
.product-sticky-bar__price ins {
  text-decoration: none;
}
.product-sticky-bar__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 2px;
  background: #fff !important;
  color: #1c1917 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-sticky-bar__btn:hover,
.product-sticky-bar__btn:focus-visible {
  background: #f5f5f4 !important;
  color: #1c1917 !important;
}
.product-sticky-bar__btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
body:has(.product-sticky-bar.is-visible) .product-page,
body:has(.product-sticky-bar.is-visible) main.product-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Mobile: floating jump-to-reviews button */
.product-reviews-jump {
  display: none;
}

@media (max-width: 767px) {
  .product-reviews-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 14px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #c8e86a;
    color: #111;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.18);
    text-decoration: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      bottom 0.2s ease;
  }
  .product-reviews-jump:hover,
  .product-reviews-jump:focus-visible {
    transform: scale(1.05);
    color: #111;
  }
  .product-reviews-jump__icon {
    display: inline-flex;
    line-height: 0;
  }
  .product-reviews-jump.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
  }
  body:has(.product-sticky-bar.is-visible) .product-reviews-jump {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile sticky bar — stacked: title, price, full-width CTA */
  .product-sticky-bar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    min-height: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #224795;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.22);
  }
  .product-sticky-bar__info {
    flex: 0 0 auto;
    width: 100%;
  }
  .product-sticky-bar__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-sticky-bar__price {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
  }
  .product-sticky-bar__btn {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px;
    padding: 12px 16px !important;
    border: 1px solid #1c1917 !important;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center !important;
    text-transform: uppercase;
  }
  body:has(.product-sticky-bar.is-visible) .product-page,
  body:has(.product-sticky-bar.is-visible) main.product-page {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
}
