/* Product listing section shared by PHP SSR material detail pages.
   This is intentionally isolated so material/header/hero styling cannot be affected. */


/* Sticky filter needs every ancestor to allow visible overflow.
   rp-page-main previously used overflow:hidden, which breaks position: sticky. */
body.rp-material-detail-ssr-page .rp-page-main,
body.rp-material-detail-ssr-page .rp-material-products-section,
body.rp-material-detail-ssr-page .rp-material-products-section .rp-container,
body.rp-material-detail-ssr-page .rp-product-shop-layout {
  overflow: visible !important;
}

body.rp-material-detail-ssr-page .rp-product-shop-section {
  border-top: 1px solid #e5ded3;
  border-bottom: 0;
  padding: 78px 0 96px;
  background: #fff;
  overflow: visible;
}

body.rp-material-detail-ssr-page .rp-product-shop-section .rp-section-heading-row {
  margin-bottom: 42px;
  border-bottom: 1px solid #e5ded3;
  padding-bottom: 28px;
}

body.rp-material-detail-ssr-page .rp-product-shop-section .rp-section-heading-row h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .025em;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 1.04;
  color: var(--nero);
}

body.rp-material-detail-ssr-page .rp-product-shop-section .rp-section-heading-row > p {
  max-width: 620px;
  color: rgba(8,8,8,.62);
  font-size: 14px;
  line-height: 1.85;
}

body.rp-material-detail-ssr-page .rp-product-shop-layout {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  overflow: visible;
}

body.rp-material-detail-ssr-page .rp-shop-filter-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 2;
  max-height: calc(100vh - 136px);
  overflow: auto;
  border: 1px solid #d8cdbc;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px -58px rgba(0,0,0,.55);
  outline: 1px solid rgba(0,0,0,.025);
}

body.rp-material-detail-ssr-page .rp-shop-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

body.rp-material-detail-ssr-page .rp-shop-mini-label {
  font-family: var(--font-mono);
  color: var(--vein);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
}

body.rp-material-detail-ssr-page .rp-shop-filter-note {
  margin-top: 6px;
  color: rgba(8,8,8,.55);
  font-size: 14px;
  line-height: 1.5;
}

body.rp-material-detail-ssr-page .rp-shop-filter-header button {
  border: 0;
  background: transparent;
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

body.rp-material-detail-ssr-page .rp-shop-label {
  display: block;
  margin: 0 0 12px;
  color: var(--nero);
  font-size: 14px;
  font-weight: 500;
}

body.rp-material-detail-ssr-page .rp-shop-search {
  width: 100%;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  color: var(--nero);
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}

body.rp-material-detail-ssr-page .rp-shop-search::placeholder { color: rgba(8,8,8,.35); }
body.rp-material-detail-ssr-page .rp-shop-search:focus { border-color: var(--vein); background: #fff; }

body.rp-material-detail-ssr-page .rp-shop-filter-group {
  border-bottom: 1px solid #ded6c9;
  padding: 16px 0;
}

body.rp-material-detail-ssr-page .rp-shop-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.rp-material-detail-ssr-page .rp-shop-filter-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--nero);
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .3s ease;
}

body.rp-material-detail-ssr-page .rp-shop-filter-title:hover { color: var(--vein); }

body.rp-material-detail-ssr-page .rp-shop-filter-title span:last-child {
  color: var(--vein);
  font-size: 22px;
  line-height: 1;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

body.rp-material-detail-ssr-page .rp-shop-filter-title[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

body.rp-material-detail-ssr-page .rp-shop-filter-options {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  overflow: hidden;
  height: auto;
  opacity: 1;
  transition:
    height .42s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    padding-top .42s cubic-bezier(.22, 1, .36, 1);
  will-change: height, opacity;
}

body.rp-material-detail-ssr-page .rp-shop-filter-options[hidden] {
  display: grid !important;
  height: 0 !important;
  padding-top: 0 !important;
  opacity: 0 !important;
  visibility: hidden;
}

body.rp-material-detail-ssr-page .rp-shop-filter-group.is-animating .rp-shop-filter-options {
  visibility: visible;
}

body.rp-material-detail-ssr-page .rp-shop-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e1d8cc;
  background: #fff;
  color: rgba(8,8,8,.68);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

body.rp-material-detail-ssr-page .rp-shop-option:hover,
body.rp-material-detail-ssr-page .rp-shop-option.is-active {
  border-color: rgba(191,164,106,.65);
  background: #fbfaf8;
  color: var(--nero);
  box-shadow: inset 3px 0 0 var(--vein);
}

body.rp-material-detail-ssr-page .rp-shop-results-column { min-width: 0; }

body.rp-material-detail-ssr-page .rp-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5ded3;
  padding-bottom: 16px;
}

body.rp-material-detail-ssr-page .rp-shop-count {
  color: rgba(8,8,8,.6);
  font-size: 14px;
  line-height: 1.5;
}

body.rp-material-detail-ssr-page .rp-shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.rp-material-detail-ssr-page .rp-shop-controls select {
  border: 1px solid #d8cdbc;
  background: #fff;
  color: var(--nero);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease;
}

body.rp-material-detail-ssr-page .rp-shop-controls select:focus { border-color: var(--vein); }

body.rp-material-detail-ssr-page .rp-shop-product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

body.rp-material-detail-ssr-page .rp-shop-product-card[hidden],
body.rp-material-detail-ssr-page .rp-shop-product-card.is-load-hidden[hidden] {
  display: none !important;
}

body.rp-material-detail-ssr-page .rp-shop-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8,8,8,.1);
  background: #fff;
  transition: transform .5s ease, box-shadow .5s ease, border-color .35s ease;
}

