.product-page { overflow-x: hidden; }

.product-breadcrumb { padding-top: 28px; }
.product-breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: start;
  gap: clamp(24px, 3.2vw, 48px);
  padding-block: 18px clamp(74px, 9vw, 118px);
}

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

.product-gallery {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-areas: "thumbs stage";
  column-gap: 14px;
  align-items: stretch;
}

.product-gallery-main {
  grid-area: stage;
  margin: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eee9e2;
  box-shadow: 0 18px 42px rgba(73, 61, 49, .12);
}

.product-gallery-main picture { display: block; background: #eee9e2; }
.product-gallery-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: contain;
  background: #eee9e2;
}

.product-stage-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 3;
  top: 50%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 248, 244, .94);
  color: var(--terracotta-dark);
  box-shadow: 0 6px 16px rgba(73, 61, 49, .16);
  cursor: pointer;
  transform: translateY(-50%);
}
.product-stage-prev { left: 10px; }
.product-stage-next { right: 10px; }
.product-stage-nav:disabled { opacity: .35; cursor: default; }
.product-stage-nav:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.product-stage-nav span {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.product-stage-prev span { transform: rotate(135deg) translateY(-1px); }
.product-stage-next span { transform: rotate(-45deg) translateY(-1px); }
.product-stage-nav[hidden] { display: none; }

.product-zoom-trigger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 248, 244, .94);
  color: var(--terracotta-dark);
  box-shadow: 0 6px 16px rgba(73, 61, 49, .16);
  cursor: zoom-in;
}
.product-zoom-trigger:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.product-zoom-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.product-gallery-main.is-zooming { cursor: crosshair; }
.product-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(250, 248, 244, .94);
  color: #5c605e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.product-gallery-main.is-zooming .product-zoom-hint { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .product-gallery-main { cursor: crosshair; }
}

.product-thumbs-rail {
  grid-area: thumbs;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}
.product-thumbs-arrow {
  width: 40px;
  height: 28px;
  display: none;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf9;
  color: var(--terracotta-dark);
  cursor: pointer;
}
.product-thumbs-rail.is-scrollable .product-thumbs-arrow { display: grid; }
.product-thumbs-arrow:disabled { opacity: .35; cursor: default; }
.product-thumbs-arrow:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.product-thumbs-arrow span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.product-thumbs-prev span { transform: rotate(-135deg) translateY(-1px); }
.product-thumbs-next span { transform: rotate(45deg) translateY(-1px); }

