/* Product details page — hero (gallery + summary), sectioned description
   with a sticky "On this page" sidebar, specifications table and related
   products. Uses the site's CSS variables and cut-corner shape. The TOC
   behaviour lives in frontend/partials/toc-script.blade.php. */

/* ================================================================
   Hero
   ================================================================ */
.pd-hero {
  position: relative;
  overflow: clip;
  padding-top: 130px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color), var(--background-color) 94%), var(--background-color));
}

.pd-hero-glow {
  position: absolute;
  z-index: 0;
  top: 40px;
  left: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 84%);
  filter: blur(110px);
  pointer-events: none;
}

.pd-hero .container {
  position: relative;
  z-index: 1;
}

.pd-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
}

.pd-breadcrumbs a {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.pd-breadcrumbs a:hover {
  color: var(--accent-color);
}

.pd-breadcrumbs i {
  font-size: 0.7rem;
}

.pd-breadcrumbs span {
  color: var(--heading-color);
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.pd-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
}

.pd-gallery-ring {
  position: absolute;
  z-index: 0;
  top: -18px;
  left: -18px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent-color), transparent 45%);
  animation: pd-spin 30s linear infinite;
}

@keyframes pd-spin {
  to { transform: rotate(360deg); }
}

.pd-gallery-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 75px 18px 75px 18px;
  background: var(--surface-color);
  box-shadow: 0 30px 60px color-mix(in srgb, var(--heading-color), transparent 86%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  cursor: zoom-in;
}

.pd-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.pd-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-gallery-main:hover .pd-gallery-slide.is-active img {
  transform: scale(1.06);
}

.pd-gallery-zoom {
  position: absolute;
  z-index: 2;
  right: 22px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--heading-color);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.14);
  pointer-events: none;
}

.pd-gallery-tag {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 30px;
  background: var(--heading-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.2);
  pointer-events: none;
}

.pd-gallery-tag i {
  color: var(--accent-color);
}

.pd-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pd-gallery-thumb {
  width: 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--surface-color);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--heading-color), transparent 90%);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.pd-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-color);
}

/* ---------- Summary ---------- */
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px dashed color-mix(in srgb, var(--accent-color), transparent 45%);
  border-radius: 30px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.pd-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--heading-color);
  color: #fff;
  font-size: 13px;
}

