/* Product catalogue: one aligned grid, scoped to this page. */
.product-catalog{--catalog-ink:#2e4f69;--catalog-line:#dfe7ee;--catalog-muted:#7990a2;min-width:0;max-width:100%;margin-inline:auto}.catalog-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 30px;border:1px solid #d9e5ee;border-radius:18px;background:radial-gradient(ellipse at 100% 0,#deebf5,transparent 65%),linear-gradient(115deg,#f1f6fa,#f9fbfc);margin-bottom:16px}.catalog-hero-copy{min-width:0}.catalog-eyebrow{display:flex;align-items:center;gap:8px;color:#68849b;font-size:9px;font-weight:700;letter-spacing:1.6px}.catalog-eyebrow i{font-size:18px}.catalog-hero h2{color:var(--catalog-ink);font-size:25px;letter-spacing:-.6px;line-height:1.5;margin:9px 0 7px}.catalog-hero p{font-size:12px;line-height:1.8;color:#748a9b}.catalog-hero-actions{display:flex;gap:9px;flex-shrink:0;flex-wrap:wrap;justify-content:center}.catalog-hero-actions .btn{min-height:44px;font-size:11px}.catalog-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.catalog-metric{display:flex;align-items:center;gap:13px;border:1px solid var(--catalog-line);background:#fff;border-radius:13px;padding:17px 20px;min-width:0}.catalog-metric-icon{width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#edf4fa;color:#577f9d;display:grid;place-items:center;font-size:21px}.catalog-metric:nth-child(2) .catalog-metric-icon{background:#edf5f1;color:#608d78}.catalog-metric:nth-child(3) .catalog-metric-icon{background:#f7f2e9;color:#ab8a58}.catalog-metric:nth-child(4) .catalog-metric-icon{background:#f0f1f7;color:#7e87a1}.catalog-metric>div{min-width:0}.catalog-metric>div>span{display:block;font-size:10px;color:#7890a2;line-height:1.6}.catalog-metric strong{display:block;font-size:24px;color:#345a76;margin-top:3px;line-height:1.2}.product-catalog .catalog-directory{padding:24px;border-radius:18px}.catalog-directory-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.catalog-directory-head h2{font-size:17px;color:var(--catalog-ink);line-height:1.6}.catalog-directory-head p{font-size:11px;color:var(--catalog-muted);line-height:1.7;margin-top:4px}.catalog-total{border:1px solid #e0e9f1;color:#69859c;background:#f4f8fb;font-size:10px;border-radius:20px;padding:7px 11px;flex-shrink:0}.catalog-search-row{display:flex;gap:10px;align-items:center}.catalog-search-row .search-box{flex:1;min-width:0;max-width:none}.catalog-search-row .input{width:100%;min-height:46px;font-size:12px;background:#f7f9fb;border-color:#dce5ed}.catalog-search-row .btn{min-height:46px;flex-shrink:0}.catalog-filter-panel{background:#f8fafc;border:1px solid #e4ebf1;border-radius:12px;margin-top:12px}.catalog-filter-panel summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;color:#5d7c94;font-size:11px;font-weight:600;min-height:44px}.catalog-filter-panel summary::-webkit-details-marker{display:none}.catalog-filter-panel summary>span{display:flex;align-items:center;gap:7px}.catalog-filter-panel summary i{font-size:17px}.catalog-filter-panel[open] summary>i{transform:rotate(180deg)}.catalog-filter-panel summary b{display:grid;place-items:center;min-width:19px;height:19px;border-radius:6px;background:#e4edf5;color:#476d8a;font-size:10px}.catalog-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:2px 16px 16px}.catalog-filter-grid>.field{min-width:0}.catalog-filter-grid label{display:block;font-size:10px;color:#7990a2;text-align:start;margin-bottom:6px}.catalog-filter-grid .select{width:100%;max-width:100%;min-width:0;font-size:12px;background:#fff;min-height:43px}.catalog-results-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 0}.catalog-results-bar>span{font-size:11px;color:#7990a2}.catalog-result-tools{display:flex;gap:10px;align-items:center;min-width:0;max-width:100%}.catalog-result-tools>.select{font-size:11px;min-height:40px;width:190px;max-width:100%;background:#fff}.catalog-currency{display:flex;gap:3px;border:1px solid #e0e8ef;background:#f2f6f9;padding:3px;border-radius:9px}.catalog-currency button{font-family:inherit;font-weight:600;font-size:10px;cursor:pointer;padding:8px 10px;border:0;border-radius:6px;color:#8095a6;background:transparent;min-height:32px}.catalog-currency button.active{background:#fff;color:#3e6989;box-shadow:0 2px 5px #31516c10}.product-catalog .pgrid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;align-items:stretch}.product-catalog .pcard{min-width:0;box-shadow:none;border-radius:14px;border-color:#e1e8ee;animation:none;transition:border-color .18s,box-shadow .18s}.product-catalog .pcard:hover{transform:none;box-shadow:0 7px 23px #35587610;border-color:#b8cedd}.product-catalog .pcard-img{height:190px;background:#f5f7f9}.catalog-photo-button{width:100%;height:100%;display:block;position:relative;border:0;padding:10px;background:transparent;cursor:zoom-in}.product-catalog .pcard-img img{width:100%;height:100%;object-fit:contain}.catalog-photo-zoom{position:absolute;bottom:10px;inset-inline-end:10px;background:#ffffffec;border:1px solid #e3eaf0;border-radius:7px;width:29px;height:29px;display:grid;place-items:center;color:#7a95a9}.catalog-photo-button.image-missing{background:#eff3f6}.catalog-photo-placeholder{display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;height:100%;color:#a0b1bf;font-size:10px}.catalog-photo-placeholder i{font-size:34px}.product-catalog .pcard-img>.badge{left:auto;right:auto;inset-inline-end:9px;top:9px;font-size:8px;max-width:calc(100% - 18px);padding:4px 7px;border:1px solid #ffffffc0;line-height:1.4;text-align:center}.product-catalog .pcard-body{padding:15px;gap:0;min-width:0}.catalog-product-category{color:#8299ab;font-size:9px;font-weight:600;line-height:1.7;margin-bottom:4px;overflow-wrap:anywhere}.product-catalog .pcard-name{display:block!important;text-align:start;font-size:14px;line-height:1.6;color:#2f4c64;font-weight:700;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;margin:0 0 7px}.catalog-product-supplier{display:flex;align-items:center;gap:5px;font-size:10px;color:#93a3b1;line-height:1.7;overflow-wrap:anywhere;margin-bottom:10px;min-width:0}.catalog-product-supplier i{flex-shrink:0}.product-catalog .pcard-meta{gap:5px;min-height:25px;margin-bottom:10px;align-content:start}.product-catalog .pcard-meta .badge{font-size:8px;padding:4px 7px}.product-catalog .pcard-prices{display:flex;flex-direction:column;gap:6px;margin-top:auto;padding-top:12px;border-top:1px solid #e7edf2}.product-catalog .pcard-prices .prow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0;padding:0}.product-catalog .pcard-prices .pl{font-size:9px;font-weight:500;flex-basis:auto;letter-spacing:0;text-transform:none;color:#93a5b3}.product-catalog .pcard-prices .pv{font-size:11px;font-weight:600;color:#617f95;overflow-wrap:anywhere}.product-catalog .pcard-prices .prow.main{padding:9px 10px;margin-bottom:3px;border-radius:8px;background:#f0f5f9}.product-catalog .pcard-prices .prow.main .pl{color:#718da1}.product-catalog .pcard-prices .prow.main .pv{font-size:17px;font-weight:700;color:#345d7a}.product-catalog .catalog-edit{margin-top:13px;width:100%;min-height:40px;font-size:11px;border-radius:9px;background:#fff;border-color:#dce6ef;color:#547b99}.catalog-empty{text-align:center;padding:44px 14px;color:#7b92a5}.catalog-empty>span{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:#f0f5f9;margin:0 auto 15px;font-size:28px;color:#7394ac}.catalog-empty h3{font-size:17px;color:#486a84;margin-bottom:9px}.catalog-empty p{font-size:12px;line-height:1.8;margin-bottom:18px}.product-catalog [hidden]{display:none!important}.catalog-preview{margin:auto;padding:20px;border:1px solid #dce5ed;border-radius:17px;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 28px);color:#365970;overflow:auto;background:#fff}.catalog-preview::backdrop{background:#182f44a8;backdrop-filter:blur(3px)}.catalog-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.catalog-preview-head h2{font-size:17px;line-height:1.7;overflow-wrap:anywhere}.catalog-preview>img{display:block;width:100%;max-height:70dvh;object-fit:contain;background:#f7f9fb;border-radius:10px}body:has(.catalog-preview[open]){overflow:hidden}
@media(max-width:1200px){.catalog-hero{flex-wrap:wrap}.catalog-hero-actions{flex-shrink:1}.catalog-metric{padding:15px;gap:10px}.catalog-metric-icon{width:34px;height:34px;font-size:18px}}
@media(max-width:960px){.product-catalog .catalog-directory{padding:18px}.catalog-hero{justify-content:center;text-align:center;padding:23px 18px;gap:16px}.catalog-eyebrow{justify-content:center}.catalog-hero h2{font-size:23px}.catalog-hero-actions{width:100%}.catalog-metric{justify-content:center;text-align:center;flex-direction:column;gap:8px}.catalog-metric>div>span{min-height:30px;display:flex;align-items:center;justify-content:center}.catalog-filter-grid label{text-align:center}.product-catalog .pgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-catalog .pcard-name,.catalog-product-category{text-align:center}.catalog-product-supplier,.product-catalog .pcard-meta{justify-content:center}.catalog-directory-head{justify-content:center;text-align:center;flex-wrap:wrap}.catalog-result-tools{flex-wrap:wrap;justify-content:center}.catalog-preview{padding:16px}.catalog-preview-head h2{font-size:15px}}
@media(max-width:600px){.catalog-hero{padding:20px 15px}.catalog-hero h2{font-size:21px}.catalog-hero p{font-size:11px}.catalog-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-hero-actions .btn{font-size:10px;padding:10px 8px}.catalog-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}.catalog-metric{flex-direction:row;justify-content:center;padding:13px 10px;gap:10px}.catalog-metric-icon{width:32px;height:32px;flex-basis:32px;border-radius:10px}.catalog-metric>div>span{font-size:9px;min-height:0}.catalog-metric strong{font-size:21px}.product-catalog .catalog-directory{padding:14px;border-radius:15px}.catalog-directory-head{gap:9px;margin-bottom:15px}.catalog-directory-head h2{font-size:16px}.catalog-search-row{gap:7px}.catalog-search-row .input{font-size:16px;min-height:46px;padding-inline-end:8px}.catalog-search-row .btn{padding:10px;min-width:44px}.catalog-search-row .btn span{display:none}.catalog-filter-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:4px 12px 14px}.catalog-filter-grid .select{font-size:16px;min-height:46px}.catalog-filter-panel summary{padding:12px}.catalog-results-bar{justify-content:center;gap:12px;padding:15px 0}.catalog-result-tools{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.catalog-result-tools>.select{font-size:11px;min-height:44px;width:100%;padding-inline:8px}.catalog-currency{justify-content:center}.catalog-currency button{padding:8px;min-height:36px}.product-catalog .pgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-catalog .pcard-img{height:145px}.catalog-photo-button{padding:8px}.catalog-photo-zoom{width:25px;height:25px;bottom:7px;inset-inline-end:7px}.product-catalog .pcard-body{padding:12px 9px}.product-catalog .pcard-name{font-size:12px;line-height:1.6;margin-bottom:6px}.catalog-product-category{font-size:8px}.catalog-product-supplier{font-size:9px;min-height:30px;text-align:center;flex-wrap:wrap;gap:3px;margin-bottom:7px}.product-catalog .pcard-meta{min-height:42px;align-content:start;margin-bottom:8px}.product-catalog .pcard-meta .badge{font-size:7px;padding:3px 5px}.product-catalog .pcard-prices .prow{gap:4px;justify-content:space-between;text-align:start}.product-catalog .pcard-prices .pl{font-size:8px;flex-basis:auto}.product-catalog .pcard-prices .pv{font-size:10px}.product-catalog .pcard-prices .prow.main{flex-direction:column;gap:5px;padding:8px 4px}.product-catalog .pcard-prices .prow.main .pv{font-size:16px}.product-catalog .catalog-edit{min-height:44px;font-size:10px;margin-top:10px}.catalog-empty{padding:30px 8px}.catalog-preview-head{align-items:start}.catalog-preview .icon-btn{width:44px;min-width:44px;height:44px}}
@media(max-width:359px){.catalog-metric{gap:6px;padding:12px 7px}.catalog-metric-icon{width:26px;height:26px;flex-basis:26px;font-size:16px}.catalog-metric>div>span{font-size:8px}.catalog-hero-actions{grid-template-columns:minmax(0,1fr)}.catalog-result-tools{grid-template-columns:minmax(0,1fr)}.catalog-currency button{flex:1}.product-catalog .pcard-img{height:120px}.product-catalog .pcard-body{padding:10px 7px}.product-catalog .pcard-prices .prow:not(.main){flex-direction:column;gap:2px}.product-catalog .pcard-name{font-size:11px}.product-catalog .pcard-meta .badge{font-size:7px}.catalog-preview{padding:12px}}
@media(prefers-reduced-motion:reduce){.product-catalog .pcard{transition:none}}

