.shop-settings-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:24px;align-items:start}.shop-settings-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:16px;padding-bottom:5px}.shop-settings-tabs button{flex:none;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font:inherit;font-size:11px;font-weight:650;padding:10px 12px;cursor:pointer}.shop-settings-tabs button.active{background:var(--brand-soft);color:var(--brand)}.shop-settings-section h2{font-size:18px;margin:0 0 24px}.shop-settings-section>.field,.shop-settings-section>.check-row{margin-bottom:16px}.shop-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.shop-color-field{display:grid;grid-template-columns:40px 1fr;gap:4px 10px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:12px;min-width:0}.shop-color-field>span{grid-column:1/-1;font-size:11px;color:var(--text-muted);margin-bottom:5px}.shop-color-field input{width:38px;height:32px;padding:2px;border:0;cursor:pointer}.shop-color-field code{font-size:11px}.shop-image-field{border:1px solid var(--border);border-radius:12px;padding:16px;margin:16px 0}.shop-image-thumb{width:100%;max-height:180px;object-fit:contain;margin:12px 0;border-radius:8px;background:var(--bg)}.shop-image-placeholder{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px;background:var(--bg);color:var(--text-muted);border:1px dashed var(--border);border-radius:10px;margin:12px 0;font-size:12px}.shop-file-label{position:relative;overflow:hidden;cursor:pointer}.shop-file-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.shop-preview-panel{position:sticky;top:88px;min-width:0}.shop-preview-panel .card-head{align-items:center;gap:10px}.shop-preview-panel small{color:var(--text-muted);font-size:10px}.shop-preview-shell{padding:12px;background:#e9eef0;display:flex;justify-content:center;overflow:hidden;border-radius:0 0 12px 12px}.shop-preview-shell iframe{border:0;background:white;width:100%;height:640px;border-radius:8px}.shop-preview-shell.mobile iframe{width:360px;max-width:100%}.shop-preview-shell.desktop iframe{width:100%}.shop-save-bar{position:sticky;bottom:16px;z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 4px 20px #0001}.shop-save-bar>span{font-size:11px;color:var(--text-muted)}.shop-hours{margin-top:24px}.shop-day{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:center;border-top:1px solid var(--border);padding:14px 0}.shop-day .field{margin:0}.shop-day .field label{font-size:10px}.shop-day .check-row{font-size:12px}.shop-options{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:24px}.shop-qr{display:block;width:140px;height:140px;margin:12px auto}.shop-public-url{overflow-wrap:anywhere;color:var(--text-muted);margin-top:8px}.shop-settings-error{color:var(--danger);padding:16px}#productImagePreview{max-width:180px;max-height:150px;object-fit:contain;border-radius:10px;margin:12px 0}@media(max-width:1100px){.shop-settings-layout{grid-template-columns:1fr}.shop-preview-panel{position:static}.shop-preview-shell.desktop iframe{height:580px}.shop-preview-panel .shop-qr{width:120px;height:120px}}@media(max-width:480px){.shop-color-grid{grid-template-columns:1fr}.shop-day{grid-template-columns:1fr 1fr}.shop-day>.check-row{grid-column:1/-1}.shop-save-bar{flex-direction:column;align-items:stretch}.shop-save-bar .row{display:grid;grid-template-columns:1fr 1fr}.shop-preview-panel .card-head{flex-wrap:wrap}.shop-settings-layout{gap:16px}}
.shop-preview-shell{display:block;height:664px;position:relative}.shop-preview-shell iframe{display:block;max-width:none;transform-origin:top left;flex:none}.shop-preview-shell.mobile iframe{max-width:none}.shop-preview-shell.desktop iframe{max-width:none}

.shop-settings-layout>div,.shop-settings-layout>aside,.shop-settings-layout form{min-width:0}.shop-settings-section .form-grid>*{min-width:0}.shop-settings-section input,.shop-settings-section select,.shop-settings-section textarea{max-width:100%}

@media(max-width:480px){.shop-save-bar .row{display:flex;flex-direction:column;align-items:stretch}.shop-save-bar .btn{width:100%;white-space:normal}}