body.rp-material-detail-ssr-page .rp-shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191,164,106,.55);
  box-shadow: 0 35px 90px -65px rgba(0,0,0,.55);
}

body.rp-material-detail-ssr-page .rp-shop-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.rp-material-detail-ssr-page .rp-shop-product-image {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #eee6d8;
}

body.rp-material-detail-ssr-page .rp-shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}

body.rp-material-detail-ssr-page .rp-shop-product-card:hover .rp-shop-product-image img {
  transform: scale(1.05);
}

body.rp-material-detail-ssr-page .rp-shop-product-image > span:not(.rp-shop-availability) {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eee6d8;
  color: rgba(8,8,8,.62);
  text-align: center;
}

body.rp-material-detail-ssr-page .rp-shop-availability {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255,255,255,.92);
  color: var(--vein);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .22em;
}

body.rp-material-detail-ssr-page .rp-shop-product-body { padding: 15px; }

body.rp-material-detail-ssr-page .rp-shop-card-kicker {
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .28em;
}

body.rp-material-detail-ssr-page .rp-shop-product-body h3 {
  margin: 9px 0 0;
  font-family: var(--font-display);
  color: var(--nero);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: .025em;
}

body.rp-material-detail-ssr-page .rp-shop-product-material {
  margin-top: 8px;
  color: rgba(8,8,8,.55);
  font-size: 12px;
  line-height: 1.5;
}

body.rp-material-detail-ssr-page .rp-shop-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--nero);
  font-size: 12px;
}

body.rp-material-detail-ssr-page .rp-shop-product-bottom span:last-child {
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .22em;
  white-space: nowrap;
}

body.rp-material-detail-ssr-page .rp-product-load-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

body.rp-material-detail-ssr-page .rp-product-load-row [hidden] { display: none !important; }
body.rp-material-detail-ssr-page .rp-no-products { margin-top: 24px; color: rgba(8,8,8,.6); }


@media (max-width: 1500px) and (min-width: 1181px) {
  body.rp-material-detail-ssr-page .rp-product-shop-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
  }
  body.rp-material-detail-ssr-page .rp-shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1180px) {
  body.rp-material-detail-ssr-page .rp-product-shop-layout { grid-template-columns: 1fr; }
  body.rp-material-detail-ssr-page .rp-shop-filter-panel { position: static; max-height: none; }
  body.rp-material-detail-ssr-page .rp-shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.rp-material-detail-ssr-page .rp-product-shop-section { padding: 58px 0 72px; }
  body.rp-material-detail-ssr-page .rp-shop-product-grid { grid-template-columns: 1fr; }
  body.rp-material-detail-ssr-page .rp-shop-toolbar { align-items: stretch; }
  body.rp-material-detail-ssr-page .rp-shop-controls,
  body.rp-material-detail-ssr-page .rp-shop-controls select { width: 100%; }
  body.rp-material-detail-ssr-page .rp-shop-product-body h3 { font-size: 24px; }
}

/* Product core SSR page uses the same product-shop visual system as material detail product sections. */

/* Product listing section shared by PHP SSR material detail pages.
   This is intentionally isolated so material/header/hero styling cannot be affected. */


/* Sticky filter needs every ancestor to allow visible overflow.
   rp-page-main previously used overflow:hidden, which breaks position: sticky. */
body.rp-products-ssr-page .rp-page-main,
body.rp-products-ssr-page .rp-material-products-section,
body.rp-products-ssr-page .rp-material-products-section .rp-container,
body.rp-products-ssr-page .rp-product-shop-layout {
  overflow: visible !important;
}

body.rp-products-ssr-page .rp-product-shop-section {
  border-top: 1px solid #e5ded3;
  border-bottom: 0;
  padding: 78px 0 96px;
  background: #fff;
  overflow: visible;
}

body.rp-products-ssr-page .rp-product-shop-section .rp-section-heading-row {
  margin-bottom: 42px;
  border-bottom: 1px solid #e5ded3;
  padding-bottom: 28px;
}

body.rp-products-ssr-page .rp-product-shop-section .rp-section-heading-row h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .025em;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 1.04;
  color: var(--nero);
}

body.rp-products-ssr-page .rp-product-shop-section .rp-section-heading-row > p {
  max-width: 620px;
  color: rgba(8,8,8,.62);
  font-size: 14px;
  line-height: 1.85;
}

body.rp-products-ssr-page .rp-product-shop-layout {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  overflow: visible;
}

body.rp-products-ssr-page .rp-shop-filter-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 2;
  max-height: calc(100vh - 136px);
  overflow: auto;
  border: 1px solid #d8cdbc;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px -58px rgba(0,0,0,.55);
  outline: 1px solid rgba(0,0,0,.025);
}

body.rp-products-ssr-page .rp-shop-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

body.rp-products-ssr-page .rp-shop-mini-label {
  font-family: var(--font-mono);
  color: var(--vein);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
}

body.rp-products-ssr-page .rp-shop-filter-note {
  margin-top: 6px;
  color: rgba(8,8,8,.55);
  font-size: 14px;
  line-height: 1.5;
}

body.rp-products-ssr-page .rp-shop-filter-header button {
  border: 0;
  background: transparent;
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

body.rp-products-ssr-page .rp-shop-label {
  display: block;
  margin: 0 0 12px;
  color: var(--nero);
  font-size: 14px;
  font-weight: 500;
}

body.rp-products-ssr-page .rp-shop-search {
  width: 100%;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  color: var(--nero);
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}

body.rp-products-ssr-page .rp-shop-search::placeholder { color: rgba(8,8,8,.35); }
body.rp-products-ssr-page .rp-shop-search:focus { border-color: var(--vein); background: #fff; }

body.rp-products-ssr-page .rp-shop-filter-group {
  border-bottom: 1px solid #ded6c9;
  padding: 16px 0;
}

body.rp-products-ssr-page .rp-shop-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.rp-products-ssr-page .rp-shop-filter-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--nero);
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .3s ease;
}

