:root {
  --product-ink: var(--ink, #352a1f);
  --product-cream: var(--cream, #f6f0e5);
  --product-paper: var(--paper, #fcfaf6);
  --product-gold: var(--gold, #b58a48);
  --product-gold-deep: var(--gold-deep, #8c6937);
  --product-champagne: var(--champagne, #dfc99f);
  --product-sand: var(--sand, #e9ddc7);
  --product-ivory: var(--ivory, #f2eadb);
  --product-muted: var(--muted, #82796d);
  --product-line: var(--line, rgba(76, 59, 39, .17));
  --product-focus: rgba(181, 138, 72, .62);
}

body.product-page {
  min-width: 0;
  overflow-x: hidden;
  background: var(--product-cream);
  color: var(--product-ink);
}

body.product-page a {
  color: inherit;
}

.product-main {
  width: 100%;
  overflow: hidden;
}

.product-main > * {
  min-width: 0;
}

.product-breadcrumb {
  width: min(1280px, calc(100% - clamp(32px, 8vw, 96px)));
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 42px) 0 0;
  color: var(--product-muted);
  font-size: 10px;
  letter-spacing: .045em;
}

.product-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 24px;
}

.product-breadcrumb li:not(:last-child)::after {
  width: 18px;
  height: 1px;
  background: var(--product-line);
  content: "";
}

.product-breadcrumb a {
  color: var(--product-gold-deep);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--product-ink);
}

.product-layout {
  width: min(1280px, calc(100% - clamp(32px, 8vw, 96px)));
  margin: clamp(24px, 4vw, 52px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(30px, 5.4vw, 78px);
  align-items: start;
}

.product-gallery,
.product-purchase {
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.gallery-stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 1.05 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 0;
  background: var(--product-sand);
  color: var(--product-ink);
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-stage img#product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--product-sand);
}

.gallery-stage[data-fit="cover"] img#product-main-image,
.gallery-stage.is-cover img#product-main-image {
  object-fit: cover;
}

.gallery-stage[data-fit="contain"] img#product-main-image,
.gallery-stage.is-contain img#product-main-image {
  object-fit: contain;
}

.gallery-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(53, 42, 31, .2);
  border-radius: 2px;
  background: rgba(252, 250, 246, .9);
  color: var(--product-gold-deep);
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
}

.gallery-expand::before {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  content: "";
}

.gallery-expand::after {
  position: absolute;
  width: 5px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(6px, 6px) rotate(45deg);
}

.gallery-expand::before,
.gallery-expand::after { display: none; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 110px);
  gap: 9px;
}

.gallery-thumbs button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 76px;
  aspect-ratio: 1.22 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 0;
  background: var(--product-ivory);
  color: var(--product-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-thumbs button:hover,
.gallery-thumbs button[aria-pressed="true"],
.gallery-thumbs button.is-active {
  border-color: var(--product-gold);
}

.gallery-thumbs button[aria-pressed="true"]::after,
.gallery-thumbs button.is-active::after {
  position: absolute;
  inset: 0;
  border: 2px solid var(--product-gold);
  content: "";
  pointer-events: none;
}

.gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  background: rgba(252, 250, 246, .9);
  padding: 5px;
  overflow: hidden;
  color: var(--product-ink);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-thumbs span::before {
  position: absolute;
  z-index: -1;
  inset: -4px -5px;
  background: rgba(252, 250, 246, .78);
  content: "";
}

.gallery-caption {
  min-height: 19px;
  margin: 0;
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .025em;
}

.product-purchase {
  position: sticky;
  top: clamp(100px, 9vw, 132px);
  padding: clamp(4px, 1vw, 12px) 0 clamp(10px, 2vw, 24px);
}

.product-purchase > .eyebrow {
  margin-bottom: 17px;
  color: var(--product-gold-deep);
}

.product-title {
  max-width: 560px;
  margin: 0;
  color: var(--product-ink);
  font: 500 clamp(47px, 5.5vw, 80px) / .87 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}

.product-lead {
  max-width: 480px;
  margin: 25px 0 0;
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.85;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 27px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--product-line);
  color: var(--product-gold-deep);
}

.product-price strong {
  font: 600 clamp(25px, 3vw, 37px) / 1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .015em;
}

.product-price small {
  max-width: 215px;
  color: var(--product-muted);
  font-size: 9px;
  line-height: 1.5;
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .025em;
}

.product-availability::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid var(--product-gold-deep);
  border-radius: 50%;
  background: var(--product-gold);
  content: "";
}

.product-buy-controls {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(0, 2fr);
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}

.product-buy-controls label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--product-gold-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-buy-controls input[data-selected-quantity] {
  width: 100%;
  min-height: 52px;
  padding: 12px 11px;
  border: 1px solid var(--product-line);
  border-radius: 0;
  background: var(--product-paper);
  color: var(--product-ink);
  font: 500 16px/1 Inter, Arial, sans-serif;
}

.product-buy-controls input[data-selected-quantity]:hover {
  border-color: var(--product-gold);
}

.product-buy-controls button.button.button-primary[data-add] {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 1px;
  background: var(--product-gold);
  color: #fff;
  font-size: 10px;
  letter-spacing: .065em;
  text-align: center;
  transform: none;
}

.product-buy-controls button.button.button-primary[data-add]:hover {
  border-color: var(--product-gold-deep);
  background: var(--product-gold-deep);
  transform: none;
}

.product-disclaimer {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--product-muted);
  font-size: 9px;
  line-height: 1.65;
}

.product-consult.button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border-color: var(--product-gold);
  color: var(--product-ink);
  font-size: 10px;
  letter-spacing: .06em;
  text-align: center;
}

