.product-page main { padding-top: 70px; }
.breadcrumbs {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding-block: 30px 24px;
  color: var(--quiet);
  font-size: 13px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--paper); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, .83fr);
  align-items: start;
  gap: clamp(36px, 6.2vw, 105px);
}

.gallery-stage {
  position: relative;
  aspect-ratio: 1.12;
  min-height: 260px;
  background: var(--image-placeholder);
}
.gallery-image { display: block; width: 100%; height: 100%; }
.gallery-image img, .gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
}
.gallery-image { cursor: grab; touch-action: pan-y pinch-zoom; }
.gallery-image .gallery-zoom { cursor: zoom-in; }
.gallery-zoom, .gallery-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f5ecdf60;
  border-radius: 50%;
  background: var(--photo-control);
  color: var(--photo-text);
  padding: 0;
  transition: background .2s, color .2s;
}
.gallery-zoom { position: absolute; inset: 16px 16px auto auto; }
.gallery-image:hover .gallery-zoom, .gallery-controls button:hover { background: var(--photo-text); color: #211810; }
.gallery-controls { position: absolute; inset: auto 16px 16px auto; display: flex; gap: 8px; }
.gallery-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--thumb-gap)) / 4);
  gap: var(--thumb-gap);
  margin-top: var(--thumb-gap);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  --thumb-gap: 8px;
}
.gallery-thumbnails::-webkit-scrollbar { display: none; }
.gallery-image.is-dragging, .gallery-thumbnails.is-dragging, .gallery-dialog img.is-dragging { cursor: grabbing; }
.gallery-image img, .gallery-thumbnails img, .gallery-dialog img { user-select: none; }
.gallery-thumbnails a {
  display: block;
  cursor: inherit;
  aspect-ratio: 1.32;
  border: 1px solid transparent;
  padding: 3px;
  background: var(--thumbnail-surface);
  transition: border-color .2s;
}
.gallery-thumbnails a:hover { border-color: #a57d59; }
.gallery-thumbnails a[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbnails a:focus-visible { outline-offset: -3px; }

.detail-copy { padding-top: clamp(0px, 1.6vw, 28px); }
.detail-copy > .overline { color: var(--accent); }
.detail-copy h1, .related-heading h2 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(52px, 6.2vw, 92px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.detail-copy h1 span, .related-heading em { color: var(--heading-emphasis); }
.detail-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 19px; margin-top: 20px; }
.detail-price > p { font-size: 19px; }
.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: var(--warm-label);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.detail-description {
  margin-top: 22px;
  color: var(--body-copy);
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 37ch;
  line-height: 1.55;
}
.detail-description p + p { margin-top: 12px; }
.detail-description a { text-decoration: underline; }
.description-disclosure summary { list-style: none; }
.description-disclosure summary::-webkit-details-marker { display: none; }
.description-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.description-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.description-disclosure[open] :is(.description-preview, .description-more),
.description-disclosure:not([open]) .description-less { display: none; }
.colour-picker {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.colour-picker legend { padding: 0; font-size: 14px; font-weight: 700; }
.colour-picker strong { color: var(--accent); font-weight: 700; }
.colour-divider { color: var(--quiet); margin-inline: 4px; }
.colour-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
  gap: 8px;
  margin-top: 10px;
}
.colour-option {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 56px;
  padding: 8px 22px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--thumbnail-surface);
  color: var(--paper);
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.colour-option:hover { border-color: var(--accent); }
.colour-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.colour-option::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 9px;
  width: 9px;
  height: 5px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  pointer-events: none;
  visibility: hidden;
}
.colour-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--feature-surface);
}
.colour-option:has(input:checked)::after { visibility: visible; }
.colour-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.colour-photo {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}
.colour-swatch {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--swatch);
}
@media (max-width: 680px) {
  .colour-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.colour-note { margin-top: 6px; color: var(--quiet); font-size: 12px; }
.product-action { width: min(100%, 350px); margin-top: 27px; padding-inline: 20px; min-height: 50px; }
.detail-price:empty, .detail-price:has(> p[hidden]:only-child) { display: none; }
.purchase-controls { max-width: 415px; }
.purchase-form { display: flex; align-items: flex-end; gap: 12px; margin-top: 25px; }
.purchase-quantity { flex: 0 0 130px; }
.purchase-quantity label { display: block; margin-bottom: 6px; color: var(--quiet); font-size: 12px; }
.quantity-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.quantity-stepper button, .quantity-stepper input {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}
.quantity-stepper button { display: grid; place-items: center; }
.quantity-stepper [data-step="down"] { border-radius: 999px 0 0 999px; }
.quantity-stepper [data-step="up"] { border-radius: 0 999px 999px 0; }
.quantity-stepper button:disabled { opacity: .4; cursor: default; }
.quantity-stepper button:hover:not(:disabled) { color: var(--accent); }
.quantity-stepper input { appearance: textfield; font-variant-numeric: tabular-nums; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quantity-stepper :focus-visible { outline-offset: -3px; }
.purchase-submit {
  flex: 1;
  min-height: 50px;
  justify-content: center;
  padding-inline: 13px;
  border: 0;
}
.purchase-submit:disabled { opacity: .55; cursor: default; background: var(--button-background); }
.purchase-status { margin-top: 11px; color: var(--body-copy); font-size: 14px; }
.purchase-status:empty { display: none; }
.product-action.purchase-fallback { width: auto; min-height: 44px; margin-top: 10px; padding-inline: 0; color: var(--quiet); }
.product-specifications { margin-top: 28px; }
.product-specifications details { border-block-start: 1px solid var(--line); }
.product-specifications details:last-child { border-block-end: 1px solid var(--line); }
.product-specifications summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  font-size: 14px;
}
.product-specifications summary::-webkit-details-marker { display: none; }
.product-specifications summary::before, .product-specifications summary::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  top: 50%;
  right: 0;
  background: var(--accent);
}
.product-specifications summary::before { transform: rotate(90deg); }
.product-specifications details[open] summary::before { display: none; }
.product-specifications details > p { padding-bottom: 14px; color: var(--quiet); max-width: 46ch; font-size: 14px; line-height: 1.5; }
.product-specifications details > p a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.detail-specs { padding-bottom: 12px; color: var(--paper); }
.detail-specs > div {
  display: grid;
  grid-template-columns: minmax(94px, .46fr) 1fr;
  gap: 12px;
  padding-block: 5px;
  font-size: 13px;
  line-height: 1.4;
}
.detail-specs dt { color: var(--quiet); }
.detail-specs dd { white-space: pre-line; }