body.rp-products-ssr-page .rp-shop-filter-title:hover { color: var(--vein); }

body.rp-products-ssr-page .rp-shop-filter-title span:last-child {
  color: var(--vein);
  font-size: 22px;
  line-height: 1;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

body.rp-products-ssr-page .rp-shop-filter-title[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

body.rp-products-ssr-page .rp-shop-filter-options {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  overflow: hidden;
  height: auto;
  opacity: 1;
  transition:
    height .42s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    padding-top .42s cubic-bezier(.22, 1, .36, 1);
  will-change: height, opacity;
}

body.rp-products-ssr-page .rp-shop-filter-options[hidden] {
  display: grid !important;
  height: 0 !important;
  padding-top: 0 !important;
  opacity: 0 !important;
  visibility: hidden;
}

body.rp-products-ssr-page .rp-shop-filter-group.is-animating .rp-shop-filter-options {
  visibility: visible;
}

body.rp-products-ssr-page .rp-shop-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e1d8cc;
  background: #fff;
  color: rgba(8,8,8,.68);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

body.rp-products-ssr-page .rp-shop-option:hover,
body.rp-products-ssr-page .rp-shop-option.is-active {
  border-color: rgba(191,164,106,.65);
  background: #fbfaf8;
  color: var(--nero);
  box-shadow: inset 3px 0 0 var(--vein);
}

body.rp-products-ssr-page .rp-shop-results-column { min-width: 0; }

body.rp-products-ssr-page .rp-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5ded3;
  padding-bottom: 16px;
}

body.rp-products-ssr-page .rp-shop-count {
  color: rgba(8,8,8,.6);
  font-size: 14px;
  line-height: 1.5;
}

body.rp-products-ssr-page .rp-shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.rp-products-ssr-page .rp-shop-controls select {
  border: 1px solid #d8cdbc;
  background: #fff;
  color: var(--nero);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease;
}

body.rp-products-ssr-page .rp-shop-controls select:focus { border-color: var(--vein); }

body.rp-products-ssr-page .rp-shop-product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

body.rp-products-ssr-page .rp-shop-product-card[hidden],
body.rp-products-ssr-page .rp-shop-product-card.is-load-hidden[hidden] {
  display: none !important;
}

body.rp-products-ssr-page .rp-shop-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8,8,8,.1);
  background: #fff;
  transition: transform .5s ease, box-shadow .5s ease, border-color .35s ease;
}

body.rp-products-ssr-page .rp-shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191,164,106,.55);
  box-shadow: 0 35px 90px -65px rgba(0,0,0,.55);
}

body.rp-products-ssr-page .rp-shop-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.rp-products-ssr-page .rp-shop-product-image {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #eee6d8;
}

body.rp-products-ssr-page .rp-shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}

body.rp-products-ssr-page .rp-shop-product-card:hover .rp-shop-product-image img {
  transform: scale(1.05);
}

body.rp-products-ssr-page .rp-shop-product-image > span:not(.rp-shop-availability) {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eee6d8;
  color: rgba(8,8,8,.62);
  text-align: center;
}

body.rp-products-ssr-page .rp-shop-availability {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255,255,255,.92);
  color: var(--vein);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .22em;
}

body.rp-products-ssr-page .rp-shop-product-body { padding: 15px; }

body.rp-products-ssr-page .rp-shop-card-kicker {
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .28em;
}

body.rp-products-ssr-page .rp-shop-product-body h3 {
  margin: 9px 0 0;
  font-family: var(--font-display);
  color: var(--nero);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: .025em;
}

body.rp-products-ssr-page .rp-shop-product-material {
  margin-top: 8px;
  color: rgba(8,8,8,.55);
  font-size: 12px;
  line-height: 1.5;
}

body.rp-products-ssr-page .rp-shop-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--nero);
  font-size: 12px;
}

body.rp-products-ssr-page .rp-shop-product-bottom span:last-child {
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .22em;
  white-space: nowrap;
}

body.rp-products-ssr-page .rp-product-load-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

body.rp-products-ssr-page .rp-product-load-row [hidden] { display: none !important; }
body.rp-products-ssr-page .rp-no-products { margin-top: 24px; color: rgba(8,8,8,.6); }


@media (max-width: 1500px) and (min-width: 1181px) {
  body.rp-products-ssr-page .rp-product-shop-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
  }
  body.rp-products-ssr-page .rp-shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1180px) {
  body.rp-products-ssr-page .rp-product-shop-layout { grid-template-columns: 1fr; }
  body.rp-products-ssr-page .rp-shop-filter-panel { position: static; max-height: none; }
  body.rp-products-ssr-page .rp-shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.rp-products-ssr-page .rp-product-shop-section { padding: 58px 0 72px; }
  body.rp-products-ssr-page .rp-shop-product-grid { grid-template-columns: 1fr; }
  body.rp-products-ssr-page .rp-shop-toolbar { align-items: stretch; }
  body.rp-products-ssr-page .rp-shop-controls,
  body.rp-products-ssr-page .rp-shop-controls select { width: 100%; }
  body.rp-products-ssr-page .rp-shop-product-body h3 { font-size: 24px; }
}



/* Product core pagination */
body.rp-products-ssr-page .rp-product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

body.rp-products-ssr-page .rp-product-pagination[hidden] {
  display: none !important;
}

body.rp-products-ssr-page .rp-product-pagination button {
  min-width: 42px;
  height: 42px;
  border: 1px solid #d8cdbc;
  background: #fff;
  color: var(--nero);
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
}

