.detail-page { background: #f6f6f8; }
.detail-nav { grid-template-columns: auto minmax(260px, 560px) auto; gap: 30px; }
.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
}
.header-search input { min-width: 0; padding: 10px 13px; border: 0; outline: 0; font-size: 12px; }
.header-search button { color: #fff; background: var(--primary); border: 0; padding: 0 16px; cursor: pointer; font-size: 11px; font-weight: 750; }
.header-compare { justify-self: end; text-decoration: none; font-size: 12px; font-weight: 700; }
.header-compare span { display: inline-grid; width: 22px; height: 22px; margin-left: 5px; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-size: 10px; }
.detail-main { padding-bottom: 90px; }
.breadcrumb { display: flex; gap: 9px; padding: 22px 0; color: #757584; font-size: 11px; }
.breadcrumb a { text-decoration: none; }
.detail-loading, .detail-error { padding: 100px 0; text-align: center; }
.product-hero-detail {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) 1.1fr;
  gap: 50px;
  padding: 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.product-gallery { min-width: 0; }
.main-product-image { height: 440px; display: grid; place-items: center; padding: 32px; overflow: hidden; background: #f5f5f7; border-radius: 10px; }
.main-product-image img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 62px; width: 62px; height: 62px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.gallery-thumbs button.active { border: 2px solid var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-summary { align-self: center; }
.product-type { display: inline-block; margin-bottom: 15px; padding: 6px 9px; color: var(--primary); background: #eeebfa; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.product-score { display: inline-flex; margin: -4px 0 14px; padding: 5px 9px; color: #6152a8; background: #eee9ff; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.product-summary h1 { margin-bottom: 20px; font-size: clamp(38px, 4.5vw, 62px); }
.product-description { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.product-codes { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0; }
.product-codes span { padding: 7px 10px; background: #f2f2f5; border-radius: 5px; font-family: ui-monospace, monospace; font-size: 10px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.primary-action, .secondary-action, .manufacturer-action { padding: 13px 18px; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-action { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.primary-action.selected { color: var(--primary); background: #fff; }
.secondary-action { color: #fff; background: var(--acid); border: 1px solid var(--acid); }
.manufacturer-action { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.availability-note { margin: 13px 0 0; color: #8b8b98; font-size: 10px; }
.offers-section, .highlight-section, .spec-section, .related-section { padding-top: 75px; }
.offers-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.offers-heading p { max-width: 350px; margin: 0 0 4px; color: var(--muted); font-size: 11px; text-align: right; }
.product-offers { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.offers-loading, .offers-empty { padding: 35px; color: var(--muted); text-align: center; font-size: 12px; }
.product-offer-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; align-items: center; gap: 25px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.product-offer-row:last-child { border-bottom: 0; }
.product-offer-shop strong { display: block; font-size: 14px; }
.product-offer-shop span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.product-offer-price { text-align: right; }
.product-offer-price strong { display: block; font-size: 20px; }
.product-offer-price span { color: var(--muted); font-size: 9px; }
.product-offer-row a { padding: 11px 15px; color: #fff; background: var(--acid); border-radius: 6px; font-size: 10px; font-weight: 800; text-decoration: none; }
.detail-section-heading { margin-bottom: 25px; }
.detail-section-heading > span { color: var(--primary); font-family: ui-monospace, monospace; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-section-heading h2 { font-size: clamp(30px, 3.3vw, 44px); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.highlight-card { min-height: 135px; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.highlight-card span { display: block; margin-bottom: 25px; color: #858593; font-size: 10px; }
.highlight-card strong { font-size: 18px; line-height: 1.25; }
.spec-groups { display: grid; gap: 14px; }
.spec-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.spec-group h3 { margin: 0; padding: 17px 20px; background: #eeeeF3; font-size: 15px; }
.spec-row { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 30px; padding: 12px 20px; border-top: 1px solid #ececf0; font-size: 12px; }
.spec-row span { color: var(--muted); }
.spec-row strong { font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-card { display: grid; grid-template-rows: 190px auto; overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.related-card:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(40,35,70,.08); }
.related-card-image { min-width: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; background: #f5f5f7; }
.related-card img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.related-card div:last-child { padding: 15px; }
.related-card small { color: var(--primary); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.related-card h3 { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 850px) {
  .detail-nav { grid-template-columns: 1fr auto; }
  .header-search { display: none; }
  .product-hero-detail { grid-template-columns: 1fr; padding: 24px; }
  .main-product-image { height: 330px; }
  .highlight-grid, .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .highlight-grid, .related-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 5px; }
  .offers-heading { display: block; }
  .offers-heading p { margin-top: 10px; text-align: left; }
  .product-offer-row { grid-template-columns: 1fr auto; }
  .product-offer-row a { grid-column: 1 / -1; text-align: center; }
}
