/* Full-screen product designer (assets/js/designer.js). */
html.dz-open, html.dz-open body { overflow: hidden; }
.dz { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--page); color: var(--ink); font-family: var(--font); animation: dz-in .22s var(--ease); }
.dz:focus { outline: none; }
@keyframes dz-in { from { opacity: 0; transform: translateY(10px); } }
.dz button { font: inherit; color: inherit; }
.dz .i { width: 20px; height: 20px; }
.dz .i--sm { width: 17px; height: 17px; }
.dz .i--xs { width: 13px; height: 13px; }

/* header */
.dz__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.dz__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.dz__icon:hover { border-color: var(--ink-soft); }
.dz__title { display: grid; min-width: 0; }
.dz__title b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz__meta { color: var(--ink-soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz__steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dz__steps li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 99px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.dz__steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mist-2); font-size: 12px; font-weight: 700; }
.dz__steps li.is-on { background: var(--primary-tint); color: var(--primary-ink); font-weight: 700; }
.dz__steps li.is-on span { background: var(--primary); color: var(--on-primary); }
.dz__steps li.is-done span { background: var(--primary); color: var(--on-primary); }

/* footer */
.dz__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.dz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s, opacity .15s; }
.dz-btn:hover { border-color: var(--ink-soft); }
.dz-btn--primary { min-width: 200px; background: var(--primary); border-color: var(--primary-border); color: var(--on-primary) !important; box-shadow: 0 10px 22px -12px var(--primary-shadow); }
.dz-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.dz-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.dz-foot__save { color: var(--ink-soft); font-size: 13px; }
.dz-foot__price { display: grid; text-align: start; line-height: 1.2; }
.dz-foot__price small { color: var(--ink-soft); font-size: 12px; }
.dz-foot__price b { font-size: 20px; font-weight: 700; }

