/* Jehajo Printers — Design Your Own (custom apparel designer) */
.dz { --dz-r: 20px; position: relative; }
.dz__noscript { padding: 1rem; background: var(--lav-l); border-radius: var(--r); }
.dz__layout { display: grid; gap: 1.25rem; align-items: start; }
.dz__layout[hidden] { display: none; }
@media (min-width: 960px) {
	.dz__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; }
	.dz__panel { order: 1; }
	.dz__preview { order: 2; position: sticky; top: calc(var(--header-h) + 16px); }
}

/* Preview */
.dz__preview { background: linear-gradient(180deg, #f4f4f8, #eceef4); border: 1px solid var(--line); border-radius: var(--dz-r); padding: 1rem; }
@media (max-width: 959.98px) {
	.dz__preview { position: sticky; top: calc(var(--header-h) - 6px); z-index: 20; padding: .6rem; box-shadow: 0 10px 24px -16px rgba(23, 20, 26, .45); }
	.dz__stage { max-width: calc(36vh * 600 / 700); margin-inline: auto; }
}
.dz__stage { position: relative; width: 100%; margin-inline: auto; touch-action: pan-y; }
.dz__stage canvas { border-radius: 14px; }
.dz__spinner { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.dz__spinner[hidden] { display: none; }
.dz__spinner span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--lav); border-top-color: var(--red); animation: dzspin .8s linear infinite; }
@keyframes dzspin { to { transform: rotate(360deg); } }
.dz__views { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .6rem; }
.dz__views .chip { min-height: 36px; padding: .3rem .8rem; font-size: .82rem; }
.dz__views .chip.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.dz__badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: .35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; }
.dz__meta { text-align: center; margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.dz__meta strong { color: var(--ink); }
.dz__meta span::before { content: "· "; }
.dz__meta span:empty::before { content: ""; }

/* Panel */
.dz__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--dz-r); padding: clamp(1rem, 3vw, 1.75rem); box-shadow: var(--sh-1); min-width: 0; }
.dz__stepper { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.dz__stepper::-webkit-scrollbar { display: none; }
.dz__stepper button { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: .3rem .7rem .3rem .3rem; font-size: .78rem; font-weight: 600; min-height: 36px; }
.dz__stepper span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lav-l); font-size: .72rem; }
.dz__stepper button:disabled { opacity: .5; cursor: not-allowed; }
.dz__stepper .is-done button { color: var(--indigo); border-color: var(--lav); }
.dz__stepper .is-done span { background: var(--indigo); color: #fff; }
.dz__stepper .is-current button { color: var(--ink); border-color: var(--red); }
.dz__stepper .is-current span { background: var(--red); color: #fff; }
.dz__bar { height: 5px; border-radius: 999px; background: var(--lav-l); overflow: hidden; margin-bottom: 1.25rem; }
.dz__bar i { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--red)); border-radius: inherit; transition: width .5s var(--ease); }
.dz__step[hidden] { display: none; }
.dz__step { animation: stepIn .35s var(--ease); }
.dz__h { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .4rem; outline: none; }
.dz__hint { color: var(--muted); font-size: .92rem; }
.dz__sub { font-size: 1rem; margin: 1.5rem 0 .6rem; }