body.rp-products-ssr-page .rp-product-pagination button:hover,
body.rp-products-ssr-page .rp-product-pagination button.is-active {
  border-color: var(--vein);
  background: var(--vein);
  color: #fff;
}

body.rp-products-ssr-page .rp-product-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
  background: #fbfaf8;
  color: rgba(8,8,8,.45);
  border-color: #e6ded3;
}

body.rp-products-ssr-page .rp-product-page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.rp-products-ssr-page .rp-products-core-section {
  padding-top: 34px;
}

body.rp-products-ssr-page .rp-hero {
  padding-bottom: 32px;
}

/* Product detail SSR page. Kept isolated to avoid changing product listing/material pages. */
body.rp-product-detail-ssr-page .rp-page-main,
body.rp-product-detail-ssr-page .rp-product-detail-hero,
body.rp-product-detail-ssr-page .rp-container {
  overflow: visible;
}

body.rp-product-detail-ssr-page .rp-product-detail-hero {
  padding: 54px 0 72px;
}

body.rp-product-detail-ssr-page .rp-product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: 56px;
  align-items: start;
  margin-top: 34px;
}

body.rp-product-detail-ssr-page .rp-product-gallery {
  position: sticky;
  top: 96px;
  align-self: start;
}

body.rp-product-detail-ssr-page .rp-product-main-figure {
  margin: 0;
  border: 1px solid rgba(8,8,8,.1);
  background: #eee6d8;
  overflow: hidden;
  box-shadow: 0 40px 120px -92px rgba(0,0,0,.72);
}

body.rp-product-detail-ssr-page .rp-product-main-figure img,
body.rp-product-detail-ssr-page .rp-product-image-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  background: #eee6d8;
}

body.rp-product-detail-ssr-page .rp-product-image-fallback {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 48px;
  color: rgba(8,8,8,.58);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 68px);
  line-height: 1.05;
  text-align: center;
}

body.rp-product-detail-ssr-page .rp-product-main-figure figcaption {
  padding: 14px 18px;
  color: rgba(8,8,8,.58);
  font-size: 13px;
  border-top: 1px solid rgba(8,8,8,.08);
  background: #fff;
}

body.rp-product-detail-ssr-page .rp-product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

body.rp-product-detail-ssr-page .rp-product-thumb {
  border: 1px solid rgba(8,8,8,.12);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: .68;
  transition: opacity .28s ease, border-color .28s ease, transform .28s ease;
}

body.rp-product-detail-ssr-page .rp-product-thumb:hover,
body.rp-product-detail-ssr-page .rp-product-thumb.is-active {
  opacity: 1;
  border-color: var(--vein);
  transform: translateY(-2px);
}

body.rp-product-detail-ssr-page .rp-product-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
}

body.rp-product-detail-ssr-page .rp-product-summary {
  border: 1px solid rgba(8,8,8,.1);
  background: #fff;
  padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 38px 100px -86px rgba(0,0,0,.7);
}

body.rp-product-detail-ssr-page .rp-product-summary h1 {
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(50px, 5.2vw, 92px);
  line-height: .96;
  font-weight: 300;
  letter-spacing: .018em;
  color: var(--nero);
}

body.rp-product-detail-ssr-page .rp-product-summary-copy {
  max-width: 100%;
  margin: 22px 0 0;
  color: rgba(8,8,8,.68);
  font-size: 16px;
  line-height: 1.85;
}

body.rp-product-detail-ssr-page .rp-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.rp-product-detail-ssr-page .rp-product-badges span,
body.rp-product-detail-ssr-page .rp-product-relation-pills a {
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  color: var(--vein);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}

body.rp-product-detail-ssr-page .rp-product-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
}

body.rp-product-detail-ssr-page .rp-product-price-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(8,8,8,.52);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

body.rp-product-detail-ssr-page .rp-product-price-card strong {
  color: var(--nero);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
  font-weight: 300;
}

body.rp-product-detail-ssr-page .rp-product-price-card del {
  color: rgba(8,8,8,.45);
  font-size: 14px;
}

body.rp-product-detail-ssr-page .rp-product-stock-pill {
  color: #4f3e24;
  background: rgba(191,164,106,.18);
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}

body.rp-product-detail-ssr-page .rp-product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 0;
  background: #e5ded3;
  border: 1px solid #e5ded3;
}

body.rp-product-detail-ssr-page .rp-product-meta-grid div {
  background: #fff;
  padding: 15px;
}

