/* Product Details, premium Web3 hardware page. Loaded after the legacy stylesheet. */
.product-section,
.product-section * {
  box-sizing: border-box;
}

.product-section {
  align-items: start;
  background:
    radial-gradient(circle at 18% 4%, rgba(32, 214, 194, 0.12), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(200, 155, 60, 0.1), transparent 26%),
    linear-gradient(180deg, #07131d 0%, #050914 58%, #040711 100%);
  display: none;
  gap: 24px;
  grid-template-columns: minmax(0, 880px) clamp(420px, 32vw, 480px);
  justify-content: start;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100dvh;
  padding: 88px 0 24px;
  width: min(100%, 1440px);
}

body.product-view .product-section {
  display: grid;
}

body.product-view {
  overflow-x: hidden;
}

.product-gallery,
.product-info-column {
  background: rgba(7, 15, 27, 0.86);
  border: 1px solid rgba(222, 233, 246, 0.105);
  border-radius: 0;
  box-shadow: none;
}

.product-gallery {
  --gallery-gap: 10px;
  --gallery-thumb-size: 72px;
  display: grid;
  align-content: start;
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: var(--gallery-gap);
  grid-template-rows: auto auto;
  justify-items: stretch;
  height: auto;
  justify-self: start;
  max-width: 880px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.product-gallery-shell {
  aspect-ratio: 4 / 3;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
  height: auto;
  max-height: calc(100vh - 150px);
  max-width: min(100%, calc((100vh - 150px) * 4 / 3));
  min-height: 0;
  min-width: 0;
  overflow: visible;
  width: min(100%, calc((100vh - 150px) * 4 / 3));
}

.product-gallery-stage {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  height: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  place-items: center;
  position: relative;
}

.product-gallery-stage::after {
  display: none;
}

.product-gallery-stage img {
  display: block;
  filter: none;
  height: 100%;
  margin: 0;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  object-position: center;
  position: relative;
  transition: opacity 250ms ease;
  width: 100%;
  z-index: 1;
}

.product-gallery-stage img[data-tone="worn"] {
  filter: none;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.product-gallery-stage img.is-changing {
  opacity: 0;
}

.product-gallery-next {
  align-items: center;
  background: rgba(6, 15, 25, 0.58);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 235, 246, 0.18);
  border-radius: 999px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eaf7f6;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  width: 48px;
  z-index: 3;
}

.product-gallery-next span {
  display: block;
  transform: translateX(0);
  transition: transform 180ms ease, color 180ms ease;
}

.product-gallery-next:hover {
  background: rgba(8, 24, 34, 0.72);
  border-color: rgba(32, 214, 194, 0.42);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(32, 214, 194, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.03);
}

.product-gallery-next:hover span {
  color: #25d4bf;
  transform: translateX(2px);
}

.product-gallery-next:active {
  transform: translateY(-50%) scale(0.96);
}

.product-gallery-next:focus-visible {
  outline: 2px solid rgba(32, 214, 194, 0.8);
  outline-offset: 3px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.product-gallery-controls {
  display: grid;
  gap: 8px;
  height: var(--gallery-thumb-size);
  max-width: 100%;
  position: relative;
  width: 100%;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  height: var(--gallery-thumb-size);
  max-width: 100%;
  min-width: 0;
}

.product-thumbnail {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid rgba(222, 233, 246, 0.16);
  border-radius: 8px;
  color: rgba(226, 235, 246, 0.32);
  display: grid;
  flex: 0 0 var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  place-items: center;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.product-thumbnail:hover {
  background: transparent;
  border-color: rgba(32, 214, 194, 0.24);
  color: rgba(247, 251, 255, 0.78);
}

.product-thumbnail.active {
  background: transparent;
  border-color: rgba(32, 214, 194, 0.74);
  color: #f7fbff;
}

.product-thumbnail[data-product-tone="worn"]:not(.active) {
  opacity: 0.7;
}

.product-thumbnail img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.product-info-column {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  position: sticky;
  top: 72px;
  width: 100%;
}

.product-kicker {
  align-items: center;
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  color: rgba(211, 223, 238, 0.58);
  display: flex;
  font-size: 10px;
  font-weight: 760;
  justify-content: space-between;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.product-info-column h2 {
  color: #f7fbff;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.product-description {
  color: rgba(211, 223, 238, 0.68);
  font-size: 14px;
  line-height: 1.48;
  margin: -4px 0 0;
  max-width: 60ch;
}

.product-current-price {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(222, 233, 246, 0.09);
  border-bottom: 1px solid rgba(222, 233, 246, 0.075);
  border-radius: 0;
  min-height: 0;
  padding: 15px 0 14px;
}

.product-current-price strong {
  color: #d4aa57;
  display: block;
  font-size: 38px;
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-top: 8px;
}

.product-current-price small {
  color: rgba(211, 223, 238, 0.62);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 9px;
}

.product-pay-selector {
  border-bottom: 1px solid rgba(222, 233, 246, 0.075);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding: 0 0 14px;
}

.product-pay-selector > .label {
  display: block;
}

.product-pay-selector .label {
  color: rgba(211, 223, 238, 0.56);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-payment-network-toggle {
  margin-bottom: 0;
}

.product-asset-toggle {
  background: rgba(4, 12, 20, 0.34);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 12px;
  gap: 4px;
  padding: 4px;
}

.product-asset-toggle .asset {
  border-radius: 9px;
  height: 34px;
  min-width: 70px;
}

.btc-pricing-card,
.product-spec-card,
.product-info-list {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.btc-pricing-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(32, 214, 194, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(32, 214, 194, 0.09), rgba(255, 255, 255, 0.024));
  border: 1px solid rgba(32, 214, 194, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  padding: 15px;
}

.module-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-heading strong {
  color: #25d4bf;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.pricing-rule-focus {
  align-items: end;
  border-bottom: 1px solid rgba(222, 233, 246, 0.085);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 2px 0 14px;
}

.pricing-rule-focus span {
  color: rgba(211, 223, 238, 0.58);
  font-size: 12px;
  line-height: 1.25;
}

.pricing-rule-focus strong {
  color: #25d4bf;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: right;
}

.pricing-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.pricing-grid > div {
  border-top: 0;
  min-height: 48px;
  padding: 11px 0;
}

.pricing-grid > div:nth-child(odd) {
  padding-right: 12px;
}

.pricing-grid > div:nth-child(even) {
  border-left: 1px solid rgba(222, 233, 246, 0.075);
  padding-left: 12px;
}

.pricing-grid span,
.product-spec-card span {
  color: rgba(211, 223, 238, 0.58);
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.pricing-grid strong,
.product-spec-card strong {
  color: #f7fbff;
  display: block;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
  margin-top: 6px;
}

.pricing-grid > div:nth-child(3) strong {
  color: #d4aa57;
}

.btc-pricing-card p {
  border-top: 1px solid rgba(222, 233, 246, 0.085);
  color: rgba(211, 223, 238, 0.64);
  font-size: 12px;
  line-height: 1.42;
  margin: 0;
  padding-top: 12px;
}

.product-spec-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-top: 1px solid rgba(222, 233, 246, 0.06);
  opacity: 0.8;
}

.product-spec-card > div {
  border-top: 1px solid rgba(222, 233, 246, 0.045);
  padding: 10px 0;
}

.product-spec-card > div:nth-child(1),
.product-spec-card > div:nth-child(2) {
  border-top: 0;
}

.product-spec-card > div:nth-child(even) {
  border-left: 1px solid rgba(222, 233, 246, 0.045);
  padding-left: 14px;
}

.details-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.details-actions .button {
  border-radius: 10px;
  height: 48px;
}

.details-actions .button.primary {
  background: rgba(32, 214, 194, 0.9);
  color: #041017;
}

.details-actions .button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(222, 233, 246, 0.12);
  color: rgba(247, 251, 255, 0.86);
}

.product-info-list {
  overflow: hidden;
  border-top: 1px solid rgba(222, 233, 246, 0.075);
}

.product-info-list details {
  border-bottom: 1px solid rgba(222, 233, 246, 0.085);
  padding: 0;
}

.product-info-list details:last-child {
  border-bottom: 0;
}

.product-info-list summary {
  color: #f7fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
  list-style: none;
  padding: 15px 14px;
}

.product-info-list summary::-webkit-details-marker {
  display: none;
}

.product-info-list summary::after {
  color: rgba(211, 223, 238, 0.56);
  content: "+";
  float: right;
}

.product-info-list details[open] summary::after {
  content: "-";
}

.product-info-list p {
  color: rgba(211, 223, 238, 0.64);
  font-size: 12px;
  line-height: 1.45;
  margin: -4px 14px 15px;
}

@media (max-width: 1180px) {
  .product-section {
    grid-template-columns: 1fr;
    padding: 88px 12px 18px;
  }

  .product-info-column {
    position: static;
  }
}

@media (max-width: 760px) {
  body.product-view main,
  body.product-view .product-section,
  body.product-view .product-gallery,
  body.product-view .product-info-column {
    max-width: 100vw;
  }

  .product-section {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
    padding-top: 104px;
    width: 100%;
  }

  .product-gallery {
    --gallery-thumb-size: 78px;
    justify-items: stretch;
    height: auto;
    max-width: 100%;
    width: 100%;
    gap: 10px;
    padding: 0;
  }

  .product-gallery-shell,
  .product-gallery-controls {
    height: auto;
    max-width: 100%;
    width: 100%;
  }

  .product-gallery-stage {
    height: auto;
    padding: 0;
  }

  .product-gallery-stage img {
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: initial;
    object-position: center;
    width: 100%;
  }

  .product-gallery-stage img[data-tone="worn"] {
    max-height: none;
    object-fit: initial;
    object-position: center;
    width: 100%;
  }

  .product-gallery-controls {
    width: 100%;
  }

  .product-thumbnails {
    display: flex;
    gap: 8px;
    height: var(--gallery-thumb-size);
    overflow-x: auto;
    padding: 0 0 6px;
    scroll-snap-type: x proximity;
    width: 100%;
  }

  .product-thumbnail {
    flex: 0 0 var(--gallery-thumb-size);
    height: var(--gallery-thumb-size);
    scroll-snap-align: start;
    width: var(--gallery-thumb-size);
  }

  .product-thumbnail img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
  }

  .pricing-grid,
  .product-spec-card,
  .details-actions {
    grid-template-columns: 1fr;
  }

  .product-pay-selector {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .product-pay-selector .asset {
    flex: 1 1 0;
  }

  .pricing-grid > div,
  .product-spec-card > div {
    border-left: 0;
    border-right: 0;
  }

  .product-spec-card > div + div {
    border-top: 1px solid rgba(222, 233, 246, 0.085);
  }
}
