.product-detail-page {
  min-height: calc(100vh - 87px);
  padding: 106px clamp(18px, 4vw, 64px) 72px;
  background: #fafafa;
  color: #111;
}

.product-detail-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto 22px;
  color: #969696;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-detail-breadcrumb a {
  color: #111;
  text-decoration: none;
}

.product-detail-breadcrumb strong {
  overflow: hidden;
  color: #666;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(360px, 500px);
  grid-template-areas: "gallery thumbnails info";
  gap: 20px;
  max-width: 1800px;
  margin: 0 auto;
}

.product-detail-thumbnails {
  grid-area: thumbnails;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 2px;
}

.product-detail-thumbnail {
  width: 54px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: .38;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.product-detail-thumbnail:hover,
.product-detail-thumbnail.is-active {
  opacity: 1;
}

.product-detail-thumbnail.is-active {
  transform: scale(1.08);
}

.product-detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-gallery {
  grid-area: gallery;
  position: relative;
  overflow: hidden;
  min-height: min(76vh, 840px);
  background: #f0f0f0;
}

.product-detail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .55s ease, transform .8s ease;
}

.product-detail-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-detail-gallery-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 11px;
  letter-spacing: .08em;
}

.product-detail-gallery-badge {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 1;
  color: rgba(17, 17, 17, .58);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-detail-gallery-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 17, 17, .35);
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
}

.product-detail-info {
  grid-area: info;
  align-self: start;
  position: sticky;
  top: 108px;
  padding: 12px 0 0 12px;
}

.product-detail-eyebrow {
  margin-bottom: 15px;
  color: #888;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product-detail-heading h1 {
  margin: 0 0 10px;
  font-family: Arial, sans-serif;
  max-width: 420px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 700;
}

.product-detail-heading strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-save {
  flex: 0 0 auto;
  align-self: flex-start;
  border: 0;
  padding: 4px;
  background: transparent;
  cursor: pointer;
}

.product-detail-save.is-saved {
  color: #d65b2d;
}

.product-detail-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 27px;
  padding-bottom: 25px;
  border-bottom: 1px solid #dedede;
}

.product-detail-tax-note {
  max-width: 250px;
  color: #888;
  font-size: 11px;
  line-height: 1.45;
}

.product-detail-option {
  padding: 0 0 27px;
}

.product-detail-option-label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
}

.product-detail-option-label span:last-child {
  color: #777;
  font-weight: 400;
}

.product-detail-option-label sup {
  color: #aaa;
  font-size: 9px;
}

.product-detail-stock {
  color: #218c36 !important;
  font-weight: 700 !important;
}

.product-detail-swatches {
  display: flex;
  gap: 12px;
}

.product-detail-swatches button {
  width: 58px;
  height: 64px;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.product-detail-swatches button.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px #111;
}

.product-detail-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.product-detail-sizes button {
  min-height: 46px;
  border: 0;
  background: rgba(0, 0, 0, .035);
  color: #222;
  cursor: pointer;
}

.product-detail-sizes button:hover,
.product-detail-sizes button.is-active {
  background: #111;
  color: #fff;
}

.product-detail-sizes button:disabled {
  color: #aaa;
  cursor: not-allowed;
  text-decoration: line-through;
}

.product-detail-fit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: 0;
  background: rgba(0, 0, 0, .035);
  cursor: pointer;
}

.product-detail-model {
  margin: 22px 0 4px;
  color: #888;
  font-size: 12px;
}

.product-detail-size-chart {
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.product-detail-buy-row {
  display: flex;
  gap: 8px;
}

.product-detail-quantity {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 112px;
  border: 1px solid #d5d5d5;
  background: #fff;
}

.product-detail-quantity button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-detail-add {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.product-detail-add:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.product-detail-delivery {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 27px;
  color: #777;
  font-size: 11px;
}

.product-detail-accordions {
  border-top: 1px solid #dedede;
}

.product-detail-accordions details {
  border-bottom: 1px solid #dedede;
}

.product-detail-accordions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  list-style: none;
  color: #222;
  font-size: 12px;
  cursor: pointer;
}

.product-detail-accordions summary::-webkit-details-marker {
  display: none;
}

.product-detail-accordions summary svg {
  transition: transform .2s ease;
}

.product-detail-accordions details[open] summary svg {
  transform: rotate(180deg);
}

.product-detail-accordions p,
.product-detail-accordions ul {
  margin: -4px 0 19px;
  padding: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.65;
}

.product-detail-accordions ul {
  padding-left: 16px;
}

@media (max-width: 900px) {
  .product-detail-page {
    padding: 94px 12px 20px;
  }

  .product-detail-stage {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas:
      "gallery gallery"
      "info thumbnails";
    gap: 16px;
  }

  .product-detail-gallery {
    min-height: min(76vh, 680px);
  }

  .product-detail-info {
    position: static;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .product-detail-page {
    padding: 82px 8px 14px;
  }

  .product-detail-stage {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .product-detail-thumbnail {
    width: 32px;
    height: 44px;
  }

  .product-detail-gallery {
    min-height: min(112vw, 520px);
  }

  .product-detail-info {
    grid-column: 1 / -1;
    padding: 0;
  }

  .product-detail-heading h1 {
    font-size: 23px;
  }

  .product-detail-breadcrumb {
    margin-bottom: 14px;
  }

  .product-detail-description {
    margin: 18px 0 20px;
    font-size: 12px;
  }

  .product-detail-option {
    padding: 20px 0 18px;
  }

  .product-detail-buy-row {
    flex-direction: column;
  }

  .product-detail-quantity {
    width: 100%;
  }

  .product-detail-option-label {
    margin-bottom: 14px;
  }

  .product-detail-swatches button {
    width: 52px;
    height: 56px;
  }

  .product-detail-sizes {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail-fit {
    font-size: 12px;
  }

  .product-detail-model {
    margin-top: 20px;
    font-size: 11px;
  }
}
