.mall-rich-detail-section {
  display: grid;
  gap: 18px;
}

.mall-rich-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 14px;
}

.mall-rich-lead > div,
.mall-variant-grid > div,
.mall-rich-gallery figure,
.mall-rich-image-stack figure {
  margin: 0;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.mall-rich-lead > div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.mall-rich-lead span,
.mall-variant-grid span {
  color: #5a6a65;
  font-size: 13px;
  font-weight: 800;
}

.mall-rich-lead h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.mall-rich-lead p {
  margin: 0;
  color: #5a6a65;
  line-height: 1.7;
}

.mall-rich-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.mall-rich-gallery figure {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 12px;
  background: #f8fbfc;
}

.mall-rich-gallery img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.mall-rich-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mall-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

.mall-variant-grid > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.mall-variant-grid > div.active {
  border-color: #0b6fb3;
  background: #f2f9ff;
}

.mall-variant-grid img {
  width: 100%;
  height: 116px;
  object-fit: contain;
}

.mall-variant-grid strong {
  font-size: 13px;
  line-height: 1.45;
}

.mall-rich-image-stack {
  display: grid;
  gap: 14px;
}

.mall-rich-image-stack figure {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background: #fff;
}

.mall-rich-image-stack img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .mall-rich-lead,
  .mall-rich-grid {
    grid-template-columns: 1fr;
  }
}

.clean-product-detail-hero {
  gap: 28px;
  padding: 22px;
  background: #fff;
}

.clean-product-detail-hero > *,
.clean-detail-section > *,
.clean-detail-summary,
.clean-detail-gallery {
  min-width: 0;
}

.clean-detail-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: linear-gradient(145deg, #fff 0%, #f2f8f5 100%);
}

.clean-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.clean-detail-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.clean-detail-thumb-row figure {
  display: grid;
  place-items: center;
  height: 86px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.clean-detail-thumb-row figure.active {
  border-color: #0f7b62;
  background: #f1fbf7;
}

.clean-detail-thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clean-detail-summary {
  gap: 18px;
  border: 0;
  padding: 8px 4px;
}

.clean-detail-summary .badge-row span {
  border: 0;
  background: #eef8f3;
  color: #0f7b62;
}

.clean-detail-summary h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.14;
}

.clean-service-strip span {
  min-height: 48px;
  color: #075f4c;
}

.clean-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clean-quick-specs div {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faf8;
}

.clean-quick-specs dd {
  overflow-wrap: anywhere;
}

.clean-detail-section {
  margin-top: 22px;
}

.clean-selling-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.clean-selling-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #f9fcfa;
}

.clean-selling-grid h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.clean-selling-grid p {
  margin: 0;
  color: #5a6a65;
  line-height: 1.75;
}

.clean-detail-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.clean-definition-list {
  display: grid;
  gap: 0;
}

.clean-definition-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #d9e6ef;
}

.clean-definition-list div:last-child {
  border-bottom: 0;
}

.clean-definition-list span {
  color: #5a6a65;
  line-height: 1.6;
}

.clean-definition-list strong {
  line-height: 1.6;
}

.official-spec-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #fff;
}

.official-spec-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  min-height: 54px;
  padding: 14px 18px;
  border-right: 1px solid #e2ebe7;
  border-bottom: 1px solid #e2ebe7;
}

.official-spec-table div:nth-child(2n) {
  border-right: 0;
}

.official-spec-table span {
  color: #5d6d68;
  line-height: 1.55;
}

.official-spec-table strong {
  color: #132820;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.clean-variant-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.clean-variant-row article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 110px;
  padding: 10px;
  border: 1px solid #d9e6ef;
  border-radius: 8px;
  background: #fff;
}

.clean-variant-row article.active {
  border-color: #0f7b62;
  background: #f1fbf7;
}

.clean-variant-row img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.clean-variant-row strong {
  font-size: 14px;
  line-height: 1.45;
}

.clean-product-graphics {
  overflow: hidden;
}

.clean-graphic-stack {
  display: grid;
  gap: 0;
}

