/* DTP Print Studio — product page (layout follows the original store at 1366px) */
.dtps-product { padding-top: 6px; }
.dtps-crumbs { margin: 0 0 40px; }
.dtps-product__grid { display: grid; grid-template-columns: minmax(0, 670px) minmax(0, 505px); gap: 37px; align-items: start; }

/* Image column */
.dtps-media { padding-left: 20px; }
.dtps-media__img { display: block; }
.dtps-media__img img { width: 100%; height: auto; max-height: 640px; object-fit: contain; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.dtps-enlarge { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 22px; font: 400 15px var(--font, sans-serif); letter-spacing: 1px; }
.dtps-enlarge a { color: #000; }
.dtps-enlarge .ico { font-size: 14px; }
.dtps-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-bottom: 30px; border-bottom: 1px solid #e5e5e5; }
.dtps-tool { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0; background: none; border: 0; cursor: pointer; color: #333; }
.dtps-tool .ico { font-size: 40px; stroke-width: 1; }
.dtps-tool span { font: 300 13px var(--font, sans-serif); letter-spacing: 1px; color: #757575; white-space: nowrap; }
.dtps-tool:hover span, .dtps-tool[aria-pressed="true"] span { color: #000; }
.dtps-tool[aria-pressed="true"] .ico-heart { fill: #000; }
.dtps-share { text-align: center; padding-top: 18px; }
.dtps-share p { margin: 0 0 10px; font: 300 13px var(--font, sans-serif); letter-spacing: 1px; color: #757575; }
.dtps-share a { display: inline-block; margin: 0 10px; color: #333; font-size: 22px; }

/* Buy column */
.dtps-buy .product_title { margin: 0 0 22px; font: 400 26px/30px var(--font, sans-serif); letter-spacing: 1px; text-transform: uppercase; color: #333; }
.dtps-price { font: 600 26px/26px var(--font, sans-serif); color: #333; margin-bottom: 24px; letter-spacing: 0; }
.dtps-buyrow { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 10px; margin-bottom: 40px; }
.dtps-buyrow input[type=number] { height: 38px; width: 60px; padding: 0 10px; border: 1px solid #ccc; font-size: 13px; }
.dtps-buyrow .btn { min-height: 40px; padding: 0 10px; font-size: 13px; }

.dtps-step { position: relative; border: 1px solid #ccc; margin: 0 0 22px; }
.dtps-step[hidden] { display: none; }
.dtps-step__legend { position: absolute; top: -9px; left: 10px; background: #fff; padding: 0 5px; font: 400 14px/16px var(--font, sans-serif); letter-spacing: 1px; color: #9a9898; }
.dtps-step__head { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 20px; background: none; border: 0; cursor: pointer; text-align: left; }
.dtps-step__value { flex: 1; font: 600 14px/23px var(--font, sans-serif); letter-spacing: 1px; color: #333; padding-top: 2px; }
.dtps-step__head .ico { font-size: 12px; color: #555; transition: transform .2s; }
.dtps-step.is-open .dtps-step__head .ico { transform: rotate(180deg); }
.dtps-step__body { display: none; padding: 16px 20px 20px; border-top: 1px solid #e5e5e5; }
.dtps-step.is-open .dtps-step__body { display: block; }

.dtps-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 10px 8px; }
.dtps-tile {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 14px 4px 10px; background: #fff; border: 1px solid transparent; cursor: pointer;
	font: 300 12px/16px var(--font, sans-serif); letter-spacing: 1px; color: #757575; text-align: center;
}
.dtps-tile:hover { border-color: #ddd; }
.dtps-tile.is-selected { border-color: #333; color: #333; }
.dtps-tile--check { flex-direction: row; justify-content: flex-start; text-align: left; padding: 8px 10px; border-color: #e5e5e5; }
.dtps-tile--check::before { content: ""; flex: none; width: 13px; height: 13px; border: 1px solid #999; }
.dtps-tile--check.is-selected::before { background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2.5 2.5 4.5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center/11px no-repeat; border-color: #000; }
.dtps-section { margin-bottom: 18px; }
.dtps-section:last-child { margin-bottom: 0; }
.dtps-section__title { margin: 0 0 10px; font: 600 12px var(--font, sans-serif); letter-spacing: 1px; text-transform: uppercase; color: #333; }
.dtps-section .dtps-tiles:has(.dtps-tile--check) { grid-template-columns: 1fr 1fr; }

/* Tile pictures */
.dtps-pic { display: block; width: 72px; height: 36px; background-size: cover; background-position: center; }
.dtps-pic--paper { box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transform: perspective(120px) rotateX(18deg); border: 3px solid #fff; outline: 1px solid #eee; }
.dtps-pic--metal { box-shadow: 0 3px 6px rgba(0, 0, 0, .3); filter: saturate(1.25) contrast(1.05); position: relative; }
.dtps-pic--metal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); }
.dtps-pic--wood { box-shadow: 4px 4px 0 #d8c3a0, 0 6px 8px rgba(0, 0, 0, .25); }
.dtps-pic--canvas { box-shadow: 5px 5px 0 #3b3b3b, 0 7px 9px rgba(0, 0, 0, .25); }
.dtps-pic--style, .dtps-pic--frame { display: flex; width: 72px; height: 50px; padding: 0; background: #fff; border: 0 solid transparent; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); box-sizing: border-box; }
.dtps-pic--style.is-deep { box-shadow: 4px 4px 0 var(--side, #cfcfcf), 0 6px 8px rgba(0, 0, 0, .2); }
.dtps-pic__art { flex: 1; background-size: cover; background-position: center; }

/* Sizes */
.dtps-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.dtps-size { padding: 10px 6px; background: #fff; border: 1px solid #ddd; cursor: pointer; font: 400 13px var(--font, sans-serif); letter-spacing: 1px; color: #333; }
.dtps-size:hover { border-color: #999; }
.dtps-size.is-selected { border-color: #333; font-weight: 600; }
.dtps-note { margin: 12px 0 0; font-size: 12px; color: #757575; }

/* Lightbox */
.dtps-lightbox { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 40px; background: rgba(255, 255, 255, .97); cursor: zoom-out; }
.dtps-lightbox[hidden] { display: none; }
.dtps-lightbox img { max-width: 100%; max-height: calc(100vh - 80px); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); cursor: default; }
.dtps-lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* Dialogs (wall preview, 360°, AR, email) */
body.dtps-lock { overflow: hidden; }
.dtps-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.dtps-modal[hidden] { display: none; }
.dtps-modal__box { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; padding: 0 1.25rem 1.25rem; }
.dtps-modal__box[data-pane="email"] { width: min(480px, 100%); }
.dtps-modal__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 .6rem; background: #fff; }
.dtps-modal__head h2 { margin: 0; font-size: 1.15rem; }
.dtps-modal__head .dtps-modal__close { position: static; }
.dtps-hint { font-size: .85rem; color: #777; }
.dtps-loading { display: grid; place-items: center; min-height: 300px; color: #777; }
.dtps-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .6rem; }
.dtps-scene-tab { padding: .45rem .8rem; border: 1px solid #ccc; background: #fff; cursor: pointer; font: 500 .75rem var(--font, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.dtps-scene-tab.is-active { background: #111; color: #fff; border-color: #111; }
.dtps-stage { position: relative; width: 100%; overflow: hidden; background: #eee; user-select: none; touch-action: none; }
.dtps-stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dtps-stage__art { position: absolute; border: 0 solid transparent; cursor: grab; box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 14px 28px rgba(0, 0, 0, .22); }
.dtps-stage__art:active { cursor: grabbing; }
.dtps-stage__art:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }
.dtps-stage__art[data-medium="canvas"], .dtps-stage__art[data-medium="metal"], .dtps-stage__art[data-medium="wood"] { box-shadow: var(--depth) var(--depth) 0 rgba(0, 0, 0, .22), 0 14px 28px rgba(0, 0, 0, .25); }
.dtps-art__mat { width: 100%; height: 100%; box-sizing: border-box; }
.dtps-art__mat img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dtps-wall-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-top: .9rem; }
.dtps-mini-config { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.dtps-mini-config label { display: grid; gap: 3px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.dtps-mini-config select { width: auto; min-width: 140px; max-width: 240px; padding: .45rem .5rem; }
.dtps-mini-price { margin: 0; font: 600 1.2rem var(--font, sans-serif); }
.dtps-own-wall { flex-basis: 100%; }
.dtps-own-wall label { display: grid; gap: 4px; font-size: .85rem; }
.dtps-own-wall span { display: flex; gap: .6rem; align-items: center; }
.dtps-own-wall input[type=range] { flex: 1; }
.dtps-upload { position: relative; background: #fff !important; color: #000 !important; }
.dtps-3d model-viewer, .dtps-ar model-viewer { width: 100%; height: min(70vh, 560px); background: #f2f1ee; --poster-color: #f2f1ee; }
.dtps-ar-btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
.dtps-ar-desktop { text-align: center; padding: 1rem 0 2rem; }
.dtps-qr { display: inline-block; padding: 12px; background: #fff; border: 1px solid #ddd; }
.dtps-email label { display: grid; gap: 4px; }
.dtps-email__msg { min-height: 1.4em; font-size: .9rem; }

@media (max-width: 1000px) {
	.dtps-product__grid { grid-template-columns: 1fr; gap: 30px; }
	.dtps-media { padding-left: 0; }
}
@media (max-width: 560px) {
	.dtps-crumbs { margin-bottom: 20px; }
	.dtps-tools { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
	.dtps-tool span { white-space: normal; text-align: center; }
	.dtps-buyrow { grid-template-columns: 60px 1fr; }
	.dtps-buyrow .dtps-instant { grid-column: 1 / -1; }
	.dtps-modal { padding: 0; }
	.dtps-modal__box { max-height: 100vh; height: 100vh; }
}

/* Phone layout (matches the original's mobile product page) */
@media (max-width: 760px) {
	.dtps-crumbs { text-align: center; margin: 10px 0 20px; }
	.dtps-media__img { padding: 0 25px; }
	.dtps-tools { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
	.dtps-tool .ico { font-size: 34px; }
	.dtps-tool span { font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
	.dtps-buy .product_title, .dtps-price { text-align: center; }
	.dtps-buyrow { grid-template-columns: 50px 1fr; }
	.dtps-buyrow .dtps-instant { grid-column: 1 / -1; }
}

/* Canvas border colour picker */
.dtps-colorpick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dtps-colorpick__sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ccc; cursor: pointer; padding: 0; }
.dtps-colorpick__sw.is-on { outline: 2px solid #000; outline-offset: 2px; }
.dtps-colorpick__custom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #555; margin-left: 6px; }
.dtps-colorpick__custom input { width: 34px; height: 28px; padding: 0; border: 1px solid #ccc; background: none; cursor: pointer; }

/* Recently Visited (bordered box with the label in the top border) */
.dtps-recent { position: relative; border: 1px solid #ccc; margin: 50px 0 50px; padding: 40px 40px 40px; }
.dtps-recent__title { position: absolute; top: -10px; left: 30px; margin: 0; padding: 0 15px; background: #fff; font: 400 14.4px/18px var(--font, sans-serif); letter-spacing: 2.9px; text-transform: uppercase; color: #303030; }
.dtps-recent__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dtps-recent__list img { width: 100%; height: 250px; object-fit: contain; object-position: left center; }
@media (max-width: 760px) { .dtps-recent { padding: 30px 16px 16px; } .dtps-recent__list { grid-template-columns: 1fr 1fr; gap: 14px; } .dtps-recent__list img { height: 150px; } }
