:root {
  --product-max: 1240px;
}

@media (max-width: 720px) {
  .product-detail-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .product-summary h1 { overflow-wrap: anywhere; }
  .mobile-buy-bar {
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-buy-bar.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }
  .product-detail-page footer { padding-bottom: 24px; }
}
.product-detail-page {
  background: var(--paper);
  color: var(--ink);
}
.product-page-shell {
  width: min(var(--product-max), calc(100% - 48px));
  margin: 0 auto;
}
.product-breadcrumbs {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.product-breadcrumbs a:hover {
  color: var(--violet);
}
.product-breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: start;
  padding: 22px 0 88px;
}
.product-gallery {
  position: sticky;
  top: 104px;
}
.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1.08;
  background: linear-gradient(145deg, #fff, #eceae3);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(17, 18, 26, 0.08);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-gallery > p {
  margin: 13px 0 0;
  color: var(--muted);
  font:
    500 0.68rem/1.5 "DM Mono",
    monospace;
}
.product-summary {
  min-width: 0;
  padding-top: 18px;
}
.product-summary h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 5vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.product-brand {
  color: var(--muted);
}
.product-brand strong {
  color: var(--ink);
}
.product-purchase-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin: 30px 0 22px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.product-purchase-meta small {
  margin-left: 7px;
  color: var(--muted);
}
.product-price {
  font-size: 1.55rem;
  font-weight: 700;
}
.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.product-tags a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  font-weight: 600;
}
.product-tags a:hover {
  border-color: var(--violet);
  color: var(--violet);
}
.product-description {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #555762;
}
.buying-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 30px 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.buying-fit > div {
  background: var(--card);
  padding: 20px;
}
.buying-fit span {
  font:
    500 0.7rem "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.buying-fit p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.product-cta {
  justify-content: space-between;
  width: 100%;
  padding: 17px 22px;
  font-size: 0.96rem;
}
.product-disclosure {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 0.72rem;
}
.share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.share-panel .eyebrow {
  margin: 0;
}
.share-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.share-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.share-actions button,
.share-actions a {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.72rem;
  cursor: pointer;
}
.share-actions button:hover,
.share-actions a:hover {
  background: var(--ink);
  color: #fff;
}
.share-status {
  position: absolute;
  right: 0;
  bottom: -12px;
  color: var(--violet);
  font-size: 0.72rem;
}
.product-information {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.product-section {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  min-width: 0;
}
.product-section h2 {
  margin: 0 0 25px;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  letter-spacing: -0.05em;
}
.feature-list,
.contents-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li,
.contents-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: #5c5e68;
  line-height: 1.55;
}
.feature-list li:before,
.contents-list li:before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}
.specs-section dl {
  margin: 0;
}
.specs-section dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.75fr) 1.25fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.specs-section dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.specs-section dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.related-section {
  padding: 78px 0 100px;
  border-top: 1px solid var(--line);
}
.related-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.related-title h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.06em;
}
.related-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.related-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.related-product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.related-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1/0.92;
  background: #efeee9;
  overflow: hidden;
}
.related-image img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.related-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.related-copy small {
  color: var(--violet);
  font:
    500 0.65rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.related-copy strong {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.related-copy > span {
  color: var(--muted);
  font-size: 0.72rem;
}
.mobile-buy-bar {
  display: none;
}
.product-placeholder {
  font: 5rem Georgia;
  color: #c8c6c0;
}
@media (max-width: 980px) {
  .product-hero {
    grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
    gap: 38px;
  }
  .product-information {
    grid-template-columns: 1fr 1fr;
  }
  .specs-section {
    grid-column: 1/-1;
  }
  .related-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .product-page-shell {
    width: min(100% - 28px, var(--product-max));
  }
  .product-detail-page .topbar {
    height: 64px;
  }
  .product-breadcrumbs {
    padding: 18px 0;
    font-size: 0.72rem;
  }
  .product-hero {
    display: block;
    padding: 0 0 52px;
  }
  .product-gallery {
    position: static;
  }
  .product-media {
    aspect-ratio: 1;
  }
  .product-summary {
    padding-top: 30px;
  }
  .product-summary h1 {
    font-size: clamp(2.25rem, 12vw, 3.9rem);
  }
  .product-purchase-meta small {
    display: block;
    margin: 4px 0 0;
  }
  .product-price {
    font-size: 1.35rem;
  }
  .buying-fit {
    grid-template-columns: 1fr;
  }
  .share-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .share-actions {
    justify-content: flex-start;
  }
  .product-information {
    grid-template-columns: 1fr;
    padding: 50px 0;
  }
  .specs-section {
    grid-column: auto;
  }
  .product-section {
    padding: 25px 20px;
  }
  .related-section {
    padding: 55px 0 100px;
  }
  .related-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .related-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .related-product {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
  .mobile-buy-bar {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 999px;
    background: rgba(17, 18, 26, 0.94);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    color: #fff;
  }
  .mobile-buy-bar a {
    padding: 11px 15px;
    border-radius: 999px;
    background: var(--lime);
    color: #11121a;
    font-size: 0.78rem;
    font-weight: 700;
  }
  .product-detail-page footer {
    padding-bottom: 110px;
  }
}