body.rp-product-detail-ssr-page .rp-product-meta-grid dt {
  color: rgba(8,8,8,.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

body.rp-product-detail-ssr-page .rp-product-meta-grid dd {
  margin: 7px 0 0;
  color: var(--nero);
  font-size: 14px;
  line-height: 1.45;
}

body.rp-product-detail-ssr-page .rp-product-relation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body.rp-product-detail-ssr-page .rp-product-variant-box {
  margin-top: 28px;
  border-top: 1px solid #e5ded3;
  padding-top: 26px;
}

body.rp-product-detail-ssr-page .rp-product-variant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.rp-product-detail-ssr-page .rp-product-variant-head span {
  color: var(--nero);
  font-size: 16px;
  font-weight: 500;
}

body.rp-product-detail-ssr-page .rp-product-variant-head small {
  color: rgba(8,8,8,.48);
  text-transform: uppercase;
  letter-spacing: .16em;
}

body.rp-product-detail-ssr-page .rp-product-variant-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

body.rp-product-detail-ssr-page .rp-product-variant {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #ded6c9;
  background: #fff;
  padding: 9px;
  color: var(--nero);
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

body.rp-product-detail-ssr-page .rp-product-variant:hover,
body.rp-product-detail-ssr-page .rp-product-variant.is-active {
  border-color: var(--vein);
  background: #fbfaf8;
  box-shadow: inset 4px 0 0 var(--vein);
}

body.rp-product-detail-ssr-page .rp-product-variant img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  background: #eee6d8;
}

body.rp-product-detail-ssr-page .rp-product-variant strong {
  display: block;
  font-size: 14px;
  line-height: 1.32;
}

body.rp-product-detail-ssr-page .rp-product-variant small {
  display: block;
  margin-top: 4px;
  color: rgba(8,8,8,.52);
  font-size: 12px;
}

body.rp-product-detail-ssr-page .rp-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.rp-product-detail-ssr-page .rp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  border: 1px solid var(--nero);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

body.rp-product-detail-ssr-page .rp-button-primary { background: var(--nero); color: #fff; }
body.rp-product-detail-ssr-page .rp-button-primary:hover { background: var(--vein); border-color: var(--vein); }
body.rp-product-detail-ssr-page .rp-button-ghost { background: transparent; color: var(--nero); }
body.rp-product-detail-ssr-page .rp-button-ghost:hover { background: #fbfaf8; border-color: var(--vein); color: var(--vein); }

body.rp-product-detail-ssr-page .rp-product-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #e5ded3;
  border-top: 1px solid #e5ded3;
  border-bottom: 1px solid #e5ded3;
  margin-bottom: 20px;
}

body.rp-product-detail-ssr-page .rp-product-facts div {
  background: #fbfaf8;
  padding: 22px;
}

body.rp-product-detail-ssr-page .rp-product-facts span {
  display: block;
  color: rgba(8,8,8,.48);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

body.rp-product-detail-ssr-page .rp-product-facts strong {
  display: block;
  margin-top: 9px;
  color: var(--nero);
  font-size: 15px;
  line-height: 1.45;
}

body.rp-product-detail-ssr-page .rp-product-content-section,
body.rp-product-detail-ssr-page .rp-product-benefits-section,
body.rp-product-detail-ssr-page .rp-product-table-section,
body.rp-product-detail-ssr-page .rp-product-care-steps,
body.rp-product-detail-ssr-page .rp-product-detail-info,
body.rp-product-detail-ssr-page .rp-product-reviews-section,
body.rp-product-detail-ssr-page .rp-product-related-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

body.rp-product-detail-ssr-page .rp-product-split-section,
body.rp-product-detail-ssr-page .rp-product-stacked-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

body.rp-product-detail-ssr-page .rp-product-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.rp-product-detail-ssr-page .rp-product-benefit-grid article {
  border: 1px solid #ded6c9;
  background: #fff;
  padding: 26px;
}

body.rp-product-detail-ssr-page .rp-product-benefit-grid span,
body.rp-product-detail-ssr-page .rp-product-care-steps li span {
  color: var(--vein);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .24em;
}

body.rp-product-detail-ssr-page .rp-product-benefit-grid h3 {
  margin: 16px 0 0;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 300;
}

body.rp-product-detail-ssr-page .rp-product-benefit-grid p {
  color: rgba(8,8,8,.62);
  line-height: 1.75;
}

body.rp-product-detail-ssr-page .rp-product-care-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #e5ded3;
  border: 1px solid #e5ded3;
}

body.rp-product-detail-ssr-page .rp-product-care-steps li {
  background: #fff;
  padding: 26px;
}

body.rp-product-detail-ssr-page .rp-product-care-steps p {
  color: rgba(8,8,8,.62);
  line-height: 1.7;
}

body.rp-product-detail-ssr-page .rp-product-accordion-list {
  display: grid;
  gap: 12px;
}

body.rp-product-detail-ssr-page .rp-product-accordion {
  border: 1px solid #d8cdbc;
  background: #fff;
}

body.rp-product-detail-ssr-page .rp-product-accordion > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 0;
  background: #fff;
  color: var(--nero);
  padding: 24px;
  text-align: left;
  cursor: pointer;
}

body.rp-product-detail-ssr-page .rp-product-accordion > button strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

body.rp-product-detail-ssr-page .rp-product-accordion > button small {
  display: block;
  margin-top: 8px;
  color: rgba(8,8,8,.55);
  font-size: 13px;
}

body.rp-product-detail-ssr-page .rp-product-accordion > button em {
  color: var(--vein);
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

body.rp-product-detail-ssr-page .rp-product-accordion.is-open > button em { transform: rotate(45deg); }

body.rp-product-detail-ssr-page .rp-product-accordion-panel {
  padding: 0 24px 24px;
  overflow: hidden;
  transition: height .42s cubic-bezier(.22,1,.36,1), opacity .28s ease, padding-bottom .42s cubic-bezier(.22,1,.36,1);
}

body.rp-product-detail-ssr-page .rp-product-accordion-panel[hidden] {
  display: block !important;
  height: 0 !important;
  opacity: 0 !important;
  padding-bottom: 0 !important;
  visibility: hidden;
}

body.rp-product-detail-ssr-page .rp-product-accordion.is-animating .rp-product-accordion-panel { visibility: visible; }

body.rp-product-detail-ssr-page .rp-product-spec-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e5ded3;
  border: 1px solid #e5ded3;
}

body.rp-product-detail-ssr-page .rp-product-spec-table div {
  background: #fbfaf8;
  padding: 16px;
}

body.rp-product-detail-ssr-page .rp-product-spec-table span {
  display: block;
  color: rgba(8,8,8,.48);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

body.rp-product-detail-ssr-page .rp-product-spec-table strong {
  display: block;
  margin-top: 7px;
  color: var(--nero);
  font-size: 14px;
  line-height: 1.45;
}

body.rp-product-detail-ssr-page .rp-product-care-list {
  margin: 16px 0;
}

body.rp-product-detail-ssr-page .rp-product-care-list span {
  display: block;
  color: var(--vein);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}

body.rp-product-detail-ssr-page .rp-product-care-list ul { margin: 10px 0 0; }
body.rp-product-detail-ssr-page .rp-product-care-list li { margin: 6px 0; color: rgba(8,8,8,.68); }

body.rp-product-detail-ssr-page .rp-product-faq-list {
  display: grid;
  gap: 14px;
}

body.rp-product-detail-ssr-page .rp-product-faq-list article {
  border-top: 1px solid #e5ded3;
  padding-top: 16px;
}

body.rp-product-detail-ssr-page .rp-product-faq-list h3 {
  margin: 0;
  color: var(--nero);
  font-size: 18px;
}

body.rp-product-detail-ssr-page .rp-product-faq-list p,
body.rp-product-detail-ssr-page .rp-product-empty-note {
  color: rgba(8,8,8,.62);
  line-height: 1.75;
}

body.rp-product-detail-ssr-page .rp-product-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.rp-product-detail-ssr-page .rp-product-review-grid article {
  border: 1px solid #ded6c9;
  background: #fff;
  padding: 24px;
}

body.rp-product-detail-ssr-page .rp-review-stars { color: var(--vein); letter-spacing: .08em; }
body.rp-product-detail-ssr-page .rp-product-review-grid h3 { margin: 14px 0 0; color: var(--nero); font-size: 20px; }
body.rp-product-detail-ssr-page .rp-product-review-grid p { color: rgba(8,8,8,.62); line-height: 1.7; }
body.rp-product-detail-ssr-page .rp-product-review-grid span { color: rgba(8,8,8,.5); font-size: 13px; }

body.rp-product-detail-ssr-page .rp-product-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

body.rp-product-detail-ssr-page .rp-shop-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8,8,8,.1);
  background: #fff;
  transition: transform .5s ease, box-shadow .5s ease, border-color .35s ease;
}

body.rp-product-detail-ssr-page .rp-shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191,164,106,.55);
  box-shadow: 0 35px 90px -65px rgba(0,0,0,.55);
}

