/* Prism Store product page: gallery, the order steps (colours, a quantity
   per size, branding, summary) and the tabs. Loaded after store.css, which
   holds the colours (--ps-*) and the shared bits (cards, buttons). */
.prism-store .ps-low { color: var(--ps-amber) !important; }
.ps-product .pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 8px 0 24px; }
.ps-product .pd-main { background: #f3f4f6; border-radius: var(--ps-r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.ps-product .pd-main img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; }
.ps-product .pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ps-product .pd-thumb { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--ps-line2); background: #f3f4f6; padding: 2px; overflow: hidden; cursor: pointer; }
.ps-product .pd-thumb[aria-pressed="true"] { border-color: var(--ps-green); }
.ps-product .pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ps-product .pd-info { display: grid; gap: 12px; align-content: start; }
.ps-product .pd-brand { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-sec); }
.ps-product .pd-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.ps-product .pd-price { font-family: var(--ps-head); font-size: 28px; font-weight: 600; color: var(--ps-text); }
.ps-product .pd-price small { font-size: 15px; color: var(--ps-sec); font-weight: 400; }
.ps-product .pd-each { font-family: inherit; font-size: 14px; color: var(--ps-sec); font-weight: 400; margin-left: 4px; }
.ps-product .pd-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; margin: 0; }
.ps-product .pd-facts dt { color: var(--ps-sec); }
.ps-product .pd-facts dd { margin: 0; color: var(--ps-text); }
.ps-product .pd-short, .ps-product .pd-note { color: var(--ps-sec); font-size: 14px; }
.ps-product .pd-short p { margin: 0 0 6px; }
.ps-product .pd-note { margin: 0; }
/* Links in running text are underlined, not told apart by colour alone (Lighthouse a11y, 8 Oct 2026). */
.ps-product .pd-note a, .ps-product .pd-facts dd a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- order steps ---- */
.ps-product .pd-order { display: grid; gap: 12px; padding-bottom: 24px; }
.ps-product .pd-step { background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r); }
.ps-product .pd-step > header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.ps-product .pd-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ps-green); color: var(--ps-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.ps-product .pd-step h2 { font-size: 18px; }
.ps-product .pd-sub { margin-left: auto; color: var(--ps-sec); font-size: 13px; text-align: right; }
.ps-product .pd-inner { padding: 0 18px 18px; }
.ps-product .muted { color: var(--ps-sec); }
.ps-product .pd-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ps-product .pd-colour { background: var(--ps-bg); border: 2px solid var(--ps-line2); border-radius: 10px; padding: 8px; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--ps-text); cursor: pointer; font: inherit; }
.ps-product .pd-colour[aria-pressed="true"] { border-color: var(--ps-green); }
.ps-product .pd-colour b { font-size: 14px; }
.ps-product .pd-colour small { font-size: 12px; }
.ps-product .pd-sw { width: 100%; aspect-ratio: 46 / 35; border-radius: 6px; background: #f3f4f6; overflow: hidden; display: grid; place-items: center; }
.ps-product .pd-sw img { width: 100%; height: 100%; object-fit: contain; }
.ps-product .pd-sw i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.ps-product .pd-qty { display: grid; gap: 14px; }
.ps-product .pd-qtybox { overflow-x: auto; }
.ps-product .pd-qtytable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; background: transparent; border: 0; }
.ps-product .pd-qtytable caption { text-align: left; font-family: var(--ps-head); font-size: 16px; padding-bottom: 6px; color: var(--ps-text); }
.ps-product .pd-qtytable th, .ps-product .pd-qtytable td { padding: 6px 8px; border: 0; border-bottom: 1px solid var(--ps-line); text-align: left; color: var(--ps-text); background: transparent; }
.ps-product .pd-qtytable thead th { color: var(--ps-sec); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ps-product .pd-qtytable tbody th { font-weight: 700; }
.ps-product .pd-qtytable tr.na th, .ps-product .pd-qtytable tr.na td { color: var(--ps-sec); }
.ps-product .pd-qtytable input.pd-q { width: 84px; background: var(--ps-bg); border: 1px solid var(--ps-line2); border-radius: 8px; padding: 6px 8px; color: var(--ps-text); margin: 0; height: auto; box-shadow: none; }
.ps-product .pd-qtytable input.pd-q:focus { border-color: var(--ps-blue); }
.ps-product .pd-qtytable input.pd-q:disabled { opacity: .4; }
.ps-product .pd-qnote { font-size: 12px; color: var(--ps-amber); margin-top: 3px; }
.ps-product .num { font-variant-numeric: tabular-nums; }
html:not(.pd-js) .ps-product .pd-pickfirst { display: none; }

/* ---- summary ---- */
.ps-product .pd-summary { display: grid; gap: 6px; font-size: 14px; }
.ps-product .pd-summary p { margin: 0; }
.ps-product .pd-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ps-text); }
.ps-product .pd-row.muted { color: var(--ps-sec); }
.ps-product .pd-row.total { font-family: var(--ps-head); font-size: 20px; border-top: 1px solid var(--ps-line); padding-top: 8px; margin-top: 4px; }
.ps-product .pd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ps-product .ps-btn { cursor: pointer; font: inherit; font-weight: 800; }
.ps-product .ps-btn:disabled { opacity: .45; cursor: not-allowed; }
.ps-product .ps-btn.ghost { background: transparent; border: 1px solid var(--ps-line2); color: var(--ps-text) !important; }

