/* V36.17.76 – echter, ausschließlich für productType=mug aktiver Tassen-Designer */
#tsdmPrintDesigner.pd-mug-mode .pd39-designer-tabs label:first-child{display:none}
#tsdmPrintDesigner.pd-mug-mode .tsdm-pd-grid>main{background:#f6f6f6}
#tsdmPrintDesigner.pd-mug-mode .pd-stage{background:#ececec;border-radius:18px;min-height:560px;position:relative}
#tsdmPrintDesigner.pd-mug-mode .pd-stage:before{content:'FLACHE DRUCKABWICKLUNG · TASSE';position:absolute;top:4%;left:6%;font-weight:800;font-size:13px;letter-spacing:.06em;color:#555}
#tsdmPrintDesigner.pd-mug-mode #pdPrintArea{background:#fff;border:2px solid #f3bf00!important;box-shadow:0 8px 28px #0002;overflow:visible}
#tsdmPrintDesigner.pd-mug-mode #pdContentClip{overflow:hidden;background:#fff}
.pd-mug-guides{position:absolute;inset:0;pointer-events:none;z-index:30}
.pd-mug-safe{position:absolute;border:2px dashed #16a34a;box-sizing:border-box}
.pd-mug-handle{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(45deg,#ef444422,#ef444422 8px,#ef44440b 8px,#ef44440b 16px);border-color:#ef4444;border-style:dashed;box-sizing:border-box}
.pd-mug-handle.left{left:0;border-width:0 1px 0 0}.pd-mug-handle.right{right:0;border-width:0 0 0 1px}
.pd-mug-handle span{position:absolute;top:6px;left:50%;transform:translateX(-50%);font-size:10px;color:#b91c1c;white-space:nowrap;writing-mode:vertical-rl}
.pd-mug-preview{margin-top:18px;padding-top:16px;border-top:1px solid #ddd}.pd-mug-preview>strong{display:block;margin-bottom:12px}
.pd-mug-cup{width:210px;height:150px;margin:0 auto 8px;background:#fff;border:1px solid #ccc;border-radius:8px 8px 28px 28px;position:relative;box-shadow:inset -20px 0 25px #0000000d,0 8px 18px #0002;overflow:visible}
.pd-mug-cup>i{position:absolute;width:64px;height:88px;right:-48px;top:28px;border:18px solid #fff;border-left-width:12px;border-radius:50%;box-shadow:2px 0 3px #0002;z-index:-1}
.pd-mug-preview-art{position:absolute;left:8px;right:8px;top:26px;height:94px;overflow:hidden;border-radius:3px;transform:perspective(260px) rotateY(-4deg);transform-origin:center}
.pd-mug-preview small{display:block;text-align:center;color:#666}
@media(max-width:900px){#tsdmPrintDesigner.pd-mug-mode .pd-stage{min-height:420px}.pd-mug-cup{width:170px;height:122px}.pd-mug-preview-art{top:21px;height:76px}}

/* V36.17.95 */
.pd-mug-cup{transition:transform .18s ease;transform-style:preserve-3d}.pd-mug-rotate{display:block;margin:10px auto;max-width:220px;font-size:12px}.pd-mug-rotate input{width:100%}#pdMugHandleSideWrap[hidden]{display:none!important}

/* V36.17.97: echte interaktive Tassendrehung + feste Canvas-Geometrie */
#tsdmPrintDesigner.pd-mug-mode .tsdm-pd-grid>main{display:flex;align-items:flex-start;justify-content:center}
#tsdmPrintDesigner.pd-mug-mode .pd-stage{flex:0 0 auto!important}
.pd-mug-scene{perspective:760px;display:grid;place-items:center;min-height:175px;overflow:visible}
.pd-mug-cup{cursor:grab;user-select:none;touch-action:none;transform-style:preserve-3d;will-change:transform;transition:transform .08s linear}
.pd-mug-cup:active{cursor:grabbing}
.pd-mug-cup>i{transition:opacity .12s ease}
.pd-mug-preview-art{backface-visibility:hidden}


/* V36.17.98: zylindrische 1:1-Texturprojektion */
.pd-mug-cup{transform:none!important;border-radius:14px 14px 34px 34px;background:linear-gradient(90deg,#e8e8e8 0%,#fff 18%,#fff 72%,#dedede 100%);overflow:visible}
.pd-mug-preview-art{left:10px;right:10px;top:25px;height:96px;transform:none!important;border-radius:5px 5px 16px 16px;overflow:hidden;perspective:none}
.pd-mug-cylinder-strip{position:absolute;top:0;bottom:0;overflow:hidden;transform-origin:center;filter:brightness(calc(.82 + var(--strip-light,.18)));}
.pd-mug-cylinder-strip.empty{background:transparent}
.pd-mug-cylinder-strip>div{height:100%!important;max-width:none!important;transform:none!important}
.pd-mug-cup>i{right:-48px;transform-origin:center center;will-change:transform,opacity;transition:transform .08s linear,opacity .08s linear}


/* V36.17.99: kantenlose Canvas-Zylinderprojektion */
.pd-mug-preview-art{overflow:hidden!important;background:#fff;transform:none!important;perspective:none!important}
.pd-mug-cylinder-canvas{display:block;width:100%;height:100%;border-radius:4px 4px 15px 15px}
.pd-mug-cylinder-strip{display:none!important}


/* V36.17.100: Fototasse 95 x Ø82 mm, realistische Proportionen + Vorschau-Sicherheitsabstaende */
.pd-mug-scene{min-height:230px}
.pd-mug-cup{width:188px!important;height:218px!important;border-radius:18px 18px 30px 30px!important;background:linear-gradient(90deg,#e5e5e5 0%,#fff 18%,#fff 70%,#dedede 100%)!important;box-shadow:inset -18px 0 24px #00000012,inset 10px 0 16px #ffffffcc,0 12px 24px #0002!important}
.pd-mug-rim{position:absolute;left:3px;right:3px;top:-8px;height:24px;border-radius:50%;background:linear-gradient(#f8f8f8,#d9d9d9 46%,#fff 52%);border:1px solid #d8d8d8;z-index:9;pointer-events:none}
.pd-mug-preview-art{left:7px!important;right:7px!important;top:0!important;height:100%!important;border-radius:14px 14px 25px 25px!important;background:transparent!important;z-index:4}
.pd-mug-cylinder-canvas{border-radius:14px 14px 25px 25px!important}
.pd-mug-cup>i{width:74px!important;height:112px!important;right:-57px!important;top:50px!important;border:18px solid #f8f8f8!important;border-left-width:12px!important;border-radius:50%!important;box-shadow:2px 1px 5px #0002!important;background:transparent!important;transform-origin:center center!important}
.pd-mug-cup>i.behind{filter:brightness(.94)}
@media(max-width:900px){.pd-mug-cup{width:160px!important;height:185px!important}.pd-mug-cup>i{width:62px!important;height:94px!important;right:-48px!important;top:43px!important}}


/* V36.17.101: räumlicher Henkel + maßstäblicher 15-mm-Abstand */
.pd-mug-cup{perspective:760px!important;transform-style:preserve-3d!important}
.pd-mug-cup>i{transform-style:preserve-3d!important;backface-visibility:visible!important;background:linear-gradient(90deg,#d9d9d9 0%,#fff 28%,#f7f7f7 65%,#d2d2d2 100%)!important;box-shadow:inset -5px 0 8px #00000012,inset 4px 0 7px #fff,3px 2px 7px #0003!important}
.pd-mug-cup>i:before{content:'';position:absolute;inset:-10px;border:2px solid #ffffffaa;border-radius:50%;transform:translateZ(-8px);box-shadow:inset 0 0 7px #0002}
.pd-mug-cup>i:after{content:'';position:absolute;inset:8px;border-radius:50%;box-shadow:inset 5px 0 8px #0003,2px 0 5px #fff8;transform:translateZ(5px)}
.pd-mug-cup>i.behind{filter:brightness(.86)!important}
\n\n/* V36.17.102: echter räumlicher Henkelaufbau + 15-mm-Geometrie */\n.pd-mug-handle3d{position:absolute;width:78px;height:116px;right:-60px;top:50px;transform-origin:center center;transform-style:preserve-3d;pointer-events:none;will-change:transform,opacity}\n.pd-mug-handle3d .mh-front,.pd-mug-handle3d .mh-back{position:absolute;inset:0;border:17px solid #f8f8f8;border-left-width:12px;border-radius:50%;box-sizing:border-box;background:transparent}\n.pd-mug-handle3d .mh-front{transform:translateZ(10px);box-shadow:inset -5px 0 8px #0001,4px 3px 8px #0003;z-index:4}\n.pd-mug-handle3d .mh-back{transform:translateZ(-10px);border-color:#d8d8d8;box-shadow:inset 5px 0 7px #0002;z-index:1}\n.pd-mug-handle3d .mh-bridge{position:absolute;left:10px;width:58px;height:20px;background:linear-gradient(90deg,#d5d5d5,#fff 48%,#d9d9d9);transform:rotateY(90deg) translateZ(0);transform-origin:center;box-shadow:inset 0 1px 2px #fff,0 1px 3px #0002;z-index:2}\n.pd-mug-handle3d .mh-top{top:3px}.pd-mug-handle3d .mh-bottom{bottom:3px}\n.pd-mug-handle3d.behind .mh-front{filter:brightness(.9)}\n.pd-mug-handle3d.edge-on .mh-front,.pd-mug-handle3d.edge-on .mh-back{box-shadow:1px 1px 4px #0003}\n.pd-mug-cup>i{display:none!important}\n@media(max-width:900px){.pd-mug-handle3d{width:66px;height:98px;right:-50px;top:43px}.pd-mug-handle3d .mh-front,.pd-mug-handle3d .mh-back{border-width:15px;border-left-width:10px}.pd-mug-handle3d .mh-bridge{left:9px;width:48px;height:17px}}\n

/* V36.17.104: Henkelposition von Sicherheitsabstand entkoppelt; 0° rechts, 180° links. */
.pd-mug-handle3d{left:50%!important;right:auto!important;top:50px!important;transform-origin:center center!important;z-index:8}
.pd-mug-handle3d.behind{z-index:1!important}
@media(max-width:900px){.pd-mug-handle3d{left:50%!important;right:auto!important;top:43px!important}}


/* V36.17.105: Referenzvideo-orientierte Henkelumlaufbahn.
   Der Henkel bleibt vertikal an den realen Ansatzpunkten, laeuft horizontal um den Zylinder
   und wird auf der Rueckseite vom Tassenkoerper verdeckt. */
.pd-mug-scene{overflow:visible!important}
.pd-mug-cup{isolation:isolate;overflow:visible!important}
.pd-mug-preview-art{z-index:6!important;pointer-events:none}
.pd-mug-rim{z-index:14!important}
.pd-mug-handle3d{right:auto!important;margin:0!important;transition:none!important;transform-origin:center center!important}
.pd-mug-handle3d.front{z-index:12!important}
.pd-mug-handle3d.behind{z-index:2!important;filter:brightness(.92)}
.pd-mug-handle3d.edge-on{opacity:.16!important}
.pd-mug-handle3d .mh-front,.pd-mug-handle3d .mh-back{background:transparent!important}
.pd-mug-handle3d.front .mh-front{border-color:#fafafa!important;box-shadow:inset -6px 0 9px #0001,5px 3px 9px #0003!important}
.pd-mug-handle3d.behind .mh-front{border-color:#e5e5e5!important}
/* Eine deckende Zylinderhaut verdeckt den Henkel, sobald er hinter der Tasse liegt. */
.pd-mug-cup:after{content:'';position:absolute;inset:0;border-radius:18px 18px 30px 30px;background:linear-gradient(90deg,rgba(225,225,225,.30),rgba(255,255,255,.02) 20%,rgba(255,255,255,.02) 72%,rgba(210,210,210,.28));pointer-events:none;z-index:7}
\n/* V36.17.106: stabile Referenz-Geometrie der rotierenden Tasse */
.pd-mug-scene{position:relative;min-height:250px!important;overflow:visible!important}
.pd-mug-cup{position:relative!important;overflow:visible!important;isolation:isolate!important}
.pd-mug-handle3d{position:absolute!important;right:auto!important;margin:0!important;width:78px!important;height:116px!important;transform-origin:center center!important;transition:none!important;will-change:left,top,transform,opacity!important}
.pd-mug-handle3d.front{z-index:12!important}
.pd-mug-handle3d.behind{z-index:2!important}
.pd-mug-handle3d.edge-on{opacity:.12!important}
.pd-mug-cup:after{z-index:7!important}
.pd-mug-preview-art{z-index:6!important}
.pd-mug-rim{z-index:14!important}
@media(max-width:900px){.pd-mug-handle3d{width:66px!important;height:98px!important}}


/* V36.17.107: kräftigerer, besser lesbarer Tassenhenkel */
.pd-mug-handle3d .mh-front,.pd-mug-handle3d .mh-back{border-width:21px!important;border-left-width:16px!important}
.pd-mug-handle3d .mh-bridge{height:24px!important;left:12px!important;width:54px!important}
@media(max-width:900px){.pd-mug-handle3d .mh-front,.pd-mug-handle3d .mh-back{border-width:18px!important;border-left-width:14px!important}.pd-mug-handle3d .mh-bridge{height:20px!important;left:10px!important;width:46px!important}}

/* V36.17.123 – product-specific photo/measurement calibrated mug model */
.pd-mug-cup{background-image:linear-gradient(90deg,rgba(225,225,225,.88),rgba(255,255,255,.82) 18%,rgba(255,255,255,.82) 70%,rgba(215,215,215,.88)),var(--mug-reference,none)!important;background-size:100% 100%,cover!important;background-position:center!important;transition:width .15s ease,height .15s ease,clip-path .15s ease!important}
.pd-mug-cup:before{content:'';position:absolute;inset:0;background:var(--mug-reference,none) center/cover no-repeat;opacity:.18;mix-blend-mode:multiply;pointer-events:none;z-index:1}
#pdMugModelInfo{display:block;max-width:420px;margin:8px auto 0;line-height:1.35}