.pd-title {
  font-size: calc(3rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.pd-lead {
  margin-bottom: 26px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
}

.pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
}

.pd-price-value {
  font-family: var(--heading-font);
  font-size: calc(2.2rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

.pd-price-value small {
  display: block;
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  font-family: var(--default-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-price-regular {
  margin-left: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  font-size: 1rem;
  font-weight: 600;
}

.pd-price-note {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.82rem;
  font-weight: 600;
}

.pd-price-note i {
  color: var(--accent-color);
}

.pd-keyspecs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.pd-keyspec {
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 94%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.pd-keyspec dt {
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pd-keyspec dd {
  margin: 0;
  color: var(--heading-color);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 40px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pd-btn:hover {
  transform: translateY(-2px);
}

.pd-btn-primary {
  flex: 1 1 auto;
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-color), transparent 65%);
}

.pd-btn-primary:hover {
  background: var(--heading-color);
  color: #fff;
}

.pd-btn-primary i {
  transition: transform 0.3s ease;
}

.pd-btn-primary:hover i {
  transform: translateX(4px);
}

.pd-btn-ghost {
  border: 1.5px solid color-mix(in srgb, var(--heading-color), transparent 75%);
  color: var(--heading-color);
}

.pd-btn-ghost:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.pd-btn-whatsapp {
  width: 54px;
  padding: 0;
  background: #25d366;
  color: #fff;
  font-size: 22px;
}

.pd-btn-label {
  display: none;
  font-size: 1rem;
}

.pd-btn-whatsapp:hover {
  background: #1ebe5b;
  color: #fff;
}

.pd-btn-light {
  background: #fff;
  color: var(--heading-color);
}

.pd-btn-light:hover {
  background: var(--accent-color);
  color: #fff;
}

.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.pd-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading-color);
  font-size: 0.86rem;
  font-weight: 700;
}

.pd-trust i {
  color: var(--accent-color);
  font-size: 1.05rem;
}

/* ================================================================
   Details
   ================================================================ */
.pd-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 50px;
  align-items: start;
}

.pd-block-header {
  margin-bottom: 24px;
}

.pd-block-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-block-header h2 {
  font-size: calc(2.1rem * var(--type-display-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.pd-intro {
  margin-bottom: 26px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.pd-sections {
  display: grid;
  gap: 20px;
  margin-bottom: 60px;
}

.pd-section {
  position: relative;
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--heading-color), transparent 94%);
  scroll-margin-top: 110px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.pd-section:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--accent-color), transparent 86%);
}

.pd-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pd-section-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 40%));
  color: #fff;
  font-size: 21px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pd-section:hover .pd-section-icon {
  transform: rotate(-10deg) scale(1.06);
}

.pd-section-number {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--heading-font);
  font-size: calc(2.6rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.pd-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  padding-right: 60px;
}

.pd-section p {
  margin: 0 0 12px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.pd-section p:last-child {
  margin-bottom: 0;
}

/* Safety / warning sections read as a callout. */
.pd-section-warning {
  background: color-mix(in srgb, #f59e0b, var(--surface-color) 92%);
  border-color: color-mix(in srgb, #f59e0b, transparent 60%);
}

.pd-section-warning .pd-section-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pd-section-warning .pd-section-number {
  -webkit-text-stroke-color: color-mix(in srgb, #f59e0b, transparent 55%);
}

/* ---------- Specs ---------- */
.pd-specs {
  margin-bottom: 60px;
  scroll-margin-top: 110px;
}

.pd-specs-table {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  background: var(--surface-color);
}

.pd-specs-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 16px 24px;
  transition: background-color 0.25s ease;
}

.pd-specs-row:nth-child(odd) {
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 95%);
}

.pd-specs-row:hover {
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 88%);
}

.pd-specs-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 600;
  font-size: 0.92rem;
}

.pd-specs-label i {
  margin-top: 2px;
  color: var(--accent-color);
}

.pd-specs-value {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Grade specification table ---------- */
/* Lets the content column shrink on small screens, so a wide grade table
   scrolls inside its own box instead of widening the page. */
.pd-content {
  min-width: 0;
}

.pd-grade {
  margin-bottom: 60px;
  scroll-margin-top: 110px;
}

.pd-grade-scroll {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  background: var(--surface-color);
  -webkit-overflow-scrolling: touch;
}

.pd-grade-scroll:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.pd-grade-table {
  width: 100%;
  min-width: calc(170px + var(--pd-grade-count, 4) * 128px);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pd-grade-table th,
.pd-grade-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 91%);
}

.pd-grade-table thead th {
  border-top: 0;
  background: var(--heading-color);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 700;
  vertical-align: bottom;
}

.pd-grade-table tbody th[scope="row"] {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-weight: 600;
}

.pd-grade-table tbody td {
  color: var(--heading-color);
  font-weight: 600;
}

.pd-grade-table tbody tr:not(.pd-grade-group):not(.pd-grade-note):hover > * {
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 92%);
}

/* The parameter column stays visible while the grades scroll sideways. */
.pd-grade-table thead th:first-child,
.pd-grade-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
}

.pd-grade-table tbody th[scope="row"] {
  background: var(--surface-color);
}

.pd-grade-group th {
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 88%);
  color: var(--heading-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-grade-pin {
  position: sticky;
  left: 18px;
  display: inline-block;
  max-width: min(100%, 78vw);
}

.pd-grade-shared {
  text-align: center !important;
}

.pd-grade-note td {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500 !important;
}

.pd-grade-note i {
  margin-right: 4px;
  color: var(--accent-color);
  font-style: normal;
}

.pd-grade-hint {
  display: none;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .pd-grade-hint {
    display: block;
  }

  .pd-grade-table th,
  .pd-grade-table td {
    padding: 12px 14px;
  }

  .pd-grade-table {
    min-width: calc(150px + var(--pd-grade-count, 4) * 140px);
    font-size: 0.85rem;
  }
}

/* ---------- Videos ---------- */
.pd-videos {
  scroll-margin-top: 110px;
}

.pd-video-frame {
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.pd-video-frame video {
  display: block;
  width: 100%;
}

.pd-video-title {
  margin: 10px 0 0;
  color: var(--heading-color);
  font-weight: 700;
}

/* ---------- Aside ---------- */
.pd-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

.pd-aside-cta {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  background: linear-gradient(145deg, var(--heading-color), color-mix(in srgb, var(--heading-color), var(--accent-color) 30%));
  border-radius: 38px 9px 38px 9px;
  color: #fff;
}

.pd-aside-cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 30px rgb(255 255 255 / 0.03);
}

.pd-aside-cta > * {
  position: relative;
}

.pd-aside-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--accent-color);
  font-size: 22px;
}