/* ---- Prism Branding's step, in the shop's colours ---- */
.ps-product .prism-branding { border: 0; padding: 0; margin: 0; color: var(--ps-text); }
.ps-product .prism-branding .pb-title { display: none; }
.ps-product .prism-branding .pb-hint, .ps-product .prism-branding .pb-small, .ps-product .prism-branding .pb-note { color: var(--ps-sec); }
.ps-product .prism-branding .pb-pos, .ps-product .prism-branding .pb-files { border-top-color: var(--ps-line); }
.ps-product .prism-branding .pb-price { color: var(--ps-text); }
.ps-product .prism-branding .pb-summary { color: var(--ps-green); }
.ps-product .prism-branding label { color: var(--ps-text) !important; }
.ps-product .prism-branding select { background: var(--ps-bg); color: var(--ps-text); border: 1px solid var(--ps-line2); border-radius: 8px; padding: 6px 8px; height: auto; }
.ps-product .prism-branding input[type="checkbox"], .ps-product .prism-branding input[type="radio"] { accent-color: var(--ps-green); }
.ps-product .prism-branding input[type="file"] { color: var(--ps-sec); }

/* ---- tabs ---- */
.ps-product .pd-tabs { margin-top: 8px; }
.ps-product .pd-tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--ps-line); overflow-x: auto; }
.ps-product .pd-tablist button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; white-space: nowrap; color: var(--ps-sec); font: inherit; font-weight: 700; cursor: pointer; border-radius: 0; }
.ps-product .pd-tablist button[aria-selected="true"] { color: var(--ps-text); border-bottom-color: var(--ps-green); }
.ps-product .pd-panel { padding: 16px 0 32px; max-width: 80ch; color: var(--ps-text); }
.ps-product .pd-panel-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.pd-js) .ps-product .pd-panel-h { position: static !important; width: auto; height: auto; clip: auto; margin: 16px 0 8px; font-size: 18px; }
.ps-product .pd-panel ul { padding-left: 20px; }
.ps-product .pd-tablebox { overflow-x: auto; margin-bottom: 14px; }
.ps-product .pd-bands { border-collapse: collapse; font-size: 13px; min-width: 520px; margin: 0; background: transparent; border: 0; }
.ps-product .pd-bands caption { text-align: left; font-weight: 800; padding: 12px 0 4px; color: var(--ps-text); }
.ps-product .pd-bands th, .ps-product .pd-bands td { border: 0; border-bottom: 1px solid var(--ps-line); padding: 6px 10px; text-align: left; color: var(--ps-text); background: transparent; }
.ps-product .pd-bands td.num { text-align: right; }
.ps-product .ps-tag { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; background: var(--ps-green); color: var(--ps-ink); }
.ps-product .pd-more { margin-top: 12px; }

@media (max-width: 900px) {
	.ps-product .pd { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
	.ps-product .pd-step > header { padding: 12px 14px; }
	.ps-product .pd-inner { padding: 0 14px 14px; }
	.ps-product .pd-qtytable input.pd-q { width: 64px; }
	.ps-product .pd-colours { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
/* Branding guide (Amrod's PDF of the logo positions), loaded when opened. */
.ps-product .pd-guide-link { margin: 0 0 12px; font-size: 14px; color: var(--ps-sec); }
.ps-product .pd-guide { margin: 0 0 20px; border: 1px solid var(--ps-line, rgba(255,255,255,.12)); border-radius: 10px; padding: 10px 14px; max-width: none; }
.ps-product .pd-guide summary { cursor: pointer; font-weight: 600; }
.ps-product .pd-guide-frame iframe { display: block; width: 100%; height: 75vh; min-height: 480px; border: 0; margin-top: 10px; background: #fff; border-radius: 6px; }
@media (max-width: 700px) { .ps-product .pd-guide-frame iframe { height: 60vh; min-height: 360px; } }
.ps-product .pd-guide-frame img { display: block; width: 100%; max-width: 980px; height: auto; margin-top: 10px; background: #fff; border-radius: 6px; }