.catalog-photo-fallback{display:none;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#98aab9;font-size:10px;line-height:1.7;padding:10px}.catalog-photo-fallback>i{font-size:30px}.image-missing .catalog-photo-fallback{display:flex}.product-catalog .catalog-edit{display:flex;align-items:center;justify-content:center}
@media(max-width:600px){.catalog-result-tools{grid-template-columns:minmax(0,1fr)}.catalog-result-tools>.select{font-size:16px;min-height:46px;padding-inline:12px}.catalog-currency button{flex:1;min-height:38px;font-size:11px}.catalog-hero p{display:none}.catalog-hero{padding:17px 14px}.catalog-hero h2{margin-bottom:0}.catalog-metric{padding-block:11px}}

.catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin-top: 12px;
}

.catalog-card-actions .catalog-edit {
    flex: 1;
    width: auto;
    margin: 0;
}

.catalog-card-actions form {
    display: flex;
}

.catalog-card-actions button {
    color: #a63746;
    font-size: 11px;
    padding-inline: 10px;
}

.product-trash-header,
.product-trash-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-trash-header {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #dfe7ee;
    border-radius: 14px;
    background: #f8fbfd;
    color: #2e4f69;
}

.product-trash-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e8f0f6;
    font-size: 21px;
}

.product-trash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
    gap: 16px;
}