body.rp-product-detail-ssr-page .rp-shop-product-link { display: block; color: inherit; text-decoration: none; }
body.rp-product-detail-ssr-page .rp-shop-product-image { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; background: #eee6d8; }
body.rp-product-detail-ssr-page .rp-shop-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
body.rp-product-detail-ssr-page .rp-shop-product-card:hover .rp-shop-product-image img { transform: scale(1.05); }
body.rp-product-detail-ssr-page .rp-shop-product-image > span { height: 100%; display: grid; place-items: center; padding: 24px; background: #eee6d8; color: rgba(8,8,8,.62); text-align: center; }
body.rp-product-detail-ssr-page .rp-shop-product-body { padding: 15px; }
body.rp-product-detail-ssr-page .rp-shop-card-kicker { color: var(--vein); font-family: var(--font-mono); font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .28em; }
body.rp-product-detail-ssr-page .rp-shop-product-body h3 { margin: 9px 0 0; font-family: var(--font-display); color: var(--nero); font-size: 20px; line-height: 1.18; font-weight: 300; letter-spacing: .025em; }
body.rp-product-detail-ssr-page .rp-shop-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--nero); font-size: 12px; }
body.rp-product-detail-ssr-page .rp-shop-product-bottom span:last-child { color: var(--vein); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .22em; white-space: nowrap; }

@media (max-width: 1420px) {
  body.rp-product-detail-ssr-page .rp-product-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 36px; }
  body.rp-product-detail-ssr-page .rp-product-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  body.rp-product-detail-ssr-page .rp-product-detail-grid { grid-template-columns: 1fr; }
  body.rp-product-detail-ssr-page .rp-product-gallery { position: static; }
  body.rp-product-detail-ssr-page .rp-product-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rp-product-detail-ssr-page .rp-product-benefit-grid,
  body.rp-product-detail-ssr-page .rp-product-review-grid { grid-template-columns: 1fr 1fr; }
  body.rp-product-detail-ssr-page .rp-product-care-steps ol,
  body.rp-product-detail-ssr-page .rp-product-spec-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rp-product-detail-ssr-page .rp-product-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.rp-product-detail-ssr-page .rp-product-detail-hero { padding-top: 36px; }
  body.rp-product-detail-ssr-page .rp-product-summary { padding: 22px; }
  body.rp-product-detail-ssr-page .rp-product-meta-grid,
  body.rp-product-detail-ssr-page .rp-product-facts,
  body.rp-product-detail-ssr-page .rp-product-benefit-grid,
  body.rp-product-detail-ssr-page .rp-product-care-steps ol,
  body.rp-product-detail-ssr-page .rp-product-review-grid,
  body.rp-product-detail-ssr-page .rp-product-spec-table,
  body.rp-product-detail-ssr-page .rp-product-related-grid { grid-template-columns: 1fr; }
  body.rp-product-detail-ssr-page .rp-product-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rp-product-detail-ssr-page .rp-product-actions .rp-button { width: 100%; }
}


