﻿/* Product catalog, scoped to preserve other admin screens. */
.admin-main:has([data-view="products"].is-visible) .topbar-actions{display:none}
.admin-main:has([data-view="products"].is-visible) .topbar{min-height:84px;margin-bottom:18px}
[data-view="products"]{position:relative}
.catalog-toolbar{display:flex;gap:12px;justify-content:flex-end;margin:-87px 0 34px;min-height:44px}
.catalog-toolbar input{width:305px}
.catalog-toolbar button,.catalog-filters button,.catalog-footer button,.catalog-footer select{border:1px solid #d9dffd;background:#fff;color:#3d4baf;border-radius:9px;padding:10px 16px;font:inherit;cursor:pointer}
.catalog-toolbar .admin-button,.catalog-filters .admin-button{background:linear-gradient(110deg,#365cff,#4c3ef3);color:white;border-color:transparent}
.catalog-toolbar input,.catalog-filters input,.catalog-filters select{border:1px solid #dce2f6;border-radius:8px;background:#fff;color:#34466b;font:inherit;font-size:13px;padding:11px 14px;min-width:0}
.catalog-filters{display:grid;grid-template-columns:1.35fr 1.2fr 1fr 1fr 2.5fr auto auto;gap:13px;background:#fff;border-radius:12px;padding:16px;margin-bottom:8px;align-items:center}
.catalog-filters[hidden]{display:none}
.catalog-panel.panel{padding:0;overflow:hidden;border:0;border-radius:12px;box-shadow:0 12px 36px #25397808}
.catalog-table{width:100%;min-width:1010px;border-collapse:collapse;font-size:14px}
.catalog-table thead{background:#f2f5ff}
.catalog-table th{padding:16px 20px;color:#354a7a;text-transform:uppercase;font-size:12px;letter-spacing:.025em;text-align:left;white-space:nowrap}
.catalog-table td{padding:9px 20px;border-bottom:1px solid #eaf0fb;color:#101e43;vertical-align:middle;height:70px}
.catalog-product{display:flex;align-items:center;gap:22px;min-width:265px}
.catalog-product strong{display:block;font-size:14px}
.catalog-product small{display:block;margin-top:5px;color:#697aa6;font-size:13px}
.catalog-photo{height:55px;width:56px;flex:none;border:1px solid #e9edf9;border-radius:11px;display:grid;place-items:center;color:#667dbd;background:#fff}
.catalog-photo img{height:51px;width:48px;object-fit:contain}
.catalog-category{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;padding:10px 12px;border-radius:9px;border:1px solid #cdecff;background:#edf8ff;color:#0080dc;font-size:13px;font-weight:600}
.catalog-category.green{background:#e8fbf3;border-color:#cff4e6;color:#00a466}.catalog-category.purple{background:#f2eeff;border-color:#e8e0ff;color:#803dec}.catalog-category.orange{background:#fff4e5;border-color:#ffe5c4;color:#f58208}.catalog-category.pink{background:#fff0f3;border-color:#ffe0e8;color:#ff386c}
.catalog-table del{display:block;color:#7381a8;font-size:13px;margin-top:4px}
.catalog-offer{display:inline-block;white-space:nowrap;border-radius:22px;padding:9px 13px;background:#ffe7eb;color:#f32740;font-size:12px;font-weight:600}
.catalog-stock{display:table;border-radius:7px;background:#e4faf0;color:#00a35d;padding:4px 9px;margin-top:5px;white-space:nowrap;font-size:12px}.catalog-stock.low{background:#fff2dc;color:#e58b00}.catalog-stock.out{background:#ffe7eb;color:#d82a42}
.catalog-table .table-actions{display:flex;flex-wrap:nowrap;gap:10px}.catalog-table .table-action{padding:10px 13px;border:1px solid #dce1ff;background:#f5f6ff;border-radius:8px;color:#3d54ed;white-space:nowrap}.catalog-table .table-action.delete{background:#fff1f3;border-color:#ffcfd6;color:#ed283e}
.catalog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 17px;color:#7180a6;font-size:13px}.catalog-footer>div{display:flex;align-items:center;gap:9px}.catalog-footer button{padding:6px 12px;font-size:20px}.catalog-footer button:disabled{opacity:.4;cursor:default}.catalog-footer [data-catalog-page]{padding:9px 13px;background:#3e5bff;color:#fff;border-radius:9px}.catalog-footer select{margin-left:8px;padding:8px 10px}
@media(min-width:1500px){.dashboard:has([data-view="products"].is-visible){grid-template-columns:293px minmax(0,1fr)!important}.dashboard:has([data-view="products"].is-visible)>.sidebar{width:293px}}
@media(max-width:1450px){.catalog-toolbar{margin:0 0 16px}.catalog-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-filters input[name="search"]{grid-column:span 2}}
@media(max-width:700px){.catalog-toolbar{flex-wrap:wrap;justify-content:flex-start}.catalog-toolbar input{width:100%}.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}.catalog-footer{flex-wrap:wrap}.catalog-table td,.catalog-table th{padding-left:12px;padding-right:12px}}
.topbar .catalog-toolbar{display:none;margin:0;min-height:44px}.admin-main:has([data-view="products"].is-visible) .topbar .catalog-toolbar{display:flex}.catalog-panel.panel{padding:0!important}.catalog-table th{padding:16px 20px!important}.catalog-table td{padding:8px 20px!important}.catalog-stock{font-size:12px!important}.catalog-toolbar button{white-space:nowrap}@media(max-width:1450px){.admin-main:has([data-view="products"].is-visible) .topbar{flex-wrap:wrap}.topbar .catalog-toolbar{width:100%;justify-content:flex-start}}

