:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#172033;background:#f4f6f9}*{box-sizing:border-box}body{margin:0}.top{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 24px;background:#111827;color:white;position:sticky;top:0;z-index:10}.brand{font-weight:800}.top nav{display:flex;gap:14px;flex-wrap:wrap}.top a{color:#fff;text-decoration:none;font-size:14px}.wrap{max-width:1500px;margin:24px auto;padding:0 18px}.card{background:#fff;border-radius:12px;padding:18px;margin-bottom:18px;box-shadow:0 2px 14px rgba(15,23,42,.06)}.grid{display:grid;gap:14px}.grid.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols4{grid-template-columns:repeat(4,minmax(0,1fr))}label{font-size:13px;font-weight:650;display:block;margin-bottom:5px}input,select,textarea{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}textarea{min-height:110px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.btn{display:inline-block;border:0;border-radius:8px;padding:9px 13px;background:#1f5eff;color:#fff;text-decoration:none;cursor:pointer;font-weight:650}.btn.secondary{background:#475569}.btn.danger{background:#b91c1c}.btn.good{background:#047857}.muted{color:#64748b}.small{font-size:12px}.tablewrap{overflow:auto;background:white;border-radius:12px;box-shadow:0 2px 14px rgba(15,23,42,.06)}table{border-collapse:collapse;width:100%;min-width:1180px}th,td{padding:9px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top;font-size:13px}th{background:#f8fafc;position:static}.num{text-align:right;white-space:nowrap}.badge{display:inline-block;padding:3px 7px;border-radius:999px;font-size:11px;background:#e2e8f0}.badge.ok{background:#d1fae5;color:#065f46}.badge.warn{background:#fef3c7;color:#92400e}.badge.err{background:#fee2e2;color:#991b1b}.flash{padding:11px 14px;border-radius:8px;margin-bottom:14px;background:#dbeafe}.flash.error{background:#fee2e2}.flash.success{background:#d1fae5}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.kpi{background:#fff;padding:14px;border-radius:10px}.kpi b{display:block;font-size:22px}.code{max-height:180px;overflow:auto;background:#0f172a;color:#e2e8f0;padding:10px;border-radius:8px;white-space:pre-wrap}.right{text-align:right}footer{text-align:center;color:#64748b;padding:30px}@media(max-width:900px){.grid.cols2,.grid.cols4,.filters{grid-template-columns:1fr}.top{align-items:flex-start;flex-direction:column}th{position:static}}
.tablewrap input,.tablewrap select{min-width:120px}h1,h2{line-height:1.2}
.product-gallery{display:flex;gap:7px;align-items:center;min-width:74px}.image-thumb{position:relative;width:68px;height:68px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 1px 4px rgba(15,23,42,.08)}.image-open{display:block;width:100%;height:100%}.image-thumb img{display:block;width:100%;height:100%;object-fit:contain;padding:4px;transition:transform .18s ease,filter .18s ease}.image-thumb:hover img,.image-thumb:focus-within img{transform:scale(1.07);filter:brightness(.78)}.image-download{position:absolute;left:5px;right:5px;bottom:5px;padding:5px 4px;border-radius:7px;background:rgba(15,23,42,.9);color:#fff;text-decoration:none;text-align:center;font-size:10px;font-weight:750;line-height:1.1;opacity:0;transform:translateY(5px);transition:opacity .18s ease,transform .18s ease;z-index:2}.image-thumb:hover .image-download,.image-thumb:focus-within .image-download{opacity:1;transform:translateY(0)}@media(hover:none){.image-download{opacity:1;transform:none;background:rgba(15,23,42,.84)}.image-thumb img{padding-bottom:22px}}

/* Product image hard sizing + hover controls */
.product-gallery{display:flex;gap:7px;align-items:center;flex-wrap:nowrap;min-width:68px;max-width:150px}.product-gallery .image-thumb{position:relative;flex:0 0 68px;width:68px!important;height:68px!important;min-width:68px;max-width:68px;min-height:68px;max-height:68px;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.product-gallery .image-open{display:block;width:68px!important;height:68px!important;overflow:hidden}.product-gallery .image-thumb img{display:block!important;width:68px!important;height:68px!important;max-width:68px!important;max-height:68px!important;object-fit:contain!important;padding:4px!important;margin:0!important}.product-gallery .image-thumb:hover img,.product-gallery .image-thumb:focus-within img{transform:scale(1.04);filter:brightness(.72)}.product-gallery .image-download{display:flex;align-items:center;justify-content:center;position:absolute;inset:auto 4px 4px 4px;min-height:24px;padding:4px;border-radius:6px;background:rgba(15,23,42,.92);color:#fff;text-decoration:none;font-size:10px;font-weight:750;line-height:1;opacity:0;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease;z-index:5}.product-gallery .image-thumb:hover .image-download,.product-gallery .image-thumb:focus-within .image-download{opacity:1;transform:none}.tablewrap td:nth-child(2){width:160px;max-width:160px}.tablewrap td:nth-child(2) img{max-width:68px!important;max-height:68px!important}@media(hover:none){.product-gallery .image-download{opacity:1;transform:none}.product-gallery .image-thumb img{padding-bottom:24px!important}}

/* Galerie produse - popup cu toate imaginile */
.product-gallery{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:104px;max-width:120px}
.product-gallery .image-open{display:block;width:68px!important;height:68px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;cursor:pointer;overflow:hidden}
.gallery-launch{width:100%;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;padding:5px 7px;font-size:10px;font-weight:750;line-height:1.15;cursor:pointer;text-align:center;white-space:normal}
.gallery-launch:hover,.gallery-launch:focus{border-color:#64748b;background:#f8fafc;color:#0f172a}
.tablewrap td:nth-child(2){width:132px;max-width:132px}
body.gallery-modal-open{overflow:hidden}
.gallery-modal{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:22px}
.gallery-modal.open{display:flex}
.gallery-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(2px)}
.gallery-dialog{position:relative;z-index:1;width:min(1040px,96vw);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.35);overflow:hidden}
.gallery-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 52px 15px 18px;border-bottom:1px solid #e5e7eb}
.gallery-head #galleryTitle{display:block;max-width:620px;font-size:16px;line-height:1.25}
.gallery-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.gallery-close{position:absolute;right:12px;top:10px;z-index:4;width:36px;height:36px;border:0;border-radius:50%;background:#eef2f7;color:#0f172a;font-size:27px;line-height:32px;cursor:pointer}
.gallery-close:hover{background:#e2e8f0}
.gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:440px;max-height:68vh;padding:18px 58px;background:#f8fafc}
.gallery-stage>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:400px}
.gallery-stage img{display:block;max-width:100%;max-height:60vh;width:auto;height:auto;object-fit:contain;background:#fff;border-radius:10px}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:10px;background:rgba(255,255,255,.94);font-size:34px;color:#334155;cursor:pointer;box-shadow:0 4px 15px rgba(15,23,42,.12)}
.gallery-nav:hover{background:#fff;color:#0f172a}.gallery-prev{left:12px}.gallery-next{right:12px}
.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:12px 16px 16px;border-top:1px solid #e5e7eb;background:#fff}
.gallery-thumb-button{flex:0 0 72px;width:72px;height:72px;padding:3px;border:2px solid transparent;border-radius:9px;background:#fff;cursor:pointer;overflow:hidden}
.gallery-thumb-button.active{border-color:#1f5eff}.gallery-thumb-button img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:700px){.gallery-modal{padding:8px}.gallery-dialog{width:100%;max-height:96vh}.gallery-head{align-items:flex-start;flex-direction:column;padding:12px 48px 12px 12px}.gallery-actions{justify-content:flex-start}.gallery-actions .btn{font-size:12px;padding:7px 9px}.gallery-stage{min-height:300px;padding:12px 44px}.gallery-stage>a{min-height:280px}.gallery-stage img{max-height:54vh}.gallery-nav{width:34px;height:46px}.gallery-prev{left:5px}.gallery-next{right:5px}}


/* Stoc - status vizual pentru oferta B2B */
.stock-cell{min-width:132px;vertical-align:middle!important}
.stock-card{display:inline-flex;flex-direction:column;gap:3px;min-width:116px;padding:7px 9px;border:1px solid transparent;border-radius:10px;line-height:1.15;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.stock-label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;white-space:nowrap}
.stock-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.7)}
.stock-meta{font-size:10.5px;font-weight:650;opacity:.78;white-space:nowrap;padding-left:13px}
.stock-card-ok{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
.stock-card-low{color:#b45309;background:#fff7ed;border-color:#fed7aa}
.stock-card-out{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.stock-card-out .stock-label{letter-spacing:.01em}
@media(max-width:700px){.stock-card{min-width:108px;padding:6px 8px}.stock-label{font-size:11px}.stock-meta{font-size:10px}}

/* Compact catalog pricing columns: keep VAT notes visible without forcing horizontal scroll. */
.catalog-table{width:100%;min-width:0!important;table-layout:auto}
.catalog-table th,.catalog-table td{padding:7px 7px;font-size:12px}
.catalog-table th.num{white-space:normal;line-height:1.15;min-width:82px}
.catalog-table td.num{white-space:nowrap}
.catalog-table .price-head-note{display:block;margin-top:2px;font-size:9.5px;font-weight:600;line-height:1.05;color:#64748b;white-space:normal}
.catalog-table .price-cell{min-width:92px}
.catalog-table .price-meta{margin-top:3px;font-size:9.5px;line-height:1.05;color:#64748b;white-space:normal;max-width:105px;margin-left:auto}
.catalog-table th:nth-child(3),.catalog-table td:nth-child(3){white-space:nowrap;width:82px}
.catalog-table th:nth-child(5),.catalog-table td:nth-child(5){white-space:nowrap;width:108px}
.catalog-table th:nth-child(7),.catalog-table td:nth-child(7){width:76px}
.catalog-table th:nth-child(8),.catalog-table td:nth-child(8){width:104px}
.catalog-table th:nth-child(9),.catalog-table td:nth-child(9){width:94px}
.catalog-table .stock-cell{min-width:112px}
@media(min-width:901px){.catalog-table th:first-child,.catalog-table td:first-child{min-width:175px}.catalog-table th:nth-child(4),.catalog-table td:nth-child(4){min-width:130px;max-width:175px}.catalog-table th:nth-child(11),.catalog-table td:nth-child(11){max-width:92px}}

/* Catalog row polish: clearer product blocks and balanced alignment */
.catalog-table tbody tr{background:#fff;transition:background-color .15s ease}
.catalog-table tbody tr:hover{background:#fbfdff}
.catalog-table tbody tr td{vertical-align:middle!important;border-bottom:2px solid #d9e1ea;padding-top:12px;padding-bottom:12px}
.catalog-table tbody tr:last-child td{border-bottom:0}

/* Keep descriptive text left-aligned, center the scan-friendly data columns. */
.catalog-table tbody td:nth-child(1),
.catalog-table tbody td:nth-child(4),
.catalog-table tbody td:nth-child(12){text-align:left}
.catalog-table tbody td:nth-child(2),
.catalog-table tbody td:nth-child(3),
.catalog-table tbody td:nth-child(5),
.catalog-table tbody td:nth-child(6),
.catalog-table tbody td:nth-child(7),
.catalog-table tbody td:nth-child(8),
.catalog-table tbody td:nth-child(9),
.catalog-table tbody td:nth-child(10),
.catalog-table tbody td:nth-child(11),
.catalog-table tbody td:nth-child(13){text-align:center}
.catalog-table tbody td.num{text-align:center!important}
.catalog-table tbody .product-gallery{margin-left:auto;margin-right:auto;align-items:center}
.catalog-table tbody .price-meta{margin-left:auto;margin-right:auto;text-align:center}
.catalog-table tbody .stock-card{margin-left:auto;margin-right:auto;text-align:left}
.catalog-table tbody td:nth-child(11){line-height:1.3}
.catalog-table tbody td:nth-child(13) .btn{white-space:nowrap}

/* A subtle rhythm between products without adding width. */
.catalog-table tbody tr:nth-child(even){background:#fcfdff}
.catalog-table tbody tr:nth-child(even):hover{background:#f8fbff}

/* 2026-09-24: descriere HTML lazy-load, utilizatori si comenzi */
.span2{grid-column:1/-1}.registration-card{max-width:860px;margin-left:auto;margin-right:auto}.checkline{display:flex;gap:8px;align-items:center;margin-top:28px}.checkline input{width:auto}.inline-number{margin-top:6px;max-width:110px}.small-btn{padding:6px 9px!important;font-size:11px!important}.badge-ok{display:inline-flex;padding:4px 7px;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:750}
.quick-order{margin-top:7px}.quick-order-btn,.code-button{border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;padding:5px 8px;font-size:10.5px;font-weight:750;line-height:1.1;cursor:pointer}.quick-order-btn:hover,.code-button:hover{border-color:#64748b;background:#f8fafc;color:#0f172a}.cart-qty{width:72px!important;min-width:72px!important;text-align:center}.order-submit{font-size:14px;padding:10px 16px}.empty-state{text-align:center;padding:34px}
.order-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;border:1px solid transparent;font-size:11px;font-weight:800;white-space:nowrap}.order-status.new{background:#fff7ed;border-color:#fed7aa;color:#b45309}.order-status.seen{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.order-status.processing{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}.order-status.completed{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.order-status.cancelled{background:#fef2f2;border-color:#fecaca;color:#b91c1c}

body.description-modal-open{overflow:hidden}.description-modal{display:none;position:fixed;inset:0;z-index:1100;align-items:center;justify-content:center;padding:22px}.description-modal.open{display:flex}.description-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(2px)}.description-dialog{position:relative;z-index:1;width:min(1050px,96vw);max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.35);overflow:hidden}.description-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 54px 15px 18px;border-bottom:1px solid #e5e7eb}.description-close{position:absolute;right:12px;top:10px;z-index:4;width:36px;height:36px;border:0;border-radius:50%;background:#eef2f7;color:#0f172a;font-size:27px;line-height:32px;cursor:pointer}.description-close:hover{background:#e2e8f0}.description-body{overflow:auto;min-height:260px;max-height:72vh;background:#0f172a}.description-code{margin:0!important;padding:20px!important;min-height:260px;white-space:pre-wrap!important;word-break:break-word;color:#e2e8f0!important;background:#0f172a!important;border:0!important;border-radius:0!important;font-size:12px;line-height:1.55}
@media(max-width:700px){.description-modal{padding:8px}.description-dialog{width:100%;max-height:96vh}.description-head{align-items:flex-start;flex-direction:column;padding:12px 48px 12px 12px}.span2{grid-column:auto}}

/* Brand filter + selectie produse pentru comanda B2B */
.filters{grid-template-columns:2fr repeat(4,minmax(105px,1fr)) auto}
.bulk-order-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;background:#f8fafc;border:1px solid #dbe3ec;border-radius:10px;position:sticky;top:58px;z-index:6;box-shadow:0 2px 8px rgba(15,23,42,.05)}
.bulk-select-all{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:750;color:#334155;cursor:pointer}
.bulk-select-all input{width:16px!important;height:16px!important;min-width:16px!important;margin:0}
.bulk-selected-count{font-size:11px;font-weight:700;color:#64748b;min-width:72px}
.bulk-order-bar .btn{padding:7px 10px;font-size:11px}
.order-inline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px;padding-top:6px;border-top:1px dashed #dbe3ec}
.order-pick{display:inline-flex;align-items:center;gap:4px;margin:0;font-size:10.5px;font-weight:750;color:#334155;cursor:pointer}
.order-pick input{width:15px!important;height:15px!important;min-width:15px!important;margin:0}
.order-qty-label{display:inline-flex;align-items:center;gap:4px;margin:0;font-size:9.5px;font-weight:650;color:#64748b}
.order-qty{width:54px!important;min-width:54px!important;height:29px;padding:4px 5px!important;text-align:center;font-size:11px}
.order-inline .quick-order-btn{padding:6px 8px;font-size:10px;background:#f8fafc}
.order-stock-hint{margin-top:3px;font-size:9px;color:#94a3b8;line-height:1.15}
.order-unavailable{margin-top:6px;font-size:9.5px;font-weight:700;color:#94a3b8}
@media(max-width:1100px){.filters{grid-template-columns:2fr repeat(2,minmax(120px,1fr));}.filters .btn{align-self:end}}
@media(max-width:700px){.filters{grid-template-columns:1fr}.bulk-order-bar{position:static}.bulk-order-bar .btn{flex:1 1 auto}.order-inline{gap:5px}}

/* 2026-09-24: discount cantitate, lichidare de stoc, comanda minima */
.clearance-filter-btn{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border:1px solid #fecaca;border-radius:9px;background:#fff1f2;color:#b91c1c;font-size:11px;font-weight:850;text-decoration:none;box-shadow:0 1px 2px rgba(185,28,28,.06)}
.clearance-filter-btn:hover,.clearance-filter-btn.active{background:#b91c1c;border-color:#b91c1c;color:#fff}
.clearance-badge{display:inline-flex;align-items:center;gap:6px;margin:0 0 6px;padding:4px 7px;border:1px solid #ef4444;border-radius:7px;background:#fff1f2;color:#b91c1c;font-size:9px;font-weight:900;letter-spacing:.035em;line-height:1;box-shadow:0 1px 2px rgba(185,28,28,.08)}
.clearance-badge span{padding-left:6px;border-left:1px solid #fca5a5;font-size:8.5px}
.catalog-table tbody tr.clearance-row td{background-image:linear-gradient(90deg,rgba(254,242,242,.62),rgba(255,255,255,0) 24%)}
.catalog-table tbody tr.clearance-row:hover td{background-color:#fffafb}
.volume-offer{display:inline-block;margin-top:5px;padding:4px 6px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:9px;font-weight:800;line-height:1.25}
.volume-discount-applied{display:inline-flex;padding:4px 7px;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;color:#047857;font-size:10px;font-weight:850;white-space:nowrap}
.order-minimum-warning,.order-free-shipping{margin:12px 0;padding:12px 14px;border-radius:10px;font-size:12px;line-height:1.45}
.order-minimum-warning{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412}
.order-free-shipping{border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}
.order-submit:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.2)}
@media(max-width:700px){.clearance-filter-btn{width:100%;justify-content:center}.clearance-badge{font-size:8.5px}.volume-offer{font-size:8.5px}}
.stock-card-order{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.stock-card-preorder{color:#7e22ce;background:#faf5ff;border-color:#e9d5ff}