/* Step 1 */
.dz__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .7rem; margin-top: 1rem; }
.dz__product { display: grid; justify-items: center; gap: .35rem; padding: .7rem .5rem .8rem; background: #fff; border: 2px solid var(--line); border-radius: 16px; font-weight: 600; font-size: .9rem; transition: border-color .2s, transform .2s, box-shadow .2s; min-height: 44px; }
.dz__product:hover { border-color: var(--indigo); transform: translateY(-2px); }
.dz__product[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(238, 50, 55, .15); }
.dz__thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 6 / 7; background: #f2f3f7; border-radius: 12px; }
.dz__thumb img { width: 88%; height: auto; }
.dz__other { margin-top: 1rem; }
.dz__other[hidden] { display: none; }

/* Step 2 */
.dz__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .6rem; margin-top: 1rem; }
.dz__swatch { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: .85rem; font-weight: 600; text-align: left; min-height: 48px; }
.dz__swatch[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(238, 50, 55, .15); }
.dz__chip { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.dz__cname { line-height: 1.2; }

/* Step 3 */
.dz__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 1rem; }
.dz__size-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .5rem .45rem .8rem; border: 1.5px solid var(--line); border-radius: 14px; }
.dz__size-row label { font-weight: 700; }
.dz__qty { display: flex; align-items: center; gap: .25rem; }
.dz__qty input { width: 58px; text-align: center; padding: .4rem .2rem; min-height: 40px; -moz-appearance: textfield; }
.dz__qty input::-webkit-outer-spin-button, .dz__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dz__step-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--lav-l); font-size: 1.2rem; font-weight: 700; color: var(--indigo); }
.dz__step-btn:hover { background: var(--indigo); color: #fff; }
.dz__total { margin: 1rem 0 0; font-size: 1.05rem; }
.dz__total strong { font-size: 1.3rem; color: var(--red); }

/* Step 4 */
.dz__drop { margin-top: .75rem; }
.dz__drop.is-over { border-color: var(--cyan); background: rgba(0, 174, 239, .06); }
.dz__arts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.dz__art { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; align-items: start; padding: .6rem; border: 1.5px solid var(--line); border-radius: 14px; }
.dz__art-img, .dz__pl-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
	background: repeating-conic-gradient(#e9e9ef 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.dz__art-img img, .dz__pl-img img { max-width: 100%; max-height: 100%; }
.dz__art-info { display: grid; gap: .1rem; min-width: 0; }
.dz__art-info strong { overflow-wrap: anywhere; font-size: .9rem; }
.dz__art-info small { color: var(--muted); }
.dz__warn { margin: .35rem 0 0; font-size: .8rem; color: #8a5a00; background: #fff6d6; border-radius: 8px; padding: .4rem .55rem; }
.dz__x { border: 0; background: none; color: var(--red); font-weight: 600; font-size: .85rem; padding: .4rem; }

/* Step 5 */
.dz__places { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: 1rem; }
.dz__place { display: grid; gap: .1rem; text-align: left; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; min-height: 56px; }
.dz__place small { color: var(--muted); font-size: .76rem; }
.dz__place[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(238, 50, 55, .15); }
.dz__place:disabled { opacity: .55; cursor: not-allowed; background: var(--lav-l); }
.dz__addrow { display: grid; gap: .5rem; margin-top: 1rem; align-items: end; }
@media (min-width: 560px) { .dz__addrow { grid-template-columns: 1fr auto auto; } }
.dz__addrow .field { margin: 0; }
.dz__addrow [hidden] { display: none; }
.dz__pls { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dz__pl { display: grid; grid-template-columns: 52px 1fr auto; gap: .7rem; align-items: center; padding: .5rem; border: 1.5px solid var(--line); border-radius: 14px; }
.dz__pl-img { width: 52px; height: 52px; }
.dz__pl-info { display: grid; min-width: 0; }
.dz__pl-info small { color: var(--muted); overflow-wrap: anywhere; }
.dz__pl-act { display: flex; gap: .75rem; }
.dz__pl-act .linklike { font-weight: 600; color: var(--indigo); font-size: .88rem; padding: .35rem 0; }
.dz__pl-act .linklike + .linklike { color: var(--red); }

/* Step 6 */
.dz__adjust[hidden] { display: none; }
.dz__size { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--indigo); margin: .75rem 0 .5rem; }
.dz__dpi { font-size: .85rem; color: #8a5a00; background: #fff6d6; border-left: 4px solid var(--yellow); border-radius: 8px; padding: .55rem .75rem; }
.dz__dpi[hidden] { display: none; }
.dz__dims { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dz__lock { margin: .25rem 0 1rem; }
.dz__tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.dz__tool { min-width: 44px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.dz__tool--txt { font-size: .85rem; padding: 0 .8rem; }
.dz__tool:hover:not(:disabled) { border-color: var(--indigo); color: var(--indigo); }
.dz__tool:disabled { opacity: .45; cursor: not-allowed; }
input[type="range"]#dz-rot { width: 100%; accent-color: var(--red); }

/* Step 7 */
.dz__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.dz__chips .chip.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* Step 8 */
.dz__review-img { position: relative; margin: 1rem 0; min-height: 160px; background: #f4f4f8; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dz__review-img img { display: block; width: 100%; height: auto; }
.dz__review-img .dz__spinner[hidden] { display: none; }
.dz__summary { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.25rem; }
.dz__summary th, .dz__summary td { text-align: left; vertical-align: top; padding: .55rem .4rem; border-bottom: 1px solid var(--line); }
.dz__summary th { width: 30%; color: var(--muted); font-weight: 600; }
.dz__summary td:last-child { text-align: right; white-space: nowrap; }
.dzq .dz__summary td:last-child { text-align: left; white-space: normal; }
.dz__edit { font-weight: 600; font-size: .82rem; }
.dzq__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.dz__lowdpi { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; background: #fff6d6; color: #8a5a00; border-radius: 999px; padding: .05rem .45rem; }
.dz__send { display: grid; gap: .75rem; }
.dz__send-alt { display: flex; flex-wrap: wrap; gap: .5rem; }
.dz__send-alt [hidden] { display: none; }
.dz__privacy { font-size: .8rem; color: var(--muted); margin: 0; }
.dz__credits { font-size: .75rem; color: var(--muted); }
.dz__credits summary { cursor: pointer; }
.dz__credits ul { margin: .35rem 0 0; padding-left: 1.1em; }

/* Nav + messages */
.dz__nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.dz__nav [data-dz-next] { margin-left: auto; }
.dz__nav .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.dz__nav [hidden] { display: none; }
.dz__msg { min-height: 1.4em; margin: .6rem 0 0; font-size: .88rem; color: var(--muted); }
.dz__msg.is-error { color: var(--red-d); }

/* Done */
.dz__done { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--dz-r); display: grid; justify-items: center; gap: .6rem; outline: none; }
.dz__done[hidden] { display: none; }
.dz__done h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: .75rem; }
.dz__ref { font-family: var(--f-display); font-size: 1.3rem; color: var(--red); letter-spacing: .04em; }
.dz__done p { max-width: 60ch; }
.dz__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
.dz__done-actions [hidden] { display: none; }

/* Read-only quote page */
.dzq { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .dzq { grid-template-columns: 1.3fr 1fr; } }
.dzq__img { margin: 0; }
.dzq__img img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.dzq__img figcaption { margin-top: .75rem; }
.dzq__files { list-style: none; padding: 0; display: grid; gap: .4rem; }
.dzq__files a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* Phones: the designer has its own WhatsApp send, so the site's floating buttons step aside. */
@media (max-width: 959.98px) {
	.jhd-page .float-actions, .jhd-page .chat-pop { display: none !important; }
	.dz__stage { max-width: calc(32vh * 600 / 700); }
	.dz__views { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 2px; }
	.dz__views::-webkit-scrollbar { display: none; }
	.dz__views .chip { flex: none; }
	.dz__meta { margin-top: .25rem; font-size: .82rem; }
}

/* ---------- Fit the whole designer in one screen (desktop) ---------- */
.dz-section { padding-block: 14px 2.5rem; }
.dz__title { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 .75rem; }
@media (min-width: 960px) {
	.dz__layout { height: calc(100vh - var(--header-h) - 28px); height: calc(100svh - var(--header-h) - 28px); min-height: 540px; max-height: 1000px; gap: 1.25rem; }
	.dz__panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 1rem 1.25rem; }
	.dz__title, .dz__stepper, .dz__bar { flex: none; }
	.dz__stepper { margin-bottom: .5rem; }
	.dz__bar { margin-bottom: .75rem; }
	.dz__step { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .35rem; scrollbar-width: thin; }
	.dz__nav { flex: none; margin-top: .75rem; padding-top: .75rem; }
	.dz__msg { flex: none; min-height: 1.2em; margin-top: .35rem; }
	.dz__h { font-size: 1.2rem; }
	.dz__preview { position: static; height: 100%; display: flex; flex-direction: column; padding: .75rem; }
	.dz__stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: none; }
	.dz__views, .dz__meta { flex: none; }
	.dz__products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
	.dz__product { padding: .45rem .35rem .55rem; font-size: .8rem; border-radius: 14px; }
	.dz__product { min-width: 0; }
	.dz__thumb { aspect-ratio: 1 / 1; overflow: hidden; }
	.dz__thumb img { width: auto; height: auto; max-width: 92%; max-height: 92%; }
	.dz__pname { overflow-wrap: anywhere; line-height: 1.25; }
	.dz__swatches, .dz__sizes, .dz__places { margin-top: .6rem; }
}

/* ---------- Colour library ---------- */
.dz__current { margin: .6rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.dz__current strong { color: var(--ink); }
.dz__csearch { margin: 0 0 .75rem; }
.dz__clusters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .7rem .9rem; }
.dz__cgroup { padding: .35rem; border-radius: 26px; background: var(--lav-l); }
.dz__cgroup[hidden], .dz__swatch[hidden] { display: none; }
.dz__cgroup-h { margin: 0 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dz__cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.dz__cgrid--dots { display: flex; flex-wrap: wrap; gap: .3rem; }
.dz__cgrid--dots .dz__swatch { width: 38px; height: 38px; background: #fff; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; border-width: 2px; }
.dz__cgrid--dots .dz__chip { width: 30px; height: 30px; }
.dz__cgrid--dots .dz__cname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dz__cgrid--dots .dz__swatch[aria-checked="true"] { box-shadow: 0 0 0 3px rgba(238, 50, 55, .35); }

/* ---------- Reset design ---------- */
.dz__reset-all { position: absolute; top: .6rem; right: .6rem; z-index: 5; display: inline-flex; align-items: center; gap: .4rem; margin: 0; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; min-height: 40px; }
.dz__reset-all:hover { border-color: var(--red); color: var(--red); }
.dz__reset-all[hidden] { display: none; }
.dz__reset-all .icon { width: 18px; height: 18px; }
.dz__preview { text-align: center; position: relative; }
@media (max-width: 959.98px) { .dz__reset-all { top: .4rem; right: .4rem; padding: .35rem .7rem; min-height: 36px; font-size: .8rem; } }
.dz__modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(23, 20, 26, .55); }
.dz__modal[hidden] { display: none; }
.dz__modal-box { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 1.5rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.dz__modal-h { font-size: 1.3rem; margin: 0 0 .4rem; }
.dz__modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.dz__toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 210; display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem .7rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); }
.dz__toast[hidden] { display: none; }
.dz__toast button { background: none; border: 0; color: var(--yellow); font-weight: 700; text-decoration: underline; padding: .25rem .4rem; }
.dz__swatches { display: block; }
.dz__current { display: flex; flex-wrap: wrap; gap: .25rem; }
.dz__cgroup { flex: 0 1 auto; max-width: 100%; }

/* ---------- Colour grid: 10 columns, dots only ---------- */
.dz__cgrid10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 460px; margin-top: .6rem; }
.dz__dot { aspect-ratio: 1; width: 100%; padding: 0; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: transform .15s; }
.dz__dot:hover { transform: scale(1.12); }
.dz__dot[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.dz__dot:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Reserve the preview's 600:700 shape before the canvas is sized by JS, so the page doesn't jump (CLS). */
@media (max-width: 959.98px) { .dz__stage { aspect-ratio: 600 / 700; } }
