/* Product-route rules ported from the final effective d070557 source cascade. */

/* Xingfa long-form product experience. */
.xingfa-product-detail { background: #fff; }
.xingfa-product-hero {
  display: grid;
  grid-template-columns: minmax(300px, 42fr) minmax(360px, 58fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: 1440px;
  min-height: 680px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 100px) clamp(20px, 5vw, 76px);
  background: linear-gradient(135deg, #f8f9fa, #eef1f4);
}
.xingfa-product-hero__copy { display: grid; justify-items: start; gap: 20px; }
.product-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #6e7780; font-size: 13px; }
.product-breadcrumbs a { color: inherit; }
.xingfa-product-hero h1 { max-width: 680px; margin: 0; font-size: clamp(38px, 5.5vw, 72px); line-height: 1.02; }
.xingfa-product-hero__summary { max-width: 640px; margin: 0; color: #515c66; font-size: 17px; line-height: 1.75; }
.xingfa-product-hero__specs { display: grid; width: 100%; margin: 4px 0; }
.xingfa-product-hero__specs > div { display: grid; grid-template-columns: minmax(130px, .75fr) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #d7dce0; }
.xingfa-product-hero__specs dt { color: #6d7680; font-size: 13px; }
.xingfa-product-hero__specs dd { margin: 0; color: #202832; font-weight: 800; }
.xingfa-product-hero__media { display: grid; place-items: center; min-height: 520px; padding: clamp(18px, 3vw, 42px); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(25, 33, 42, .09); }
.xingfa-product-hero__media img { width: 100%; max-height: 620px; object-fit: contain; }
.product-media-placeholder { color: #68727b; }

.product-media-carousel { display: grid; min-width: 0; min-height: 0; place-items: stretch; align-content: start; gap: 14px; padding: clamp(12px, 2vw, 20px); }
.product-media-carousel:focus-visible { outline: 3px solid #b7894f; outline-offset: 4px; }
.product-media-carousel__viewport { position: relative; min-height: clamp(360px, 43vw, 570px); overflow: hidden; border: 1px solid #e4e6e8; border-radius: 9px; background: #f7f5f0; touch-action: pan-y pinch-zoom; user-select: none; }
.product-media-carousel__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(18px, 3vw, 38px); margin: 0; opacity: 0; pointer-events: none; transform: translateX(18px); transition: opacity 220ms ease, transform 300ms ease; }
.product-media-carousel__slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: translateX(0); }
.product-media-carousel__slide > img { width: 100%; height: 100%; max-height: none; object-fit: contain; -webkit-user-drag: none; }
.product-media-carousel__arrow { position: absolute; top: 50%; z-index: 4; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(31,37,40,.15); border-radius: 50%; color: #342a21; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(31,37,40,.12); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease, transform .2s ease; }
.product-media-carousel__arrow:hover { color: #fff; background: #8b6538; transform: translateY(-50%) scale(1.05); }
.product-media-carousel__arrow--prev { left: 14px; }
.product-media-carousel__arrow--next { right: 14px; }
.product-media-carousel__counter { position: absolute; right: 14px; bottom: 14px; z-index: 4; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(47,36,26,.78); font-size: 12px; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(7px); }
.product-media-carousel__type { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 6px 10px; border: 1px solid rgba(255,255,255,.52); border-radius: 999px; color: #fff; background: rgba(47,36,26,.78); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(7px); }
.product-media-carousel__thumbs { display: flex; max-width: 100%; gap: 10px; padding: 2px 2px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #b7894f #eee4d4; scrollbar-width: thin; touch-action: pan-x pan-y; }
.product-media-carousel__thumb { position: relative; display: grid; flex: 0 0 92px; width: 92px; height: 70px; padding: 5px; overflow: hidden; place-items: center; border: 2px solid transparent; border-radius: 7px; background: #f7f5f0; cursor: pointer; }
.product-media-carousel__thumb.is-active { border-color: #b7894f; box-shadow: 0 7px 20px rgba(76,53,28,.13); }
.product-media-carousel__thumb img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.product-media-carousel__thumb-play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: rgba(86,59,31,.88); transform: translate(-50%,-50%); }
.product-media-carousel__video { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #251d16; }
.product-media-carousel__video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; color: #fff; background: #251d16; cursor: pointer; }
.product-media-carousel__video-play img { width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .82; }
.product-media-carousel__video.has-no-poster .product-media-carousel__video-play img { visibility: hidden; }
.product-media-carousel__video-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,9,.1), rgba(20,14,9,.56)); }
.product-media-carousel__play-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(146,104,55,.92); box-shadow: 0 18px 40px rgba(0,0,0,.24); transform: translate(-50%,-50%); }
.product-media-carousel__video-label { position: absolute; right: 20px; bottom: 18px; left: 20px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.product-media-carousel__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.product-media-carousel__video-status { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 2; margin: 0; color: #fff; font-size: 12px; text-align: center; pointer-events: none; }
.product-media-carousel__video.is-playing .product-media-carousel__video-status { padding: 4px 8px; background: rgba(0,0,0,.52); }

.product-section-nav { position: sticky; top: 72px; z-index: 20; display: flex; justify-content: center; gap: clamp(14px, 4vw, 56px); padding: 17px 20px; overflow-x: auto; border-block: 1px solid #e4e6e8; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.product-section-nav a { color: #4d5760; font-size: 14px; font-weight: 800; white-space: nowrap; }
.product-section-nav a[aria-current] { color: #b51d23; }
.product-long-section { max-width: 1440px; margin: 0 auto; padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 76px); scroll-margin-top: 130px; }
.product-long-section--muted { max-width: none; padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1440px) / 2 + 76px)); background: #f6f7f8; }
.product-section-heading { max-width: 680px; margin-bottom: clamp(34px, 5vw, 62px); }
.product-section-heading h2 { margin: 0; font-size: clamp(34px, 4.5vw, 58px); }
.product-feature-list { display: grid; gap: clamp(42px, 7vw, 92px); }
.product-feature-row { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-feature-row:nth-child(even) .product-feature-row__media { order: 2; }
.product-feature-row__media { min-height: 360px; padding: 20px; border-radius: 8px; background: #f3f4f5; }
.product-feature-row__media img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; }
.product-feature-row__copy > span { color: #b51d23; font-weight: 800; }
.product-feature-row__copy h3 { margin: 10px 0 14px; font-size: clamp(26px, 3vw, 40px); }
.product-feature-row__copy p { color: #5c6670; font-size: 17px; line-height: 1.75; }
.product-feature-row--text { grid-template-columns: 1fr; }

.product-spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-spec-group { min-width: 0; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid #dfe3e6; }
.product-spec-group h3 { margin: 0 0 20px; font-size: 24px; }
.product-spec-group dl { margin: 0; }
.product-spec-group dl > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 13px 0; border-top: 1px solid #e5e8ea; }
.product-spec-group dt { color: #69737c; overflow-wrap: anywhere; }
.product-spec-group dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.product-application-grid, .product-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-application-card { overflow: hidden; border: 1px solid #e1e4e6; background: #fff; }
.product-application-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-application-card > div { padding: 26px; }
.product-application-card h3 { margin: 0 0 10px; font-size: 24px; }
.product-application-card p { margin: 0; color: #5f6972; line-height: 1.7; }
.product-empty-note { padding: 26px; border: 1px dashed #cbd1d5; color: #66717a; background: #fff; }
.product-detail-gallery { display: grid; gap: 18px; }
.product-detail-gallery__main { display: grid; place-items: center; min-height: 520px; padding: 30px; background: #fff; }
.product-detail-gallery__main img { width: 100%; max-height: 720px; object-fit: contain; }
.product-detail-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.product-detail-gallery__thumbs button { width: 110px; height: 86px; padding: 5px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.product-detail-gallery__thumbs button[aria-pressed="true"] { border-color: #b51d23; }
.product-detail-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.floating-quote-button { position: fixed; right: 0; top: 46%; z-index: 50; padding: 16px 22px; border-radius: 6px 0 0 6px; background: #b51d23; color: #fff; font-weight: 850; box-shadow: 0 12px 34px rgba(92, 14, 18, .25); }

.product-sidebar .product-category-tree__row { position: relative; gap: 0; }
.product-sidebar .product-category-tree__row > a { padding: 11px 12px; background: #f7f7f5; border-left: 3px solid transparent; color: #303841; font-weight: 800; }
.product-sidebar .has-children > .product-category-tree__row > a { padding-right: 44px; }
.product-sidebar .product-category-tree__row > a[aria-current="page"] { border-left-color: #b51d23; color: #9d171d; background: #fff0ef; }
.product-sidebar .product-category-tree__row button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  align-self: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 1;
}
/* Only the glyph is visible; the transparent hit area sits over the full row. */
.product-sidebar .product-category-tree__row button::before { content: none; }
.product-sidebar .product-category-tree__row button::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
.product-sidebar .product-category-tree__row button[aria-expanded="true"]::after { content: '−'; }
.product-sidebar .product-category-tree__row button:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; }
.product-sidebar .product-category-tree__children[data-collapsed] { display: none; }
.product-sidebar__all { display: flex !important; flex-direction: row; justify-content: space-between; }

@media (max-width: 860px) {
  .xingfa-product-hero { grid-template-columns: 1fr; min-height: 0; }
  .xingfa-product-hero__media { min-height: 330px; }
  .product-feature-row { grid-template-columns: 1fr; }
  .product-feature-row:nth-child(even) .product-feature-row__media { order: initial; }
  .product-spec-groups, .product-application-grid, .product-related-grid { grid-template-columns: 1fr; }
  .floating-quote-button { top: auto; right: 12px; bottom: 12px; left: 12px; border-radius: 6px; text-align: center; }
	.product-media-carousel__viewport { min-height: clamp(300px, 76vw, 520px); }
}

@media (max-width: 520px) {
	.product-media-carousel { padding: 10px; }
	.product-media-carousel__viewport { min-height: 300px; }
	.product-media-carousel__slide { padding: 16px; }
	.product-media-carousel__arrow { width: 38px; height: 38px; }
	.product-media-carousel__arrow--prev { left: 8px; }
	.product-media-carousel__arrow--next { right: 8px; }
	.product-media-carousel__thumb { flex-basis: 78px; width: 78px; height: 60px; }
	.product-media-carousel__play-icon { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .xingfa-product-detail *, .catalog-product-card { scroll-behavior: auto !important; transition: none !important; }
}

.section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center !important;
}

.section-heading .eyebrow {
  display: inline-block;
  margin-right: auto;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(14, 161, 90, 0.24) !important;
  border-radius: 999px;
  background: rgba(14, 161, 90, 0.08) !important;
  color: var(--hm-green) !important;
  font-size: 12px;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  position: relative;
  padding-bottom: 18px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  background: none;
  color: var(--hm-ink);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  -webkit-text-fill-color: currentColor;
}

.section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--hm-green);
  content: "";
  transform: translateX(-50%);
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--hm-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.catalog-product-image,
.product-commerce-image {
  transform-origin: center bottom;
}

.motion-surface,
.catalog-product-card,
.detail-panel,
.related-product-card,
.product-sidebar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease, background-position 600ms ease;
}

.motion-surface::after,
.catalog-product-card::after,
.detail-panel::after,
.related-product-card::after,
.product-sidebar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.52) 48%, transparent 72%);
  content: "";
  opacity: 0;
  transform: translateX(-110%);
  transition: opacity 220ms ease, transform 700ms ease;
}

.motion-surface:hover,
.catalog-product-card:hover,
.detail-panel:hover,
.related-product-card:hover,
.product-sidebar:hover {
  border-color: rgba(181, 29, 35, 0.42);
  box-shadow: 0 22px 50px rgba(17, 24, 32, 0.13), 0 0 0 1px rgba(208, 154, 85, 0.1);
  transform: translateY(-4px);
}

.motion-surface:hover::after,
.catalog-product-card:hover::after,
.detail-panel:hover::after,
.related-product-card:hover::after,
.product-sidebar:hover::after {
  opacity: 1;
  transform: translateX(110%);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 5px 9px;
  background: #f3e8e7;
  color: #9d171d;
  font-size: 12px;
  font-weight: 800;
}

.product-price-row {
  display: grid;
  gap: 4px;
  margin: 16px 0 8px;
}

.product-price-row span,
.product-min-order {
  color: #7a8288;
  font-size: 13px;
  font-weight: 700;
}

.product-price-row strong {
  color: #b51d23;
  font-size: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hm-green);
  font-weight: 700;
}

.text-link:hover {
  color: var(--hm-green-deep);
}

.product-catalog-page {
  display: grid;
  grid-template-columns: minmax(180px, 214px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.product-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: white;
  border: 1px solid #e5e2dd;
}

.product-sidebar h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-sidebar a {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f7f7f5;
  border-left: 3px solid transparent;
  color: #303841;
  font-weight: 800;
}

.product-sidebar a.active,
.product-sidebar a:hover {
  border-left-color: var(--hm-green);
  background: rgba(14, 161, 90, 0.08);
  color: var(--hm-green);
}

.product-sidebar span {
  color: #7a8288;
  font-size: 12px;
  font-weight: 700;
}

.product-sidebar a > span:first-child {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.product-catalog-main {
  min-width: 0;
}

.catalog-heading {
  margin-bottom: 24px;
}

.catalog-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.catalog-heading p:not(.eyebrow) {
  max-width: 760px;
  color: #59636c;
  line-height: 1.7;
}

.catalog-product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  background: white;
  border: 1px solid #e5e2dd;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.catalog-product-card:hover {
  border-color: #d7b9b7;
  box-shadow: 0 18px 42px rgba(17, 24, 32, 0.12);
  transform: translateY(-4px);
}

.catalog-product-image {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 10px;
  color: white;
  background-color: #eef2ef;
}

.catalog-product-image__asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-product-body {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  padding: 18px;
}

.catalog-product-body h3 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.18;
}

.catalog-product-body p {
  margin: 0;
  color: #59636c;
  line-height: 1.55;
}

.catalog-product-body > p:not(.product-card__category) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-product-body .primary-button {
  width: fit-content;
  margin-top: auto;
}

.back-link {
  width: fit-content;
}

.product-commerce-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 72px);
  background: white;
}

.product-commerce-image {
  min-height: 560px;
  background-color: #aeb4b9;
  background-size: cover;
  background-position: center;
  border: 1px solid #e5e2dd;
}

.product-buy-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #e5e2dd;
  background: #fbfaf7;
}

.product-buy-panel h1 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.06;
}

.product-buy-panel p:not(.eyebrow) {
  margin: 0;
  color: #59636c;
  line-height: 1.7;
}

.detail-price-box {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff1ef;
  border: 1px solid #f0c7c3;
}

.detail-price-box span {
  color: #7a4b47;
  font-weight: 800;
}

.detail-price-box strong {
  color: #b51d23;
  font-size: clamp(28px, 4vw, 42px);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #e5e2dd;
}

.quick-specs div {
  padding: 14px;
  background: white;
}

.quick-specs dt {
  color: #7a8288;
  font-size: 13px;
  font-weight: 800;
}

.quick-specs dd {
  margin: 4px 0 0;
  color: #17202a;
  font-weight: 800;
}

.detail-highlight-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-highlight-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #303841;
  font-weight: 800;
}

.detail-highlight-list svg {
  color: #b51d23;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.detail-panel {
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
  background: white;
  border: 1px solid #e5e2dd;
}

.detail-overview {
  background: #f0efeb;
}

.detail-panel p:not(.eyebrow),
.feature-list {
  color: #4f5962;
  line-height: 1.8;
}

.spec-table {
  display: grid;
  margin: 0;
}

.spec-table div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e7e4df;
}

.spec-table dt {
  color: #6d7378;
  font-weight: 700;
}

.spec-table dd {
  margin: 0;
  color: #17202a;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.feature-list svg {
  color: #b51d23;
  margin-top: 5px;
}

.application-tags,
.related-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-tags span,
.application-tags a {
  padding: 10px 12px;
  background: #f5f4f0;
  color: #303841;
  font-weight: 800;
}

.related-products {
  padding-top: 0;
}

.related-product-card {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 320px);
  padding: 18px;
  background: white;
  border: 1px solid #e5e2dd;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.related-product-card:hover {
  border-color: #d7b9b7;
  box-shadow: 0 14px 34px rgba(17, 24, 32, 0.12);
  transform: translateY(-4px);
}

.empty-panel {
  padding: clamp(28px, 5vw, 56px);
  background: #f0efeb;
}

.empty-panel h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.product-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.product-gallery button {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease;
}

.product-gallery button.active {
  border-color: #b51d23;
}

.buy-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #b51d23;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.buy-now-button:hover {
  background: #8f1218;
}

.catalog-product-card,
.related-product-card {
  border-radius: 16px;
  border: 1px solid rgba(23,32,42,0.08);
  background: linear-gradient(180deg, #ffffff, #fbfbf9);
  transition: transform var(--motion-card) var(--motion-ease), box-shadow var(--motion-card) var(--motion-ease), border-color var(--motion-card);
}

.catalog-product-card:hover,
.related-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(17,24,32,0.14), 0 0 0 1px rgba(181,29,35,0.14);
  border-color: rgba(181,29,35,0.28);
}

.catalog-product-card,
.related-product-card {
}

.buy-now-button {
  border-radius: 999px !important;
  background: linear-gradient(120deg, #b51d23, #d2323a) !important;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.buy-now-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.badge {
  background: var(--hm-green-soft) !important;
  color: var(--hm-green-deep) !important;
  border-color: rgba(14, 161, 90, 0.25) !important;
  border-radius: 999px !important;
}

.product-price-row strong {
  color: var(--hm-green);
}

.catalog-product-card:hover,
.related-product-card:hover {
  border-color: rgba(14, 161, 90, 0.45) !important;
  box-shadow: 0 30px 60px rgba(17, 24, 32, 0.14), 0 0 0 1px rgba(14, 161, 90, 0.18) !important;
}

@media (max-width: 980px) {
  .product-detail-grid,
  .product-commerce-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-catalog-page {
    grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
    gap: 20px;
  }

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

@media (max-width: 760px) {
  .product-catalog-page {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .product-detail-grid,
  .product-commerce-hero,
  .quick-specs {
    grid-template-columns: 1fr;
  }

  .product-commerce-image {
    min-height: 340px;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .catalog-product-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 420px) {
  .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-product-card,
  .related-product-card,
  .product-commerce-image,
  .section {
  }
}

/* Preserve the exact SVG resource beneath the authoritative neutral media fallback. */
.catalog-product-image,
.product-commerce-image,
.product-gallery button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.product-commerce-image::before,
.product-gallery button::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #aeb4b9;
  content: "";
  pointer-events: none;
}

.product-gallery button::before {
  inset: 2px;
  border-radius: 4px;
}

/* Calm product presentation: preserve full machine silhouettes and clear reading order. */
.xingfa-product-detail .xingfa-product-hero {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 58px);
  min-height: 0;
  padding-block: clamp(38px, 5vw, 72px);
}
.xingfa-product-detail .xingfa-product-hero h1 {
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.xingfa-product-detail .xingfa-product-hero__copy { min-width: 0; gap: 18px; }
.xingfa-product-detail .xingfa-product-hero__summary { font-size: 16px; }
.xingfa-product-detail .xingfa-product-hero__specs dd { overflow-wrap: anywhere; font-weight: 650; }
.xingfa-product-detail .product-media-carousel {
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--brand-line, #e4ddd1);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(83, 58, 31, .045);
}
.xingfa-product-detail .product-media-carousel__viewport {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #faf8f3;
}
.xingfa-product-detail .product-media-carousel__slide { padding: 44px 32px; }
.xingfa-product-detail .product-media-carousel__type,
.xingfa-product-detail .product-media-carousel__counter {
  color: #5d4b36;
  background: rgba(255, 253, 248, .9);
  border: 1px solid #e5ded2;
  font-weight: 600;
}
.xingfa-product-detail .xingfa-product-hero--wide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.xingfa-product-hero--wide .xingfa-product-hero__copy {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  column-gap: clamp(30px, 6vw, 90px);
}
.xingfa-product-hero--wide .xingfa-product-hero__copy > * { grid-column: 1; }
.xingfa-product-hero--wide .xingfa-product-hero__copy > .xingfa-product-hero__specs {
  grid-column: 2;
  grid-row: 2 / 6;
  align-self: center;
}
.xingfa-product-detail .xingfa-product-hero--wide .product-media-carousel__viewport { aspect-ratio: 3 / 1; min-height: 230px; }
.xingfa-product-detail .xingfa-product-hero--wide .product-media-carousel__slide { padding: 40px 58px; }
.xingfa-product-detail .product-section-heading { max-width: 760px; margin-bottom: clamp(28px, 4vw, 46px); }
.xingfa-product-detail .product-section-heading h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.16; }
.xingfa-product-detail .product-feature-row__copy h3 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.25; }
.xingfa-product-detail .product-feature-row__media { min-height: 0; padding: 24px; background: #f8f5ef; }
.xingfa-product-detail .product-feature-row__media img { display: block; height: auto; max-height: 460px; }
.xingfa-product-detail .product-spec-group { border-radius: 8px; box-shadow: none; }
.xingfa-product-detail .product-spec-group h3 { font-size: 21px; }
.xingfa-product-detail .product-spec-group dd { font-weight: 650; }
.xingfa-product-detail .product-related-grid .product-image { background-color: #f8f5ef; background-size: contain; background-repeat: no-repeat; }
@media (max-width: 860px) {
  .xingfa-product-detail .xingfa-product-hero { grid-template-columns: minmax(0, 1fr); }
  .xingfa-product-hero--wide .xingfa-product-hero__copy { grid-template-columns: minmax(0, 1fr); }
  .xingfa-product-hero--wide .xingfa-product-hero__copy > .xingfa-product-hero__specs { grid-column: 1; grid-row: auto; }
  .xingfa-product-detail .product-media-carousel__viewport { aspect-ratio: 4 / 3; }
  .xingfa-product-detail .xingfa-product-hero--wide .product-media-carousel__viewport { min-height: 200px; aspect-ratio: 2.5 / 1; }
  .xingfa-product-detail .xingfa-product-hero--wide .product-media-carousel__slide { padding: 38px 20px; }
}
@media (max-width: 520px) {
  .xingfa-product-detail .xingfa-product-hero h1 { font-size: 34px; }
  .xingfa-product-detail .product-media-carousel__slide { padding: 40px 16px; }
  .xingfa-product-detail .xingfa-product-hero--wide .product-media-carousel__viewport { min-height: 174px; }
  .xingfa-product-detail .product-media-carousel__arrow { width: 34px; height: 34px; top: auto; bottom: 8px; transform: none; }
  .xingfa-product-detail .product-media-carousel__counter { bottom: 10px; right: 50px; padding: 6px 9px; }
  .xingfa-product-detail .product-feature-row__media { padding: 14px; }
}

/* Reference correction: a narrower editorial column with alternating photo and copy. */
.xingfa-product-detail {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
.xingfa-product-detail .xingfa-product-hero,
.xingfa-product-detail .product-long-section,
.xingfa-product-detail .product-long-section--muted {
  width: 100%;
  max-width: 1120px;
  padding: 56px 40px;
  box-sizing: border-box;
}
.xingfa-product-detail .product-section-heading {
  margin: 0 auto 40px;
  text-align: center;
}
.xingfa-product-detail .product-section-heading .eyebrow { justify-content: center; }
.xingfa-product-detail .product-section-heading h2 { font-size: clamp(30px, 3vw, 40px); }
.xingfa-product-detail .product-feature-list {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  margin-inline: auto;
  gap: 44px;
}
.xingfa-product-detail .product-feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
  min-width: 0;
}
.xingfa-product-detail .product-feature-row__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.xingfa-product-detail .product-feature-row__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.xingfa-product-detail .product-feature-row:nth-child(even) .product-feature-row__media { order: 2; }
.xingfa-product-detail .product-feature-row__copy {
  min-width: 0;
  max-width: 400px;
  justify-self: start;
}
.xingfa-product-detail .product-feature-row:nth-child(even) .product-feature-row__copy { justify-self: end; text-align: right; }
.xingfa-product-detail .product-feature-row__copy > span { font-size: 12px; letter-spacing: .12em; }
.xingfa-product-detail .product-feature-row__copy h3 { margin: 10px 0 16px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; }
.xingfa-product-detail .product-feature-row__copy p { margin: 0; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.xingfa-product-detail .product-feature-row__media--variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.xingfa-product-detail .product-feature-row__media--variants img { max-height: 300px; margin-inline: auto; }
.xingfa-product-detail .product-feature-variants { display: grid; gap: 20px; }
.xingfa-product-detail .product-feature-variants h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.xingfa-product-detail .product-feature-variants p { font-size: 15px; }
.xingfa-product-detail .product-feature-row--text { grid-template-columns: minmax(0, 1fr); }
.xingfa-product-detail .product-feature-row.product-feature-row--text .product-feature-row__copy {
  width: 100%;
  max-width: 680px;
  justify-self: center;
  text-align: left;
}
.xingfa-product-detail .product-spec-groups:has(> :only-child),
.xingfa-product-detail .product-application-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .xingfa-product-detail .xingfa-product-hero,
  .xingfa-product-detail .product-long-section,
  .xingfa-product-detail .product-long-section--muted { padding: 40px 28px; }
  .xingfa-product-detail .product-feature-row { gap: 32px; }
  .xingfa-product-detail .product-feature-row__media img { max-height: 320px; }
  .xingfa-product-detail .product-feature-row__copy p { font-size: 16px; }
}
@media (max-width: 639px) {
  .xingfa-product-detail .xingfa-product-hero,
  .xingfa-product-detail .product-long-section,
  .xingfa-product-detail .product-long-section--muted { padding: 36px 20px; }
  .xingfa-product-detail .product-section-heading { margin-bottom: 32px; }
  .xingfa-product-detail .product-feature-list { gap: 40px; }
  .xingfa-product-detail .product-feature-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .xingfa-product-detail .product-feature-row:nth-child(even) .product-feature-row__media { order: 0; }
  .xingfa-product-detail .product-feature-row .product-feature-row__copy,
  .xingfa-product-detail .product-feature-row:nth-child(even) .product-feature-row__copy { width: 100%; max-width: none; justify-self: stretch; text-align: left; }
  .xingfa-product-detail .product-feature-row__media img { max-height: 340px; }
  .xingfa-product-detail .product-feature-row__media--variants img { max-height: 260px; }
  .xingfa-product-detail .product-feature-row__copy h3 { font-size: 24px; margin: 8px 0 12px; }
}
/* Keep inquiry reachable without laying a bar over photos on narrow screens. */
.xingfa-product-detail .product-section-nav { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 12px; backdrop-filter: none; }
.xingfa-product-detail .product-section-nav__links { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 40px); min-width: 0; overflow-x: auto; }
.xingfa-product-detail .product-section-nav .floating-quote-button { color: #fff; }
@media (max-width: 1599px) {
  .xingfa-product-detail .product-section-nav { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px; }
  .xingfa-product-detail .product-section-nav__links { justify-content: flex-start; }
  .xingfa-product-detail .floating-quote-button { position: static; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; box-sizing: border-box; font-size: 13px; }
  .xingfa-product-detail .floating-quote-button--standalone { margin: 0 16px 24px; }
}
