.page-product-detail {
  color: #142c42;
  background: #f7fbff;
}

.page-product-detail main {
  overflow: hidden;
}

.detail-page {
  padding: 24px 0 72px;
  background:
    radial-gradient(circle at 93% 6%, rgba(0, 126, 244, .08), transparent 23%),
    linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #6b8193;
  font-size: .78rem;
  font-weight: 600;
}

.product-breadcrumb a {
  color: #527088;
}

.product-breadcrumb a:hover,
.product-breadcrumb a:focus-visible {
  color: #087bf0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}

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

.product-gallery__main {
  position: relative;
  height: 470px;
  overflow: hidden;
  border: 1px solid #dce9f3;
  border-radius: 15px;
  background: #eef5fa;
  box-shadow: 0 14px 38px rgba(24, 73, 109, .09);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity .22s ease, transform .45s ease;
}

.product-gallery__main.is-changing img {
  opacity: .28;
  transform: scale(.985);
}

.gallery-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #087bf0;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 20px rgba(8, 51, 86, .16);
  cursor: pointer;
}

.gallery-expand svg {
  width: 19px;
  height: 19px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.product-gallery__thumbs button {
  height: 82px;
  overflow: hidden;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #eef4f8;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-gallery__thumbs button:hover,
.product-gallery__thumbs button:focus-visible {
  transform: translateY(-2px);
  border-color: #8bc7ff;
}

.product-gallery__thumbs button.is-active {
  border-color: #087bf0;
  box-shadow: 0 5px 14px rgba(8, 123, 240, .18);
}

.product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.product-summary {
  padding-top: 7px;
}

.detail-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #087bf0;
  background: #eaf5ff;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.product-summary h1 {
  margin: 0;
  color: #0e263b;
  font-size: clamp(2.6rem, 4.4vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.product-summary h2 {
  margin: 10px 0 0;
  color: #29465e;
  font-size: 1.2rem;
  line-height: 1.35;
}

.product-summary__description {
  margin: 15px 0 0;
  color: #5c7285;
  font-size: 1rem;
  line-height: 1.7;
}

.product-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.product-highlights > div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #e0ebf4;
  border-radius: 10px;
  background: #f8fbfe;
}

.product-highlights > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 9px;
  color: #087bf0;
  background: #e6f3ff;
}

.product-highlights svg {
  width: 18px;
  height: 18px;
}

.product-highlights p {
  margin: 0;
}

.product-highlights strong,
.product-highlights small {
  display: block;
}

.product-highlights strong {
  color: #173149;
  font-size: .76rem;
  line-height: 1.32;
}

.product-highlights small {
  margin-top: 3px;
  color: #6d8193;
  font-size: .75rem;
  line-height: 1.38;
  font-weight: 500;
}

.product-summary__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.product-summary__actions .button {
  min-height: 50px;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 600;
}

.product-summary__actions svg {
  width: 18px;
  height: 18px;
}

.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0 0;
}

.product-quick-specs > div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #e1ebf3;
  border-radius: 9px;
  background: #f4f8fb;
}

.product-quick-specs dt {
  color: #173149;
  font-size: .75rem;
  font-weight: 600;
}

.product-quick-specs dd {
  margin: 4px 0 0;
  color: #6b7f90;
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 500;
}

.product-information {
  margin-top: 35px;
}

.detail-section-nav {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #d9e7f1;
}

.detail-section-nav button {
  position: relative;
  padding: 0 2px 13px;
  border: 0;
  color: #647a8c;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.detail-section-nav button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: #087bf0;
  transform: scaleX(0);
  transition: transform .2s ease;
}

.detail-section-nav button.is-active {
  color: #087bf0;
}

.detail-section-nav button.is-active::after {
  transform: scaleX(1);
}

.product-information__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 16px;
}

.information-card {
  padding: 22px;
  border: 1px solid #deE9f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 73, 109, .06);
  scroll-margin-top: 120px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.information-card.is-highlighted {
  border-color: #8dc9ff;
  box-shadow: 0 12px 32px rgba(8, 123, 240, .1);
}

.information-card h3 {
  margin: 0 0 14px;
  color: #173149;
  font-size: 1.1rem;
}

.information-card > p {
  margin: 0;
  color: #5c7285;
  font-size: .94rem;
  line-height: 1.72;
}

.information-card > p + p {
  margin-top: 12px;
}

.technical-references a {
  color: #087bf0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-note {
  padding: 10px 12px;
  border-left: 3px solid #087bf0;
  border-radius: 0 8px 8px 0;
  background: #eef7ff;
  font-size: .82rem !important;
}

.specification-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1ebf3;
  border-radius: 9px;
}