/* step 1: options */
.dz__body { min-height: 0; overflow: auto; }
.dz-options { max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.dz-options__main { display: grid; gap: 30px; }
.dz-options__product { order: 2; margin: 0; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.dz-options__product img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.dz-options__product figcaption { display: grid; gap: 4px; margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.dz-options__product b { color: var(--ink); font-size: 16px; }
.dz-options h2 { font-size: 20px; font-weight: 700; }
.dz-hint { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.dz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.dz-card { display: grid; justify-items: center; gap: 6px; padding: 16px 12px 14px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.dz-card:hover { border-color: var(--primary-tint-2); }
.dz-card[aria-pressed="true"] { border-color: var(--primary-border); box-shadow: 0 0 0 4px var(--primary-tint); }
.dz-card__shape { display: grid; place-items: center; width: 92px; height: 92px; }
.dz-card__shape i { display: block; border-radius: 6px; background: linear-gradient(135deg, var(--primary-tint), #BFEFEB); border: 2px solid var(--primary); }
.dz-card__shape i.is-circle { border-radius: 50%; }
.dz-card__shape i.is-heart { border-radius: 50% 50% 8px 50%; transform: rotate(45deg) scale(.78); }
.dz-card b { font-size: 15px; }
.dz-card em { font-style: normal; color: var(--primary-ink); font-weight: 700; font-size: 17px; }
.dz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dz-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; }
.dz-chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.dz-chip[aria-pressed="true"] { border-color: var(--primary-border); background: var(--primary-tint); color: var(--primary-ink); font-weight: 700; }

/* step 2: design */
.dz-design { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; min-height: 0; }
.dz-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff 0, #EEF1F4 70%); touch-action: none; }
.dz-canvas { display: block; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(21,48,71,.08), 0 18px 40px -16px rgba(21,48,71,.35); touch-action: none; cursor: grab; }
.dz-canvas:active { cursor: grabbing; }
.dz-tools { position: absolute; top: 14px; inset-inline: 14px; display: flex; gap: 8px; z-index: 2; }
.dz-tool { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.92); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.dz-tool:disabled { opacity: .4; cursor: default; }
.dz-tool .i { width: 18px; height: 18px; }
.dz-stage__note { position: absolute; bottom: 12px; inset-inline: 16px; text-align: center; color: var(--ink-soft); font-size: 12.5px; }
.dz-stage__note.is-warn { color: #8A5A12; font-weight: 600; }
.dz-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: #fff; border-inline-start: 1px solid var(--line); }
.dz-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.dz-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 50px; border: 0; border-bottom: 2.5px solid transparent; background: none; cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.dz-tabs button[aria-selected="true"] { color: var(--primary-ink); border-bottom-color: var(--primary); }
.dz-tabs .i { width: 18px; height: 18px; }
.dz-panel__body { overflow-y: auto; padding: 16px; display: grid; align-content: start; gap: 12px; }
.dz-upload { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--primary); background: var(--primary-tint); color: var(--primary-ink); cursor: pointer; text-align: start; }
.dz-upload .i { width: 26px; height: 26px; flex: none; }
.dz-upload span { display: grid; }
.dz-upload b { font-size: 15px; }
.dz-upload small { color: var(--ink-soft); font-size: 12.5px; }
.dz-upload--text { border-style: solid; border-color: var(--line); background: #fff; color: var(--ink); }
.dz-upload--text .i { color: var(--primary-ink); }
.dz-progress { display: flex; align-items: center; gap: 8px; color: var(--primary-ink); font-size: 13px; font-weight: 600; }
.dz-progress span, .dz-thumb__busy { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary-tint); border-top-color: var(--primary); animation: dz-spin .8s linear infinite; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
.dz-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dz-thumb { position: relative; aspect-ratio: 1; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: var(--mist); }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-thumb.is-used { border-color: var(--primary-border); }
.dz-thumb__busy { position: absolute; inset: 0; margin: auto; background: rgba(255,255,255,.8); }
.dz-group { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); }
.dz-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.dz-q { padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.dz-q--good { background: #E3F5EC; color: #0B7A4B; }
.dz-q--mid { background: #FDF1DC; color: #8A5A12; }
.dz-q--low { background: #FDE8E6; color: #B42318; }
.dz-warn { padding: 10px 12px; border-radius: 12px; background: #FDF1DC; color: #7A4E0E; font-size: 13px; line-height: 1.5; }
.dz-range { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.dz-range input { flex: 1; accent-color: var(--primary); height: 28px; }
.dz-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-mini { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.dz-mini:hover { border-color: var(--ink-soft); }
.dz-mini[aria-pressed="true"] { border-color: var(--primary-border); background: var(--primary-tint); color: var(--primary-ink); }
.dz-mini--danger { color: #B42318; margin-inline-start: auto; }
.dz-texts { display: grid; gap: 6px; }
.dz-textitem { display: block; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: start; font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dz-textitem[aria-pressed="true"] { border-color: var(--primary-border); background: var(--primary-tint); }
.dz-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 16px; resize: vertical; }
.dz-input:focus { outline: none; border-color: var(--primary-border); box-shadow: 0 0 0 3px var(--primary-tint); }
.dz-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.dz-font { display: grid; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.dz-font span { font-size: 19px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-font small { font-family: var(--font); font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }
.dz-font[aria-pressed="true"] { border-color: var(--primary-border); background: var(--primary-tint); }
.dz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; }
.dz-swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
.dz-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-phrase { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13.5px; }
.dz-phrase:hover { border-color: var(--primary-border); color: var(--primary-ink); }
.dz-layouts { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-layout { display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.dz-layout svg { height: 40px; width: auto; fill: var(--mist-2); }
.dz-layout[aria-pressed="true"] { border-color: var(--primary-border); color: var(--primary-ink); }
.dz-layout[aria-pressed="true"] svg { fill: var(--primary-tint-2); stroke: var(--primary); }

/* step 3: summary */
.dz-summary { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); gap: 32px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 40px; align-items: start; }
.dz-summary__preview { position: sticky; top: 0; display: grid; gap: 14px; justify-items: center; padding: 28px; border-radius: 24px; background: radial-gradient(circle at 50% 35%, #fff, #EAF7F6); }
.dz-views { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.8); }
.dz-views:empty { display: none; }
.dz-views button { height: 34px; padding: 0 14px; border-radius: 99px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.dz-views button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.dz-mock--flat { display: grid; place-items: center; width: 100%; }
.dz-mock--flat img { max-width: 100%; max-height: 52vh; border-radius: 4px; box-shadow: 0 2px 4px rgba(21,48,71,.08), 0 26px 50px -20px rgba(21,48,71,.45); background: #fff; }
.dz-mock--flat.is-circle img { border-radius: 50%; }
.dz-mock--mug { position: relative; width: min(250px, 52vw); aspect-ratio: .86; margin-right: 18%; }
.dz-mock__body { position: absolute; inset: 0; border-radius: 5% 5% 14% 14% / 3% 3% 8% 8%; background:
  linear-gradient(90deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.04) 16%, rgba(255,255,255,.2) 38%, rgba(0,0,0,0) 58%, rgba(0,0,0,.08) 82%, rgba(0,0,0,.28) 100%),
  var(--img) center / 200% 100% no-repeat, #fff; box-shadow: 0 30px 40px -24px rgba(21,48,71,.55); }
.dz-mock__body::before { content: ""; position: absolute; inset: -2.5% 0 auto; height: 6%; border-radius: 50%; background: linear-gradient(#e9e9e9, #fafafa); box-shadow: inset 0 2px 4px rgba(0,0,0,.12); }
.dz-mock__handle { position: absolute; top: 20%; right: -22%; width: 28%; height: 48%; border: 16px solid #F1F1F1; border-left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; box-shadow: 4px 8px 12px -4px rgba(21,48,71,.3), inset -2px 0 4px rgba(0,0,0,.08); }
.dz-summary__side { display: grid; gap: 14px; }
.dz-summary__side h2 { font-size: 22px; font-weight: 700; }
.dz-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dz-checks li { position: relative; padding: 10px 40px 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.dz-checks li::before { content: ""; position: absolute; inset-inline-start: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-tint) center / 12px no-repeat; }
.dz-checks li.is-ok::before { background-color: #E3F5EC; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A4B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.dz-checks li.is-warn { border-color: #F2C987; background: #FFFBF3; }
.dz-checks li.is-warn::before { background-color: #FDF1DC; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A5B0B' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }
.dz-checks li.is-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F86' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }
.dz-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.dz-ladder button { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.dz-ladder span { font-size: 12px; color: var(--ink-soft); }
.dz-ladder b { font-size: 15px; }
.dz-ladder button[aria-pressed="true"] { border-color: var(--primary-border); background: var(--primary-tint); }
.dz-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dz-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.dz-stepper button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; }
.dz-stepper input { width: 64px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.dz-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dz-addon { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.dz-addon:has(input:checked) { border-color: var(--primary-border); background: var(--primary-tint); }
.dz-addon input { width: 20px; height: 20px; accent-color: var(--primary); }
.dz-addon img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.dz-addon span { display: grid; font-size: 14px; }
.dz-addon small { color: var(--ink-soft); font-size: 12.5px; }
.dz-addon em { font-style: normal; font-weight: 700; color: var(--primary-ink); }
.dz-total { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.dz-total div { display: flex; justify-content: space-between; gap: 12px; }
.dz-total s { color: var(--ink-soft); }
.dz-total__sum { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); align-items: flex-end; }
.dz-total__sum span { display: grid; font-weight: 700; font-size: 16px; }
.dz-total__sum small { color: var(--ink-soft); font-weight: 400; font-size: 12px; }
.dz-total__sum b { font-size: 26px; }
.dz-save { color: var(--sale); font-weight: 600; font-size: 13.5px; }
.dz-next { color: var(--primary-ink); font-size: 13px; font-weight: 600; }

/* step 4: added */
.dz-added { max-width: 760px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 20px; }
.dz-added__card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px -24px rgba(21,48,71,.4); }
.dz-added__check { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #E3F5EC; color: #0B7A4B; }
.dz-added__card img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: var(--page); }
.dz-added__card h2 { font-size: 22px; font-weight: 700; }
.dz-added__card p { color: var(--ink-soft); }
.dz-added h3 { font-size: 17px; font-weight: 700; }
.dz-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dz-rel { display: grid; gap: 4px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.dz-rel img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.dz-rel span { color: var(--primary-ink); font-weight: 700; }

/* phones and small tablets */
@media (max-width: 900px) {
  .dz__head { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px; }
  .dz__steps { grid-column: 1 / -1; justify-content: center; }
  .dz__steps li { height: 28px; padding: 0 10px 0 6px; font-size: 12.5px; }
  .dz__steps li span { width: 18px; height: 18px; font-size: 11px; }
  .dz-design { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(260px, 50%) minmax(0, 1fr); }
  .dz-panel { border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px -18px rgba(21,48,71,.35); }
  .dz-tabs button { height: 46px; font-size: 14px; }
  .dz-panel__body { padding: 12px; }
  .dz-tools { top: 10px; inset-inline: 10px; }
  .dz-stage__note { bottom: 8px; }
  .dz-options { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; }
  .dz-options__product { order: 0; display: flex; align-items: center; gap: 12px; padding: 10px; }
  .dz-options__product img { width: 72px; flex: none; }
  .dz-options__product figcaption { margin: 0; font-size: 13px; }
  .dz-options__product figcaption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dz-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 14px 28px; }
  .dz-summary__preview { position: static; padding: 18px; }
  .dz-mock--flat img { max-height: 40vh; }
  .dz__foot { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .dz-btn { height: 46px; padding: 0 14px; font-size: 15px; }
  .dz-btn--primary { min-width: 0; flex: 1; }
  .dz-foot__save { display: none; }
  .dz-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-added__card img { width: 72px; height: 72px; }
}
.store-toast { z-index: 1100; }
html.dz-open .store-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.dz-canvas.is-shaped { background: transparent; box-shadow: none; border-radius: 0; filter: drop-shadow(0 16px 24px rgba(21,48,71,.28)); }

/* ---------- designer upgrades (2026-10-14) ---------- */
/* live view on the product while designing */
.dz-live { position: absolute; z-index: 2; bottom: 40px; inset-inline-start: 16px; margin: 0; width: 128px; padding: 6px 6px 4px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 24px -12px rgba(21, 48, 71, .45); text-align: center; }
.dz-live canvas { display: block; width: 116px; height: 116px; }
.dz-live figcaption { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
/* the 3D mug in the summary */
.dz-mock--wrap { display: grid; place-items: center; width: 100%; }
.dz-mock--wrap canvas { width: min(420px, 82vw); height: auto; aspect-ratio: 1; }
/* share the draft for opinions */
.dz-share { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid #25D366; background: #fff; color: #0B2E19; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.dz-share small { grid-column: 2; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.dz-share .i { grid-row: span 2; color: #128C7E; }
.dz-share:hover { background: #EFFBF3; }
.dz-library--recent .dz-thumb { opacity: .9; }
.dz-library--recent .dz-thumb:hover { opacity: 1; border-color: var(--primary-tint-2); }
/* steps slide in the reading direction: forward comes from the left in Hebrew */
.dz-enter { animation: dz-step .32s cubic-bezier(.16, 1, .3, 1) both; }
.dz-enter--fwd { --dz-from: -28px; }
.dz-enter--back { --dz-from: 28px; }
@keyframes dz-step { from { opacity: 0; transform: translateX(var(--dz-from, 0)); } }
/* added: a drawn check and the photo on other products */
.dz-added__check .i { stroke-dasharray: 26; stroke-dashoffset: 26; animation: dz-draw .5s .15s cubic-bezier(.16, 1, .3, 1) forwards; }
.dz-added__check { animation: dz-pop .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes dz-draw { to { stroke-dashoffset: 0; } }
@keyframes dz-pop { from { transform: scale(.5); opacity: 0; } }
.dz-related--photo canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff, #EAF7F6); }
.dz-related--photo .dz-rel { transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s; }
.dz-related--photo .dz-rel:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(21, 48, 71, .45); }
.dz-warn[hidden] { display: none; }
@media (max-width: 900px) {
  /* phones: the live mug sits in the free top corner, clear of the print area */
  .dz-live { top: 8px; bottom: auto; inset-inline-start: auto; inset-inline-end: 10px; width: 60px; padding: 3px; border-radius: 12px; }
  .dz-live canvas { width: 54px; height: 54px; }
  .dz-live figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-enter { animation: dz-fade .2s both; }
  @keyframes dz-fade { from { opacity: 0; } }
  .dz-added__check .i { stroke-dashoffset: 0; animation: none; }
  .dz-added__check, .dz-related--photo .dz-rel { animation: none; transition: none; }
}