.product-consult.button:hover {
  border-color: var(--product-ink);
  background: var(--product-ink);
  color: #fff;
  transform: none;
}

.product-information,
.product-related {
  width: min(1280px, calc(100% - clamp(32px, 8vw, 96px)));
  margin-right: auto;
  margin-left: auto;
}

.product-information {
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--product-line);
}

.product-information > h2 { font: 500 36px/1.1 "Cormorant Garamond", Georgia, serif; margin: 28px 0 14px; }
.product-art { text-decoration: none; }
.product-details-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 3px 0 7px; color: var(--product-gold-deep); font-size: 10px; text-decoration: none; }
.product-details-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.product-information details {
  border-bottom: 1px solid var(--product-line);
}

.product-information summary {
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 13px 0;
  color: var(--product-ink);
  cursor: pointer;
  font: 600 clamp(18px, 2.2vw, 25px) / 1.15 "Cormorant Garamond", Georgia, serif;
  list-style: none;
}

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

.product-information summary::after {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--product-gold);
  border-radius: 50%;
  color: var(--product-gold-deep);
  content: "+";
  font: 400 16px/16px Inter, Arial, sans-serif;
  text-align: center;
}

.product-information details[open] summary::after {
  content: "–";
}

.product-information details > :not(summary) {
  max-width: 680px;
}

.product-information details p,
.product-information details ul {
  margin: 0 0 23px;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 1.8;
}

.product-information details ul {
  padding-left: 18px;
}

.product-information details li + li {
  margin-top: 6px;
}

.product-information details strong {
  color: var(--product-ink);
  font-weight: 600;
}

.product-related {
  margin-top: clamp(68px, 10vw, 134px);
  padding-bottom: clamp(68px, 9vw, 120px);
}

.product-related .section-intro {
  align-items: end;
  gap: 30px;
  padding-top: clamp(26px, 3vw, 43px);
  border-top: 1px solid var(--product-line);
}

.product-related .section-intro h2 {
  color: var(--product-ink);
  font-size: clamp(43px, 5vw, 68px);
}

.product-related .section-intro > p {
  max-width: 330px;
  color: var(--product-muted);
}

.product-related .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 25px);
  margin-top: 38px;
}

.product-related .product-card {
  min-width: 0;
}

.product-related .product-art {
  display: flex;
  min-width: 0;
  aspect-ratio: .88;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: var(--product-ink);
  text-decoration: none;
}

.product-related .product-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-related .product-info {
  min-width: 0;
}

.product-related .product-info h3 {
  min-width: 0;
  line-height: 1.05;
}

.product-related .product-info h3 a.product-name-link,
.product-related .product-info a.product-name-link,
.cart-line h3 a.product-name-link,
a.product-name-link {
  color: inherit;
  text-decoration: none;
}