.specification-list > div {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) 1.25fr;
  border-bottom: 1px solid #e6eef4;
}

.specification-list > div:last-child {
  border-bottom: 0;
}

.specification-list dt,
.specification-list dd {
  margin: 0;
  padding: 10px 12px;
  color: #526a7e;
  font-size: .82rem;
  line-height: 1.4;
  font-weight: 500;
}

.specification-list dt {
  color: #1e3a51;
  background: #eff6fb;
  font-weight: 600;
}

.product-lightbox {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #061a2b;
  box-shadow: 0 28px 90px rgba(0, 15, 28, .45);
}

.product-lightbox::backdrop {
  background: rgba(1, 17, 30, .78);
  backdrop-filter: blur(5px);
}

.product-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}

.product-lightbox button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #163149;
  background: rgba(255,255,255,.94);
  cursor: pointer;
}

.product-lightbox button svg {
  width: 20px;
  height: 20px;
}

[data-detail-reveal] {
  opacity: 1;
  transform: none;
}

.detail-motion [data-detail-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.75,.2,1);
}

.detail-motion [data-detail-reveal="left"] { transform: translateX(-32px); }
.detail-motion [data-detail-reveal="right"] { transform: translateX(32px); }
.detail-motion [data-detail-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .product-detail-layout {
    gap: 22px;
  }

  .product-gallery__main {
    height: 410px;
  }

  .product-highlights,
  .product-quick-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .detail-page {
    padding: 14px 0 104px;
  }

  .product-breadcrumb {
    margin-bottom: 12px;
    font-size: .75rem;
  }

  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .product-gallery,
  .product-summary {
    width: 100%;
  }

  .product-gallery__main {
    height: min(72vw, 330px);
    border-radius: 11px;
  }

  .gallery-expand {
    top: 9px;
    right: 9px;
    width: 36px;
    height: 36px;
  }

  .product-gallery__thumbs {
    gap: 6px;
    margin-top: 7px;
  }

  .product-gallery__thumbs button {
    height: 58px;
    padding: 2px;
    border-radius: 7px;
  }

  .product-summary {
    padding-top: 0;
  }

  .detail-kicker {
    margin-bottom: 7px;
    padding: 5px 9px;
    font-size: .75rem;
  }

  .product-summary h1 {
    font-size: 2.15rem;
  }

  .product-summary h2 {
    margin-top: 5px;
    font-size: .95rem;
  }

  .product-summary__description {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .product-highlights {
    gap: 6px;
    margin-top: 12px;
  }

  .product-highlights > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
  }

  .product-highlights > div > span {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
  }

  .product-highlights strong {
    font-size: .75rem;
  }

  .product-highlights small {
    font-size: .75rem;
  }

  .product-summary__actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #d9e7f1;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 30px rgba(12, 54, 85, .1);
    backdrop-filter: blur(10px);
  }

  .product-summary__actions .button {
    min-height: 44px;
    padding-inline: 9px;
    font-size: .75rem;
  }

  .product-quick-specs {
    gap: 6px;
    margin-top: 10px;
  }

  .product-quick-specs > div {
    padding: 9px;
  }

  .product-information {
    margin-top: 22px;
  }

  .detail-section-nav {
    gap: 22px;
    overflow-x: auto;
  }

  .detail-section-nav button {
    flex: 0 0 auto;
    padding-bottom: 10px;
    font-size: .75rem;
  }

  .product-information__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .information-card {
    padding: 14px;
    border-radius: 10px;
  }

  .information-card h3 {
    margin-bottom: 10px;
    font-size: .95rem;
  }

  .information-card > p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .specification-list > div {
    grid-template-columns: minmax(105px, .72fr) 1.28fr;
  }

  .specification-list dt,
  .specification-list dd {
    padding: 8px 9px;
    font-size: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-motion [data-detail-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-gallery__main img,
  .product-gallery__thumbs button,
  .information-card {
    transition: none;
  }
}
