.shop-editor { width: min(100%, 1080px); margin-inline: auto; }
.shop-editor [hidden], .shop-picker [hidden] { display: none !important; }
.shop-editor h1 { overflow-wrap: anywhere; }
.shop-editor .back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: .8rem; }
.shop-editor__heading { align-items: center; gap: 24px; }
.shop-editor__heading h1 { margin: 0; }
.shop-editor__heading > div { min-width: 0; }
.shop-editor__visibility { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: .75rem; text-align: left; cursor: pointer; }
.shop-editor__visibility .visibility-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.shop-editor__visibility:disabled { opacity: .6; cursor: wait; }
.shop-editor__visibility-hint { margin: -8px 0 24px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.shop-editor__toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-bottom: 30px; font-size: .78rem; }
.shop-editor__rename { max-width: 100%; }
.shop-editor__rename summary, .shop-editor__manage summary, .shop-editor__archived summary { cursor: pointer; min-height: 44px; padding-block: 12px; color: var(--muted); font-size: .8rem; }
.shop-editor__rename form { display: grid; gap: 12px; width: min(330px, 100%); padding-block: 16px; }
.shop-editor__rename .field { margin: 0; }
.shop-editor__looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.shop-editor__look { position: relative; min-width: 0; }
.shop-editor__look-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #ece9e3; }
.shop-editor__look-image > img { width: 100%; height: 100%; object-fit: cover; }
.shop-editor__look-image > span:not(.shop-editor__status) { font-size: 2.5rem; color: #7b776e; }
.shop-editor__status { position: absolute; left: 12px; bottom: 12px; border-radius: 99px; padding: 6px 11px; background: #fff; color: #35332e; font-size: .65rem; font-weight: 700; box-shadow: 0 2px 12px #0000000a; }
.shop-editor__status.is-published { background: #fff3b0; color: #51410a; }
.shop-editor__look-copy { padding: 14px 2px 0; }
.shop-editor__look-copy h2 { margin: 0 0 4px; font: 700 1rem/1.35 var(--font-body); overflow-wrap: anywhere; }
.shop-editor__look-copy h2 a { color: var(--ink); text-decoration: none; }
.shop-editor__look-copy small { color: var(--muted); font-size: .73rem; }
.shop-editor__look-actions { display: flex; flex-wrap: wrap; gap: 15px; padding: 8px 2px; font-size: .75rem; }
.shop-editor__look-actions a { min-height: 36px; display: inline-flex; align-items: center; }
.shop-editor__look-order { display: flex; gap: 6px; }
.shop-editor__look-order button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.shop-editor__look-order button:disabled { opacity: .35; cursor: default; }
.shop-editor__empty { display: grid; justify-items: center; gap: 14px; border: 1px dashed #d8d4c9; border-radius: 28px; padding: 65px 24px; background: #fffdf5; text-align: center; }
.shop-editor__empty > span { font-size: 3rem; }
.shop-editor__empty h2, .shop-editor__empty p { margin: 0; }
.shop-editor__empty p { color: var(--muted); }
.shop-editor__empty .button { margin-top: 10px; }
.shop-editor__notice { border-radius: 15px; padding: 14px 18px; background: #fff6d5; color: #5e4d19; font-size: .78rem; line-height: 1.5; }
.shop-editor__archived { margin-top: 30px; border-top: 1px solid var(--line); }
.shop-editor__archived > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; }
.shop-start { max-width: 440px; padding-top: 30px; }
.shop-start h1 { margin: 24px 0 12px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.shop-start > p { margin: 0 0 25px; color: var(--muted); line-height: 1.6; }
.shop-start form { display: grid; gap: 16px; }
.shop-start__visual { position: relative; display: grid; width: 108px; height: 124px; place-items: center; margin-top: 10px; border-radius: 22px; background: #fff0ac; transform: rotate(-7deg); }
.shop-start__visual > span { font-size: 3.3rem; }
.shop-start__visual > i { position: absolute; right: -14px; bottom: 5px; font-size: 2rem; font-style: normal; }
.shop-editor__composition { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 40px; }
.shop-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border: 1px dashed #c7c2b6; border-radius: 24px; background: #f0ede7; cursor: pointer; }
.shop-photo > img { width: 100%; height: 100%; object-fit: cover; }
.shop-photo input, .shop-product-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shop-photo:focus-within, .shop-product-photo:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.shop-photo__empty { display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.shop-photo__empty i { font-size: 2rem; font-style: normal; }
.shop-photo__empty small { color: var(--muted); font-size: .68rem; }
.shop-photo__replace { position: absolute; bottom: 16px; border-radius: 99px; padding: 10px 16px; background: #fffffff2; color: #25241f; font-size: .72rem; }
.shop-photo:has(.shop-photo__empty:not([hidden])) .shop-photo__replace { display: none; }
.shop-editor__fields { display: grid; gap: 20px; min-width: 0; }
.shop-editor__fields .field { position: relative; margin: 0; }
.shop-editor__fields input, .shop-editor__fields textarea { width: 100%; min-width: 0; }
.shop-editor__optional { position: absolute; right: 0; top: 3px; color: var(--muted); font-size: .7rem; }
.shop-editor__products-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.shop-editor__products-heading h2 { margin: 0; font: 750 1.15rem var(--font-display); }
.shop-editor__products-heading small { color: var(--muted); font-size: .7rem; }
.shop-editor__hint { margin: -7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.shop-editor__add { width: 100%; }
.shop-selected-products { display: grid; gap: 10px; }
.shop-selected-product { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.shop-selected-product > img { flex: 0 0 64px; object-fit: contain; border-radius: 9px; background: #faf9f7; }
.shop-selected-product__copy { display: grid; flex: 1; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.shop-selected-product__copy strong { font-size: .8rem; }
.shop-selected-product__copy small { color: var(--muted); font-size: .66rem; }
.shop-selected-product__copy small:empty { display: none; }
.shop-selected-product__actions { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 2px; }
.shop-selected-product__actions button { min-height: 40px; border: 0; border-radius: 9px; padding: 5px 8px; color: var(--muted); background: transparent; font-size: .64rem; cursor: pointer; }
.shop-selected-product__actions button:hover { background: #f5f3ec; color: var(--ink); }
.shop-selected-product__actions > div { display: flex; grid-column: 1 / -1; justify-content: flex-end; }
.shop-selected-product__actions > div button { width: 44px; height: 40px; font-size: 1rem; }
.shop-selected-product__actions button:disabled { opacity: .3; cursor: default; }
.shop-editor__save { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; padding-bottom: 18px; }
.shop-editor__save > .button { min-width: 180px; }
.shop-editor__save > .text-link { min-height: 44px; font-size: .8rem; }
.shop-editor__error { color: #a62821; font-size: .8rem; line-height: 1.5; }
.shop-editor__error:empty, .shop-field-error:empty { display: none; }
.shop-field-error { display: block; margin-top: 6px; color: #a62821; font-size: .73rem; }
.shop-editor__manage { margin-top: 15px; border-top: 1px solid var(--line); }
.shop-editor__manage > div { display: flex; flex-wrap: wrap; gap: 24px; padding: 14px 0; font-size: .8rem; }
.shop-picker { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; overflow-y: auto; border: 1px solid #dcd8cf; border-radius: 26px; padding: 32px; background: #fffefb; color: var(--ink); box-shadow: 0 24px 80px #00000029; }
.shop-picker::backdrop { background: #16140f6b; backdrop-filter: blur(3px); }
.shop-picker__close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f0eee8; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.shop-picker h2 { margin: 8px 30px 24px 0; font: 750 1.4rem/1.25 var(--font-display); }
.shop-picker h3 { margin: 24px 0 14px; font: 700 .8rem var(--font-body); }
.shop-picker .field input:not([type=file]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; border: 1px solid #d5d1c6; border-radius: 14px; padding: 12px 14px; background: #fff; color: var(--ink); font: 400 .85rem var(--font-body); }
.shop-picker .field input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop-picker__suggestions { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.shop-picker__suggestions h3 { margin: 0 0 8px; font-size: .95rem; }
.shop-picker__results-heading { margin: 0 0 14px; color: var(--muted); font-size: .74rem; }
.shop-picker__results { display: grid; gap: 7px; }
.shop-picker__result { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 80px; border: 1px solid #e5e1d8; border-radius: 16px; padding: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.shop-picker__result > img { flex: 0 0 56px; border-radius: 8px; object-fit: contain; }
.shop-picker__result > span { display: grid; flex: 1; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.shop-picker__result strong { font-size: .8rem; }.shop-picker__result small { color: var(--muted); font-size: .66rem; }.shop-picker__result small:empty { display: none; }
.shop-picker__result [data-used] { margin-top: 3px; color: #797467; font-size: .62rem; }
.shop-picker__result > b { font-size: 1.2rem; font-weight: 500; }
.shop-picker__result:hover:not(:disabled) { border-color: #b8ac77; background: #fff9df; }
.shop-picker__result:disabled { background: #f6f4ef; cursor: default; }
.shop-picker__status { min-height: 1.5em; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.shop-picker form { display: grid; gap: 18px; }.shop-picker form .field { margin: 0; }.shop-picker .field label { font-size: .8rem; }.shop-picker .field label > span { margin-left: 5px; font-size: .66rem; color: var(--muted); font-weight: 400; }
.shop-picker .field > small { display: block; min-height: 1.5em; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.shop-product-photo { position: relative; display: flex; align-items: center; gap: 15px; min-height: 96px; border: 1px dashed #c7c2b6; border-radius: 16px; padding: 14px; cursor: pointer; }
.shop-product-photo img { width: 80px; height: 80px; object-fit: contain; }.shop-product-photo span { font-size: .75rem; font-weight: 500; }
.shop-picker__optional-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-picker__duplicate { border-radius: 18px; padding: 14px; background: #fff4bc; }.shop-picker__duplicate > p { margin: 0 0 10px; font-size: .75rem; font-weight: 700; }
.shop-ready { max-width: 640px; }.shop-ready h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }.shop-ready h2 { font-size: 1.2rem; }.shop-ready > p { max-width: 48ch; color: var(--muted); line-height: 1.6; }.shop-ready__image { display: block; width: 210px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }.shop-ready__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }.shop-ready > .text-link { display: inline-block; margin-top: 24px; }
@media (max-width: 900px) { .shop-editor__composition { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 24px; }.shop-editor__looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }.shop-selected-product__actions { grid-template-columns: 1fr; }.shop-selected-product__actions > div { grid-column: 1; } }
@media (max-width: 600px) {
  .shop-editor__heading { align-items: flex-start; flex-direction: column; gap: 18px; }.shop-editor__heading .button { min-height: 46px; }
  .shop-editor__composition { grid-template-columns: minmax(0, 1fr); gap: 28px; }.shop-photo { width: min(100%, 300px); margin-inline: auto; }
  .shop-editor__looks { gap: 24px 12px; }.shop-editor__look-image { border-radius: 16px; }.shop-editor__look-copy h2 { font-size: .87rem; }.shop-editor__look-actions { gap: 10px; font-size: .68rem; }.shop-editor__status { left: 8px; bottom: 8px; padding: 5px 9px; font-size: .6rem; }
  .shop-editor__save { justify-content: center; gap: 12px; }.shop-editor__save > .button { width: 100%; }.shop-selected-product { gap: 10px; padding: 10px; }.shop-selected-product > img { flex-basis: 56px; width: 56px; height: 64px; }.shop-selected-product__actions { grid-template-columns: 1fr 1fr; }.shop-selected-product__actions > div { grid-column: 1 / -1; }.shop-selected-product__actions button { padding-inline: 5px; }
  .shop-picker { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); }.shop-picker h2 { font-size: 1.3rem; }.shop-picker input:not([type=file]) { font-size: 16px !important; }.shop-picker__optional-fields { grid-template-columns: 1fr; }
  .shop-ready__actions { flex-direction: column; }.shop-start { padding-top: 12px; }.shop-editor__empty { padding: 42px 18px; }
}
.shop-ready__url { display: block; width: 100%; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; color: var(--muted); font-size: .8rem; }