.product-related .product-info h3 a.product-name-link:hover,
.cart-line h3 a.product-name-link:hover,
a.product-name-link:hover {
  color: var(--product-gold-deep);
}

.product-related .product-info a.product-details-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--product-gold-deep);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.product-related .product-info a.product-details-link:hover {
  color: var(--product-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-line h3 a.product-name-link {
  display: inline;
  color: inherit;
}

.cart-line h3 a.product-name-link:hover {
  color: var(--product-gold-deep);
}

dialog.gallery-dialog:not([open]) {
  display: none;
}

.gallery-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--product-line);
  border-radius: 0;
  background: var(--product-paper);
  color: var(--product-ink);
  box-shadow: 0 24px 72px rgba(53, 42, 31, .22);
}

.gallery-dialog::backdrop {
  background: rgba(53, 42, 31, .58);
}

.gallery-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.gallery-dialog-top {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--product-line);
}

.gallery-dialog-top p {
  margin: 0;
  color: var(--product-gold-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-dialog-top button[data-close-gallery] {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--product-line);
  border-radius: 50%;
  background: transparent;
  color: var(--product-ink);
  cursor: pointer;
  font: 400 22px/1 "Cormorant Garamond", Georgia, serif;
}

.gallery-dialog-top button[data-close-gallery]:hover {
  border-color: var(--product-gold);
  color: var(--product-gold-deep);
}

.gallery-dialog img[data-zoom-image] {
  display: block;
  width: 100%;
  height: min(77dvh, 760px);
  min-height: 260px;
  object-fit: contain;
  object-position: center;
  background: var(--product-sand);
}

.gallery-dialog > p:last-child {
  margin: 0;
  padding: 13px 18px 16px;
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.55;
}

.product-page :where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--product-focus);
  outline-offset: 3px;
}

.product-page :where(button, input, summary) {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .product-purchase {
    position: static;
    padding-top: 0;
  }

  .product-related .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .product-breadcrumb,
  .product-layout,
  .product-information,
  .product-related {
    width: min(100% - 34px, 1280px);
  }

  .product-breadcrumb {
    padding-top: 20px;
    font-size: 9px;
  }

  .product-layout {
    margin-top: 20px;
    gap: 32px;
  }

  .gallery-stage {
    min-height: 0;
    aspect-ratio: .96 / 1;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(105px, 110px));
    gap: 7px;
  }

  .gallery-thumbs button {
    min-height: 70px;
  }

  .gallery-caption {
    font-size: 9px;
  }

  .product-title {
    font-size: clamp(48px, 16vw, 66px);
  }

  .product-lead {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.75;
  }

  .product-price {
    margin-top: 22px;
  }

  .product-buy-controls {
    grid-template-columns: 92px minmax(0, 1fr);
    margin-top: 24px;
  }

  .product-buy-controls input[data-selected-quantity] {
    font-size: 16px;
  }

  .product-information {
    margin-top: 65px;
  }

  .product-information summary {
    min-height: 57px;
    font-size: 20px;
  }

  .product-information details p,
  .product-information details ul {
    margin-bottom: 19px;
    font-size: 11px;
    line-height: 1.75;
  }

  .product-related {
    margin-top: 76px;
    padding-bottom: 69px;
  }

  .product-related .section-intro {
    display: block;
  }

  .product-related .section-intro h2 {
    font-size: 51px;
  }

  .product-related .section-intro > p {
    margin-top: 17px;
  }

  .product-related .products {
    gap: 18px 10px;
    margin-top: 29px;
  }

  .product-related .product-art {
    aspect-ratio: .82;
  }

  .product-related .product-info {
    display: block;
    padding-top: 11px;
  }

  .product-related .product-info h3 {
    font-size: 17px;
  }

  .product-related .product-info a.product-details-link {
    margin-top: 6px;
    font-size: 8px;
  }

  .gallery-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .gallery-dialog-top {
    min-height: 58px;
    padding: 8px 11px 8px 15px;
  }

  .gallery-dialog img[data-zoom-image] {
    height: min(74dvh, 620px);
    min-height: 220px;
  }

  .gallery-dialog > p:last-child {
    padding: 11px 15px 14px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-page * {
    scroll-behavior: auto;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