.product-thumbnails {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  width: 80px;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.product-thumbnails::-webkit-scrollbar { display: none; }

.product-thumbnails button {
  width: 72px;
  height: calc((100% - 48px) / 7);
  flex: 0 0 calc((100% - 48px) / 7);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #eee9e2;
  cursor: pointer;
  opacity: .7;
  touch-action: manipulation;
  transition: border-color 180ms ease-out, opacity 180ms ease-out, transform 180ms ease-out;
}

.product-thumbnails button:hover { opacity: 1; transform: translateY(-2px); }
.product-thumbnails button[aria-pressed="true"] { border-color: var(--terracotta); opacity: 1; }
.product-thumbnails button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.product-thumbnails img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  object-fit: cover;
}
.product-summary { position: sticky; top: 24px; padding-top: 0; }
.product-summary h1 { max-width: 560px; margin-bottom: 22px; font-size: clamp(46px, 5vw, 68px); text-wrap: balance; }
.product-lead { max-width: 480px; margin-bottom: 18px; color: #3f4545; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
.product-description { max-width: 500px; margin-bottom: 30px; color: #505553; font-size: 15px; line-height: 1.72; }

.product-quick-facts { margin: 0 0 30px; border-top: 1px solid var(--line); }
.product-quick-facts div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.product-quick-facts dt { color: #5c605e; font-size: 12px; font-weight: 700; }
.product-quick-facts dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.product-quote-button { width: 100%; max-width: 320px; }
.quote-hint { max-width: 390px; margin: 13px 0 0; color: #636765; font-size: 11px; line-height: 1.55; }

.product-configure {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 0 0 22px;
  padding-top: 4px;
}
.product-configure-row {
  display: grid;
  gap: 5px;
}
.product-configure-row label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
.product-configure-row input,
.product-configure-row select,
.product-configure-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #a9a39a;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.product-configure-row textarea { min-height: 72px; resize: vertical; }
.product-configure-row input:focus,
.product-configure-row select:focus,
.product-configure-row textarea:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(42, 157, 143, .24);
  outline-offset: 1px;
}
.product-configure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-volume-table {
  width: 100%;
  margin: 4px 0 2px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.product-volume-table + .product-volume-table {
  margin-top: 18px;
}
.product-volume-table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-volume-table th,
.product-volume-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}
.product-volume-table thead th {
  color: #5c605e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-order-total {
  margin: 2px 0 0;
  color: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 750;
}
.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
}
.product-cta-row .button { flex: 1 1 180px; max-width: none; }
.product-add-button { width: 100%; max-width: 420px; margin-top: 10px; }
.product-order-status a { color: var(--teal-dark); font-weight: 800; }
.product-order-status[data-state="success"] { color: #176f65; font-weight: 700; }
.product-order-status[data-state="error"] { color: #8b2f28; font-weight: 700; }
.product-file-note { max-width: 420px; margin: 8px 0 0; color: #636765; font-size: 12px; line-height: 1.5; }

.product-specifications { padding-block: clamp(74px, 9vw, 112px); background: #f3f0eb; }
.product-section-heading { max-width: 720px; }
.product-section-heading h2 { margin-bottom: 16px; text-wrap: balance; }
.product-section-heading > p:last-child { max-width: 620px; margin: 0; color: #505553; font-size: 15px; line-height: 1.65; }

.shape-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 0; }
.shape-specs.specs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.shape-specs > div { min-width: 0; padding: 4px clamp(22px, 4vw, 50px) 2px; }
.shape-specs > div:first-child { padding-left: 0; }
.shape-specs > div + div { border-left: 1px solid #d5cec6; }
.shape-specs dt { margin-bottom: 12px; color: var(--ink); font-family: var(--serif); font-size: 30px; font-weight: 600; }
.shape-specs dd { margin: 0 0 7px; color: #555a58; font-size: 13px; line-height: 1.5; }
.shape-specs .shape-measure { margin-bottom: 16px; color: var(--terracotta-dark); font-size: 15px; font-weight: 800; letter-spacing: .04em; }

.product-process { padding-block: clamp(76px, 9vw, 116px); }
.product-process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 53px 0 0; padding: 0; list-style: none; }
.product-process-list li { min-width: 0; position: relative; }
.product-process-list li:not(:last-child)::after { content: ""; width: calc(100% - 78px); position: absolute; top: 22px; left: 60px; border-top: 1px dashed rgba(198,90,74,.58); }
.product-process-list span { width: 46px; height: 46px; display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 19px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 16px; font-weight: 800; }
.product-process-list li:nth-child(n+3) span { background: var(--teal-dark); }
.product-process-list h3 { margin-bottom: 9px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 600; }
.product-process-list p { max-width: 225px; margin: 0; color: #555a58; font-size: 13px; line-height: 1.6; }

.product-ordering { padding-block: clamp(76px, 9vw, 112px); background: #eeeae4; }
.product-ordering-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(54px, 8vw, 112px); }
.delivery-details { border-top: 2px solid var(--terracotta); }
.delivery-details section { display: grid; grid-template-columns: 210px 1fr; gap: 34px; padding-block: 24px; border-bottom: 1px solid #d5cec6; }
.delivery-details h3 { margin: 0; color: var(--ink); font-size: 15px; }
.delivery-details p { max-width: 570px; margin: 0; color: #505553; font-size: 13px; line-height: 1.65; }
.delivery-details section > div p + p { margin-top: 0.65em; }
.delivery-details .pricing-detail h3 { color: var(--terracotta-dark); }

.price-schedule {
  margin: 56px 0 0;
  border-top: 1px solid #d5cec6;
}
.price-schedule div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr 1fr;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid #d5cec6;
  font-variant-numeric: tabular-nums;
}
.price-schedule dt { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; }
.price-schedule dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; }
.price-schedule .price-head dt,
.price-schedule .price-head dd { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5c605e; }
.price-schedule-single div { grid-template-columns: minmax(120px, 180px) 1fr; }
.price-schedule-label {
  margin: 48px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-schedule-label + .price-schedule { margin-top: 8px; }
.price-schedule + .price-schedule-label { margin-top: 32px; }

.product-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  padding-block: clamp(72px, 8vw, 104px);
}
.product-final-cta > div { max-width: 720px; }
.product-final-cta h2 { margin-bottom: 14px; }
.product-final-cta p:last-child { max-width: 620px; margin: 0; color: #505553; line-height: 1.65; }
.product-final-cta .button { min-width: 245px; }

@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; gap: 28px; }
  .product-summary { position: static; max-width: 700px; padding-top: 0; }
  .product-summary h1 { max-width: 690px; }
  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "thumbs";
  }
  .product-gallery-main img { max-height: min(52vh, 440px); }
  .product-thumbs-rail {
    flex-direction: row;
    width: 100%;
    height: auto;
    min-width: 0;
  }
  .product-thumbs-prev span { transform: rotate(135deg); }
  .product-thumbs-next span { transform: rotate(-45deg); }
  .product-thumbnails {
    flex-direction: row;
    width: auto;
    flex: 1 1 auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 3px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .product-thumbnails button { width: 72px; height: 72px; flex: 0 0 72px; }
  .product-ordering-layout { grid-template-columns: 1fr; gap: 42px; }
  .product-final-cta { align-items: flex-start; flex-direction: column; gap: 28px; }
}

@media (max-width: 620px) {
  .product-breadcrumb { padding-top: 13px; }
  .product-hero { gap: 22px; padding-top: 12px; padding-bottom: 72px; }
  .product-gallery-main img { max-height: min(48vh, 400px); }
  .product-thumbnails { gap: 8px; margin-inline: -16px; padding-inline: 16px; }
  .product-thumbnails button { width: 68px; height: 68px; flex: 0 0 68px; }
  .price-schedule div { grid-template-columns: 1fr; gap: 4px; }
  .product-summary h1 { font-size: clamp(41px, 12vw, 52px); }
  .product-lead { font-size: 22px; }
  .product-quick-facts div { grid-template-columns: 120px 1fr; gap: 12px; }
  .product-quote-button,
  .product-add-button,
  .product-configure,
  .product-cta-row { max-width: none; }
  .product-configure-pair { grid-template-columns: 1fr; }
  .shape-specs { grid-template-columns: 1fr; margin-top: 40px; }
  .shape-specs > div { padding: 24px 0; }
  .shape-specs > div + div { border-top: 1px solid #d5cec6; border-left: 0; }
  .shape-specs dt { font-size: 26px; }
  .product-process-list { grid-template-columns: 1fr; gap: 31px; margin-top: 40px; }
  .product-process-list li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 17px; }
  .product-process-list li::after { display: none; }
  .product-process-list span { grid-row: 1 / 3; margin: 0; }
  .product-process-list h3 { align-self: end; margin-bottom: 4px; font-size: 22px; }
  .product-process-list p { max-width: none; }
  .delivery-details section { grid-template-columns: 1fr; gap: 8px; padding-block: 21px; }
  .product-final-cta .button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-thumbnails button,
  .product-lightbox { transition-duration: .01ms; }
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.product-lightbox[hidden] { display: none; }
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 28, 24, .78);
}
.product-lightbox-panel {
  width: min(100%, 920px);
  max-height: min(92vh, 1100px);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.product-lightbox-panel img {
  width: auto;
  max-width: 100%;
  max-height: min(86vh, 980px);
  display: block;
  border-radius: 8px;
  background: #eee9e2;
  box-shadow: 0 24px 60px rgba(20, 16, 12, .35);
}
.product-lightbox-close,
.product-lightbox-nav {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(167, 69, 57, .4);
  border-radius: 50%;
  background: rgba(250, 248, 244, .96);
  color: var(--terracotta-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.product-lightbox-close { top: 0; right: 0; }
.product-lightbox-nav { top: 50%; transform: translateY(-50%); }
.product-lightbox-prev { left: 0; }
.product-lightbox-next { right: 0; }
.product-lightbox-close:focus-visible,
.product-lightbox-nav:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.product-lightbox-nav[hidden] { display: none; }

body.product-lightbox-open { overflow: hidden; }

@media (max-width: 620px) {
  .product-lightbox-panel img { max-height: 78vh; }
  .product-lightbox-prev { left: -4px; }
  .product-lightbox-next { right: -4px; }
}
