/* Product detail pages: comfortable editorial width and breathing room. */
.max-w-5xl {
  max-width: 64rem;
}

body.plaster > main.max-w-5xl {
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 6vw, 5.5rem);
}

body.plaster > main.max-w-5xl > nav {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

body.plaster > main.max-w-5xl > section:first-of-type {
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

body.plaster > main.max-w-5xl > section:first-of-type > div {
  min-width: 0;
}

body.plaster > main.max-w-5xl > section:first-of-type img {
  box-shadow: 0 24px 60px rgba(68, 50, 33, 0.14);
}

body.plaster > main.max-w-5xl > section.prose {
  width: 100%;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body.plaster > main.max-w-5xl > section.prose h2 {
  letter-spacing: -0.02em;
}

body.plaster > main.max-w-5xl > section.prose p {
  font-size: 1rem;
  line-height: 1.8;
}

body.plaster > main.max-w-5xl > section.my-10 {
  width: 100%;
  max-width: 54rem;
  margin: clamp(2.75rem, 5vw, 4rem) auto;
  gap: 1rem;
}

body.plaster > main.max-w-5xl > section.my-10 > div {
  min-height: 4.75rem;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  border-color: rgba(178, 143, 96, 0.2);
  box-shadow: 0 12px 30px rgba(68, 50, 33, 0.055);
}

body.plaster > main.max-w-5xl > section.mt-12,
body.plaster > main.max-w-5xl > aside.mt-12 {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

body.plaster > main.max-w-5xl > section.mt-12:last-of-type {
  max-width: 56rem;
}

body.plaster > main.max-w-5xl details {
  padding: 1.25rem 1.4rem;
  border-color: rgba(178, 143, 96, 0.22);
  box-shadow: 0 10px 24px rgba(68, 50, 33, 0.045);
}

body.plaster > main.max-w-5xl details summary {
  padding-right: 2rem;
  position: relative;
  list-style: none;
}

body.plaster > main.max-w-5xl details summary::-webkit-details-marker {
  display: none;
}

body.plaster > main.max-w-5xl details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.2rem;
  color: #a07a4f;
  font-family: Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
}

body.plaster > main.max-w-5xl details[open] summary::after {
  content: "−";
}

body.plaster > main.max-w-5xl > aside.mt-12 {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 22px 50px rgba(30, 26, 21, 0.14);
}

body.plaster > main.max-w-5xl a.rounded-full {
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.plaster > main.max-w-5xl a.rounded-full:hover {
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  body.plaster > main.max-w-5xl {
    padding: 1.5rem 1.15rem 3.5rem;
  }

  body.plaster > main.max-w-5xl > section:first-of-type {
    gap: 1.75rem;
    margin-bottom: 3.5rem;
  }

  body.plaster > main.max-w-5xl > section:first-of-type h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  body.plaster > main.max-w-5xl > section:first-of-type .flex.flex-wrap a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.plaster > main.max-w-5xl > section.my-10 {
    margin: 2.5rem auto 3.25rem;
  }

  body.plaster > main.max-w-5xl > section.my-10 > div {
    min-height: 0;
  }

  body.plaster > main.max-w-5xl > section.prose p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  body.plaster > main.max-w-5xl > section.mt-12,
  body.plaster > main.max-w-5xl > aside.mt-12 {
    margin-top: 3.5rem;
  }
}

/* Product photo gallery */
.product-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, .9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.product-gallery-heading span {
  display: block;
  margin-bottom: .45rem;
  color: #8a663f;
  font: 700 .72rem/1.2 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-gallery-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
}

.product-gallery-heading p {
  color: rgba(45, 39, 32, .68);
  font-size: .95rem;
  line-height: 1.65;
}

.product-gallery-stage {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #211f1b;
  box-shadow: 0 24px 60px rgba(45, 36, 26, .16);
}

.product-gallery-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(17, 15, 12, .52));
  pointer-events: none;
}

.product-gallery-main span {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(248, 244, 237, .92);
  color: #26231f;
  font: 700 .76rem/1 Inter, sans-serif;
}

.product-gallery-arrow,
.product-gallery-lightbox-arrow,
.product-gallery-close {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(24, 22, 19, .84);
  color: white;
  backdrop-filter: blur(8px);
  transition: transform .2s, background-color .2s;
}

.product-gallery-arrow:hover,
.product-gallery-lightbox-arrow:hover,
.product-gallery-close:hover {
  transform: scale(1.06);
  background: rgba(178, 143, 96, .94);
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.product-gallery-arrow:hover { transform: translateY(-50%) scale(1.06); }
.product-gallery-arrow-prev { left: 1rem; }
.product-gallery-arrow-next { right: 1rem; }

.product-gallery-counter {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  min-width: 4rem;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: rgba(24, 22, 19, .84);
  color: white;
  text-align: center;
  font: 700 .76rem/1 Inter, sans-serif;
  backdrop-filter: blur(8px);
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .75rem;
}

.product-gallery-thumbs button {
  height: 5.7rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: .8rem;
  opacity: .7;
  transition: opacity .2s, border-color .2s, transform .2s;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.is-active {
  border-color: #8a663f;
  opacity: 1;
  transform: translateY(-2px);
}

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

.product-gallery-lightbox[hidden] { display: none; }
.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 14, 12, .96);
}

.product-gallery-lightbox > img {
  width: min(92vw, 92rem);
  height: min(88vh, 64rem);
  object-fit: contain;
}

.product-gallery-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.8rem;
}

.product-gallery-lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.product-gallery-lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
.product-gallery-lightbox-arrow.is-prev { left: 1rem; }
.product-gallery-lightbox-arrow.is-next { right: 1rem; }
.product-gallery-lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  transform: translateX(-50%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(248, 244, 237, .92);
  color: #26231f;
  font: 700 .76rem/1 Inter, sans-serif;
}

@media (max-width: 767px) {
  .product-gallery-heading { grid-template-columns: 1fr; gap: .65rem; }
  .product-gallery-stage { min-height: 31rem; border-radius: 1.1rem; }
  .product-gallery-arrow { top: auto; bottom: .85rem; width: 2.8rem; height: 2.8rem; transform: none; }
  .product-gallery-arrow:hover { transform: scale(1.05); }
  .product-gallery-arrow-prev { left: calc(50% - 4.8rem); }
  .product-gallery-arrow-next { right: calc(50% - 4.8rem); }
  .product-gallery-counter { left: 50%; bottom: .85rem; transform: translateX(-50%); }
  .product-gallery-main span { right: .7rem; bottom: 4.4rem; }
  .product-gallery-thumbs { display: flex; gap: .55rem; overflow-x: auto; padding: .15rem .05rem .45rem; scroll-snap-type: x mandatory; }
  .product-gallery-thumbs button { flex: 0 0 5.5rem; height: 5.5rem; scroll-snap-align: center; }
  .product-gallery-lightbox-arrow { top: auto; bottom: 1rem; transform: none; }
  .product-gallery-lightbox-arrow:hover { transform: scale(1.05); }
  .product-gallery-lightbox-arrow.is-prev { left: 1rem; }
  .product-gallery-lightbox-arrow.is-next { right: 1rem; }
}
