.category-list{display:none}.category-list:target{display:block}main:has(.category-list:target)>:not(.category-list){display:none}.category-list-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:5px 0 31px;border-bottom:1px solid var(--line)}.category-list-heading h1{font:700 31px 'Plus Jakarta Sans';margin:0 0 9px}.category-list-heading p:not(.eyebrow){margin:0;color:#888394;font-size:13px}.sealed-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr)) auto;gap:12px;align-items:end;margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px}.sealed-filter-bar label{margin:0;color:#5f596c;font:700 11px 'DM Sans'}.sealed-filter-bar select{margin-top:7px;border:1px solid #dfdbe8;border-radius:8px;padding:10px;font:600 12px 'DM Sans';color:#2c2837}.clear-filters{border:1px solid #ded9eb;border-radius:8px;background:#f7f5fb;color:#625c6f;padding:10px 12px;font:700 12px 'DM Sans';cursor:pointer}.clear-filters:hover{background:#f0edfb}.product-table-wrap{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto}.product-table-wrap table{width:100%;border-collapse:collapse;min-width:1530px}.product-table-wrap th{background:#faf9fc;color:#8c8799;font-size:10px;letter-spacing:.7px;text-transform:uppercase;text-align:left;padding:13px;border-bottom:1px solid var(--line)}.sort-button{border:0;background:transparent;color:#6b6380;font:800 10px 'DM Sans';letter-spacing:.7px;text-transform:uppercase;padding:0;cursor:pointer;text-align:left}.sort-button:hover{color:#5c4dd5}.product-table-wrap td{font-size:12px;padding:15px 13px;border-bottom:1px solid #f0eef4;vertical-align:top}.sealed-product-photo{width:58px;height:58px;border-radius:10px;border:1px solid #e7e2f0;background:#faf9fc;display:grid;place-items:center;overflow:hidden;color:#9a94a8;font-size:18px}.sealed-product-photo.has-image{cursor:pointer}.sealed-product-photo img{width:100%;height:100%;object-fit:cover}.edit-image-preview{grid-column:1/-1;width:100%;height:130px;border:1px dashed #d7d1e4;border-radius:10px;background:#faf9fc;display:grid;place-items:center;overflow:hidden;color:#8c8799;font-size:12px}.edit-image-preview img{width:100%;height:100%;object-fit:contain}.photo-viewer-dialog{border:0;border-radius:18px;width:min(860px,calc(100% - 28px));padding:0;box-shadow:0 30px 70px rgba(22,18,45,.42)}.photo-viewer-dialog::backdrop{background:rgba(17,14,34,.74)}.photo-viewer-dialog form{padding:22px;position:relative}.photo-viewer-dialog img{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:12px auto 0;border-radius:12px;background:#faf9fc}.photo-viewer-dialog h2{font:700 20px 'Plus Jakarta Sans';margin:0 34px 0 0}.photo-viewer-dialog .close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#777083;font-size:28px;cursor:pointer}.empty-row td{text-align:center;color:#9691a1;padding:34px}.standalone-list{display:block}main.standalone{width:100%;max-width:1420px;margin:0;padding:38px 58px 60px}.row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:220px}.row-actions button{border:1px solid #ded9eb;border-radius:7px;background:#fff;color:#5c4dd5;padding:6px 8px;font:700 11px 'DM Sans';cursor:pointer}.row-actions button:hover{background:#f2efff}.row-actions .delete{color:#ba3a55;border-color:#f0cbd4}.row-actions .delete:hover{background:#fff1f4}.row-actions .sell{color:#17825b;border-color:#bee5d5}.row-actions .sell:hover{background:#effbf5}.row-actions .trade{color:#9a6200;border-color:#f1d79e}.row-actions .trade:hover{background:#fff8e8}.product-edit-dialog{border:0;border-radius:16px;width:min(690px,calc(100% - 30px));padding:0;box-shadow:0 25px 60px #1c173342}.product-edit-dialog::backdrop{background:#17132877}.product-edit-dialog form{position:relative;padding:30px}.product-edit-dialog .close{position:absolute;right:17px;top:14px;border:0;background:transparent;color:#777083;font-size:25px;cursor:pointer}.edit-form-heading h2{margin:3px 0 20px;font:700 23px 'Plus Jakarta Sans'}.edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.edit-fields label{display:grid;gap:6px;color:#5f596c;font:700 12px 'DM Sans'}.edit-fields input,.edit-fields textarea{width:100%;box-sizing:border-box;border:1px solid #dfdbe8;border-radius:8px;padding:9px;color:#2c2837;font:400 13px 'DM Sans'}.edit-fields textarea{min-height:72px;resize:vertical}.edit-fields .wide{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.dialog-actions button{border-radius:8px;padding:10px 13px;font:700 12px 'DM Sans';cursor:pointer}.dialog-actions .cancel{border:1px solid #dfdbe8;background:#fff;color:#625c6f}.dialog-actions .save{border:0;background:#6856e7;color:#fff}@media(max-width:760px){.sealed-filter-bar{grid-template-columns:1fr}.clear-filters{width:100%}}@media(max-width:600px){main.standalone{padding:24px 20px}.category-list-heading{gap:15px;flex-direction:column}.edit-fields{grid-template-columns:1fr}.edit-fields .wide{grid-column:auto}.product-edit-dialog form{padding:25px 20px}}

.mobile-product-list{display:none}
@media(max-width:700px){
  .product-table-wrap{display:none}
  .mobile-product-list{display:grid;gap:14px;margin-top:16px}
  .mobile-product-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(50,38,84,.07)}
  .mobile-product-top{display:flex;gap:12px;align-items:center}
  .mobile-product-photo{width:82px;height:82px;border:1px solid #e7e2f0;border-radius:14px;background:#faf9fc;color:#9a94a8;display:grid;place-items:center;overflow:hidden;font-size:24px;flex:0 0 auto}
  .mobile-product-photo.has-image{cursor:pointer}
  .mobile-product-photo img{width:100%;height:100%;object-fit:cover}
  .mobile-product-title strong{display:block;font:800 17px 'Plus Jakarta Sans',sans-serif;color:#201d35;line-height:1.15}
  .mobile-product-title small{display:block;margin-top:6px;color:#817e93;font-size:12px;line-height:1.35}
  .mobile-product-badges{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
  .mobile-product-badges span{background:#f0efff;color:#5746df;border-radius:999px;padding:6px 9px;font:800 11px 'DM Sans',sans-serif}
  .mobile-product-values{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
  .mobile-product-values div{background:#faf9fc;border:1px solid #efecf5;border-radius:12px;padding:10px}
  .mobile-product-values small{display:block;color:#918da0;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;margin-bottom:4px}
  .mobile-product-values b{font:800 14px 'Plus Jakarta Sans',sans-serif;color:#201d35}
  .mobile-product-details{margin-top:12px;border-top:1px solid #f0eef4;padding-top:10px}
  .mobile-product-details summary{cursor:pointer;color:#6554e8;font:800 12px 'DM Sans',sans-serif}
  .mobile-product-details p{margin:8px 0 0;color:#5f596c;font-size:12px;line-height:1.4}
  .mobile-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
  .mobile-product-actions button{border:1px solid #ded9eb;border-radius:10px;background:#fff;color:#5c4dd5;padding:11px 9px;font:800 12px 'DM Sans',sans-serif}
  .mobile-product-actions .sell{color:#17825b;border-color:#bee5d5;background:#effbf5}
  .mobile-product-actions .trade{color:#9a6200;border-color:#f1d79e;background:#fff8e8}
  .mobile-product-actions .delete{color:#ba3a55;border-color:#f0cbd4;background:#fff1f4}
  .mobile-empty-card{background:#fff;border:1px dashed #d7d1e4;border-radius:14px;padding:24px;text-align:center;color:#918da0;font-weight:700}
  .sealed-filter-bar{margin-top:14px}
}

/* FM 2.0 — Step 3: filtri inventario sealed */
body.pv-v2 .sealed-filter-bar{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto!important;gap:14px!important;align-items:end!important;margin-top:20px!important;padding:18px!important;border:1px solid #e1e5ea!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 20px rgba(7,28,53,.045)!important;position:relative!important;overflow:hidden!important}
body.pv-v2 .sealed-filter-bar:before{content:'FILTRI INVENTARIO';grid-column:1/-1;display:block;margin:-1px 0 0;color:#9a7628;font:800 9px/1 'DM Sans',sans-serif;letter-spacing:.15em;text-transform:uppercase}
body.pv-v2 .sealed-filter-bar:after{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#d8a73d,#efc45e)}
body.pv-v2 .sealed-filter-bar label{display:block!important;margin:0!important;color:#5e6d7f!important;font:700 10px/1.2 'DM Sans',sans-serif!important;letter-spacing:.055em!important;text-transform:uppercase!important}
body.pv-v2 .sealed-filter-bar select{appearance:none!important;-webkit-appearance:none!important;width:100%!important;min-height:46px!important;margin-top:8px!important;padding:0 40px 0 13px!important;border:1px solid #dce2e8!important;border-radius:11px!important;background-color:#fbfcfe!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352647a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 13px center!important;color:#18304b!important;font:700 12.5px/1 'DM Sans',sans-serif!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease!important}
body.pv-v2 .sealed-filter-bar select:hover{border-color:#bdc9d5!important;background-color:#fff!important}
body.pv-v2 .sealed-filter-bar select:focus{outline:0!important;border-color:#c99a31!important;box-shadow:0 0 0 3px rgba(216,167,61,.16)!important;background-color:#fff!important}
body.pv-v2 .clear-filters{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:46px!important;padding:0 15px!important;border:1px solid #d8dee5!important;border-radius:11px!important;background:#f8fafc!important;color:#43566d!important;font:700 12px/1 'DM Sans',sans-serif!important;white-space:nowrap!important;box-shadow:none!important;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important}
body.pv-v2 .clear-filters:before{content:'×';display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#e9eef4;color:#52677e;font:800 14px/1 'DM Sans',sans-serif}
body.pv-v2 .clear-filters:hover{transform:translateY(-1px)!important;background:#fff9eb!important;border-color:#d9b45d!important;color:#7e5a13!important}
body.pv-v2 .clear-filters:hover:before{background:#f6e5b9;color:#8d6415}
@media(max-width:820px){body.pv-v2 .sealed-filter-bar{grid-template-columns:1fr 1fr!important}body.pv-v2 .clear-filters{grid-column:1/-1!important;width:100%!important}}
@media(max-width:600px){body.pv-v2 .sealed-filter-bar{grid-template-columns:1fr!important;padding:15px!important;border-radius:14px!important}body.pv-v2 .sealed-filter-bar:before{grid-column:1!important}body.pv-v2 .clear-filters{grid-column:1!important}}

/* FM 2.0 — Step 4: tabella prodotti sealed */
body.pv-v2 .product-table-wrap{margin-top:18px!important;border:1px solid #dfe4ea!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(7,28,53,.06)!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#b8c5d2 #f3f5f7}
body.pv-v2 .product-table-wrap::-webkit-scrollbar{height:10px;width:10px}
body.pv-v2 .product-table-wrap::-webkit-scrollbar-track{background:#f3f5f7;border-radius:999px}
body.pv-v2 .product-table-wrap::-webkit-scrollbar-thumb{background:#b8c5d2;border-radius:999px;border:2px solid #f3f5f7}
body.pv-v2 .product-table-wrap table{min-width:1600px!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important}
body.pv-v2 .product-table-wrap thead{position:relative;z-index:3}
body.pv-v2 .product-table-wrap th{position:sticky!important;top:0!important;z-index:4!important;padding:14px 13px!important;background:linear-gradient(180deg,#0b2a49 0%,#081f38 100%)!important;color:#dce6ef!important;border-bottom:2px solid #d8a73d!important;font:800 9.5px/1.25 'DM Sans',sans-serif!important;letter-spacing:.085em!important;text-transform:uppercase!important;white-space:nowrap!important;box-shadow:none!important}
body.pv-v2 .product-table-wrap th:first-child{padding-left:16px!important}
body.pv-v2 .product-table-wrap th:last-child{position:sticky!important;right:0!important;z-index:6!important;min-width:255px!important;box-shadow:-10px 0 18px rgba(5,24,45,.11)!important}
body.pv-v2 .sort-button{display:inline-flex!important;align-items:center!important;gap:5px!important;border:0!important;background:transparent!important;color:#dce6ef!important;font:800 9.5px/1.25 'DM Sans',sans-serif!important;letter-spacing:.085em!important;text-transform:uppercase!important;padding:0!important;white-space:nowrap!important;cursor:pointer!important}
body.pv-v2 .sort-button:hover{color:#f0c45a!important}
body.pv-v2 .sort-button[data-direction="asc"],body.pv-v2 .sort-button[data-direction="desc"]{color:#f0c45a!important}
body.pv-v2 .product-table-wrap td{padding:14px 13px!important;background:#fff!important;color:#394b60!important;border-bottom:1px solid #e9edf1!important;font:600 11.5px/1.45 'DM Sans',sans-serif!important;vertical-align:middle!important;transition:background .15s ease,color .15s ease!important}
body.pv-v2 .product-table-wrap tbody tr:nth-child(even) td{background:#fbfcfd!important}
body.pv-v2 .product-table-wrap tbody tr:hover td{background:#fff8e8!important;color:#233a53!important}
body.pv-v2 .product-table-wrap tbody tr:last-child td{border-bottom:0!important}
body.pv-v2 .product-table-wrap td:nth-child(2),body.pv-v2 .product-table-wrap td:nth-child(3),body.pv-v2 .product-table-wrap td:nth-child(4),body.pv-v2 .product-table-wrap td:nth-child(5){color:#52677d!important}
body.pv-v2 .product-table-wrap td:nth-child(7){min-width:190px!important;color:#122d49!important;font:800 12.5px/1.35 'Plus Jakarta Sans',sans-serif!important}
body.pv-v2 .product-table-wrap td:nth-child(8){text-align:center!important;color:#102d4a!important;font:800 13px/1 'Plus Jakarta Sans',sans-serif!important}
body.pv-v2 .product-table-wrap td:nth-child(10),body.pv-v2 .product-table-wrap td:nth-child(11),body.pv-v2 .product-table-wrap td:nth-child(12),body.pv-v2 .product-table-wrap td:nth-child(13){font-variant-numeric:tabular-nums!important;white-space:nowrap!important;font-weight:800!important}
body.pv-v2 .product-table-wrap td:nth-child(10),body.pv-v2 .product-table-wrap td:nth-child(11){color:#52667b!important}
body.pv-v2 .product-table-wrap td:nth-child(12),body.pv-v2 .product-table-wrap td:nth-child(13){color:#806019!important}
body.pv-v2 .product-table-wrap td:last-child{position:sticky!important;right:0!important;z-index:2!important;min-width:255px!important;background:#fff!important;box-shadow:-10px 0 18px rgba(7,28,53,.055)!important}
body.pv-v2 .product-table-wrap tbody tr:nth-child(even) td:last-child{background:#fbfcfd!important}
body.pv-v2 .product-table-wrap tbody tr:hover td:last-child{background:#fff8e8!important}
body.pv-v2 .sealed-product-photo{width:66px!important;height:66px!important;border:1px solid #dce3ea!important;border-radius:14px!important;background:linear-gradient(135deg,#fff,#f4f6f8)!important;color:#8a9bad!important;font-size:20px!important;box-shadow:0 5px 13px rgba(7,28,53,.07)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
body.pv-v2 .sealed-product-photo.has-image:hover{transform:translateY(-2px) scale(1.025)!important;border-color:#d6ad52!important;box-shadow:0 9px 18px rgba(7,28,53,.12)!important}
body.pv-v2 .sealed-product-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
body.pv-v2 .row-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;min-width:0!important;white-space:nowrap!important}
body.pv-v2 .row-actions button{min-height:31px!important;padding:0 9px!important;border:1px solid #d6dee6!important;border-radius:9px!important;background:#f7f9fb!important;color:#173a5c!important;font:800 10px/1 'DM Sans',sans-serif!important;white-space:nowrap!important;box-shadow:none!important;transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease!important}
body.pv-v2 .row-actions button:hover{transform:translateY(-1px)!important;background:#edf3f8!important;border-color:#b9c8d6!important;color:#0d2c49!important}
body.pv-v2 .row-actions .sell{background:#edf8f3!important;border-color:#b9dfce!important;color:#227454!important}
body.pv-v2 .row-actions .sell:hover{background:#e3f4ec!important;border-color:#91cfb4!important;color:#175d41!important}
body.pv-v2 .row-actions .trade{background:#fff7e4!important;border-color:#ead197!important;color:#8a6415!important}
body.pv-v2 .row-actions .trade:hover{background:#fceed0!important;border-color:#d8b75d!important;color:#6f500f!important}
body.pv-v2 .row-actions .delete{background:#fff3f5!important;border-color:#eccbd2!important;color:#a94458!important}
body.pv-v2 .row-actions .delete:hover{background:#ffe9ed!important;border-color:#dfa8b3!important;color:#8e2f43!important}
body.pv-v2 .empty-row td{padding:42px!important;text-align:center!important;color:#7b8998!important;font:700 12px/1.4 'DM Sans',sans-serif!important;background:#fbfcfd!important}
@media(max-width:700px){body.pv-v2 .product-table-wrap{display:none!important}}