/* Product detail design/order update v6 */
body.rp-product-detail-ssr-page .rp-product-title-strip {
  width: 100%;
  margin-top: 28px;
  border-bottom: 1px solid rgba(8,8,8,.10);
  padding-bottom: 30px;
}
body.rp-product-detail-ssr-page .rp-product-title-strip h1 {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 118px);
  line-height: .92;
  font-weight: 300;
  letter-spacing: .012em;
}
body.rp-product-detail-ssr-page .rp-product-title-strip p:not(.rp-eyebrow) {
  margin: 22px 0 0;
  max-width: 100%;
  color: rgba(8,8,8,.68);
  font-size: 17px;
  line-height: 1.8;
}
body.rp-product-detail-ssr-page .rp-product-summary-heading {
  margin: 0;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 48px);
  line-height: 1;
  font-weight: 300;
}
body.rp-product-detail-ssr-page .rp-product-price-card strong {
  font-size: clamp(24px, 2.1vw, 34px);
}
body.rp-product-detail-ssr-page .rp-button-buy {
  background: var(--vein);
  border-color: var(--vein);
  color: #fff;
}
body.rp-product-detail-ssr-page .rp-button-buy:hover { background: var(--nero); border-color: var(--nero); }
body.rp-product-detail-ssr-page .rp-product-relations-section {
  padding-top: 76px;
  padding-bottom: 76px;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #e5ded3;
  background: #e5ded3;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory article {
  background: #fff;
  padding: 22px;
  min-height: 128px;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory article > span {
  display: block;
  color: rgba(8,8,8,.48);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory a {
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  color: var(--vein);
  padding: 8px 10px;
  text-decoration: none;
  font-size: 12px;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
body.rp-product-detail-ssr-page .rp-product-relation-directory a:hover { border-color: var(--vein); color: var(--nero); background: #fff; }
body.rp-product-detail-ssr-page .rp-product-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .42fr);
  gap: 26px;
  align-items: start;
}
body.rp-product-detail-ssr-page .rp-product-review-form,
body.rp-product-detail-ssr-page .rp-product-buy-form {
  border: 1px solid #ded6c9;
  background: #fff;
  padding: 24px;
}
body.rp-product-detail-ssr-page .rp-product-review-form h3 {
  margin: 0 0 18px;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
}
body.rp-product-detail-ssr-page .rp-product-review-form label,
body.rp-product-detail-ssr-page .rp-product-buy-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(8,8,8,.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
body.rp-product-detail-ssr-page .rp-product-review-form input,
body.rp-product-detail-ssr-page .rp-product-review-form select,
body.rp-product-detail-ssr-page .rp-product-review-form textarea,
body.rp-product-detail-ssr-page .rp-product-buy-form input,
body.rp-product-detail-ssr-page .rp-product-buy-form select,
body.rp-product-detail-ssr-page .rp-product-buy-form textarea {
  width: 100%;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  color: var(--nero);
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
body.rp-product-detail-ssr-page .rp-product-form-status {
  margin: 14px 0 0;
  color: var(--vein);
  line-height: 1.6;
}
body.rp-product-detail-ssr-page .rp-product-form-status.is-error { color: #9d2f1f; }
body.rp-product-detail-ssr-page .rp-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
body.rp-product-detail-ssr-page .rp-product-modal[hidden] { display: none; }
body.rp-product-detail-ssr-page .rp-product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}
body.rp-product-detail-ssr-page .rp-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,.62);
  backdrop-filter: blur(8px);
}
body.rp-product-detail-ssr-page .rp-product-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 50px 180px -80px rgba(0,0,0,.85);
  padding: clamp(24px, 3vw, 40px);
}
body.rp-product-detail-ssr-page .rp-product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid #d8cdbc;
  background: #fff;
  color: var(--nero);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.rp-product-detail-ssr-page .rp-product-modal-head h2 {
  margin: 0;
  max-width: 100%;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: .98;
  font-weight: 300;
}
body.rp-product-detail-ssr-page .rp-product-modal-head p:not(.rp-eyebrow) {
  color: rgba(8,8,8,.66);
  line-height: 1.7;
}
body.rp-product-detail-ssr-page .rp-modal-product-card {
  display: grid;
  gap: 7px;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  padding: 18px;
  margin-bottom: 18px;
}
body.rp-product-detail-ssr-page .rp-modal-product-card strong { color: var(--nero); font-size: 18px; }
body.rp-product-detail-ssr-page .rp-modal-product-card span { color: rgba(8,8,8,.62); font-size: 14px; }
body.rp-product-detail-ssr-page .rp-product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.rp-product-detail-ssr-page .rp-form-wide { grid-column: 1 / -1; }
body.rp-product-detail-ssr-page .rp-product-total-box {
  display: grid;
  gap: 6px;
  border: 1px solid #d8cdbc;
  background: #fbfaf8;
  padding: 18px;
  margin: 6px 0 18px;
}
body.rp-product-detail-ssr-page .rp-product-total-box span { color: rgba(8,8,8,.52); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
body.rp-product-detail-ssr-page .rp-product-total-box strong { color: var(--nero); font-family: var(--font-display); font-size: 30px; font-weight: 300; }
body.rp-product-detail-ssr-page .rp-product-total-box small { color: rgba(8,8,8,.58); line-height: 1.5; }
@media (max-width: 1100px) {
  body.rp-product-detail-ssr-page .rp-product-relation-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rp-product-detail-ssr-page .rp-product-review-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.rp-product-detail-ssr-page .rp-product-title-strip h1 { font-size: clamp(42px, 12vw, 64px); }
  body.rp-product-detail-ssr-page .rp-product-relation-directory,
  body.rp-product-detail-ssr-page .rp-product-form-grid { grid-template-columns: 1fr; }
}

/* Product detail performance/design cleanup v7 */
body.rp-product-detail-ssr-page .rp-product-detail-hero {
  padding-top: 38px;
  padding-bottom: 58px;
}
body.rp-product-detail-ssr-page .rp-product-title-strip {
  margin-top: 20px;
  padding-bottom: 24px;
}
body.rp-product-detail-ssr-page .rp-product-title-strip h1 {
  font-size: clamp(42px, 4.9vw, 78px) !important;
  line-height: .98 !important;
  letter-spacing: .008em;
}
body.rp-product-detail-ssr-page .rp-product-title-strip p:not(.rp-eyebrow) {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.68;
}
body.rp-product-detail-ssr-page .rp-product-detail-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .74fr);
  gap: 34px;
  margin-top: 28px;
}
body.rp-product-detail-ssr-page .rp-product-gallery {
  top: 92px;
}
body.rp-product-detail-ssr-page .rp-product-summary {
  padding: 24px;
  display: grid;
  gap: 16px;
}
body.rp-product-detail-ssr-page .rp-product-summary-heading {
  display: none !important;
}
body.rp-product-detail-ssr-page .rp-product-summary-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
body.rp-product-detail-ssr-page .rp-product-price-card {
  padding: 16px;
  margin: 0;
}
body.rp-product-detail-ssr-page .rp-product-price-card strong {
  font-size: clamp(22px, 1.55vw, 28px) !important;
  line-height: 1.05;
}
body.rp-product-detail-ssr-page .rp-product-side-relations {
  border: 1px solid #e2d8c8;
  background: #fbfaf8;
  padding: 18px;
  display: grid;
  gap: 14px;
}
body.rp-product-detail-ssr-page .rp-product-side-relations h2 {
  margin: 0;
  color: var(--nero);
  font-family: var(--font-display);
  font-size: 26px !important;
  line-height: 1.05;
  font-weight: 300;
}
body.rp-product-detail-ssr-page .rp-product-side-relations article {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(8,8,8,.08);
}
body.rp-product-detail-ssr-page .rp-product-side-relations article:first-of-type {
  padding-top: 0;
  border-top: 0;
}
body.rp-product-detail-ssr-page .rp-product-side-relations article > span {
  color: rgba(8,8,8,.48);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
body.rp-product-detail-ssr-page .rp-product-side-relations article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.rp-product-detail-ssr-page .rp-product-side-relations a {
  border: 1px solid #d8cdbc;
  background: #fff;
  color: var(--vein);
  padding: 7px 9px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}
body.rp-product-detail-ssr-page .rp-product-side-relations a:hover {
  color: var(--nero);
  border-color: var(--vein);
}
body.rp-product-detail-ssr-page .rp-product-modal {
  place-items: start center;
  padding: 88px 18px 18px;
}
body.rp-product-detail-ssr-page .rp-product-modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 112px);
  padding: 22px;
  border-radius: 0;
}
body.rp-product-detail-ssr-page .rp-product-modal-close {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
body.rp-product-detail-ssr-page .rp-product-modal-head {
  padding-right: 42px;
}
body.rp-product-detail-ssr-page .rp-product-modal-head h2 {
  font-size: clamp(28px, 2.8vw, 42px) !important;
  line-height: 1.05;
}
body.rp-product-detail-ssr-page .rp-product-modal-head p:not(.rp-eyebrow) {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.55;
}
body.rp-product-detail-ssr-page .rp-modal-product-card {
  padding: 12px;
  margin-bottom: 12px;
}
body.rp-product-detail-ssr-page .rp-modal-product-card strong {
  font-size: 15px;
}
body.rp-product-detail-ssr-page .rp-modal-product-card span {
  font-size: 12px;
}
body.rp-product-detail-ssr-page .rp-product-buy-form,
body.rp-product-detail-ssr-page .rp-product-review-form {
  padding: 18px;
}
body.rp-product-detail-ssr-page .rp-product-buy-form label,
body.rp-product-detail-ssr-page .rp-product-review-form label {
  margin-bottom: 10px;
  gap: 6px;
  font-size: 10px;
  letter-spacing: .12em;
}
body.rp-product-detail-ssr-page .rp-product-buy-form input,
body.rp-product-detail-ssr-page .rp-product-buy-form select,
body.rp-product-detail-ssr-page .rp-product-buy-form textarea,
body.rp-product-detail-ssr-page .rp-product-review-form input,
body.rp-product-detail-ssr-page .rp-product-review-form select,
body.rp-product-detail-ssr-page .rp-product-review-form textarea {
  padding: 10px 11px;
  font-size: 13px;
}
body.rp-product-detail-ssr-page .rp-product-form-grid {
  gap: 10px;
}
body.rp-product-detail-ssr-page .rp-product-total-box {
  padding: 12px;
  margin: 4px 0 12px;
}
body.rp-product-detail-ssr-page .rp-product-total-box strong {
  font-size: 24px;
}
body.rp-product-detail-ssr-page .rp-product-content-section,
body.rp-product-detail-ssr-page .rp-product-benefits-section,
body.rp-product-detail-ssr-page .rp-product-table-section,
body.rp-product-detail-ssr-page .rp-product-care-steps,
body.rp-product-detail-ssr-page .rp-product-detail-info,
body.rp-product-detail-ssr-page .rp-product-reviews-section,
body.rp-product-detail-ssr-page .rp-product-related-section {
  padding-top: 58px;
  padding-bottom: 58px;
}
body.rp-product-detail-ssr-page .rp-product-accordion > button strong {
  font-size: 24px !important;
}
@media (max-width: 1100px) {
  body.rp-product-detail-ssr-page .rp-product-detail-grid { grid-template-columns: 1fr; }
  body.rp-product-detail-ssr-page .rp-product-gallery { position: static; }
}
@media (max-width: 720px) {
  body.rp-product-detail-ssr-page .rp-product-modal { padding: 76px 12px 12px; }
  body.rp-product-detail-ssr-page .rp-product-modal-card { max-height: calc(100vh - 88px); padding: 16px; }
  body.rp-product-detail-ssr-page .rp-product-title-strip h1 { font-size: clamp(34px, 10vw, 50px) !important; }
  body.rp-product-detail-ssr-page .rp-product-form-grid { grid-template-columns: 1fr; }
}
