@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: #0a0a0a;
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}
input, button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2256af; outline-offset: 3px; }
.catalog { max-width: 1140px; margin: 0 auto; padding: 96px 15px 64px; }
.intro { text-align: center; color: #383b3d; }
.intro h1 { margin: 0; padding-bottom: 8px; font-size: 24px; font-weight: 600; line-height: 36px; }
.intro p { margin: 0 0 20px; font-size: 16px; font-weight: 400; line-height: 24px; }
.search {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  margin-bottom: 16px;
}
.search:focus-within { border-color: #707070; }
.search-mark { width: 11px; height: 11px; border: 1px solid #777; border-radius: 50%; flex: none; position: relative; }
.search-mark::after { content: ""; position: absolute; bottom: -2px; right: -3px; width: 4px; border-bottom: 1px solid #777; transform: rotate(45deg); }
.search input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; outline: 0; }
.search input::placeholder { color: #8a8a8a; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { border: 0; background: transparent; color: #555; padding: 0 3px; font-size: 23px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; min-height: 87px; align-items: flex-start; text-decoration: none; border-radius: 8px; }
a.product:hover h2 { text-decoration: underline; }
.product img, .image-space { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.product-copy { min-width: 0; padding: 0 8px; }
.product h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.product p { margin: 0; padding-bottom: 12px; line-height: 24px; overflow-wrap: anywhere; }
.more { margin-top: 32px; text-align: center; }
.more button { border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; color: #383b3d; padding: 10px 16px; box-shadow: 0 7px 24px #0001; }
.more button:hover { background: #f7f7f7; }
.empty { text-align: center; color: #626262; padding: 26px 0; }
.admin { max-width: 680px; margin: 0 auto; padding: 40px 20px 64px; }
.admin h1 { color: #202124; font-size: 25px; }
.admin-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #3d4f70; margin-bottom: 24px; font-size: 14px; }
.link-button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.form { max-width: 480px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea { width: 100%; color: #222; background: #fff; border: 1px solid #aeb4bf; border-radius: 7px; padding: 10px; font-weight: 400; }
.form textarea { resize: vertical; }
.form small { color: #565e69; margin-top: -10px; }
.primary { display: inline-block; justify-self: start; border: 0; color: #fff; background: #254a86; padding: 10px 15px; border-radius: 7px; text-decoration: none; }
.primary:hover { background: #19396d; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-products { list-style: none; padding: 0; margin: 0; }
.admin-products li { border-bottom: 1px solid #e3e5e9; }
.admin-products a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; }
.admin-products a:hover { text-decoration: underline; }
.admin-products a span:last-child { color: #254a86; flex: none; font-size: 14px; }
.bulk-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid #e3e5e9;
}
.bulk-toolbar small { flex-basis: 100%; color: #565e69; }
.select-all, .check-zone { display: flex; align-items: center; cursor: pointer; }
.select-all { gap: 5px; }
.selectable-products li { display: flex; }
.selectable-products a { flex: 1; min-width: 0; align-items: center; }
.selectable-products a span:first-child { overflow-wrap: anywhere; }
.selectable-products li:has(input:checked) { background: #edf3fc; }
.check-zone { width: 38px; flex: none; justify-content: center; touch-action: none; }
.check-zone input, .select-all input { width: 17px; height: 17px; accent-color: #254a86; cursor: pointer; }
.selectable-products.dragging { user-select: none; }
.bulk-actions, .shared-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.bulk-actions { position: sticky; bottom: 0; padding: 12px 0; background: #fff; }
.secondary {
  display: inline-block;
  border: 1px solid #aeb4bf;
  border-radius: 7px;
  background: #fff;
  color: #254a86;
  padding: 7px 10px;
  text-decoration: none;
}
.secondary:hover:not(:disabled) { background: #edf3fc; }
.secondary:disabled { opacity: .48; cursor: default; }
.danger-text { color: #8a2424; }
.danger, .danger:hover { background: #992b2b; }
.rename-products label { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rename-products label span { min-width: 56px; }
.rename-products input, .shared-name input {
  width: min(100%, 440px);
  min-width: 0;
  border: 1px solid #aeb4bf;
  border-radius: 6px;
  padding: 8px;
}
.shared-name input { width: min(100%, 275px); }
.delete-products li { padding: 9px 0; }
.notice { background: #edf5ed; color: #235430; padding: 10px; border-radius: 6px; }
.error { color: #8a2424; background: #fbeeee; }
@media (max-width: 991px) {
  .catalog { max-width: 750px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .catalog { padding: 96px 15px 48px; }
  .products { grid-template-columns: 1fr; }
  .intro p { margin-bottom: 28px; }
  .search { margin-bottom: 24px; }
}

