/* Product tasks use the same compact surfaces and touch controls as the shop. */
product-photos .photo-picker svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.photo-empty-hint { color:var(--muted); font-size:.75rem; margin:10px 0 0; }
.photo-picker { gap:7px; }
.option-row-title { display:none; }
.product-mode-links { display:flex; align-items:center; gap:10px; padding:5px 0 18px; font-size:.78rem; line-height:1.4; }
.product-mode-links>span { color:var(--ink); font-weight:700; }
.product-mode-links>a { display:flex; align-items:center; gap:9px; margin-left:auto; min-height:44px; color:var(--brand-deep); font-weight:600; }
.product-mode-links>a>span { font-size:1.2rem; }
.product-editor-layout { grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:20px; }
.product-editor-card { min-width:0; }
.product-editor-card #product-form { gap:22px; }
.product-fieldset { min-width:0; border:0; padding:0; margin:0; }
.product-fieldset>legend { display:flex; align-items:center; justify-content:space-between; width:100%; padding:0 0 14px; font-size:.95rem; font-weight:720; letter-spacing:-.025em; }
.product-fieldset>legend small { color:var(--muted); font-size:.66rem; font-weight:500; letter-spacing:0; }
.product-fieldset+.product-fieldset { border-top:1px solid var(--line); padding-top:22px; }
.product-fieldset>.fine { margin-top:10px; }
.product-fieldset .subhead { margin:0 0 10px; }
.product-fieldset .subhead .fine { font-weight:400; }
.product-fieldset .pdp-fields { border-top:1px solid var(--line); margin-top:0; }
.product-fieldset .pdp-fields summary { min-height:44px; padding-block:12px; font-size:.81rem; cursor:pointer; }
.product-fieldset .pdp-fields[open] summary { margin-bottom:8px; }
.product-fieldset :is(input,select,textarea),#bulk-products-desk :is(input,select,textarea) { scroll-margin-block:145px 170px; }
.product-save-actions>span { color:var(--muted); font-size:.72rem; }
.product-save-actions .btn { margin-top:9px; }
body[data-workspace] .product-collection-card .catalog-thumb { width:52px; height:66px; border-radius:8px; }
.product-collection-card .catalog-list-row { padding-block:14px; }
.product-collection-card .catalog-list-row strong { font-size:.86rem; font-weight:650; }
.product-collection-card .catalog-list-row small { font-size:.72rem; margin-top:4px; }
.bulk-file-tools { border:1px solid var(--line); border-radius:14px; background:var(--card); padding:18px; }
.bulk-file-tools strong { font-size:.96rem; letter-spacing:-.02em; }
.bulk-file-tools p { margin:5px 0 0; color:var(--muted); font-size:.79rem; }
.bulk-file-tools .desk-actions { margin-block:12px 8px; gap:8px; }
.bulk-file-tools .fine { font-size:.71rem; }
.bulk-option-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:19px 0 10px; }
.bulk-option-heading>span { font-size:.88rem; font-weight:700; }
.bulk-option-heading small { color:var(--muted); font-size:.66rem; }
.bulk-review-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); background:var(--card); border-radius:14px; margin:0 0 18px; padding:16px 0; }
.bulk-review-totals>div { padding:0 14px; }
.bulk-review-totals>div+div { border-left:1px solid var(--line); }
.bulk-review-totals dt { color:var(--muted); font-size:.72rem; }
.bulk-review-totals dd { font-size:1.3rem; font-weight:750; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bulk-review-totals dd small { font-size:.74rem; font-weight:500; margin-left:3px; }
.bulk-review-totals dd { color:var(--brand-deep); }
.bulk-edit-actions,.bulk-confirm-actions { display:flex; gap:9px; justify-content:flex-end; margin-top:16px; }
#bulk-products-desk .bulk-item { scroll-margin-top:135px; }
#bulk-products-desk .bulk-item .desk-card-head h3 { font-size:.99rem; font-weight:700; }
#bulk-products-desk .bulk-item .desk-card-head>[data-bulk=remove] { font-size:.72rem; padding-inline:12px; }
#bulk-products-desk .bulk-review .desk-card { margin-bottom:10px; }
#bulk-products-desk .bulk-review .desk-card ul { padding-left:17px; font-size:.8rem; }
#bulk-products-desk .bulk-review .desk-card-head>span { font-size:.8rem; }
body[data-workspace] product-photos { background:var(--card); border:1px solid var(--brand-line); border-radius:14px; }
body[data-workspace] product-photos[data-empty] { background:var(--brand-tint); }
body[data-workspace] product-photos .photo-picker { border:1px solid var(--brand-line); border-radius:10px; background:var(--brand-tint); color:var(--brand-deep); min-height:46px; }
body[data-workspace] .photo-picker:focus-within { outline-color:var(--brand-accent); }
body[data-workspace] .photo-sort-list li { background:var(--card); }
body[data-workspace] .photo-sort-list li:first-child { border-color:var(--brand-accent); }
body[data-workspace] .photo-sort-list li:first-child .photo-slot { background:var(--brand-accent); }
body[data-workspace] .photo-primary { color:var(--brand-deep); background:var(--brand-tint); }
body[data-workspace] :is(.product-editor-card,#bulk-products-desk) product-photos[data-empty] .photo-editor-head { display:grid; grid-template-columns:1fr; gap:15px; }
body[data-workspace] :is(.product-editor-card,#bulk-products-desk) product-photos[data-empty] .photo-title { justify-content:space-between; }
body[data-workspace] :is(.product-editor-card,#bulk-products-desk) product-photos[data-empty] .photo-picker { min-height:64px; justify-self:stretch; background:var(--card); color:var(--brand-deep); border:1px dashed var(--brand-accent); }
body[data-workspace] :is(.product-editor-card,#bulk-products-desk) .photo-count { color:var(--muted); }
.product-editor-card .photo-guide,#bulk-products-desk .photo-guide { font-size:.68rem; line-height:1.6; }
@media(max-width:900px) {
  .product-editor-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:660px) {
  .product-mode-links { padding-bottom:12px; font-size:.72rem; }
  .product-mode-links>a { font-size:.71rem; }
  body[data-workspace] .product-editor-card { background:transparent; padding:0; border:0; }
  .product-editor-card #product-form { gap:12px; }
  body[data-workspace] .product-fieldset { padding:17px 14px; border:1px solid var(--line); background:var(--card); border-radius:14px; }
  .product-fieldset>legend { float:left; padding-bottom:15px; font-size:.9rem; }
  .product-fieldset>legend+* { clear:both; }
  .product-fieldset .form-grid { gap:14px; }
  .product-fieldset .field,#bulk-products-desk .field { font-size:.76rem; gap:7px; }
  body[data-workspace] :is(.product-fieldset,#bulk-products-desk) :is(input,select,textarea):not([type=file]):not([type=checkbox]) { font-size:16px; min-height:48px; padding:11px 12px; border-radius:10px; }
  .product-fieldset :is(.subhead,.pair) { gap:10px; }
  .product-fieldset .subhead { flex-wrap:wrap; }
  .product-fieldset .subhead .fine { flex:1 1 100px; }
  .product-fieldset .subhead .btn { min-height:44px; padding:8px 12px; font-size:.75rem; }
  .product-fieldset .fine { font-size:.7rem; line-height:1.6; }
  .product-fieldset .clearance-field,#bulk-products-desk .clearance-field { padding-inline:10px; border-radius:10px; }
  .product-fieldset .clearance-switch,#bulk-products-desk .clearance-switch { font-size:.76rem; min-height:48px; }
  .product-fieldset .clearance-switch small,#bulk-products-desk .clearance-switch small { font-size:.65rem; }
  #variant-rows,.bulk-options { counter-reset:product-option; }
  .product-fieldset .variant-edit,#bulk-products-desk .bulk-option { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:11px; border:1px solid var(--line); border-radius:11px; background:var(--paper); padding:14px 11px 11px; counter-increment:product-option; }
  .product-fieldset .variant-edit+.variant-edit,#bulk-products-desk .bulk-option+.bulk-option { margin-top:10px; }
  .product-fieldset .option-row-title,#bulk-products-desk .option-row-title { display:block; grid-column:1/-1; font-size:.73rem; font-weight:700; color:var(--brand-deep); min-height:26px; }
  .product-fieldset .option-row-title::after,#bulk-products-desk .option-row-title::after { content:' ' counter(product-option); font-variant-numeric:tabular-nums; }
  .product-fieldset .variant-edit .option-stock,#bulk-products-desk .bulk-option>.field:has([name=stock]) { grid-column:1/-1; display:grid; grid-template-columns:1fr minmax(90px,1fr); gap:10px; align-items:center; }
  .product-fieldset .variant-edit>.icon-button,#bulk-products-desk .bulk-option>.icon-button { position:absolute; top:0; right:0; width:44px; height:44px; background:transparent; color:#8b8b94; font-size:1.3rem; }
  body[data-workspace] .product-save-actions,#bulk-products-desk .bulk-edit-actions,#bulk-products-desk .bulk-confirm-actions { position:sticky; z-index:4; bottom:calc(var(--workspace-bottom-height,64px) + env(safe-area-inset-bottom)); padding:10px 0; background:var(--paper); border-top:1px solid var(--line); margin:0; }
  .product-save-actions>span { display:none; }
  body[data-workspace] .product-save-actions .btn { min-height:50px; margin:0; border-radius:12px; font-size:.9rem; }
  body[data-workspace] .product-collection-card { padding:17px 14px; margin-top:12px; }
  #bulk-products-desk .bulk-file-tools { padding:15px; }
  #bulk-products-desk .bulk-file-tools .desk-actions { display:grid; grid-template-columns:1fr 1fr; }
  #bulk-products-desk .bulk-file-tools .btn { font-size:.76rem; padding-inline:8px; min-height:46px; }
  #bulk-products-desk .bulk-item { padding:15px 13px; }
  #bulk-products-desk .bulk-item .desk-card-head { align-items:center; gap:6px; }
  #bulk-products-desk .bulk-fields { gap:13px 10px; }
  #bulk-products-desk .bulk-editor { margin-top:20px; }
  #bulk-products-desk .bulk-editor h2 { font-size:1.02rem; }
  #bulk-products-desk .bulk-editor>.fine { font-size:.72rem; margin:8px 0 14px; }
  #bulk-products-desk .bulk-counter { font-size:.69rem; }
  #bulk-products-desk .bulk-edit-actions,#bulk-products-desk .bulk-confirm-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.55fr); gap:8px; }
  #bulk-products-desk :is(.bulk-edit-actions,.bulk-confirm-actions) .btn { min-height:50px; font-size:.8rem; padding-inline:9px; border-radius:12px; }
  #bulk-products-desk .bulk-details summary { min-height:44px; padding-block:10px; }
  #bulk-products-desk .bulk-review-totals>div { padding-inline:12px; }
  #bulk-products-desk .bulk-review-totals dd { font-size:1.15rem; }
}
@media(max-width:360px) {
  .product-fieldset .pair { grid-template-columns:minmax(0,1fr); }
  #bulk-products-desk .bulk-fields { grid-template-columns:minmax(0,1fr); }
  .product-fieldset .clearance-switch small,#bulk-products-desk .clearance-switch small { display:block; margin-left:0; }
}
