.hw-editor-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999999;background:#0009;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.hw-editor-overlay.hw-editor-open{opacity:1;visibility:visible}.hw-editor-container{width:100%;height:100%;background:#fff;display:flex;flex-direction:column;transform:translateY(20px);transition:transform .3s ease}.hw-editor-overlay.hw-editor-open .hw-editor-container{transform:translateY(0)}.hw-editor-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#1a1a2e;color:#fff;flex-shrink:0;min-height:56px}.hw-editor-toolbar-left,.hw-editor-toolbar-center,.hw-editor-toolbar-right{display:flex;align-items:center;gap:8px}.hw-editor-toolbar button{background:none;border:none;color:#fff;cursor:pointer;padding:8px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .15s}.hw-editor-toolbar button:hover:not(:disabled){background:#ffffff26}.hw-editor-toolbar button:disabled{opacity:.35;cursor:default}.hw-editor-toolbar button svg{width:20px;height:20px}.hw-editor-btn-cart{background:#2d7d46!important;color:#fff!important;padding:8px 20px!important;font-size:14px;font-weight:600;border-radius:6px!important;gap:6px}.hw-editor-btn-cart:hover:not(:disabled){background:#236b38!important}.hw-editor-btn-cart:disabled{opacity:.7;cursor:wait}.hw-editor-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:hw-spin .6s linear infinite}@keyframes hw-spin{to{transform:rotate(360deg)}}.hw-editor-body{display:flex;flex:1;overflow:hidden}.hw-editor-panel{width:300px;background:#fafafa;border-right:1px solid #e5e5e5;display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.hw-editor-panel-tabs{display:flex;border-bottom:1px solid #e5e5e5;flex-shrink:0}.hw-editor-panel-tab{flex:1;padding:12px 8px;text-align:center;font-size:13px;font-weight:600;color:#4a4a5a;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.hw-editor-panel-tab:hover{color:#1a1a2e;background:#f5f5fa}.hw-editor-panel-tab.hw-editor-tab-active{color:#fff;background:#1a1a2e;border-bottom-color:#1a1a2e;border-radius:6px 6px 0 0}.hw-editor-panel-content{flex:1;overflow-y:auto;padding:16px}.hw-editor-canvas-area{flex:1;display:flex;align-items:center;justify-content:center;background:#e8e8e8;overflow:hidden;padding:20px}.hw-editor-canvas-wrapper{box-shadow:0 4px 24px #0000001f;line-height:0}.hw-editor-section-title{font-size:13px;font-weight:600;color:#555;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.hw-editor-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#333;font-size:14px;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s;width:100%}.hw-editor-btn:hover{border-color:#bbb;background:#f5f5f5}.hw-editor-btn-primary{background:#1a1a2e;color:#fff;border-color:#1a1a2e}.hw-editor-btn-primary:hover{background:#2a2a45;border-color:#2a2a45}.hw-editor-btn-danger{color:#d32f2f;border-color:#f5c6c6}.hw-editor-btn-danger:hover{background:#fef2f2;border-color:#d32f2f}.hw-editor-layout-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.hw-editor-layout-thumb{aspect-ratio:.68;border:2px solid #e0e0e0;border-radius:8px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;color:#999;transition:border-color .15s,box-shadow .15s;overflow:hidden}.hw-editor-layout-thumb:hover{border-color:#aaa}.hw-editor-layout-thumb.hw-editor-layout-active{border-color:#1a1a2e;box-shadow:0 0 0 2px #1a1a2e33}.hw-editor-layout-thumb img{width:100%;height:100%;object-fit:cover}.hw-editor-upload-header{margin-bottom:12px}.hw-editor-btn-sm{padding:6px 12px;font-size:12px;width:auto;margin-bottom:10px}.hw-editor-upload-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px;border:2px dashed #ccc;border-radius:8px;cursor:pointer;transition:border-color .15s,background .15s;text-align:center;color:#666}.hw-editor-upload-area:hover,.hw-editor-upload-area.hw-editor-upload-dragover{border-color:#1a1a2e;background:#f0f0fa}.hw-editor-upload-area p{margin:0;font-size:13px;font-weight:500}.hw-editor-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hw-editor-gallery-thumb{aspect-ratio:1;border-radius:6px;overflow:hidden;border:2px solid #e5e5e5;cursor:pointer;transition:border-color .15s,transform .15s}.hw-editor-gallery-thumb:hover{border-color:#1a1a2e;transform:scale(1.05)}.hw-editor-gallery-thumb img{width:100%;height:100%;object-fit:cover}.hw-editor-text-controls{display:flex;flex-direction:column;gap:14px}.hw-editor-control-row{display:flex;flex-direction:column;gap:4px}.hw-editor-control-label{font-size:12px;font-weight:500;color:#777}.hw-editor-control-row select,.hw-editor-control-row input[type=text],.hw-editor-control-row input[type=number]{width:100%;padding:8px 10px;border:1px solid #ddd;border-radius:6px;font-size:14px;background:#fff;color:#333;outline:none;transition:border-color .15s}.hw-editor-control-row select:focus,.hw-editor-control-row input:focus{border-color:#1a1a2e}.hw-editor-control-row input[type=range]{width:100%;accent-color:#1a1a2e}.hw-editor-toggle-group{display:flex;gap:6px}.hw-editor-toggle-btn{padding:8px 14px;border:1px solid #ddd;border-radius:6px;background:#fff;cursor:pointer;font-size:14px;font-weight:600;color:#555;transition:background .15s,border-color .15s}.hw-editor-toggle-btn:hover{border-color:#bbb}.hw-editor-toggle-btn.hw-editor-toggle-active{background:#1a1a2e;color:#fff;border-color:#1a1a2e}.hw-editor-swatches{display:flex;flex-wrap:wrap;gap:8px}.hw-editor-swatch{width:36px;height:36px;border-radius:50%;border:2px solid #e0e0e0;cursor:pointer;transition:border-color .15s,transform .15s}.hw-editor-swatch:hover{transform:scale(1.1)}.hw-editor-swatch.hw-editor-swatch-active{border-color:#1a1a2e;box-shadow:0 0 0 2px #1a1a2e40}.hw-editor-color-input-row{display:flex;gap:8px;align-items:center;margin-top:10px}.hw-editor-color-input-row input[type=color]{width:40px;height:36px;border:1px solid #ddd;border-radius:6px;padding:2px;cursor:pointer}.hw-editor-color-input-row input[type=text]{flex:1;padding:8px 10px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:monospace}.hw-editor-sub-toggle{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.hw-editor-sub-toggle label{font-size:13px;font-weight:500;color:#555}.hw-editor-switch{position:relative;width:40px;height:22px}.hw-editor-switch input{opacity:0;width:0;height:0}.hw-editor-switch-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:#ccc;border-radius:22px;cursor:pointer;transition:background .2s}.hw-editor-switch-slider:before{content:"";position:absolute;width:16px;height:16px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:transform .2s}.hw-editor-switch input:checked+.hw-editor-switch-slider{background:#1a1a2e}.hw-editor-switch input:checked+.hw-editor-switch-slider:before{transform:translate(18px)}.hw-editor-confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999999;background:#00000080;display:flex;align-items:center;justify-content:center}.hw-editor-confirm-dialog{background:#fff;border-radius:12px;padding:28px;max-width:380px;width:90%;text-align:center;box-shadow:0 8px 32px #0003}.hw-editor-confirm-dialog h3{font-size:18px;margin-bottom:8px;color:#1a1a2e}.hw-editor-confirm-dialog p{font-size:14px;color:#666;margin-bottom:20px;line-height:1.5}.hw-editor-confirm-actions{display:flex;gap:10px;justify-content:center}.hw-editor-confirm-actions button{padding:10px 24px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;border:1px solid #ddd;transition:background .15s}.hw-editor-confirm-cancel{background:#fff;color:#333}.hw-editor-confirm-cancel:hover{background:#f5f5f5}.hw-editor-confirm-ok{background:#d32f2f;color:#fff;border-color:#d32f2f}.hw-editor-confirm-ok:hover{background:#b71c1c}.hw-editor-empty-state{text-align:center;padding:30px 10px;color:#999}.hw-editor-empty-state svg{width:48px;height:48px;margin-bottom:12px;opacity:.4}.hw-editor-empty-state p{font-size:14px;line-height:1.5}@media(max-width:768px){.hw-editor-body{flex-direction:column;position:relative;overflow:hidden}.hw-editor-toolbar{padding:6px 10px;min-height:44px}.hw-editor-toolbar button{min-width:44px;min-height:44px;padding:10px}.hw-editor-btn-close{background:#ffffff1f!important;border-radius:50%!important;width:44px;height:44px}.hw-editor-btn-cart{padding:8px 16px!important;font-size:13px;min-height:44px}.hw-editor-btn-cart-text{display:inline}.hw-editor-canvas-area{flex:1;order:1;padding:8px}.hw-editor-mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:1000002;background:#1a1a2e;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-shrink:0}.hw-editor-mobile-nav .hw-editor-panel-tabs{display:flex;width:100%;border-bottom:none;background:transparent}.hw-editor-mobile-nav .hw-editor-panel-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;min-height:56px;color:#ffffff8c;background:none;border:none;border-bottom:none;font-size:11px;font-weight:500;cursor:pointer;transition:color .2s,background .2s;-webkit-tap-highlight-color:transparent}.hw-editor-mobile-nav .hw-editor-panel-tab:hover{color:#fffc}.hw-editor-mobile-nav .hw-editor-panel-tab.hw-editor-tab-active{color:#fff;background:#ffffff14;border-bottom:none}.hw-editor-tab-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.hw-editor-tab-icon svg{width:22px;height:22px}.hw-editor-tab-label{font-size:11px;line-height:1}.hw-editor-mobile-sheet{position:absolute;bottom:0;left:0;right:0;width:100%;max-height:30vh;background:#fafafa;border-top:none;border-right:none;border-radius:16px 16px 0 0;box-shadow:0 -4px 24px #00000026;z-index:1000001;transform:translateY(100%);transition:transform .3s cubic-bezier(.32,.72,0,1);display:flex;flex-direction:column;overflow:hidden}.hw-editor-mobile-sheet .hw-editor-panel-tabs{display:none}.hw-editor-mobile-sheet.hw-editor-sheet-open{transform:translateY(0)}.hw-editor-sheet-handle{display:flex;align-items:center;justify-content:center;padding:10px 0 4px;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent}.hw-editor-sheet-handle span{display:block;width:36px;height:4px;background:#ccc;border-radius:2px;transition:background .15s}.hw-editor-sheet-handle:hover span{background:#999}.hw-editor-mobile-sheet .hw-editor-panel-content{flex:1;overflow-y:auto;padding:8px 14px 16px;-webkit-overflow-scrolling:touch}.hw-editor-sheet-overlay{display:none;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000000;background:#0003;transition:opacity .3s ease;opacity:0;pointer-events:none}.hw-editor-sheet-open~.hw-editor-sheet-overlay{display:block;opacity:1;pointer-events:auto}.hw-editor-container{padding-bottom:56px}.hw-editor-btn{min-height:44px;padding:12px 16px;font-size:15px}.hw-editor-toggle-btn{min-width:44px;min-height:44px;padding:10px 16px}.hw-editor-swatch{width:42px;height:42px}.hw-editor-control-row select,.hw-editor-control-row input[type=text],.hw-editor-control-row input[type=number]{min-height:44px;padding:10px 12px;font-size:16px}.hw-editor-control-row input[type=range]{height:36px}.hw-editor-color-input-row input[type=color]{width:44px;height:44px}.hw-editor-color-input-row input[type=text]{min-height:44px;padding:10px 12px}.hw-editor-layout-grid{grid-template-columns:repeat(3,1fr);gap:6px}.hw-editor-layout-thumb{min-height:48px;font-size:10px;padding:4px}.hw-editor-panel-content{padding:8px 12px}.hw-editor-section-title{font-size:11px;margin-bottom:6px}.hw-editor-text-controls{gap:8px}.hw-editor-control-row{gap:6px}.hw-editor-control-row label{font-size:11px}.hw-editor-control-row input,.hw-editor-control-row select{padding:4px 6px;font-size:12px}.hw-editor-btn{padding:6px 10px;font-size:12px}.hw-editor-switch{width:48px;height:28px}.hw-editor-switch-slider:before{width:20px;height:20px;left:4px;bottom:4px}.hw-editor-switch input:checked+.hw-editor-switch-slider:before{transform:translate(20px)}.hw-editor-confirm-actions button{min-height:44px;padding:12px 24px}}@media(max-width:400px){.hw-editor-btn-cart-text{display:none!important}.hw-editor-btn-cart{padding:8px 12px!important}.hw-editor-mobile-nav .hw-editor-panel-tab{padding:6px 2px;min-height:52px}.hw-editor-tab-label{font-size:10px}}@media(max-width:768px)and (orientation:landscape){.hw-editor-mobile-sheet{max-height:55vh}.hw-editor-canvas-area{padding:4px}.hw-editor-toolbar{min-height:40px;padding:4px 10px}.hw-editor-mobile-nav .hw-editor-panel-tab{min-height:48px;flex-direction:row;gap:6px}.hw-editor-tab-icon svg{width:18px;height:18px}}
