/* The Data -> Objects product page (data_objects_pages.py render_product_page).
   Two columns: the model on the left, sticky, and the buy column on the right.
   On a phone the model sits on top and the Add-to-Cart bar sticks to the bottom. */

.pdp { margin: 0; background: var(--color-bg, #f7f7f5); color: var(--color-text-primary, #0a0a0a); font-family: var(--font-sans, -apple-system, system-ui, sans-serif); }
.pdp-top { max-width: 1180px; margin: 0 auto; padding: 18px 24px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; }
.pdp-top a { color: inherit; text-decoration: none; font-weight: 600; }
.pdp-top a:hover { text-decoration: underline; }
.pdp-crumb { opacity: .6; }

.pdp-grid { max-width: 1180px; margin: 0 auto; padding: 14px 24px 60px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
@media (max-width: 940px) { .pdp-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 120px; } }

/* --- the stage ------------------------------------------------------------ */
.pdp-stage { position: sticky; top: 16px; }
@media (max-width: 940px) { .pdp-stage { position: static; } }
.pdp-stage #result-panel { margin: 0; padding: 0; border: 0; background: none; }
.pdp-stage model-viewer, .pdp-stage .model-viewer-el { width: 100%; height: min(60vh, 520px); min-height: 340px; background: #efece6; border: 1px solid var(--color-border, #cfcfcb); border-radius: 16px; display: block; }
@media (prefers-color-scheme: dark) { .pdp-stage model-viewer, .pdp-stage .model-viewer-el { background: #232527; } }
.pdp-stage .result-summary { margin: 10px 2px 0; font-size: 13.5px; font-weight: 600; }
.pdp-stage .spec-line { margin: 3px 2px 0; font-size: 12.5px; color: var(--color-text-secondary, #555); }
.pdp-stage-facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp-stage-facts li { font-size: 12.5px; line-height: 1.45; padding: 9px 11px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 10px; background: var(--color-surface, #fff); }
.pdp-stage-facts strong { display: block; }

/* --- the buy column -------------------------------------------------------- */
.pdp-buy .kicker { margin: 0 0 6px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent, #55684A); }
.pdp-buy h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.01em; }
.pdp-dek { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary, #555); }
.pdp-price { margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price-each { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.pdp-price-unit { font-size: 13px; color: var(--color-text-secondary, #555); }
.pdp-price-total { font-size: 13px; font-weight: 600; }
.pdp-price-note { margin: 0 0 18px; font-size: 12.5px; line-height: 1.5; color: var(--color-text-secondary, #555); }

.pdp-section-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-tertiary, #737373); }

/* the text of the piece */
.pdp-fields { display: grid; gap: 10px; margin: 0 0 22px; }
.pdp-field { position: relative; }
.pdp-field-label { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 4px; }
.pdp-field-opt { font-weight: 400; color: var(--color-text-tertiary, #737373); margin-left: 6px; }
.pdp-field input { width: 100%; box-sizing: border-box; padding: 11px 58px 11px 13px; font-size: 15px; font-family: inherit; color: inherit; background: var(--color-surface, #fff); border: 1px solid var(--color-border, #cfcfcb); border-radius: 10px; }
.pdp-field input:focus { outline: 2px solid var(--color-accent, #55684A); outline-offset: 1px; border-color: transparent; }
.pdp-field-count { position: absolute; right: 12px; bottom: 12px; font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); color: var(--color-text-tertiary, #737373); pointer-events: none; }

/* the option rows */
.pdp-options { display: grid; gap: 0; margin: 0 0 20px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 12px; overflow: hidden; background: var(--color-surface, #fff); }
.pdp-opt + .pdp-opt { border-top: 1px solid var(--color-border, #cfcfcb); }
.pdp-opt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 15px; font-size: 14px; }
.pdp-opt > summary::-webkit-details-marker { display: none; }
.pdp-opt > summary:hover { background: rgba(0, 0, 0, .025); }
.pdp-opt-label { font-weight: 600; flex: none; }
.pdp-opt-value { flex: 1; text-align: right; color: var(--color-text-secondary, #555); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-opt-caret { flex: none; width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .45; transition: transform .16s ease; }
.pdp-opt[open] > summary .pdp-opt-caret { transform: rotate(-135deg) translate(-3px, -3px); }
.pdp-opt-body { padding: 4px 15px 16px; }
.pdp-opt-group { margin: 10px 0 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-tertiary, #737373); }
.pdp-opt-more { margin-top: 10px; }
.pdp-opt-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; }

.pdp-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.pdp-look { display: block; padding: 7px; border: 1.5px solid var(--color-border, #cfcfcb); border-radius: 10px; background: var(--color-bg, #f7f7f5); cursor: pointer; font: inherit; color: inherit; text-align: center; }
.pdp-look svg { width: 100%; height: auto; display: block; border-radius: 5px; }
.pdp-look-name { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; }
.pdp-look[aria-checked="true"] { border-color: var(--color-accent, #55684A); background: var(--color-accent-soft, #EAEFE5); }

.pdp-opt-body .mode-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pdp-opt-body .mode-option { padding: 8px 12px; border: 1.5px solid var(--color-border, #cfcfcb); border-radius: 9px; background: var(--color-bg, #f7f7f5); cursor: pointer; font: inherit; font-size: 13px; color: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.pdp-opt-body .mode-option[aria-checked="true"] { border-color: var(--color-accent, #55684A); background: var(--color-accent-soft, #EAEFE5); }
.pdp-opt-body .mode-blurb { font-size: 11px; color: var(--color-text-secondary, #555); }
.pdp-opt-body .field-label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 5px; }
.pdp-opt-body .swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-opt-body .swatch { width: 26px; height: 26px; padding: 0; border: 1.5px solid var(--color-border, #cfcfcb); border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.pdp-opt-body .swatch .mode-label { display: none; }
.pdp-opt-body .swatch-dot { width: 18px; height: 18px; border-radius: 50%; display: block; }
.pdp-opt-body .swatch[aria-checked="true"] { border-color: var(--color-accent, #55684A); box-shadow: 0 0 0 2px var(--color-accent-soft, #EAEFE5); }
.pdp-opt-body .forge-number { display: flex; align-items: center; gap: 9px; }
.pdp-opt-body .forge-number input[type="range"] { flex: 1; }
.pdp-opt-body .forge-number input[type="number"] { width: 78px; padding: 6px 8px; font: inherit; font-size: 13px; color: inherit; background: var(--color-bg, #f7f7f5); border: 1px solid var(--color-border, #cfcfcb); border-radius: 8px; }
.pdp-opt-body .field-hint { margin: 4px 0 0; font-size: 11.5px; color: var(--color-text-secondary, #555); }
.pdp-opt-body .forge-advanced { margin-top: 10px; }
.pdp-opt-body .forge-advanced > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; }

.pdp-notes { margin: -8px 0 16px; }
.pdp-notes .forge-report { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.pdp-notes .forge-report li { font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 9px; background: #fdf4e4; border: 1px solid #e9d5a8; }
.pdp-notes .forge-report-error { background: #fdeceb; border-color: #eab3ae; }
@media (prefers-color-scheme: dark) { .pdp-notes .forge-report li { background: #2c2519; border-color: #4a3f26; } .pdp-notes .forge-report-error { background: #2e1d1c; border-color: #56302d; } }

/* the buy block */
.pdp-buy-form { margin: 0 0 16px; padding: 16px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 12px; background: var(--color-surface, #fff); display: grid; gap: 12px; }
.pdp-qty { display: flex; align-items: center; gap: 10px; }
.pdp-qty-label { font-size: 12.5px; font-weight: 600; }
.pdp-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border, #cfcfcb); border-radius: 999px; overflow: hidden; background: var(--color-bg, #f7f7f5); }
.pdp-stepper button { width: 36px; height: 36px; border: 0; background: none; font: inherit; font-size: 18px; line-height: 1; color: inherit; cursor: pointer; }
.pdp-stepper button:hover { background: rgba(0, 0, 0, .05); }
.pdp-stepper input { width: 52px; height: 36px; text-align: center; border: 0; border-left: 1px solid var(--color-border, #cfcfcb); border-right: 1px solid var(--color-border, #cfcfcb); background: var(--color-surface, #fff); font: inherit; font-size: 14px; font-weight: 600; color: inherit; -moz-appearance: textfield; }
.pdp-stepper input::-webkit-outer-spin-button, .pdp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-buy-form .field-label { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 4px; }
.pdp-buy-form input[type="email"] { width: 100%; box-sizing: border-box; padding: 10px 13px; font: inherit; font-size: 14px; color: inherit; background: var(--color-bg, #f7f7f5); border: 1px solid var(--color-border, #cfcfcb); border-radius: 10px; }
.pdp-buy-form .btn-primary, .pdp-buy .btn-primary { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 999px; background: var(--color-accent, #55684A); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; }
.pdp-buy-form .btn-primary:disabled { opacity: .55; cursor: default; }
.pdp-buy-stub { margin: 0 0 16px; padding: 14px 16px; border: 1px dashed var(--color-border, #cfcfcb); border-radius: 12px; font-size: 13px; color: var(--color-text-secondary, #555); }
.pdp-subtitle { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-text-secondary, #555); }

/* the list flow */
.pdp-list { margin: 0 0 18px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 12px; background: var(--color-surface, #fff); overflow: hidden; }
.pdp-list > summary { cursor: pointer; padding: 13px 15px; font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.pdp-list > summary::-webkit-details-marker { display: none; }
.pdp-list > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .45; }
.pdp-list[open] > summary::after { transform: rotate(-135deg); }
.pdp-list-body { padding: 0 15px 16px; font-size: 13px; line-height: 1.55; }
.pdp-list-body .btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--color-border, #cfcfcb); background: var(--color-bg, #f7f7f5); color: inherit; font-weight: 700; font-size: 13.5px; text-decoration: none; }

.pdp-trust { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 7px; }
.pdp-trust li { font-size: 13px; line-height: 1.5; padding-left: 22px; position: relative; }
.pdp-trust li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 5px; height: 9px; border-right: 2px solid var(--color-accent, #55684A); border-bottom: 2px solid var(--color-accent, #55684A); transform: rotate(45deg); }

.pdp-faq { border-top: 1px solid var(--color-border, #cfcfcb); padding-top: 14px; }
.pdp-faq details { border-bottom: 1px solid var(--color-border, #cfcfcb); }
.pdp-faq summary { cursor: pointer; padding: 11px 0; font-size: 13.5px; font-weight: 600; }
.pdp-faq p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--color-text-secondary, #555); }

/* "Other items for you", reused from the buyer pages */
.pdp-also { max-width: 1180px; margin: 0 auto; padding: 0 24px 50px; }
.pdp-also h2 { font-size: 1.15rem; margin: 0 0 4px; }
.pdp-also .dob-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--color-text-secondary, #555); }

/* the sticky bar on a phone */
@media (max-width: 940px) {
  /* the bar rides the bottom of the screen: how many, and the price on the button.
     The email box is what goes - it is optional anyway (blank is a guest checkout). */
  .pdp-buy-form { position: sticky; bottom: 0; z-index: 30; margin: 0 -24px; border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .pdp-buy-form .pdp-hide-phone { display: none; }
  .pdp-buy-form .pdp-qty { margin: 0; }
  .pdp-buy-form .pdp-qty-label { display: none; }
  .pdp-buy-form .btn-primary { flex: 1; width: auto; padding: 14px 12px; font-size: 14.5px; }
  .pdp-buy-form #checkout-feedback { flex-basis: 100%; margin: 0; }
  /* the buy column has to start near the top of a phone screen, or the bar has nothing to stick to */
  .pdp-stage model-viewer, .pdp-stage .model-viewer-el { height: min(42vh, 360px); min-height: 260px; }
  /* the stage's children join the page's own column so the facts can sit UNDER the buy block:
     what sells is the piece and the price, and the bar needs the buy column to start high */
  .pdp-stage { display: contents; }
  .pdp-stage #result-panel { order: 1; }
  .pdp-stage .pdp-shots { order: 2; }
  .pdp-buy { order: 3; }
  .pdp-stage .pdp-stage-facts { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; }
  .pdp-stage-facts li { padding: 7px 9px; font-size: 11.5px; line-height: 1.35; }
}

.pdp .site-foot { max-width: 1180px; margin: 0 auto; padding: 22px 24px 40px; font-size: 12.5px; color: var(--color-text-secondary, #555); border-top: 1px solid var(--color-border, #cfcfcb); }
.pdp .site-foot a { color: inherit; }
.pdp .lp-status { margin: 8px 2px 0; }
.pdp .feedback-text { margin: 6px 0 0; font-size: 12.5px; }
.pdp .feedback-text.error { color: #b3261e; }
.pdp .feedback-text.success { color: var(--color-accent, #55684A); }

/* the two views: the live design, and a photograph of a printed one */
.pdp-photo { width: 100%; height: min(60vh, 520px); min-height: 340px; object-fit: cover; border: 1px solid var(--color-border, #cfcfcb); border-radius: 16px; display: block; background: #efece6; }
@media (max-width: 940px) { .pdp-photo { height: min(42vh, 360px); min-height: 260px; } }
.pdp-shots { display: flex; gap: 8px; margin: 10px 0 0; }
.pdp-shot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; padding: 5px; border: 1.5px solid var(--color-border, #cfcfcb); border-radius: 10px; background: var(--color-surface, #fff); cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 600; color: inherit; }
.pdp-shot img, .pdp-shot-3d { width: 100%; height: 40px; border-radius: 6px; object-fit: cover; display: block; }
.pdp-shot-3d { display: grid; place-items: center; background: var(--color-accent-soft, #EAEFE5); color: var(--color-accent, #55684A); font-size: 12px; letter-spacing: .06em; }
.pdp-shot.is-on { border-color: var(--color-accent, #55684A); }
.pdp-photo[hidden] { display: none; }

/* the site-wide reset lives in forge.css, which this page does not load */
.pdp [hidden] { display: none !important; }

/* the site's own bottom tab ribbon (site-nav.css) owns the last 64px of a small screen:
   the buy bar rides just above it, never under it */
@media (max-width: 640px) {
  .pdp-buy-form { bottom: calc(64px + env(safe-area-inset-bottom)); margin-bottom: 8px; }
}

/* the door cue: pictures to choose from, because nobody types "flower" to mark their own door */
.pdp-cues { display: block; }
.pdp-cue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 4px; }
.pdp-cue { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid var(--color-border, #cfcfcb); border-radius: 10px; background: var(--color-surface, #fff); cursor: pointer; font: inherit; color: inherit; }
.pdp-cue-art { width: 30px; height: 30px; display: grid; place-items: center; color: var(--color-text-primary, #0a0a0a); }
.pdp-cue-art svg { width: 100%; height: 100%; display: block; }
.pdp-cue-name { font-size: 11px; font-weight: 600; }
.pdp-cue[aria-checked="true"] { border-color: var(--color-accent, #55684A); background: var(--color-accent-soft, #EAEFE5); }
.pdp-cue[aria-checked="true"] .pdp-cue-art { color: var(--color-accent, #55684A); }
.pdp-cue-family { margin: 10px 0 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-tertiary, #737373); }
.pdp-cue-more { margin-top: 10px; }
.pdp-cue-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-tertiary, #737373); }
.pdp-cue-more .pdp-cue-grid { margin-top: 8px; }

/* the box looks like the line it fills: the one the sign is read by is the big one */
.pdp-field-number input, .pdp-field-primary input { font-size: 19px; font-weight: 600; padding-top: 13px; padding-bottom: 13px; }
.pdp-field-tertiary input, .pdp-field-secondary input { font-size: 14px; }
.pdp-field-qr input { font-size: 13px; font-family: var(--font-mono, ui-monospace, monospace); }

/* the ⓘ on an option row: what this is for, before you have to guess */
.pdp-opt-info { margin-left: 7px; width: 17px; height: 17px; padding: 0; border: 1.2px solid var(--color-text-tertiary, #737373); border-radius: 50%; background: none; color: var(--color-text-tertiary, #737373); font: inherit; font-size: 11px; font-weight: 700; font-style: italic; line-height: 1; cursor: pointer; vertical-align: middle; }
.pdp-opt-info:hover, .pdp-opt-info:focus-visible { border-color: var(--color-accent, #55684A); color: var(--color-accent, #55684A); }
.pdp-opt-note { margin: 0 15px 10px; padding: 10px 12px; border-radius: 10px; background: var(--color-accent-soft, #EAEFE5); border: 1px solid var(--color-accent-soft-border, #C4D0B9); font-size: 12.5px; line-height: 1.5; }
.pdp-opt:not([open]) .pdp-opt-note { display: none; }

/* pieces after the first: the same lines again, tight, with a cue picked from a list */
.pdp-extra { margin: 10px 0 0; padding: 12px 13px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 12px; background: var(--color-surface, #fff); }
.pdp-extra-head { display: flex; align-items: center; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-tertiary, #737373); }
.pdp-extra-drop { margin-left: auto; padding: 3px 9px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 999px; background: none; color: var(--color-text-secondary, #555); font: inherit; font-size: 11.5px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pdp-extra-drop:hover { border-color: #b3261e; color: #b3261e; }
.pdp-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pdp-extra-field { display: grid; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--color-text-secondary, #555); }
.pdp-extra-field input, .pdp-extra-field select { width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 400; color: var(--color-text-primary, #0a0a0a); background: var(--color-bg, #f7f7f5); border: 1px solid var(--color-border, #cfcfcb); border-radius: 8px; }
.pdp-add { margin: 10px 0 0; padding: 10px 14px; width: 100%; border: 1.5px dashed var(--color-border, #cfcfcb); border-radius: 10px; background: none; color: var(--color-text-primary, #0a0a0a); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pdp-add:hover { border-color: var(--color-accent, #55684A); color: var(--color-accent, #55684A); }
.pdp-add-note { margin: 7px 2px 0; font-size: 12px; color: var(--color-text-secondary, #555); }
