.product-page {
  display: grid;
  gap: 1.2rem;
}

.product-detail-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 1.2rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.65rem;
}

.product-gallery {
  display: grid;
  gap: 0.65rem;
}

.product-main-image-wrap {
  border: 1px solid #ececec;
  background: #fff;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.product-main-image-btn {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}

.product-main-image-btn img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.product-thumb {
  border: 1px solid #dcdcdc;
  padding: 0;
  margin: 0;
  width: 58px;
  height: 58px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.product-thumb.is-active {
  border-color: #717171;
}

.product-summary h1 {
  margin: 0 0 0.25rem;
  font-size: 2.7rem;
  line-height: 1.1;
}

.product-detail-price {
  margin: 0 0 0.95rem;
  font-size: 2rem;
  font-weight: 700;
}

.product-description {
  margin: 0 0 0.75rem;
  color: #272727;
}

.product-description .description-link {
  color: #1a6f96;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.product-property-grid .description-link {
  color: #1a6f96;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.product-tags {
  margin: 0 0 1rem;
  color: #3f3f3f;
  font-size: 0.93rem;
}

.product-property-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid #e6e6e6;
  border-left: 1px solid #e6e6e6;
}

.product-property-grid dt,
.product-property-grid dd {
  margin: 0;
  padding: 0.62rem 0.72rem;
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.product-property-grid dt {
  font-weight: 700;
  color: #2d2d2d;
  background: #fafafa;
}

.condition-gauge {
  margin-top: 0.95rem;
}

.condition-gauge-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.condition-gauge-title {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.condition-help-trigger {
  width: 18px;
  height: 18px;
  border: 1px solid #c0c4c0;
  border-radius: 999px;
  background: #f9faf9;
  color: #545b54;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.condition-help-trigger:hover {
  background: #f1f3f1;
}

.condition-gauge-track {
  margin-top: 0.35rem;
  height: 13px;
  background: #f4f5f4;
  border: 1px solid #dde1de;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.condition-gauge-track span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #c8cdc8 0%, #bec7bf 48%, #afbcaf 100%);
  border-radius: 999px;
}

.product-cta-row {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.product-add-to-cart {
  border: 0;
  background: #1f2430;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.84rem 1.35rem;
  cursor: pointer;
}

.product-add-to-cart:disabled {
  opacity: 0.72;
}

.product-go-cart {
  color: #505050;
  font-weight: 700;
  font-size: 0.9rem;
}

.product-info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-info-panels article {
  border-top: 1px solid #d8d8d8;
  padding-top: 0.7rem;
}

.product-info-panels h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.product-info-panels p {
  margin: 0;
  color: #343434;
  font-size: 0.9rem;
}

.product-similar h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.92);
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 1320;
  padding: 0;
  opacity: 0;
  transform: scale(0.985) translateY(14px);
  transition: opacity 220ms ease, transform 260ms ease;
}

.product-lightbox.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.product-lightbox-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 4.2rem 2rem 1rem;
  overflow: hidden;
  cursor: zoom-in;
}

.product-lightbox-stage.is-zoomed {
  cursor: move;
}

.product-lightbox-stage img {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  max-width: min(92vw, 1280px);
  max-height: calc(100vh - 9.5rem);
  transition: transform 180ms ease-out, transform-origin 80ms linear;
  will-change: transform;
}

.product-lightbox-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 1rem;
  background: rgba(15, 15, 15, 0.75);
}

.product-lightbox-thumb {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  margin: 0;
  width: 72px;
  height: 72px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-lightbox-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.product-lightbox-thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.product-lightbox-close {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 3;
}

.condition-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1330;
  display: grid;
  place-items: center;
  background: rgba(17, 20, 18, 0.54);
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.condition-help-modal[hidden] {
  display: none;
}

.condition-help-modal.is-open {
  opacity: 1;
}

.condition-help-panel {
  width: min(1320px, calc(100vw - 2.2rem));
  max-height: calc(100vh - 2.2rem);
  overflow: auto;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  position: relative;
  transform: translateY(10px) scale(0.995);
  transition: transform 220ms ease;
}

.condition-help-modal.is-open .condition-help-panel {
  transform: translateY(0) scale(1);
}

.condition-help-close-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 2rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

.condition-help-header {
  padding: 1.6rem 4rem 1.1rem 1.9rem;
  border-bottom: 1px solid #e2e2e2;
}

.condition-help-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}

.condition-help-grid {
  padding: 1.6rem 1.9rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  column-gap: 1.2rem;
  row-gap: 0.95rem;
  align-items: center;
}

.condition-help-grid-head {
  font-weight: 700;
  font-size: 1.75rem;
  color: #212121;
  margin-bottom: 0.2rem;
}

.condition-help-meter {
  border: 1px solid #4a4a4a;
  height: 42px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.condition-help-fill {
  height: 100%;
  display: block;
}

.condition-help-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.95rem;
  font-weight: 500;
  pointer-events: none;
}

.condition-help-fill.c20 {
  background: #cc5800;
}

.condition-help-fill.c40 {
  background: #cda600;
}

.condition-help-fill.c60 {
  background: #9ecf00;
}

.condition-help-fill.c80 {
  background: #4ecf00;
}

.condition-help-fill.c100 {
  background: #00d000;
}

.condition-help-text {
  font-size: 2rem;
  color: #202020;
}

.condition-help-footer {
  border-top: 1px solid #dcdcdc;
  padding: 1.2rem 1.9rem;
  display: flex;
  justify-content: flex-end;
}

.condition-help-close-btn {
  border: 1px solid #d3d3d3;
  background: #f8f8f8;
  color: #4f4f4f;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image-wrap {
    min-height: 320px;
  }

  .product-main-image-btn img {
    max-height: 320px;
  }

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

@media (max-width: 720px) {
  .product-property-grid {
    grid-template-columns: 1fr;
  }

  .product-info-panels {
    grid-template-columns: 1fr;
  }

  .product-lightbox-stage {
    padding: 3.4rem 0.75rem 0.7rem;
  }

  .product-lightbox-stage img {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 8.25rem);
  }

  .product-lightbox-thumbs {
    padding: 0.55rem 0.75rem 0.75rem;
  }

  .product-lightbox-thumb {
    width: 62px;
    height: 62px;
    min-width: 62px;
  }

  .product-lightbox-thumb img {
    width: 60px;
    height: 60px;
  }

  .condition-help-modal {
    padding: 0;
  }

  .condition-help-panel {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    box-shadow: none;
  }

  .condition-help-header {
    padding: 1.1rem 3.4rem 0.9rem 1rem;
  }

  .condition-help-header h2 {
    font-size: 1.55rem;
  }

  .condition-help-grid {
    padding: 1rem;
    grid-template-columns: 1fr;
    row-gap: 0.7rem;
  }

  .condition-help-grid-head {
    font-size: 1.05rem;
  }

  .condition-help-text {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .condition-help-fill {
    font-size: 1rem;
  }

  .condition-help-value {
    font-size: 1rem;
  }

  .condition-help-footer {
    padding: 1rem;
  }

  .condition-help-close-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.72rem 1rem;
  }
}
