/* Product presentation editor and its shared customer preview. */
body[data-page="product-manage"]{background:#fafbfc}
body[data-page="product-manage"] [hidden]{display:none!important}
.manage-header{min-height:68px;padding:14px max(28px,calc((100% - 1320px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);background:#fff}
.manage-header-meta{display:flex;align-items:center;gap:24px;font-size:12px;color:#58616b}
.manage-header-meta a{color:#505863}
.manage-header-meta a:hover{color:var(--deep)}
.manage-page.wrap{width:min(1320px,calc(100% - 56px));padding-top:43px;padding-bottom:60px}
.manage-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:31px}
.manage-heading h1{font-size:30px;font-weight:720;line-height:1.4;letter-spacing:-.05em}
.manage-heading p{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.8}
.manage-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.manage-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:26px;align-items:start}
.manage-sidebar{min-width:0;position:sticky;top:24px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.manage-search{display:flex;flex-direction:column;gap:8px;padding:20px 17px 17px;border-bottom:1px solid var(--line)}
.manage-search>span{font-size:12px;font-weight:600;color:#58616b}
.manage-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:4px 0}
.manage-filters label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#58616b;font-size:11px;line-height:1.5}
.manage-filters select{width:100%;min-width:0;padding:10px 26px 10px 10px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:12px;line-height:1.5}
.manage-filters select:focus-visible{outline:2px solid #b4233628;outline-offset:1px;border-color:var(--accent)}
.manage-search input,.manage-field input:not([type="checkbox"]),.manage-field textarea{display:block;width:100%;min-width:0;padding:11px 12px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:13px;line-height:1.6;letter-spacing:-.025em}
.manage-search input::placeholder,.manage-field input::placeholder,.manage-field textarea::placeholder{color:#66717d}
.manage-search input:focus-visible,.manage-field input:focus-visible,.manage-field textarea:focus-visible{outline:2px solid #b4233628;outline-offset:1px;border-color:var(--accent)}
#manage-list{padding:8px;max-height:650px;overflow:auto}
.manage-product{display:flex;align-items:center;gap:11px;width:100%;min-width:0;padding:13px 9px;border:1px solid transparent;border-radius:7px;text-align:left}
.manage-product:hover{background:#f8f9fa}
.manage-product[aria-pressed="true"],.manage-product[aria-current="true"],.manage-product.is-selected{border-color:#efdae0;background:#fff5f7}
.manage-product>img{width:42px;height:42px;object-fit:contain;flex:none;border-radius:5px;background:#f8f9fa}
.manage-product-copy{display:block;min-width:0;flex:1}
.manage-product-copy strong{display:block;font-size:13px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}
.manage-product-copy span{display:block;font-size:10px;line-height:1.5;color:#58616b;margin-top:3px}
.manage-state{flex:none;font-size:10px;color:#58616b;line-height:1.5;white-space:nowrap}
.manage-state.is-public{color:var(--deep)}
.manage-editor{min-width:0;background:white;border:1px solid var(--line);border-radius:12px}
.manage-editor form{min-width:0}
.manage-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:25px 30px 22px}
.manage-editor-heading h2{font-size:23px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.manage-editor-heading p{font-size:11px;line-height:1.6;color:#58616b;margin-bottom:5px}
.manage-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;border:1px solid #e9e0e3;border-radius:5px;background:#fffafb;padding:3px 8px;font-size:10px;font-weight:500;line-height:1.5;color:#a4767e}
.manage-source{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 24px;margin:0 30px;padding:17px 20px;border-radius:8px;background:#f8f9fa}
.manage-source>div{min-width:0}
.manage-source dt{font-size:11px;color:#58616b;line-height:1.5}
.manage-source dd{margin:5px 0 0;font-size:13px;font-weight:550;line-height:1.65;color:#252b33;overflow-wrap:anywhere}
.manage-source small{display:block;font-size:10px;color:#58616b;margin-top:11px}
.manage-section{padding:25px 30px 28px}
.manage-section+.manage-section{border-top:1px solid var(--line)}
.manage-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;margin-bottom:18px}
.manage-section-title h3{font-size:15px;font-weight:650;line-height:1.6}
.manage-section-title small{font-size:11px;line-height:1.7;color:#58616b}
.manage-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.manage-field+.manage-field{margin-top:19px}
.manage-field label,.manage-field>span{font-size:12px;font-weight:500;color:#58616b;line-height:1.7}
.manage-field textarea{min-height:160px;resize:vertical}
.manage-field small{font-size:11px;font-weight:400;color:#58616b;line-height:1.7}
.manage-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.manage-field-row .manage-field{margin-top:0}
.manage-cover{display:flex;align-items:center;gap:25px;min-width:0}
.manage-cover>img{width:150px;height:150px;flex:none;object-fit:contain;background:#f8f9fa;border:1px solid #f0f1f3;border-radius:8px;padding:12px}
.manage-upload{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;font-size:12px;color:#58616b;line-height:1.75}
.manage-upload input[type="file"]{width:100%;max-width:100%;min-width:0;font:inherit;font-size:11px;color:#58616b;line-height:1.8;cursor:pointer}
.manage-upload input[type="file"]::file-selector-button{margin-right:10px;padding:9px 13px;border:1px solid #dce0e5;border-radius:6px;background:#fff;color:#555f6c;font:inherit;font-size:12px;cursor:pointer}
.manage-upload input[type="file"]::file-selector-button:hover{border-color:#c899a3;color:var(--deep)}
.manage-upload small{font-size:11px;color:#58616b;line-height:1.7}
.manage-gallery,.manage-detail-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.manage-gallery:empty,.manage-detail-images:empty{display:none}
.manage-gallery:not(:empty)+.manage-upload,.manage-detail-images:not(:empty)+.manage-upload{margin-top:17px}
.manage-gallery figure,.manage-detail-images figure{min-width:0;margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.manage-gallery figure>img,.manage-detail-images figure>img{width:100%;height:128px;object-fit:contain;padding:8px;background:#f8f9fa}
.manage-detail-images figure>img{height:170px;object-fit:cover;object-position:top;padding:0}
.manage-gallery figcaption,.manage-detail-images figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;font-size:10px;color:#58616b;line-height:1.6;overflow-wrap:anywhere}
.manage-small{flex:none;padding:3px 4px;font-size:11px;color:#58616b;text-decoration:underline;text-underline-offset:3px;line-height:1.6}
.manage-small:hover{color:var(--deep)}
.manage-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.manage-toggle label{display:flex;align-items:center;gap:9px;min-height:30px;color:#535e6c;font-size:13px;font-weight:550;cursor:pointer}
.manage-toggle input{width:17px;height:17px;flex:none;accent-color:var(--accent);margin:0;cursor:pointer}
.manage-toggle small{font-size:11px;color:#58616b;line-height:1.7}
.manage-actions{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid var(--line);border-radius:0 0 12px 12px;padding:18px 30px}
.manage-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 19px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;line-height:1.5;text-align:center;cursor:pointer}
.manage-button:hover{background:#94192a;border-color:#94192a}
.manage-button.is-secondary{border-color:#dce0e5;background:#fff;color:#58616b}
.manage-button.is-secondary:hover{border-color:#c899a3;color:var(--deep);background:#fffafb}
.manage-button.is-text{border-color:transparent;background:transparent;color:#58616b;font-weight:400;font-size:12px}
.manage-button.is-text:hover{color:var(--deep)}
.manage-button:disabled{color:#a0a6ae;background:#e6e8ec;border-color:#e6e8ec;cursor:default}
.manage-status{min-width:0;flex:1 1 150px;color:var(--deep);font-size:12px;line-height:1.7}
.manage-status:empty{display:none}
.manage-note{margin-top:20px;color:#58616b;font-size:11px;line-height:1.8}
.manage-note small{font-size:inherit}
.manage-editor form>.manage-note{margin:12px 30px 0}
.manage-editor form>.manage-status{padding:0 30px;margin:0 0 19px}
.manage-toggle .manage-note{margin:0}
.manage-empty{padding:35px 20px;color:#58616b;text-align:center;font-size:12px;line-height:1.8}
#manage-leave-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100svh - 48px);overflow:auto;margin:auto;padding:29px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 20px 80px #20212424}
#manage-leave-dialog::backdrop{background:#20212466}
#manage-leave-dialog h2{font-size:20px;font-weight:650;line-height:1.55;word-break:keep-all}
#manage-leave-dialog p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:12px;word-break:keep-all}
#manage-leave-dialog .manage-actions{position:static;margin-top:24px;padding:0;border:0;border-radius:0;backdrop-filter:none;background:transparent}
.product-admin-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;padding:12px 16px;border:1px solid #eddae0;border-radius:8px;background:#fff8f9;color:#8b5c65;font-size:12px;line-height:1.7}
.product-admin-bar a{color:var(--deep);font-weight:600;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.product-admin-bar>div{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.product-gallery-main{min-width:0;display:grid;place-items:center;padding:28px;background:#f8f9fa;border:1px solid #f0f1f3;border-radius:12px;aspect-ratio:1.13}
.product-gallery-main img{width:100%;max-width:420px;max-height:420px;object-fit:contain}
.product-gallery-thumbs{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.product-gallery-thumbs button{width:64px;height:64px;border:1px solid var(--line);border-radius:7px;padding:4px;background:#f8f9fa}
.product-gallery-thumbs button[aria-pressed="true"]{border-color:var(--accent);background:#fff}
.product-gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.product-content-section{margin-top:56px;padding-top:29px;border-top:1px solid var(--line)}
.product-content-section h2{font-size:20px;line-height:1.5;font-weight:650;margin-bottom:20px}
.product-content-section p{font-size:14px;color:#252b33;line-height:1.95;white-space:pre-line;overflow-wrap:anywhere}
.product-detail-images{max-width:860px;margin:27px auto 0}
.product-detail-images img{width:100%;height:auto}
.product-detail-images img+img{margin-top:14px}
.product-visibility-note{color:#99777e;font-size:11px;line-height:1.8;margin:10px 0 20px}
.shop-draft-tools{display:flex;justify-content:flex-end;margin-top:32px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:#58616b}
.shop-draft-tools a:hover{color:var(--deep);text-decoration:underline;text-underline-offset:3px}
a.shop-card-top{min-width:0;border-radius:9px}
a.shop-card-top:hover .shop-name{color:var(--deep)}
a.shop-card-top:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(max-width:1050px){
  .manage-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}
  .manage-editor-heading,.manage-section{padding-left:23px;padding-right:23px}
  .manage-source{margin-left:23px;margin-right:23px}
  .manage-editor form>.manage-note{margin-left:23px;margin-right:23px}
  .manage-editor form>.manage-status{padding-left:23px;padding-right:23px}
  .manage-gallery,.manage-detail-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .manage-actions{padding-left:23px;padding-right:23px}
}
@media(max-width:760px){
  .manage-header{min-height:60px;padding:13px 20px;gap:15px}
  .manage-header .brand-name{font-size:20px}
  .manage-header-meta{gap:15px;font-size:11px}
  .manage-header-meta>span{display:none}
  .manage-page.wrap{width:calc(100% - 36px);padding-top:30px;padding-bottom:35px}
  .manage-heading{align-items:flex-start;gap:18px;flex-direction:column;margin-bottom:23px}
  .manage-heading h1{font-size:27px}
  .manage-heading p{font-size:12px}
  .manage-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .manage-sidebar{position:static;border-radius:9px}
  .manage-search{padding:15px;gap:7px}
  #manage-list{max-height:205px;padding:6px}
  .manage-product{padding:10px 9px}
  .manage-product>img{width:36px;height:36px}
  .manage-product-copy strong{font-size:12px}
  .manage-editor{border-radius:9px}
  .manage-editor-heading{padding:21px 19px 18px}
  .manage-editor-heading h2{font-size:21px}
  .manage-source{margin-left:19px;margin-right:19px;padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
  .manage-editor form>.manage-note{margin-left:19px;margin-right:19px}
  .manage-editor form>.manage-status{padding-left:19px;padding-right:19px;font-size:11px}
  .manage-source dd{font-size:12px}
  .manage-section{padding:22px 19px}
  .manage-section-title{margin-bottom:16px}
  .manage-cover{gap:18px;align-items:flex-start}
  .manage-cover>img{width:105px;height:105px;padding:8px}
  .manage-gallery,.manage-detail-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .manage-gallery figure>img{height:100px}
  .manage-detail-images figure>img{height:135px}
  .manage-gallery figcaption,.manage-detail-images figcaption{padding:6px;gap:4px;flex-wrap:wrap}
  .manage-field-row{grid-template-columns:minmax(0,1fr);gap:18px}
  .manage-field input:not([type="checkbox"]),.manage-field textarea{font-size:14px}
  .manage-actions{padding:14px 19px;gap:8px;border-radius:0 0 9px 9px}
  .manage-actions .manage-status{flex-basis:100%;font-size:11px}
  .manage-button{font-size:12px;padding:10px 14px}
  .manage-note{font-size:10px;margin-top:17px}
  #manage-leave-dialog{padding:23px}
  #manage-leave-dialog h2{font-size:18px}
  #manage-leave-dialog p{font-size:12px}
  #manage-leave-dialog .manage-actions{gap:8px}
  #manage-leave-dialog .manage-button{flex:1 1 auto}
  .product-admin-bar{padding:11px 13px;flex-wrap:wrap;gap:8px 16px;font-size:11px}
  .product-admin-bar>div{gap:15px}
  .product-gallery-main{padding:24px;aspect-ratio:1.2}
  .product-gallery-main img{max-height:320px}
  .product-gallery-thumbs{gap:8px;margin-top:12px}
  .product-gallery-thumbs button{width:56px;height:56px}
  .product-content-section{margin-top:35px;padding-top:24px}
  .product-content-section h2{font-size:18px;margin-bottom:15px}
  .product-content-section p{font-size:13px}
  .product-detail-images{margin-top:22px}
  .shop-draft-tools{margin-top:24px;font-size:10px}
}
@media(max-width:390px){
  .manage-header{padding-left:17px;padding-right:17px}
  .manage-header .brand-sub{display:none}
  .manage-page.wrap{width:calc(100% - 28px)}
  .manage-editor-heading,.manage-section{padding-left:16px;padding-right:16px}
  .manage-source{margin-left:16px;margin-right:16px;padding:14px}
  .manage-editor form>.manage-note{margin-left:16px;margin-right:16px}
  .manage-editor form>.manage-status{padding-left:16px;padding-right:16px}
  .manage-cover{flex-direction:column;gap:14px}
  .manage-cover>img{width:120px;height:120px}
  .manage-gallery,.manage-detail-images{grid-template-columns:repeat(2,minmax(0,1fr))}
  .manage-actions{padding-left:12px;padding-right:12px;gap:6px}
  .manage-actions .manage-button{padding-left:11px;padding-right:11px;font-size:11px}
  .manage-actions .is-text{padding-left:5px;padding-right:5px}
  .manage-toggle{gap:8px}
}