.pd-aside-cta h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pd-aside-cta p {
  margin-bottom: 18px;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pd-aside-cta .pd-btn {
  width: 100%;
  min-height: 48px;
}

/* ================================================================
   Related
   ================================================================ */
.pd-related {
  background: linear-gradient(180deg, var(--background-color), color-mix(in srgb, var(--accent-color), var(--background-color) 94%));
}

.pd-related-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.pd-related-header h2 {
  font-size: calc(2.3rem * var(--type-display-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.pd-related-header .accent-highlight {
  color: var(--accent-color);
}

.pd-related-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border-radius: 40px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  color: var(--heading-color);
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pd-related-all span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  transition: transform 0.35s ease;
}

.pd-related-all:hover {
  background: var(--heading-color);
  color: #fff;
}

.pd-related-all:hover span {
  transform: rotate(45deg);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pd-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--heading-color), transparent 93%);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pd-related-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 26px 52px color-mix(in srgb, var(--accent-color), transparent 83%);
}

.pd-related-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 38px 9px 38px 9px;
}

.pd-related-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.pd-related-media-alt {
  opacity: 0;
}

.pd-related-card:hover .pd-related-media img {
  transform: scale(1.08);
}

.pd-related-card:hover .pd-related-media-alt {
  opacity: 1;
}

.pd-related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.pd-related-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pd-related-body h3 a {
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.pd-related-card:hover h3 a {
  color: var(--accent-color);
}

.pd-related-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.pd-related-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pd-related-price {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
}

.pd-related-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.pd-related-card:hover .pd-related-go {
  background: var(--accent-color);
  color: #fff;
  transform: translateX(4px);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1199px) {
  .pd-details-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .pd-hero {
    padding-top: 110px;
  }

  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-gallery {
    max-width: 560px;
  }

  .pd-title {
    font-size: 2.4rem;
  }

  .pd-details-grid {
    grid-template-columns: 1fr;
  }

  .pd-aside {
    position: static;
  }

  .pd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .pd-title {
    font-size: 1.9rem;
  }

  .pd-gallery-ring {
    display: none;
  }

  .pd-gallery-slide {
    border-radius: 50px 12px 50px 12px;
  overflow: hidden;
}

  .pd-gallery-thumb {
    width: 64px;
    height: 64px;
  }

  .pd-keyspecs {
    grid-template-columns: 1fr;
  }

  .pd-btn-primary,
  .pd-btn-ghost,
  .pd-btn-whatsapp {
    flex: 1 1 100%;
  }

  /* With its text label showing, use a deeper WhatsApp green so the
     white text meets WCAG AA contrast. */
  .pd-btn-whatsapp {
    width: auto;
    font-size: 20px;
    background: #188741;
  }

  .pd-btn-label {
    display: inline;
  }

  .pd-section {
    padding: 24px 20px;
  }

  .pd-section-number {
    display: none;
  }

  .pd-section h3 {
    padding-right: 0;
  }

  .pd-specs-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  .pd-block-header h2,
  .pd-related-header h2 {
    font-size: 1.7rem;
  }

  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-gallery-ring {
    animation: none;
  }

  .pd-gallery-slide,
  .pd-gallery-slide img,
  .pd-related-card,
  .pd-related-media img {
    transition: none;
  }
}

/* Customer reviews (approved product reviews, Admin → Google Merchant) */
.pd-reviews-count {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 1rem;
  font-weight: 600;
}

.pd-reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pd-review {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.pd-review-stars {
  margin-bottom: 10px;
  color: #f5a623;
}

.pd-review h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.pd-review p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.pd-review-meta {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.85rem;
  font-weight: 600;
}
