:root { --page-width: 1160px; }
body { min-width: 0; min-height: 100vh; background: #faf8f7; font-size: 15px; }
.page-width { width: min(var(--page-width), calc(100% - clamp(32px, 8vw, 100px))); margin-inline: auto; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-bar { color: var(--text); background: var(--panel); border-top: 3px solid var(--brand); border-bottom: 1px solid var(--line); }
.mast, .mast nav, .mast nav a, .wordmark, .heading-line, .panel-heading, .toolbar, .search-box, .filters { display: flex; align-items: center; }
.mast { min-height: 61px; justify-content: space-between; gap: 14px; }
.wordmark { gap: 8px; font: 600 19px/1.2 var(--number); letter-spacing: -.035em; white-space: nowrap; }
.wordmark strong { font-weight: 800; }
.wordmark img { width: 32px; height: 27px; object-fit: contain; }
.mast nav { gap: 14px; font-size: 13px; }
.mast nav a { gap: 5px; min-height: 34px; }
.mast nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.mast nav a svg { width: 15px; }
#switch-language { border-left: 1px solid var(--line); padding-left: 14px; color: var(--brand); }
main { padding: clamp(24px, 3.5vw, 48px) 0 46px; }
.page-heading { margin-bottom: 24px; }
.heading-line { gap: 13px; flex-wrap: wrap; }
h1 { font-size: clamp(28px, 3.35vw, 43px); line-height: 1.17; letter-spacing: -.045em; font-weight: 680; }
.demo-label { padding: 2px 8px; border: 1px solid var(--brand-line); border-radius: 4px; color: var(--brand); background: var(--surface-red); font-size: 12px; font-weight: 650; }
.page-heading p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.catalog-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: 0 4px 20px rgba(68,35,31,.035); }
.panel-heading { padding: 19px 23px 0; gap: 12px; justify-content: space-between; }
.panel-heading h2 { font-size: 19px; line-height: 1.4; font-weight: 650; }
.result-summary { font-size: 12px; color: var(--muted); white-space: nowrap; }
#product-count { font: 650 13px var(--number); color: var(--text); font-variant-numeric: tabular-nums; }
.toolbar { gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 15px 23px 18px; }
.search-box { gap: 9px; flex: 1 1 210px; max-width: 450px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--muted); padding: 0 11px; }
.search-box:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.search-box svg { width: 16px; height: 16px; }
.search-box input { min-width: 0; width: 100%; height: 38px; font: inherit; font-size: 14px; border: 0; background: transparent; outline: none; }
.search-box input::placeholder { color: #746a69; }
.filters { gap: 3px; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f8f5f3; }
.filters button { font: inherit; font-size: 13px; font-weight: 580; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 5px 12px; line-height: 1.5; }
.filters button:hover { color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--ink-on-brand); }
#products-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
#products-table th, #products-table td { padding: 12px 15px; }
#products-table th:first-child, #products-table td:first-child { padding-left: 23px; }
#products-table th:last-child, #products-table td:last-child { padding-right: 23px; }
#products-table thead th { border-block: 1px solid var(--line); padding-block: 8px; background: #f8f4f1; color: var(--muted); font-size: 12px; font-weight: 600; }
#head-product { width: 40%; }
#head-sku { width: 18%; }
#head-price { width: 16%; }
#head-stock { width: 11%; }
#head-status { width: 15%; }
#head-price, #head-stock, [data-field="price"], [data-field="stock"] { text-align: right; }
#head-status, [data-field="status"] { text-align: right; }
#product-rows tr + tr { border-top: 1px solid var(--line); }
#product-rows tr:hover { background: #fcfaf9; }
.product-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-image { width: 50px; height: 50px; flex: none; object-fit: cover; border-radius: 6px; background: #f4eee9; border: 1px solid #eadfd6; }
.product-info span { min-width: 0; }
.product-name { display: block; font-size: 15px; line-height: 1.45; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.product-detail { display: block; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
[data-field="sku"] { font: 12px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
[data-field="price"], [data-field="stock"] { white-space: nowrap; font: 600 15px var(--number); color: var(--text); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; border-radius: 4px; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.in { background: #eef4ee; color: #315d40; }
.status.low { background: var(--gold-soft); color: var(--gold-ink); }
.status.out { background: var(--surface-red); color: var(--brand); }
.notice, #load-state { border-top: 1px solid var(--line); padding: 22px; color: var(--muted); }
.notice { text-align: center; padding-block: 32px; }
.notice h3 { font-size: 17px; color: var(--text); margin-bottom: 5px; }
.notice p, #load-state { font-size: 14px; }
.notice button { margin-top: 11px; border: 1px solid var(--brand-line); background: var(--panel); color: var(--brand); border-radius: 5px; padding: 5px 11px; font-size: 13px; }
.visually-hidden, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; padding: 8px 12px; z-index: 2; background: var(--panel); }
@media (min-width: 701px) and (max-width: 900px) {
  #products-table th, #products-table td { padding-inline: 8px; }
  #head-product { width: 36%; }
  #head-status { width: 18%; }
  .product-info { gap: 8px; }
}
@media (max-width: 700px) {
  .page-width { width: calc(100% - 28px); }
  .mast { min-height: 49px; gap: 6px; }
  .wordmark { font-size: 15px; gap: 5px; }
  .wordmark img { width: 27px; height: 23px; }
  .mast nav { gap: 7px; font-size: 12px; }
  #switch-language { padding-left: 7px; }
  main { padding-block: 23px 32px; }
  .page-heading { margin-bottom: 17px; }
  .heading-line { gap: 8px; }
  .demo-label { font-size: 11px; }
  .page-heading p { margin-top: 6px; font-size: 13px; }
  .panel-heading { padding: 14px 13px 0; }
  .panel-heading h2 { font-size: 17px; }
  .toolbar { padding: 10px 13px 12px; gap: 8px; }
  .search-box { flex-basis: 100%; max-width: none; }
  .filters button { padding: 4px 10px; }
  #products-table, #product-rows { display: block; }
  #products-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #product-rows tr { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 6px 9px; padding: 12px 13px; border-top: 1px solid var(--line); }
  #products-table :is(th,td):is(:first-child,:last-child), #products-table :is(th,td) { padding: 0; text-align: left; }
  [data-field="name"] { grid-column: 1; grid-row: 1 / 3; }
  [data-field="sku"] { grid-column: 1; grid-row: 3; }
  [data-field="price"] { grid-column: 2; grid-row: 2; align-self: end; }
  [data-field="stock"] { grid-column: 2; grid-row: 3; align-self: baseline; }
  [data-field="status"] { grid-column: 2; grid-row: 1; }
  #products-table :is([data-field="price"],[data-field="stock"],[data-field="status"]) { text-align: right; }
  [data-field="stock"] { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; font-size: 13px; }
  [data-field="stock"]::before { content: attr(data-label); font: 12px var(--font); color: var(--muted); }
  [data-field="sku"] { font-size: 11px; }
  .product-info { gap: 8px; }
  .product-image { width: 48px; height: 48px; }
  .product-name { font-size: 14px; }
  .product-detail { font-size: 11px; }
  .status { padding: 2px 6px; font-size: 11px; }
}
