/* Marketplace catalog and product preview */
.market-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:24px}
.market-text-search{flex:1.5;min-width:200px}.market-filters>.market-select{flex:1;min-width:155px}
.market-filters label{margin-bottom:7px}.market-filters>.btn{min-height:43px;margin-bottom:0}
.market-catalog,.market-catalog>.panel-body{overflow:visible}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.market-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;text-align:left;background:#fff;border:1px solid #e1e7f0;border-radius:14px;padding:12px;color:inherit;cursor:pointer}
.market-card:hover,.market-card:focus-visible{border-color:#285de5;box-shadow:0 4px 18px #285de51a}
.market-card-image{display:grid;place-items:center;aspect-ratio:1;background:#f5f7fb;border-radius:9px;color:#8794aa;overflow:hidden}
.market-card-image img{width:100%;height:100%;object-fit:contain}
.market-card strong,.market-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.market-card small{color:#718199}.market-card .market-card-brand{color:#245ce5;font-weight:600}.market-variation-badge{font-weight:600}
.market-card>span:last-of-type{margin-top:auto}.market-card>span small{font-weight:400;font-size:11px}
.market-pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px}
.market-select{position:relative;min-width:0}
.market-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:43px;background:#fff;color:#263750;border:1px solid #dce3ed;border-radius:7px;padding:10px 12px;text-align:left;font-size:14px}
.market-select-trigger>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-select-trigger[aria-expanded=true]{border-color:#7b9dee;outline:2px solid #cdddff}
.market-select-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:200px;z-index:12;background:white;padding:10px;border:1px solid #dce3ed;border-radius:10px;box-shadow:0 10px 30px #17294324}
.market-select-panel[hidden],.market-select-options [hidden],.market-select-panel p[hidden]{display:none}
.market-select-panel input{width:100%;min-width:0;padding:9px 10px;margin-bottom:7px;font-size:14px}
.market-select-options{display:flex;flex-direction:column;gap:2px;max-height:230px;overflow-y:auto;overscroll-behavior:contain}
.market-select-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;width:100%;text-align:left;border:0;border-radius:6px;padding:9px 10px;background:#fff;color:#263750;font-size:14px;line-height:1.5}
.market-select-options button:hover,.market-select-options button:focus-visible{background:#eff4ff;color:#245ce5}
.market-select-options button[aria-selected=true]{background:#e8efff;color:#245ce5;font-weight:600}
.market-select-options small{color:#8290a5;font-weight:400}.market-select-panel p{font-size:13px;color:#718199;padding:8px}
.marketplace-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;box-shadow:-8px 0 32px #18243b26;color:#17233a;background:#fff}
.marketplace-drawer::backdrop{background:#12203d80}
.market-drawer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e4e8f0;padding:14px 26px;z-index:15}
.market-drawer-head>span{font-size:14px;color:#718199;font-weight:600}
.market-drawer-body{padding:28px;overflow:visible}
.market-product-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.market-gallery{min-width:0}
.market-hero-wrap{position:relative;border-radius:12px;overflow:hidden;background:#f6f8fb}
.market-hero{display:block;width:100%;height:410px;object-fit:contain}
.market-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:1px solid #e1e7ef;border-radius:50%;background:#ffffffeb;color:#334665;display:grid;place-items:center}
.market-gallery-arrow svg{display:block;width:20px;height:20px}
.market-gallery-arrow.prev{left:10px}.market-gallery-arrow.next{right:10px}
.market-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 6px;scrollbar-width:thin}
.market-thumbnails button{flex:none;width:62px;height:62px;padding:3px;border-radius:7px;border:2px solid transparent;background:#f6f8fb}
.market-thumbnails button[aria-pressed=true]{border-color:#245ce5}.market-thumbnails img{width:100%;height:100%;object-fit:contain;border-radius:3px}
.market-no-image{height:360px;display:grid;place-items:center;background:#f5f7fb;color:#8794aa;border-radius:12px}
.market-product-brand{font-size:13px;letter-spacing:.4px;color:#245ce5;font-weight:650;margin-bottom:8px}
.market-product-summary h2{font-size:23px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;margin:0 0 18px}
.market-product-price{font-size:28px;font-weight:700;margin-bottom:7px}.market-product-price small{font-size:12px;color:#718199;font-weight:400}
.market-stock{font-size:13px;color:#337464;margin:0 0 20px}
.market-product-meta{display:grid;gap:10px;margin:0 0 24px;padding:17px 0;border-top:1px solid #e7ecf3;border-bottom:1px solid #e7ecf3;font-size:13px}
.market-product-meta>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px}.market-product-meta dt{color:#718199}.market-product-meta dd{margin:0;overflow-wrap:anywhere;line-height:1.6}
.market-variants h3,.market-sync h3,.market-product-description h3{font-size:16px;margin:0 0 14px}
.market-variants>.market-select{margin-bottom:15px}.market-variant-status{min-height:22px;color:#718199;font-size:12px;line-height:1.6;margin:0 0 22px}
.market-sync{padding-top:20px;border-top:1px solid #e7ecf3}.market-sync p{font-size:13px;color:#718199;line-height:1.7;margin-bottom:13px}
.market-sync select{margin-bottom:12px}.market-sync .btn{width:100%}.market-sync .error-message{color:#c53848;margin-top:12px}
.market-product-description{margin-top:30px;border-top:1px solid #e7ecf3;padding-top:24px}
.market-description{white-space:pre-wrap;line-height:1.8;font-size:14px;color:#52647d;overflow-wrap:anywhere}
@media(max-width:720px){.market-product-layout{grid-template-columns:1fr;gap:22px}.market-gallery{position:static}.market-hero{height:min(76vw,410px)}.market-drawer-body{padding:20px}.market-drawer-head{padding:12px 20px}.market-product-summary h2{font-size:21px}.market-filters>.market-select{min-width:calc(50% - 12px)}.market-text-search{min-width:100%}.market-filters>.btn{width:100%}.market-select-panel{min-width:0}.market-thumbnails button{width:58px;height:58px}}

/* Catalog selection and durable WordPress imports. */
.market-card-item{position:relative;min-width:0}.market-card-item>.market-card{width:100%;height:100%}
.market-card-select{position:absolute;left:20px;top:20px;z-index:1;background:#fff;border:1px solid #dce3ed;border-radius:6px;padding:6px;display:flex;cursor:pointer}.market-card-select input,.market-selection-info input{width:17px;height:17px;margin:0;accent-color:#245ce5}
.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}
.market-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:15px;background:#f5f8ff;border:1px solid #e2e9f7;border-radius:10px;margin-bottom:20px}
.market-selection-info,.market-bulk-actions,.market-job-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.market-selection-info label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.market-selection-info>span{font-size:12px;color:#718199}.market-bulk-actions .btn{font-size:13px;padding:10px 13px}
.marketplace-drawer[open]{display:flex;flex-direction:column}.market-drawer-head{flex-shrink:0}.market-drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.market-drawer-actions{flex-shrink:0;background:#fff;border-top:1px solid #e4e8f0;padding:18px 28px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;box-shadow:0 -5px 20px #18243b08}.market-action-copy{flex:1;min-width:180px}.market-action-copy strong{font-size:15px}.market-action-copy p,.market-drawer-actions>p{font-size:12px;line-height:1.6;color:#718199;margin-top:6px}.market-drawer-actions>.btn{flex-shrink:0}.market-existing-update{width:100%;font-size:12px;color:#718199}.market-existing-update form{margin-top:12px;display:grid;gap:10px}
.market-import-dialog{width:min(760px,calc(100vw - 28px));max-height:90dvh;padding:0;border:0;border-radius:14px;color:#17233a;box-shadow:0 12px 60px #18243b35}.market-import-dialog[open]{display:flex;flex-direction:column}.market-import-dialog::backdrop{background:#12203d80}.market-import-dialog>form{min-height:0;display:flex;flex-direction:column}.market-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5eaf2;padding:18px 24px;flex-shrink:0}.market-import-head h2{font-size:19px;margin:0}.market-import-body{padding:24px;overflow-y:auto;min-height:0}.market-import-footer{padding:16px 24px;border-top:1px solid #e5eaf2;display:flex;gap:10px;justify-content:flex-end;flex-shrink:0}.market-import-footer [hidden],.market-import-body [hidden]{display:none!important}
.market-import-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.market-import-settings-grid .field{margin:0}.market-import-settings-grid label{font-size:13px}.market-import-settings-grid .field>small{display:block;font-size:12px;color:#718199;line-height:1.5;margin-top:7px}.market-price-controls{display:flex;gap:8px}.market-price-controls>select{flex:1;min-width:0}.market-percent-input{display:flex;align-items:center;gap:6px;margin:0!important}.market-percent-input input{width:90px;min-width:0}.market-import-note,.market-import-setup p{font-size:12px;line-height:1.7;color:#718199;margin-top:16px}.market-import-setup{margin:18px 0;color:#52647d;font-size:13px}.market-import-setup .btn{margin-top:12px}.market-import-body .error-message{margin-top:16px}.market-import-body [data-import-preview]{padding:18px;border:1px solid #dce8fa;border-radius:10px;background:#f7faff;margin-top:20px}.market-import-body [data-import-preview] h3{margin:0 0 10px;font-size:16px}.market-import-body [data-import-preview] p{font-size:12px;line-height:1.7;color:#52647d}.market-price-preview{display:grid;gap:5px;padding:10px 0;border-bottom:1px solid #e3eaf5;font-size:13px}.market-price-preview strong{color:#245ce5;font-size:12px}
.market-import-job{padding:20px;border-bottom:1px solid #e5eaf2}.market-job-summary{display:flex;justify-content:space-between;gap:12px;font-size:14px}.market-job-summary span{color:#718199}.market-import-job progress,.market-job-detail progress{display:block;width:100%;height:9px;margin:14px 0;accent-color:#245ce5}.market-import-job p,.market-job-detail p{font-size:13px;line-height:1.7;margin:10px 0;color:#52647d}.market-job-actions{margin-top:10px}.market-import-failures>div{padding:14px 0;border-bottom:1px solid #e5eaf2}.market-import-failures strong,.market-import-failures small{display:block}.market-import-failures strong{font-size:13px}.market-import-failures small{color:#718199;margin-top:6px}.market-import-failures p{color:#b33e4b}.market-job-detail>h3{font-size:16px;margin-top:24px}
.market-job-progress{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:13px;color:#52647d}.market-job-progress strong{color:#245ce5;font-size:16px}.market-import-job .market-job-progress+progress,.market-job-detail .market-job-progress+progress{margin-top:6px}
@media(max-width:600px){.market-import-settings-grid{grid-template-columns:1fr}.market-drawer-actions{padding:14px 20px}.market-drawer-actions>.btn{width:100%}.market-import-body{padding:20px}.market-import-head{padding:14px 20px}.market-bulk-actions{width:100%}.market-bulk-actions>.btn{flex:1}.market-job-summary{flex-direction:column}}