.related-lamps { margin-top: clamp(80px, 9vw, 145px); padding-bottom: clamp(80px, 9vw, 145px); }
.related-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 17px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-bottom: 27px;
}
.related-heading h2 { font-size: clamp(38px, 5vw, 68px); }
.related-lamps .product-image { aspect-ratio: 1; }
.related-lamps .product-image img { object-position: var(--photo-position, 50% 50%); }

.gallery-dialog {
  width: fit-content;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 30px);
  border: 1px solid var(--line);
  padding: 0;
  background: #211812;
  color: var(--photo-text);
}
.gallery-dialog::backdrop { background: #0c0908e5; }
.gallery-dialog img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; cursor: grab; touch-action: pan-y pinch-zoom; }
.gallery-dialog button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f5ecdf75;
  border-radius: 50%;
  background: #171310e8;
  padding: 0;
}
.gallery-dialog button:hover { background: #4b3628; }

@media (max-width: 900px) {
  .detail-layout { gap: 30px; }
  .detail-copy h1 { font-size: clamp(44px, 6.5vw, 70px); }
}
@media (max-width: 760px) {
  .product-page main { padding-top: 63px; }
  .breadcrumbs { padding-block: 22px 16px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-copy { padding-top: 4px; }
  .detail-copy h1 { font-size: clamp(44px, 9.8vw, 72px); }
  .gallery-stage { aspect-ratio: 1.04; }
  .gallery-zoom { inset: 10px 10px auto auto; }
  .gallery-controls { inset: auto 10px 10px auto; gap: 5px; }
  .gallery-thumbnails { --thumb-gap: 5px; }
  .product-action { width: 100%; }
  .related-heading { flex-wrap: wrap; align-items: flex-start; }
}