.product-trash-card,
.product-trash-empty {
    overflow: hidden;
    border: 1px solid #dfe7ee;
    border-radius: 14px;
    background: #fff;
}

.product-trash-card {
    display: flex;
    flex-direction: column;
}

.product-trash-photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #eef3f7;
    color: #8095a6;
    font-size: 32px;
}

.product-trash-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    background: #eef3f7;
}

.product-trash-photo img[hidden] {
    display: none;
}

.product-trash-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    color: #2e4f69;
}

.product-trash-body h2 {
    margin: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.product-trash-body p {
    margin: 0;
    font-size: 12px;
    color: #536b7f;
}

.product-trash-date {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: auto;
    padding-block: 8px 4px;
    font-size: 12px;
    color: #536b7f;
}

.product-trash-date i {
    font-size: 16px;
}

.product-trash-date time {
    display: block;
    color: #2e4f69;
    font-weight: 600;
}

.product-trash-body form,
.product-trash-body button {
    width: 100%;
}

.catalog-bulk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    background: #f5f8fb;
    color: #2e4f69;
}

.catalog-bulk-actions label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.catalog-bulk-actions output {
    margin-inline-end: auto;
    font-size: 12px;
}

.catalog-bulk-actions button:not(:disabled) {
    color: #a63746;
}

.catalog-card-select {
    position: absolute;
    z-index: 1;
    top: 8px;
    inset-inline-start: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cedce7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.catalog-card-select input,
.catalog-bulk-actions input {
    width: 16px;
    height: 16px;
    accent-color: #315876;
}

.pcard:has(.catalog-card-select input:checked) {
    outline: 2px solid #467494;
    outline-offset: -2px;
}

.product-catalog .pcard-img {
    position: relative;
}

@media (min-width: 601px) {
    .catalog-filter-grid.catalog-filter-grid-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
