/* Product detail: retain the storefront palette and shared cart controls. */
.pd-technical { color: var(--rd-muted); font-size: .9rem; line-height: 1.8; }
.pd-technical h2, .pd-technical h3 { color: var(--rd-text); margin-top: 0; }
.pd-technical-summary { white-space: pre-line; }
.rd-spec-table + .pd-technical { margin-top: 1.5rem; }
.pd-technical > h2 { font-size: 1.2rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.pd-technical > .pd-technical-summary { font-size: .8rem; margin-bottom: 1.5rem; }
.pd-technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.pd-document { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--rd-border); border-radius: 10px; background: rgb(255 255 255 / 2%); }
.pd-document-label { display: block; font-size: .65rem; letter-spacing: .1em; color: var(--rd-cyan); font-weight: 600; margin-bottom: .6rem; }
.pd-document h3 { font-size: 1rem; margin-bottom: 1rem; }
.pd-document p { font-size: .85rem; line-height: 1.9; margin: .75rem 0 0; }
.pd-document p + p { padding-top: 1rem; border-top: 1px solid var(--rd-border); color: var(--rd-muted); font-size: .75rem; }
.pd-technical-table { width: 100%; border-collapse: collapse; font-size: .8rem; line-height: 1.65; }
.pd-technical-table th, .pd-technical-table td { text-align: left; vertical-align: top; padding: .75rem; border-bottom: 1px solid var(--rd-border); overflow-wrap: anywhere; }
.pd-technical-table thead th { color: var(--rd-text); background: rgb(255 255 255 / 4%); font-size: .7rem; }
.pd-technical-table tbody th { width: 45%; font-weight: 400; color: var(--rd-muted); }
.pd-technical-table td { color: var(--rd-text); font-weight: 500; }
.pd-technical-table tbody tr:last-child > * { border-bottom: 0; }
.pd-technical-table tbody tr:nth-child(even) { background: rgb(255 255 255 / 2%); }
#pd-profile-raw summary { cursor: pointer; color: var(--rd-muted); }
@media (max-width: 767px) { .pd-technical-grid { grid-template-columns: minmax(0, 1fr); } }
.pd-profile-parameters dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 1rem; }
.pd-profile-parameters dt, .pd-profile-parameters dd { margin: 0; padding: .5rem; border-bottom: 1px solid var(--rd-border); overflow-wrap: anywhere; }
.pd-profile-parameters dd { color: var(--rd-text); }
.pd-profiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; font-size: .85rem; line-height: 1.75; color: var(--rd-muted); }
.pd-profiles h2, .pd-profiles h3 { color: var(--rd-text); margin: 0 0 .8rem; }
.pd-profiles a:not(.rd-btn) { color: var(--rd-cyan); }
.pd-profile-heading, .pd-profile-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pd-profile-heading h2 { font-size: 1.3rem; margin: 0; }
.pd-profile-count { font-size: .75rem; padding: .35rem .75rem; border: 1px solid var(--rd-border); border-radius: 6px; }
.pd-profile-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--rd-border); border-radius: 10px; background: rgb(255 255 255 / 2%); }
.pd-profile-fields label > span { font-size: .8rem; color: var(--rd-text); margin-bottom: .25rem; }
.pd-profile-fields b { color: var(--rd-cyan); font-size: .65rem; margin-right: .4rem; }
.pd-profile-fields select { min-height: 48px; }
.pd-profile-fields select:disabled { opacity: .45; cursor: not-allowed; }
.pd-profiles { font-family: var(--rd-font); font-size: .875rem; line-height: 1.65; }
.pd-profile-fields .rd-search-select { min-width: 0; width: 100%; font-family: var(--rd-font); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.pd-profile-fields .rd-search-select__control { min-height: 48px; }
.pd-profile-fields .rd-search-select__label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-profile-fields .rd-search-select__option { white-space: normal; line-height: 1.6; padding-block: .7rem; }
.pd-profile-fields label > span { font-size: .875rem; font-weight: 500; }
.pd-profile-parameters dl { font-family: var(--rd-font); font-size: .875rem; line-height: 1.65; }
.pd-profile-result-heading { margin-bottom: 1.25rem; }
.pd-profile-result-heading h3 { font-size: 1rem; margin: 0; }
.pd-profile-result-heading .rd-btn { font-size: .8rem; min-height: 42px; }
.pd-profile-parameters dl { border: 1px solid var(--rd-border); border-radius: 8px; overflow: hidden; gap: 0 !important; }
.pd-profile-parameters dt, .pd-profile-parameters dd { padding: .85rem 1rem !important; }
.pd-profile-parameters dt { background: rgb(255 255 255 / 2%); }
#pd-profile-raw { margin-top: 1.25rem; font-size: .75rem; }
.pd-profile-fields label { display: grid; gap: .4rem; min-width: 0; }
.pd-profile-fields select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.pd-profile-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pd-profile-actions[hidden] { display: none; }
.pd-profile-preview { margin-top: 1.25rem; min-width: 0; }
.pd-profile-preview pre { max-height: 420px; overflow: auto; background: rgb(0 0 0 / 20%); border: 1px solid var(--rd-border); border-radius: 8px; padding: 1rem; font-size: .75rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pd-profile-help { padding-top: 1rem; border-top: 1px solid var(--rd-border); }
.pd-profile-help summary { cursor: pointer; color: var(--rd-text); }
#pd-profile-status:empty { display: none; }
.pd-profile-help ol { padding-left: 1.25rem; }
.pd-profile-help li { margin-bottom: .75rem; }
@media (max-width: 767px) { .pd-profile-fields { grid-template-columns: minmax(0, 1fr); } }
.pd-detail { --pd-line: var(--rd-border, #263142); }
.pd-product-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.5rem 0 1.25rem; color: var(--rd-muted); font-size: .75rem; }
.pd-product-facts span { padding: .35rem .6rem; border: 1px solid var(--pd-line); border-radius: 5px; }
.pd-gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: .25rem; }
.pd-gallery-thumbs[hidden] { display: none; }
.pd-gallery-thumb { flex: 0 0 66px; width: 66px; height: 66px; padding: 3px; background: #fff; border: 2px solid transparent; border-radius: 7px; cursor: pointer; }
.pd-gallery-thumb[aria-pressed="true"] { border-color: var(--rd-cyan); }
.pd-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-detail .rd-breadcrumbs { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; font-size: .8rem; color: var(--rd-muted); }
.pd-detail .rd-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pd-detail .rd-pdp__info { padding: .5rem 0; background: transparent; border: 0; border-radius: 0; }
.pd-detail .rd-pdp__meta { justify-content: space-between; margin-bottom: 1rem; }
.pd-detail .rd-pdp__meta-sep { display: none; }
.pd-detail .rd-pdp__stock { padding: .3rem .6rem; border: 1px solid currentColor; border-radius: 5px; font-size: .7rem; }
.pd-gallery { min-width: 0; }
.pd-detail .rd-pdp__media { aspect-ratio: 1.05; height: auto; max-height: 620px; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; padding: 1rem; }
.pd-detail .rd-pdp__media img { object-fit: contain; width: 100%; height: 100%; }
.pd-image-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 0; font-size: .75rem; color: var(--rd-muted); }
.pd-image-caption span:first-child { color: var(--rd-text); font-weight: 600; }
.pd-detail .rd-pdp__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; margin: 0 0 1.25rem; letter-spacing: -.035em; }
.pd-detail .rd-pdp__price-card { padding: 1rem 1.15rem; gap: .75rem; flex-wrap: wrap; background: var(--rd-surface); border: 1px solid var(--pd-line); border-radius: 10px; }
.pd-detail .rd-pdp__price { font-family: var(--rd-font); font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.pd-detail .rd-pdp__price-side { flex: 1; }
.pd-detail .rd-pdp__variations { margin: 1.35rem 0; }
.pd-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .85rem; font-size: .9rem; font-weight: 700; }
.pd-color-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pd-color-tools .rd-input { flex: 1; min-width: 140px; width: auto; min-height: 40px; font: inherit; font-size: .8rem; }
.pd-stock-filter { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; color: var(--rd-muted); cursor: pointer; }
.pd-stock-filter input { accent-color: var(--rd-cyan); width: 15px; height: 15px; }
.pd-color-empty { color: var(--rd-muted); font-size: .8rem; padding: 1rem 0; }
.pd-detail .rd-pdp__swatches .rd-chip[hidden] { display: none; }
.pd-section-heading span:last-child { font-size: .7rem; font-weight: 400; color: var(--rd-muted); }
.pd-detail .pd-option-label { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .85rem; }
.pd-option-label span { color: var(--rd-text); font-weight: 600; }
.pd-detail .rd-pdp__swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: stretch; max-height: 215px; overflow-y: auto; padding: 3px; scrollbar-width: thin; scrollbar-color: var(--rd-muted) transparent; }
.pd-detail .rd-pdp__swatches .rd-chip { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: center; align-items: center; justify-content: start; padding: .4rem; gap: .25rem .5rem; min-width: 0; text-align: left; white-space: normal; }
.pd-color-image { width: 42px; height: 48px; object-fit: contain; background: #fff; border-radius: 4px; grid-row: 1 / span 2; }
.pd-color-name { font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.pd-detail .rd-pdp__swatches .rd-chip:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(1); box-shadow: none; }
.pd-color-unavailable { font-size: .6rem; line-height: 1.2; color: var(--rd-muted); grid-column: 2; }
.pd-purchase-heading { display: flex; justify-content: space-between; flex-basis: 100%; gap: .75rem; font-size: .75rem; }
.pd-purchase-heading span:last-child { color: var(--rd-muted); font-size: .65rem; }
.pd-detail .rd-buy-row { border-top: 1px solid var(--pd-line); padding-top: 1rem; margin-top: 0; flex-wrap: wrap; gap: .75rem; }
.pd-detail .rd-buy-row__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; min-width: 0; gap: .6rem; }
.pd-detail .rd-buy-row__btns .rd-btn { font-size: .8rem; padding-inline: 1rem; min-height: 48px; }
.pd-detail .rd-tabs { margin-top: 3rem; }
.pd-detail .rd-pdp__desc { font-size: .85rem; line-height: 1.85; margin-top: 1.1rem; }
.pd-detail .rd-tabs__list { gap: .5rem; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.pd-detail .rd-tabs__tab { padding: 1rem 1.4rem; font-size: .85rem; }
.pd-detail .rd-tabs__panel { padding: clamp(1rem, 2vw, 1.5rem); margin-top: 1rem; border: 1px solid var(--pd-line); border-radius: 12px; background: var(--rd-surface, #101725); }
.pd-detail .rd-prose { max-width: none; width: 100%; margin: 0; color: var(--rd-muted); font-size: .95rem; line-height: 1.75; }
.pd-detail .rd-prose h2 { margin: 0 0 1rem; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.4; color: var(--rd-text); letter-spacing: -.025em; }
.pd-detail .rd-prose h3 { margin: 2rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--pd-line); color: var(--rd-text); font-size: 1.05rem; }
.pd-detail .rd-prose p { margin: 0 0 1.1rem; }
.pd-detail .rd-prose table { display: table; width: 100%; border-collapse: collapse; border-style: hidden; border-radius: 8px; overflow: hidden; font-size: .85rem; }
.pd-detail .rd-prose th, .pd-detail .rd-prose td { padding: .9rem 1.1rem; border: 0; border-bottom: 1px solid var(--pd-line); text-align: left; vertical-align: top; }
.pd-detail .rd-prose th { width: 42%; font-weight: 500; color: var(--rd-muted); }
.pd-detail .rd-prose td { font-weight: 600; color: var(--rd-text); }
.pd-detail .rd-prose tr:nth-child(odd) { background: rgb(255 255 255 / 3%); }
.pd-detail .rd-prose a { color: var(--rd-cyan); text-underline-offset: 3px; }
.pd-detail button:focus-visible { outline: 2px solid var(--rd-cyan); outline-offset: 3px; }
@media (min-width: 1024px) { .pd-gallery { position: sticky; top: 6rem; } }
@media (max-width: 1023px) { .pd-detail .rd-pdp { grid-template-columns: minmax(0, 1fr); } .pd-detail .rd-pdp__media { max-height: 540px; } }
@media (max-width: 767px) {
  .pd-detail .rd-pdp__media { max-height: 460px; }
  .pd-detail .rd-pdp__price-side { justify-items: start; text-align: left; flex-basis: 100%; }
  .pd-detail .rd-pdp__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-detail .rd-buy-row__btns { flex-basis: 100%; }
  .pd-detail .rd-tabs { margin-top: 2rem; }
  .pd-detail .rd-prose th, .pd-detail .rd-prose td { padding: .75rem; overflow-wrap: anywhere; }
  .pd-detail .rd-tabs__tab { padding: .85rem .9rem; font-size: .75rem; }
}
