.custom-element{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;-webkit-tap-highlight-color:transparent;cursor:move;transition:none;pointer-events:auto!important;position:relative;z-index:10;will-change:transform,left,top;-webkit-backface-visibility:hidden;backface-visibility:hidden}.resize-handle,.rotate-handle,.delete-handle{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none!important;-webkit-tap-highlight-color:transparent;transition:none;pointer-events:auto!important;position:absolute;z-index:1000}.custom-element.selected{touch-action:manipulation}.custom-element:active,.resize-handle:active,.rotate-handle:active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);will-change:transform}.custom-element.selected{outline:2px dashed #667eea;outline-offset:2px}@media (max-width:768px){.custom-element.selected .resize-handle{width:12px!important;height:12px!important;border:2px solid #fff!important;background:#667eea!important;border-radius:2px!important;box-shadow:0 2px 8px rgba(0,0,0,.3)!important;opacity:1!important;visibility:visible!important;display:block!important;pointer-events:auto!important;touch-action:none!important;z-index:1001!important}.custom-element.selected .rotate-handle{width:24px!important;height:24px!important;border:3px solid #fff!important;background:#e74c3c!important;border-radius:50%!important;box-shadow:0 2px 8px rgba(0,0,0,.4)!important;opacity:1!important;visibility:visible!important;display:block!important;pointer-events:auto!important;touch-action:none!important;z-index:1001!important;top:-30px!important}.custom-element.selected .delete-handle{width:28px!important;height:28px!important;border:3px solid #fff!important;background:#e74c3c!important;border-radius:50%!important;box-shadow:0 2px 8px rgba(0,0,0,.3)!important;font-size:18px!important;font-weight:700!important;opacity:1!important;visibility:visible!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;touch-action:none!important;z-index:1001!important;top:-14px!important;right:-14px!important}}@media (max-width:768px){.custom-element{will-change:transform,left,top;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto!important;touch-action:none!important}.custom-element.selected{will-change:transform,left,top;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);outline:2px dashed #667eea!important;outline-offset:2px!important}.custom-element .resize-handle,.custom-element .rotate-handle,.custom-element .delete-handle{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);pointer-events:auto!important;touch-action:none!important;opacity:0;transition:opacity .2s ease;will-change:opacity,transform}.custom-element.selected .resize-handle,.custom-element.selected .rotate-handle,.custom-element.selected .delete-handle{opacity:1!important;display:block!important;visibility:visible!important}}.customize-btn{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;padding:15px 30px;font-size:16px;font-weight:700;border-radius:8px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:10px}.customize-btn:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(102,126,234,.3)}.header-btn .fa-spinner{animation:spin 1s linear infinite}.tab-btn{background:#fff;border:2px solid #e9ecef;padding:10px 20px;border-radius:8px;cursor:pointer;transition:all .3s ease;font-weight:500}.tab-btn.active{background:#667eea;color:white;border-color:#667eea}.tab-btn:hover{border-color:#667eea}.custom-element{position:absolute;cursor:move;border:2px dashed transparent;transition:border-color .2s ease}.custom-element.selected{border-color:#667eea}.custom-text.selected{background-color:rgba(102,126,234,.1);border:2px dashed #667eea}.custom-element .resize-handle{position:absolute;background:#fff;border:1px solid #333;border-radius:0;display:none;z-index:10;box-shadow:0 1px 3px rgba(0,0,0,.2)}.custom-element.selected .resize-handle{display:block}.custom-element .resize-handle.top-left{width:8px;height:8px;left:-4px;top:-4px;cursor:nw-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.top-right{width:8px;height:8px;right:-4px;top:-4px;cursor:ne-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.bottom-left{width:8px;height:8px;left:-4px;bottom:-4px;cursor:sw-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.bottom-right{width:8px;height:8px;right:-4px;bottom:-4px;cursor:se-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.top{width:8px;height:4px;left:50%;top:-2px;transform:translateX(-50%);cursor:n-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.bottom{width:8px;height:4px;left:50%;bottom:-2px;transform:translateX(-50%);cursor:s-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.left{width:4px;height:8px;left:-2px;top:50%;transform:translateY(-50%);cursor:w-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.right{width:4px;height:8px;right:-2px;top:50%;transform:translateY(-50%);cursor:e-resize;border-radius:1px;background:#fff;border:1px solid #333}.custom-element .resize-handle.center{width:12px;height:12px;top:50%;left:50%;transform:translate(-50%,-50%);cursor:move;background:#667eea;border:2px solid white;border-radius:50%}.custom-element .rotate-handle{position:absolute;width:18px;height:18px;background:#e74c3c;border:2px solid white;border-radius:50%;top:-25px;left:50%;transform:translateX(-50%);cursor:grab;display:none;box-shadow:0 1px 3px rgba(0,0,0,.2)}.custom-element.selected .rotate-handle{display:block}.custom-element .rotate-handle:active{cursor:grabbing}.custom-element .rotate-handle::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:12px;height:12px;border:2px solid #333;border-radius:50%;border-top:transparent;border-right:transparent}.custom-element .rotate-handle::after{content:"";position:absolute;top:6px;left:6px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:4px solid #333;transform:rotate(-45deg)}.custom-text{font-family:Arial,sans-serif;font-size:24px;color:#000}.custom-logo{max-width:100px;max-height:100px;border-radius:4px}.tool-btn.active{background:#17a7d4;color:white;border-color:#17a7d4;transform:translateY(-1px)}.customization-tabs{display:flex;border-bottom:1px solid #e9ecef}.custom-tab{flex:1;background:0 0;border:none;padding:15px 10px;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;color:#6c757d}.custom-tab.active{background:#667eea;color:white}.custom-tab:hover{background:#f8f9fa}.custom-tab.active:hover{background:#667eea}.style-btn.active{background:#17a7d4;border-color:#17a7d4;color:white}.add-text-btn{background:linear-gradient(135deg,#28a745 0%,#20c997 100%);color:white;border:none;padding:12px 20px;border-radius:8px;font-weight:700;cursor:pointer;transition:all .3s ease}.add-text-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(40,167,69,.3)}.upload-area.dragover{border-color:#667eea;background:#e3f2fd}.logo-preview{background:#f8f9fa;border-radius:12px;padding:20px;text-align:center}.logo-actions{display:flex;flex-direction:column;gap:15px}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px}.terms-section{font-size:12px;color:#6c757d;line-height:1.5}.terms-link{color:#667eea;text-decoration:none}.terms-link:hover{text-decoration:underline}.graphics-categories{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.graphics-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:15px;max-height:400px;overflow-y:auto}.graphic-item{background:#f8f9fa;border:2px solid #e9ecef;border-radius:8px;padding:10px;cursor:pointer;transition:all .3s ease;text-align:center}.graphic-item:hover{border-color:#667eea;transform:translateY(-2px)}.graphic-item img{width:100%;height:60px;object-fit:contain}.action-buttons{padding:20px;border-top:1px solid #e9ecef}@media (max-width:768px){.custom-element{touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto!important;cursor:grab}.custom-element:active{cursor:grabbing;opacity:.8;transform:scale(1.02)}.custom-element.selected{touch-action:none!important;cursor:move}.custom-element .resize-handle{opacity:0;display:none;visibility:hidden;pointer-events:none;transition:all .2s ease}.custom-element.selected .resize-handle,.custom-element:hover .resize-handle{opacity:1!important;display:block!important;visibility:visible!important;pointer-events:auto!important;transition:none}.custom-element .rotate-handle{width:22px!important;height:22px!important;top:-28px!important;left:50%!important;transform:translateX(-50%)!important;border:3px solid white!important;box-shadow:0 2px 8px rgba(0,0,0,.4)!important;opacity:0!important;pointer-events:none!important;touch-action:none!important;display:none!important;transition:all .2s ease}.custom-element.selected .rotate-handle,.custom-element:hover .rotate-handle{opacity:1!important;display:block!important;visibility:visible!important;pointer-events:auto!important;transition:none}.rotate-handle::before{font-size:16px!important;font-weight:700!important}.custom-element .delete-handle{width:24px!important;height:24px!important;top:-12px!important;right:-12px!important;border:3px solid white!important;font-size:16px!important;box-shadow:0 2px 8px rgba(0,0,0,.3)!important;opacity:0!important;pointer-events:none!important;touch-action:none!important;display:none!important;transition:all .2s ease}.custom-element.selected .delete-handle,.custom-element:hover .delete-handle{opacity:1!important;display:flex!important}}@media (max-width:480px){.rotate-handle{width:24px!important;height:24px!important;top:-32px!important;border:4px solid white!important}.delete-handle{width:26px!important;height:26px!important;top:-13px!important;right:-13px!important;border:4px solid white!important;font-size:18px!important}}@media (max-width:768px) and (orientation:landscape){.custom-element{touch-action:manipulation!important;pointer-events:auto!important}.custom-element.selected{touch-action:none!important}.resize-handle,.rotate-handle,.delete-handle{pointer-events:auto!important;touch-action:none!important}}.success-message{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#28a745;color:white;padding:20px 30px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.3);z-index:10002;text-align:center;min-width:300px}.success-message h3{margin:0 0 10px;font-size:18px}.success-message p{margin:0;font-size:14px;opacity:.9}.fade-in{animation:fadeIn .3s ease-in}.slide-in{animation:slideIn .3s ease-out}.loading{opacity:.6;pointer-events:none}.spinner{border:2px solid #f3f3f3;border-top:2px solid #667eea;border-radius:50%;width:20px;height:20px;animation:spin 1s linear infinite;display:inline-block;margin-right:10px}.custom-element{position:absolute;cursor:move;user-select:none;border:2px solid transparent;min-width:20px;min-height:20px;pointer-events:auto}.custom-element.selected{border:2px solid #667eea;box-shadow:0 0 10px rgba(102,126,234,.3)}.custom-element:hover{border:2px solid #667eea}.custom-text{display:inline-block;white-space:nowrap;padding:0;background:0 0!important;background-color:transparent!important;border:none!important;border-radius:0;outline:none!important;box-shadow:none!important}.custom-logo img{width:100%;height:100%;object-fit:contain;pointer-events:none;position:relative;z-index:1}.resize-handle{position:absolute;background:#667eea;border:2px solid white;border-radius:50%;width:14px;height:14px;cursor:pointer;opacity:0;transition:opacity .2s ease;z-index:100;pointer-events:auto;box-shadow:0 2px 4px rgba(0,0,0,.2)}.custom-element.selected .resize-handle,.custom-element:hover .resize-handle{opacity:1;display:block}.resize-handle.top-left{top:-7px;left:-7px;cursor:nw-resize}.resize-handle.top-right{top:-7px;right:-7px;cursor:ne-resize}.resize-handle.bottom-left{bottom:-7px;left:-7px;cursor:sw-resize}.resize-handle.bottom-right{bottom:-7px;right:-7px;cursor:se-resize}.resize-handle.top{top:-7px;left:50%;transform:translateX(-50%);cursor:n-resize}.resize-handle.bottom{bottom:-7px;left:50%;transform:translateX(-50%);cursor:s-resize}.resize-handle.left{left:-7px;top:50%;transform:translateY(-50%);cursor:w-resize}.resize-handle.right{right:-7px;top:50%;transform:translateY(-50%);cursor:e-resize}.resize-handle.center{top:50%;left:50%;transform:translate(-50%,-50%);cursor:move;background:#28a745}.rotate-handle{position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:20px;height:20px;background:#e74c3c;border:2px solid white;border-radius:50%;cursor:grab;display:none;opacity:.9;transition:all .2s ease;z-index:1003;box-shadow:0 2px 8px rgba(0,0,0,.3)}.rotate-handle:active{cursor:grabbing}.custom-element.selected .rotate-handle,.custom-element:hover .rotate-handle{opacity:1!important;display:block!important;visibility:visible!important}.rotate-handle::before{content:"↻";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;color:white;font-weight:700}.delete-handle{position:absolute;top:-12px;right:-12px;width:22px;height:22px;background:#ff4757;border:2px solid white;border-radius:50%;cursor:pointer;display:none;opacity:.9;transition:all .2s ease;z-index:1004;font-size:14px;font-weight:700;color:white;text-align:center;line-height:18px;justify-content:center;align-items:center;box-shadow:0 2px 6px rgba(0,0,0,.3)}.delete-handle:hover{background:#ff3742;transform:scale(1.1)}.custom-element.selected .delete-handle,.custom-element:hover .delete-handle{opacity:1;display:flex}.add-to-cart-custom{background:linear-gradient(135deg,#28a745 0%,#20c997 100%);color:white;border:none;padding:15px 30px;border-radius:8px;font-weight:700;font-size:16px;cursor:pointer;width:100%;margin-top:10px;transition:all .3s ease}.add-to-cart-custom:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(40,167,69,.3)}.add-to-cart-custom:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.upload-area.dragover{border-color:#667eea;background-color:rgba(102,126,234,.1);transform:scale(1.02)}.upload-area.dragover i{color:#667eea;transform:scale(1.1)}