.clean-graphic-stack figure {
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.clean-graphic-stack img {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.official-feature-flow {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #fff;
}

.official-feature-flow article {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 430px;
  border-bottom: 1px solid #e2ebe7;
}

.official-feature-flow article:last-child {
  border-bottom: 0;
}

.official-feature-flow article.reverse {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.official-feature-flow article.reverse figure {
  order: 2;
}

.official-feature-flow figure {
  display: grid;
  place-items: center;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.official-feature-flow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.official-feature-flow article > div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 76px);
  background: #f7faf8;
}

.official-feature-flow span {
  color: #0f7b62;
  font-weight: 900;
  letter-spacing: 0;
}

.official-feature-flow h3 {
  margin: 0;
  color: #132820;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
}

.official-feature-flow p {
  margin: 0;
  color: #4c5f59;
  font-size: 18px;
  line-height: 1.9;
}

.clean-product-graphics .clean-graphic-stack figure {
  box-shadow: none;
}


@media (max-width: 960px) {
  .clean-product-detail-hero,
  .clean-detail-two-column {
    grid-template-columns: 1fr;
  }

  .clean-selling-grid,
  .clean-variant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .clean-product-detail-hero {
    padding: 14px;
  }

  .clean-detail-image {
    min-height: 0;
  }

  .clean-detail-summary h1 {
    font-size: 28px;
  }

  .clean-detail-thumb-row {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .clean-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-service-strip span:nth-child(2n) {
    border-right: 0;
  }

  .clean-quick-specs,
  .clean-selling-grid,
  .clean-variant-row {
    grid-template-columns: 1fr;
  }

  .clean-definition-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .official-spec-table,
  .official-feature-flow article,
  .official-feature-flow article.reverse {
    grid-template-columns: 1fr;
  }

  .official-spec-table div {
    grid-template-columns: 1fr;
    border-right: 0;
  }

  .official-feature-flow article.reverse figure {
    order: 0;
  }

  .official-feature-flow article {
    min-height: 0;
  }

  .official-feature-flow figure {
    min-height: 280px;
  }

  .clean-graphic-stack img {
    max-height: none;
  }

  .clean-detail-section .section-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .clean-detail-section .section-title h2,
  .clean-detail-section .section-title p {
    margin: 0;
  }
}

/* Commercial detail polish */
.clean-product-detail-hero {
  border-color: #d7e3df;
  background: linear-gradient(135deg, #f8fbfc 0%, #fff 62%, #fff4ed 100%);
  box-shadow: 0 18px 42px rgba(18, 43, 36, 0.08);
}

.clean-detail-summary {
  position: sticky;
  top: 96px;
}

.clean-detail-image,
.clean-detail-thumb-row figure,
.clean-selling-grid article,
.clean-variant-row article,
.clean-graphic-stack figure {
  border-color: #d7e3df;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 43, 36, 0.05);
}

.clean-detail-summary .badge-row span,
.clean-service-strip span {
  background: #edf6f2;
  color: #126b5a;
}

.clean-detail-summary h1 {
  display: grid;
  gap: 4px;
  color: #132820;
}

.clean-detail-summary h1 span {
  min-width: 0;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.clean-detail-summary h1 small {
  color: #126b5a;
  font-size: 0.48em;
  line-height: 1.25;
}

.clean-selling-grid p,
.clean-definition-list span {
  color: #5d6d68;
}

@media (max-width: 960px) {
  .clean-detail-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .product-detail-hero.clean-product-detail-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .clean-detail-gallery,
  .clean-detail-summary,
  .detail-image.clean-detail-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .detail-image.clean-detail-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .clean-detail-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .clean-detail-summary > * {
    max-width: 100%;
    min-width: 0;
  }

  .clean-detail-summary h1 {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .detail-lead {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

/* Visual integration polish: keep rich detail media in the same surface system. */
.clean-product-detail-hero {
  border-color: rgba(218, 224, 221, 0.9);
  background: var(--commerce-surface, rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 30px rgba(43, 49, 48, 0.048);
}

.detail-image.clean-detail-image,
.clean-detail-image {
  position: relative;
  min-height: clamp(318px, 42vw, 540px);
  padding: clamp(18px, 4vw, 34px);
  overflow: hidden;
  border-color: var(--commerce-media-line, rgba(218, 224, 221, 0.86));
  background: var(--commerce-media-bg, linear-gradient(180deg, #fbfbf8 0%, #eef3f0 100%));
  box-shadow: var(--commerce-media-shadow, 0 14px 28px rgba(38, 47, 52, 0.07));
}

.detail-image.clean-detail-image::before,
.clean-detail-image::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(70% 18% at 50% 86%, rgba(31, 39, 43, 0.08) 0%, transparent 74%);
  content: "";
}

.detail-image.clean-detail-image img,
.clean-detail-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 22px rgba(24, 31, 35, 0.16));
  mix-blend-mode: multiply;
}

.clean-detail-thumb-row figure,
.mall-rich-gallery figure,
.mall-variant-grid > div,
.clean-variant-row article {
  border-color: var(--commerce-media-line, rgba(218, 224, 221, 0.86));
  background: var(--commerce-media-bg, linear-gradient(180deg, #fbfbf8 0%, #eef3f0 100%));
  box-shadow: 0 8px 18px rgba(43, 49, 48, 0.045);
}

.clean-detail-thumb-row figure.active,
.clean-variant-row article.active,
.mall-variant-grid > div.active {
  border-color: rgba(11, 79, 159, 0.54);
  background:
    radial-gradient(80% 62% at 50% 76%, rgba(11, 79, 159, 0.11) 0%, transparent 70%),
    linear-gradient(180deg, #fbfcfb 0%, #eef4f2 100%);
}

.clean-detail-thumb-row img,
.mall-rich-gallery img,
.mall-variant-grid img,
.clean-variant-row img {
  filter: drop-shadow(0 10px 12px rgba(24, 31, 35, 0.13));
  mix-blend-mode: multiply;
}

.official-feature-flow figure,
.clean-graphic-stack figure,
.mall-rich-image-stack figure {
  background:
    linear-gradient(180deg, #fbfbf8 0%, #f3f5f2 100%);
}

@media (max-width: 560px) {
  .detail-image.clean-detail-image,
  .clean-detail-image {
    min-height: 318px;
    height: auto;
    aspect-ratio: auto;
  }

  .clean-detail-thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }
}

@media (max-width: 620px) {
  .clean-detail-thumb-row {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .clean-detail-thumb-row::-webkit-scrollbar {
    display: none;
  }

  .clean-detail-thumb-row figure {
    flex: 0 0 74px;
    height: 74px;
    scroll-snap-align: start;
  }

  .clean-detail-thumb-row img {
    width: 100%;
    height: 64px;
  }
}
