.product-page {
  background: var(--soft);
  color: var(--ink);
}

.product-page-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.product-page-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-page-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.product-page-links {
  display: flex;
  gap: 24px;
}

.product-page-links a {
  color: var(--ink);
}

.product-page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.product-page-breadcrumb {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.product-page-breadcrumb a {
  color: var(--accent);
}

.product-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  align-items: start;
}

.product-page-gallery,
.product-page-summary,
.product-page-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(34, 24, 18, 0.07);
}

.product-page-gallery,
.product-page-summary {
  min-width: 0;
}

.product-page-gallery {
  padding: 18px;
}

.product-page-main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #faf8f4;
  border: 0;
  cursor: zoom-in;
}

.product-page-main-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-page-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-page-thumb {
  aspect-ratio: 1 / 1;
  padding: 3px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.product-page-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.product-page-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-page-summary {
  padding: 30px;
}

.product-page-summary h1 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.product-page-description {
  color: var(--muted);
  line-height: 1.75;
}

.product-page-specs {
  margin: 26px 0 0;
}

.product-page-specs div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.product-page-specs dt {
  color: var(--muted);
}

.product-page-specs dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.product-page-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-page-section {
  margin-top: 34px;
  padding: 28px;
}

.product-page-section h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.product-page-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-page-applications span {
  padding: 9px 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-image-dialog {
  width: min(94vw, 980px);
  max-height: 92vh;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
}

.product-image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.product-image-dialog img {
  width: 100%;
  max-height: calc(92vh - 36px);
  display: block;
  object-fit: contain;
}

.product-image-dialog button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .product-page-nav,
  .product-page-shell {
    width: min(100% - 24px, 1180px);
  }

  .product-page-links {
    margin-left: auto;
    gap: 14px;
    font-size: 14px;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-page-summary {
    padding: 22px;
  }

  .product-page-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-page-nav {
    min-height: 66px;
  }

  .product-page-links a:first-child {
    display: none;
  }

  .product-page-shell {
    padding-top: 20px;
  }

  .product-page-gallery {
    padding: 10px;
  }

  .product-page-summary h1 {
    font-size: 40px;
  }

  .product-page-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-page-specs dd {
    text-align: left;
  }

  .product-page-actions a {
    width: 100%;
    justify-content: center;
  }
}
