.product-page {
  --pd-edge: #e9e8db;
  --pd-dim: #656958;
  --pd-wash: #fffbee;
  padding: 17px 0 62px;
}

.pd-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--pd-dim);
}
.pd-breadcrumbs li { display: inline-flex; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.pd-breadcrumbs li:not(:last-child)::after { content: '›'; color: #858971; }
.pd-breadcrumbs a { color: inherit; text-decoration: none; }
.pd-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.pd-breadcrumbs [aria-current='page'] { color: var(--ink); }

.pd-heading { display: block; margin-bottom: 23px; background: transparent; }
.pd-heading h1 {
  margin: 0;
  max-width: 1060px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.pd-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 13px;
  color: var(--pd-dim);
  font-size: 12px;
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pd-actions .light-button { min-height: 36px; padding: 6px 11px; color: var(--ink); }
.pd-actions .light-button[aria-pressed='true'] { background: #fff2bd; border-color: #ead37c; }

.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(195px, .9fr) minmax(280px, 1fr);
  align-items: start;
  gap: clamp(14px, 2.2vw, 29px);
  margin-bottom: 34px;
}
.pd-gallery { min-width: 0; margin: 0; }
.pd-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(280px, 31vw, 430px);
  padding: clamp(16px, 3vw, 42px);
  border: 1px solid var(--studio-ring, var(--pd-edge));
  border-radius: 14px;
  background: var(--studio-surface, var(--pd-wash)) var(--studio-backdrop, none) center / cover;
  overflow: hidden;
}
.pd-media .pd-photo, .pd-expand { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.pd-media img { display: block; object-fit: contain; mix-blend-mode: multiply; }
.pd-media span.pd-photo { display: grid; place-items: center; }
.pd-media span.pd-photo > svg { width: min(100%, 230px); max-height: 100%; }
.pd-expand { border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.pd-expand-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--pd-edge);
  border-radius: 50%;
  background: #fffdf5;
}
.pd-expand:hover .pd-expand-icon { background: #fff3c5; }
.pd-gallery figcaption { margin: 9px 0 0; font-size: 12px; color: var(--pd-dim); }
.pd-thumbnails { display: flex; gap: 8px; padding: 4px 2px 7px; margin-top: 8px; overflow-x: auto; }
.pd-thumbnails button {
  flex: 0 0 59px;
  height: 59px;
  padding: 6px;
  background: var(--pd-wash);
  border: 1px solid var(--pd-edge);
  border-radius: 8px;
}
.pd-thumbnails button[aria-pressed='true'] { border-color: #bc8a00; box-shadow: inset 0 0 0 1px #bc8a00; }
.pd-thumbnails img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pd-overview { grid-column: 2; grid-row: 1; min-width: 0; padding: 13px 0 8px; }
.pd-overview h2, .pd-fulfillment h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.pd-overview dl { margin: 0 0 12px; }
.pd-overview dl > div { padding: 9px 0; border-bottom: 1px solid var(--pd-edge); }
.pd-overview dt { margin: 0 0 2px; color: var(--pd-dim); font-size: 12px; }
.pd-overview dd { margin: 0; overflow-wrap: anywhere; }
.pd-link { color: #595013; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.pd-link:hover { color: var(--ink); }
.pd-link > .icon { width: 13px; height: 13px; vertical-align: -.13em; }
.pd-overview .pd-link { display: block; margin-top: 8px; }
.pd-series { display: flex; gap: 6px; flex-wrap: wrap; margin-block: 13px; }
.pd-series h3 { flex: 0 0 100%; margin: 0; color: var(--pd-dim); font-size: 13px; }
.pd-series a { padding: 5px 8px; border: 1px solid var(--pd-edge); border-radius: 5px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pd-series a:hover { text-decoration: underline; background: var(--pd-wash); }

.pd-purchase { grid-column: 3; grid-row: 1; min-width: 0; }
.pd-purchase-box, .pd-fulfillment { padding: 19px; border: 1px solid var(--pd-edge); border-radius: 14px; background: #fff; }
.pd-purchase-box { background: linear-gradient(155deg, var(--pd-wash), #fff 63%); box-shadow: 0 3px 14px #53471a0b; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; }
.pd-price strong { font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pd-price span { color: var(--pd-dim); white-space: nowrap; }
.pd-price-unknown strong { font-size: 26px; }
.pd-sale-unit, .pd-price-condition { margin: 5px 0 0; color: var(--pd-dim); font-size: 12px; }
.pd-price-condition { color: #6b5000; font-weight: 650; }
.pd-purchase .price-source-card { margin: 12px 0 15px; }
.pd-purchase-form { margin-top: 14px; }
.pd-purchase-form label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 12px; }
.pd-order-controls { display: flex; flex-wrap: wrap; gap: 9px; }
.pd-quantity {
  display: grid;
  grid-template-columns: 31px minmax(36px, 54px) 31px;
  min-height: 45px;
  flex-shrink: 0;
  border: 1px solid #dcdccb;
  border-radius: 9px;
  background: white;
}
.pd-quantity button, .pd-quantity input { min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; }
.pd-quantity button { display: grid; place-items: center; border-radius: 8px; }
.pd-quantity button:not(:disabled):hover { background: #fff4c9; }
.pd-quantity button:disabled { opacity: .42; cursor: default; }
.pd-quantity .icon { width: 15px; height: 15px; }
.pd-quantity input { appearance: textfield; }
.pd-quantity input::-webkit-inner-spin-button, .pd-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.pd-order-controls .pd-buy { flex: 1 1 105px; min-height: 45px; justify-content: center; padding: 7px 12px; font-size: 14px; }
.pd-in-cart { display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin-top: 12px; color: #455739; font-weight: 650; }
.pd-in-cart .icon { width: 15px; height: 15px; }

.pd-fulfillment { margin-top: 12px; }
.pd-fulfillment ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.pd-fulfillment li { display: flex; gap: 10px; }
.pd-fulfillment .icon { margin-top: 2px; color: #65714e; }
.pd-fulfillment strong { display: block; font-weight: 650; }
.pd-fulfillment small, .pd-fulfillment p { color: var(--pd-dim); font-size: 12px; }
.pd-fulfillment p { margin: 10px 0; }

.pd-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 17px;
  padding: 11px;
  border: 1px solid #eee6c9;
  border-radius: 12px;
  background: var(--pd-wash);
}
.pd-section-nav a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; border-radius: 7px; font-weight: 650; }
.pd-section-nav a:hover { background: #ffefb6; }
.pd-section {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 27px);
  margin: 0 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--pd-edge);
  border-radius: 12px;
  scroll-margin-top: 145px;
}
.pd-section:target { border-color: #d9b645; }
.pd-section h2 { margin: 0 0 10px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.pd-section p { margin: 0; max-width: 76ch; line-height: 1.65; }
.pd-section p + p, .pd-section table + p { margin-top: 11px; }
.pd-description { white-space: pre-line; overflow-wrap: anywhere; }
.pd-documents { display: grid; gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.pd-documents li { padding: 16px; border: 1px solid var(--pd-edge); border-radius: 10px; background: #fffdf4; }
.pd-document-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.pd-document-link strong { flex: 1; font-size: 16px; overflow-wrap: anywhere; }
.pd-document-link > span:last-child { color: #52613d; font-size: 14px; }
.pd-document-link:hover strong { text-decoration: underline; }
.pd-document-format { padding: 7px; border-radius: 6px; background: #ffe7a0; font-weight: 700; font-size: 14px; }
.pd-documents li p { margin-top: 8px; font-size: 14px; color: var(--pd-dim); overflow-wrap: anywhere; }
.pd-spec-table, .pd-offer-table { width: 100%; border-collapse: collapse; text-align: left; }
.pd-spec-table { max-width: 820px; table-layout: fixed; }
.pd-spec-table th { width: 45%; font-weight: 500; color: var(--pd-dim); }
.pd-spec-table th, .pd-spec-table td, .pd-offer-table th, .pd-offer-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--pd-edge);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.pd-spec-table tr:nth-child(odd), .pd-offer-table thead { background: #fbfaf4; }
.pd-table-scroll { overflow-x: auto; }
.pd-offer-table { min-width: 560px; }
.pd-offer-table small { display: block; color: var(--pd-dim); }
.pd-feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }

@media (max-width: 990px) {
  .pd-main { grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr); }
  .pd-purchase { grid-column: 2; grid-row: 1 / span 2; }
  .pd-overview { grid-column: 1; grid-row: 2; padding: 2px 0 0; }
  .pd-overview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}

@media (max-width: 660px) {
  .product-page { padding-top: 13px; padding-bottom: 38px; }
  .pd-breadcrumbs ol { margin-bottom: 13px; font-size: 11px; }
  .pd-heading { margin-bottom: 17px; }
  .pd-heading h1 { font-size: clamp(23px, 6vw, 30px); }
  .pd-meta-row { gap: 7px 15px; }
  .pd-actions { width: 100%; }
  .pd-main { display: flex; flex-direction: column; margin-bottom: 22px; }
  .pd-gallery, .pd-overview, .pd-purchase { width: 100%; }
  .pd-media { height: clamp(230px, 72vw, 360px); }
  .pd-purchase-box, .pd-fulfillment { padding: 14px; }
  .pd-fulfillment ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-section-nav { padding: 8px; gap: 3px; }
  .pd-section-nav a { font-size: 12px; padding: 8px; }
  .pd-section { scroll-margin-top: 171px; }
  .pd-feedback { display: block; }
  .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pd-spec-table th, .pd-spec-table td { padding: 8px; }
}
