/* Product detail — shared header, footer and catalog cards remain unchanged. */
.product-page {
  background: var(--cool);
  padding: 28px 0 60px;
}
.product-page .breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  overflow-wrap: anywhere;
}
.product-page .breadcrumbs [aria-current] {
  color: var(--red-dark);
  font-weight: 700;
}
.product-page .product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  margin: 0 0 52px;
  align-items: start;
}
.product-detail > * {
  min-width: 0;
}
.product-gallery-main {
  position: relative;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1.07;
}
.product-gallery-main > a,
.product-gallery-main picture {
  display: block;
  width: 100%;
  height: 100%;
}
.product-gallery-main > a,
.product-gallery-main > a img,
.product-gallery-thumb,
.product-gallery-thumb img {
  cursor: pointer;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery-main .catalog-card-category {
  top: 26px;
  left: 26px;
}
.product-page .product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.product-gallery-thumb {
  display: block;
  aspect-ratio: 1.1;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-current {
  border-color: var(--red);
}
.product-gallery-thumbs .product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-summary .product-category {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 18px;
}
.product-page .product-summary h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.product-code {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.product-code strong {
  color: var(--red-dark);
}
.product-summary .product-short-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.product-short-description > :last-child {
  margin-bottom: 0;
}
.product-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.product-colors .catalog-swatch {
  height: 20px;
  width: 20px;
}
.product-key-specs {
  margin: 6px 0 22px;
  font-size: 13px;
}
.product-key-specs > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 14px;
  border-bottom: 1px solid #eaf0f5;
}
.product-key-specs dt {
  color: var(--muted);
}
.product-key-specs dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}
.product-actions .button {
  font-size: 14px;
  padding: 14px 22px;
}
.product-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}
.product-hotline strong {
  color: var(--navy);
}
.product-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}
.product-service-icon .icon {
  width: 25px;
  height: 25px;
}
.product-services {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
  gap: 18px;
}
.product-services li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.product-services .icon {
  color: var(--red);
  width: 26px;
  height: 26px;
  flex: none;
}
.product-description-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0 32px;
  margin-bottom: 30px;
}
.product-description-bar span {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 58px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.product-description-bar span {
  color: var(--red-dark);
}
.product-description-bar span::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 4px;
  background: var(--red);
}
.product-entry section {
  scroll-margin-top: 28px;
}
.product-page h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.product-description {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 32px);
  color: #475772;
  font-size: 14px;
  margin-bottom: 66px;
}
.product-description .prose {
  margin-top: 0;
}
.product-description .prose:empty {
  display: none;
}
.product-specifications {
  margin-bottom: 60px;
}
.product-table-wrap {
  overflow-x: auto;
  border-radius: 12px 12px 0 0;
}
.product-specifications table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.product-specifications th,
.product-specifications td {
  padding: 17px 24px;
  border: 0;
  border-bottom: 1px solid #eaf0f5;
  text-align: left;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.product-specifications tr:nth-child(odd) {
  background: #fff;
}
.product-specifications th {
  width: 28%;
  font-weight: 700;
}
.product-specifications td {
  color: #475772;
}
.product-note {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.product-dealer {
  margin-bottom: 62px;
}
.product-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.product-policy-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
}
.product-policy-card:hover {
  border-color: var(--red);
}
.product-policy-card h3 {
  font-size: 16px;
  margin: 18px 0 6px;
}
.product-policy-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.product-page .product-related {
  margin: 0 0 60px;
}
.product-related h2 {
  margin-bottom: 4px;
}
.product-related .product-note {
  margin-top: 0;
}
.product-related .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1023px) {
  .product-page .product-detail {
    gap: 28px;
  }
  .product-policy-grid {
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .product-page {
    padding: 18px 0 34px;
  }
  .product-page .breadcrumbs {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .product-page .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 28px;
  }
  .product-gallery-main {
    border-radius: 20px;
    aspect-ratio: 1.15;
  }
  .product-gallery-main .catalog-card-category {
    top: 16px;
    left: 16px;
  }
  .product-page .product-gallery-thumbs {
    gap: 10px;
    margin-top: 12px;
  }
  .product-gallery-thumb {
    border-radius: 9px;
    min-height: 44px;
  }
  .product-summary .product-category {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .product-page .product-summary h1 {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 8px;
  }
  .product-summary .product-short-description {
    font-size: 13px;
  }
  .product-code {
    font-size: 12px;
  }
  .product-colors {
    font-size: 12px;
  }
  .product-key-specs {
    font-size: 12px;
  }
  .product-key-specs > div {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 16px 10px;
  }
  .product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-actions .button {
    width: 100%;
    font-size: 13px;
    min-height: 48px;
  }
  .product-hotline {
    font-size: 12px;
  }
  .product-services {
    flex-direction: column;
    gap: 16px;
  }
  .product-services li {
    min-height: 28px;
    font-size: 12px;
  }
  .product-description-bar {
    gap: 0;
    justify-content: space-between;
    border-radius: 12px;
    padding: 0 10px;
    margin-bottom: 24px;
  }
  .product-description-bar span {
    font-size: clamp(9px, 2.6vw, 12px);
    min-height: 52px;
  }
  .product-description-bar span::after {
    height: 4px;
  }
  .product-page h2 {
    font-size: 24px;
  }
  .product-description {
    font-size: 13px;
    margin-bottom: 36px;
  }
  .product-specifications {
    margin-bottom: 36px;
  }
  .product-specifications table,
  .product-specifications tbody,
  .product-specifications tr,
  .product-specifications th,
  .product-specifications td {
    display: block;
    width: 100%;
  }
  .product-specifications tr {
    padding: 10px 14px;
  }
  .product-specifications th,
  .product-specifications td {
    padding: 2px 0;
    border: 0;
    font-size: 12px;
  }
  .product-policy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .product-policy-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
    border-radius: 14px;
  }
  .product-policy-card .product-service-icon {
    grid-row: span 2;
  }
  .product-policy-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
  }
  .product-policy-card p {
    font-size: 12px;
  }
  .product-dealer,
  .product-page .product-related {
    margin-bottom: 36px;
  }
  .product-related .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 30px 0 0;
}
.product-feature-grid > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  min-height: 140px;
}
.product-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  grid-row: span 2;
  color: var(--red);
  background: #ffeded;
  border-radius: 50%;
}
.product-feature-icon .icon {
  width: 28px;
  height: 28px;
}
.product-feature-grid dt {
  font-weight: 700;
  font-size: 15px;
}
.product-feature-grid dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .product-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
  .product-feature-grid > div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 12px;
    padding: 18px;
    min-height: 88px;
    border-radius: 14px;
  }
  .product-feature-icon {
    width: 40px;
    height: 40px;
  }
  .product-feature-grid dt {
    font-size: 13px;
  }
  .product-feature-grid dd {
    font-size: 12px;
  }
}

.product-image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 60px 16px 16px;
  background: rgb(11 27 54 / 96%);
  color: #fff;
}
.product-image-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-viewer::backdrop {
  background: #0b1b36;
}
.product-image-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-image-viewer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: #0b1b36;
  color: #fff;
  cursor: pointer;
}
.product-image-viewer-close svg {
  width: 24px;
  height: 24px;
}
body:has(.product-image-viewer[open]) {
  overflow: hidden;
}

.product-summary .product-specifications {
  margin: 24px 0 0;
}
.product-summary .product-specifications h2 {
  font-size: 24px;
}
.product-summary .product-specifications th,
.product-summary .product-specifications td {
  padding: 12px 16px;
}
.product-summary .product-specifications th {
  width: 38%;
}
