:root{--bg-primary: #0a0a0a;--bg-secondary: #141414;--bg-tertiary: #1a1a1a;--bg-elevated: #1e1e1e;--bg-hover: #252525;--border: #2a2a2a;--border-light: #333;--text-primary: #e5e5e5;--text-secondary: #a0a0a0;--text-muted: #666;--accent: #6366f1;--accent-hover: #5558e6;--accent-muted: rgba(99, 102, 241, .15);--success: #22c55e;--success-muted: rgba(34, 197, 94, .15);--warning: #f59e0b;--warning-muted: rgba(245, 158, 11, .15);--danger: #ef4444;--danger-hover: #dc2626;--danger-muted: rgba(239, 68, 68, .15);--radius: 8px;--radius-sm: 4px;--radius-lg: 12px;--shadow: 0 1px 3px rgba(0, 0, 0, .4);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);--transition: .15s ease}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;background:var(--bg-primary);color:var(--text-primary);line-height:1.5;-webkit-font-smoothing:antialiased}.layout{min-height:100vh}.header{padding:.875rem 2rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:var(--bg-secondary);position:sticky;top:0;z-index:50}.header-logout{margin-left:auto}.logo{color:var(--text-primary);text-decoration:none;font-weight:600;font-size:1rem;letter-spacing:-.01em}.logo:hover{color:var(--accent)}.main{padding:2rem;max-width:1200px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;gap:1rem}.page-header h1{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;margin:0}.page-header-left{display:flex;align-items:center;gap:.75rem}.back-link{color:var(--text-secondary);text-decoration:none;font-size:.875rem;transition:color var(--transition)}.back-link:hover{color:var(--text-primary)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;border:1px solid transparent;border-radius:var(--radius);cursor:pointer;transition:all var(--transition);text-decoration:none;white-space:nowrap;font-family:inherit;line-height:1.5}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border-color:var(--border-light)}.btn-secondary:hover:not(:disabled){background:var(--bg-hover);border-color:var(--text-muted)}.btn-danger{background:transparent;color:var(--danger);border-color:var(--danger)}.btn-danger:hover:not(:disabled){background:var(--danger);color:#fff}.btn-sm{padding:.25rem .625rem;font-size:.8125rem}.btn-full{width:100%}.form-group{margin-bottom:1rem}.form-group label{display:block;font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-bottom:.375rem}.form-group input[type=text],.form-group input[type=number],.form-group input[type=email],.form-group input[type=url],.form-group textarea,.form-group select{width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-light);border-radius:var(--radius);transition:border-color var(--transition);line-height:1.5}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-muted)}.form-group textarea{resize:vertical;min-height:60px}.form-hint{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.25rem}.form-error{padding:.75rem 1rem;background:var(--danger-muted);color:var(--danger);border:1px solid rgba(239,68,68,.3);border-radius:var(--radius);font-size:.875rem;margin-bottom:1rem}.form-success{padding:.75rem 1rem;background:var(--success-muted);color:var(--success);border:1px solid rgba(34,197,94,.3);border-radius:var(--radius);font-size:.875rem;margin-bottom:1rem}.form-actions{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}.form-section{margin-bottom:2rem}.form-section h3{font-size:.9375rem;font-weight:600;color:var(--text-primary);margin-bottom:1rem;letter-spacing:-.01em}.form-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.form-section-header h3{margin-bottom:0}.color-input{display:flex;gap:.5rem;align-items:center}.color-input input[type=color]{width:36px;height:36px;padding:2px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:var(--bg-primary);cursor:pointer}.color-input input[type=text]{flex:1;padding:.5rem .75rem;font-size:.875rem;font-family:SF Mono,Fira Code,monospace;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-light);border-radius:var(--radius)}.toggle-group{display:inline-flex;border:1px solid var(--border-light);border-radius:var(--radius);overflow:hidden}.toggle-btn{padding:.375rem .875rem;font-size:.8125rem;font-family:inherit;background:var(--bg-primary);color:var(--text-secondary);border:none;cursor:pointer;transition:all var(--transition)}.toggle-btn+.toggle-btn{border-left:1px solid var(--border-light)}.toggle-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.toggle-btn.toggle-active{background:var(--accent-muted);color:var(--accent)}.checkbox-group{display:flex;flex-wrap:wrap;gap:.75rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-primary);cursor:pointer}.checkbox-label input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.5rem}@media(max-width:640px){.theme-grid{grid-template-columns:1fr}}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.shop-card{display:flex;flex-direction:column;padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);text-decoration:none;color:var(--text-primary);transition:all var(--transition)}.shop-card:hover{border-color:var(--border-light);background:var(--bg-tertiary);transform:translateY(-1px);box-shadow:var(--shadow)}.shop-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.shop-card-name{font-size:1.0625rem;font-weight:600;letter-spacing:-.01em}.shop-card-tagline{font-size:.875rem;color:var(--text-secondary);margin-bottom:.75rem;flex:1}.shop-card-footer{margin-top:auto;padding-top:.75rem;border-top:1px solid var(--border)}.shop-card-count{font-size:.8125rem;color:var(--text-muted)}.badge{display:inline-flex;align-items:center;padding:.125rem .5rem;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-radius:9999px}.badge-draft{background:var(--warning-muted);color:var(--warning)}.badge-published{background:var(--success-muted);color:var(--success)}.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.tab{padding:.625rem 1rem;font-size:.875rem;font-weight:500;font-family:inherit;color:var(--text-secondary);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:all var(--transition);margin-bottom:-1px}.tab:hover{color:var(--text-primary)}.tab-active{color:var(--accent);border-bottom-color:var(--accent)}.tab-content{animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.product-table{overflow-x:auto}.product-table table{width:100%;border-collapse:collapse}.product-table th{text-align:left;padding:.625rem .75rem;font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border)}.product-table td{padding:.625rem .75rem;font-size:.875rem;border-bottom:1px solid var(--border);vertical-align:middle}.product-table tr:hover td{background:var(--bg-secondary)}.col-check{width:40px}.col-image{width:52px}.col-price{width:80px;text-align:right;font-variant-numeric:tabular-nums}.col-status{width:90px}.col-featured{width:60px;text-align:center}.product-thumb{width:36px;height:36px;object-fit:cover;border-radius:var(--radius-sm)}.product-thumb-placeholder{width:36px;height:36px;background:var(--bg-tertiary);border:1px dashed var(--border-light);border-radius:var(--radius-sm)}.product-link{color:var(--text-primary);text-decoration:none;font-weight:500}.product-link:hover{color:var(--accent)}.star{font-size:1.125rem;color:var(--text-muted)}.star-active{color:var(--warning)}.tab-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem;flex-wrap:wrap}.bulk-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto;font-size:.8125rem;color:var(--text-secondary)}.category-add-form{display:flex;gap:.5rem;margin-bottom:1.25rem;align-items:flex-start}.category-add-form input{flex:1;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-light);border-radius:var(--radius)}.category-add-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-muted)}.category-list{list-style:none}.category-item{padding:.75rem 0;border-bottom:1px solid var(--border)}.category-item:last-child{border-bottom:none}.category-display-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.category-info{display:flex;flex-direction:column;gap:.125rem}.category-name{font-weight:500;font-size:.9375rem}.category-desc{font-size:.8125rem;color:var(--text-muted)}.category-actions{display:flex;gap:.375rem}.category-edit-row{display:flex;gap:.5rem;align-items:flex-start}.category-edit-row input{flex:1;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-light);border-radius:var(--radius)}.category-edit-row input:focus{outline:none;border-color:var(--accent)}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .15s ease;padding:1rem}.modal{background:var(--bg-elevated);border:1px solid var(--border-light);border-radius:var(--radius-lg);width:100%;max-width:480px;box-shadow:var(--shadow-lg);animation:modalIn .2s ease}@keyframes modalIn{0%{opacity:0;transform:scale(.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.modal-header h2{font-size:1.125rem;font-weight:600;letter-spacing:-.01em}.modal-close{background:none;border:none;color:var(--text-muted);font-size:1.5rem;cursor:pointer;padding:0;line-height:1;transition:color var(--transition)}.modal-close:hover{color:var(--text-primary)}.modal-body{padding:1.5rem}.loading-state{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:3rem;color:var(--text-secondary);font-size:.9375rem}.loading-inline{justify-content:flex-start;padding:.75rem 0}.spinner{width:20px;height:20px;border:2px solid var(--border-light);border-top-color:var(--accent);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:3rem;color:var(--text-secondary)}.empty-state p{margin-bottom:1rem}.product-editor-layout{display:grid;grid-template-columns:1fr 320px;gap:2rem;align-items:start}@media(max-width:768px){.product-editor-layout{grid-template-columns:1fr}}.product-editor-main .form-section,.product-editor-sidebar .form-section{padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg)}.sidebar-actions{display:flex;flex-direction:column;gap:.5rem}.image-preview{border-radius:var(--radius);overflow:hidden;margin-bottom:.75rem;border:1px solid var(--border)}.image-preview img{width:100%;height:auto;display:block}.image-placeholder{display:flex;align-items:center;justify-content:center;height:160px;background:var(--bg-primary);border:1px dashed var(--border-light);border-radius:var(--radius);color:var(--text-muted);font-size:.875rem;margin-bottom:.75rem}.image-actions{display:flex;gap:.5rem}.image-actions .btn{flex:1;font-size:.8125rem}.collapsible-toggle{background:none;border:none;color:var(--text-secondary);font-size:.875rem;font-family:inherit;cursor:pointer;padding:0;margin-bottom:.75rem;transition:color var(--transition)}.collapsible-toggle:hover{color:var(--text-primary)}.collapsible-content{animation:fadeIn .2s ease}.generate-panel{max-width:720px}.generate-input-section{padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:1.25rem}.generate-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.25rem}.generate-preview{padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:1.25rem}.generate-preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.generate-preview-header h3{font-size:.9375rem;font-weight:600}.preview-fields{display:flex;flex-direction:column;gap:.75rem}.preview-field{display:flex;flex-direction:column;gap:.25rem}.preview-label{font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.preview-value{font-size:.9375rem;color:var(--text-primary)}.preview-description{white-space:pre-wrap;line-height:1.6}.generate-save{margin-bottom:1.25rem}.generate-loading{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;background:var(--accent-muted);border:1px solid rgba(99,102,241,.2);border-radius:var(--radius-lg);margin-bottom:1.25rem;color:var(--text-primary);font-size:.875rem}.generate-suggestions{padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg)}.generate-suggestions h3{font-size:.9375rem;font-weight:600;margin-bottom:.75rem}.suggestion-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem}.suggestion-card{display:flex;flex-direction:column;gap:.25rem;padding:.75rem 1rem;background:var(--bg-primary);border:1px solid var(--border-light);border-radius:var(--radius);cursor:pointer;text-align:left;font-family:inherit;transition:all var(--transition)}.suggestion-card:hover{border-color:var(--accent);background:var(--accent-muted)}.suggestion-name{font-weight:600;font-size:.875rem;color:var(--text-primary)}.suggestion-hint{font-size:.8125rem;color:var(--text-muted)}.shop-form .form-actions{border-top:none;padding-top:.5rem;margin-top:.5rem;justify-content:flex-end}h1{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;margin-bottom:0}h2{font-size:1.25rem;font-weight:600;letter-spacing:-.01em}h3{font-size:1rem;font-weight:600}a{color:var(--accent)}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.login-form{width:100%;max-width:360px;padding:2rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg)}.login-form h1{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;margin-bottom:.25rem}.login-subtitle{color:var(--text-secondary);font-size:.875rem;margin-bottom:1.5rem}.login-form .form-group{margin-bottom:1.25rem}.login-form .form-group input[type=password]{width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-light);border-radius:var(--radius);transition:border-color var(--transition);line-height:1.5}.login-form .form-group input[type=password]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-muted)}.branding-intro{color:var(--text-secondary);font-size:.875rem;margin-bottom:1.5rem}.branding-asset{padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:1.25rem}.branding-asset h3{font-size:.9375rem;font-weight:600;margin-bottom:.125rem}.branding-asset-header{margin-bottom:.75rem}.branding-preview{border-radius:var(--radius);overflow:hidden;margin-bottom:.75rem;border:1px solid var(--border)}.branding-preview img{width:100%;height:auto;display:block}.branding-preview-hero img{max-height:200px;object-fit:cover}.branding-preview-logo img{max-height:80px;object-fit:contain;padding:.75rem;background:var(--bg-primary)}.branding-preview-og img{max-height:180px;object-fit:cover}.branding-placeholder{display:flex;align-items:center;justify-content:center;background:var(--bg-primary);border:1px dashed var(--border-light);border-radius:var(--radius);color:var(--text-muted);font-size:.875rem;margin-bottom:.75rem}.branding-placeholder-hero{height:120px}.branding-placeholder-logo{height:64px}.branding-placeholder-og{height:100px}.branding-actions{display:flex;gap:.5rem;align-items:center}.branding-actions .btn{font-size:.8125rem}.shop-card-wrapper{display:flex;flex-direction:column}.shop-card-link{display:block;padding:.375rem 1.25rem .625rem;background:var(--bg-secondary);border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius-lg) var(--radius-lg);color:var(--accent);font-size:.75rem;text-decoration:none;transition:color var(--transition)}.shop-card-link:hover{color:var(--accent-hover)}.shop-card-wrapper .shop-card{border-radius:var(--radius-lg) var(--radius-lg) 0 0}.shop-card-wrapper:not(:has(.shop-card-link)) .shop-card{border-radius:var(--radius-lg)}.badge-landing{background:var(--accent-muted);color:var(--accent)}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem}.gallery-grid-item{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);aspect-ratio:4 / 3}.gallery-grid-item img{width:100%;height:100%;object-fit:cover;display:block}.gallery-remove-btn{position:absolute;top:.375rem;right:.375rem;width:1.5rem;height:1.5rem;background:#000000b3;color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:.875rem;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--transition)}.gallery-grid-item:hover .gallery-remove-btn{opacity:1}.features-editor{display:flex;flex-direction:column;gap:1rem}.feature-editor-card{position:relative;display:grid;grid-template-columns:1fr 200px;gap:1.25rem;padding:1.25rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg)}.feature-editor-fields{min-width:0}.feature-editor-image{display:flex;flex-direction:column;gap:.5rem}.feature-image-preview{border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);aspect-ratio:4 / 3}.feature-image-preview img{width:100%;height:100%;object-fit:cover;display:block}.feature-image-placeholder{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;background:var(--bg-primary);border:1px dashed var(--border-light);border-radius:var(--radius);color:var(--text-muted);font-size:.8125rem}.feature-remove-btn{position:absolute;top:.75rem;right:.75rem}@media(max-width:640px){.feature-editor-card{grid-template-columns:1fr}}.reference-image-input{display:flex;flex-direction:column;gap:.5rem}.reference-image-previews{display:flex;flex-wrap:wrap;gap:.375rem}.reference-image-preview{position:relative;display:inline-block}.reference-image-preview img{width:36px;height:36px;object-fit:cover;border-radius:var(--radius-sm);border:1px solid var(--border-light)}.reference-image-remove{position:absolute;top:-4px;right:-4px;width:16px;height:16px;border-radius:50%;background:var(--danger);color:#fff;border:none;font-size:10px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.visual-dna-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 1.5rem}@media(max-width:640px){.visual-dna-fields{grid-template-columns:1fr}}.product-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.75rem}.product-gallery-grid-item{position:relative;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border);aspect-ratio:1}.product-gallery-grid-item img{width:100%;height:100%;object-fit:cover;display:block}.product-gallery-grid-item .gallery-remove-btn{position:absolute;top:.25rem;right:.25rem;width:1.25rem;height:1.25rem;background:#000000b3;color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:.75rem;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--transition)}.product-gallery-grid-item:hover .gallery-remove-btn{opacity:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
