:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
}

body {
  overflow: hidden;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

.board {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: #000;
}

.panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr repeat(14, minmax(0, 1fr));
  border: 1px solid #555;
  overflow: hidden;
  background: #000;
}

.product-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 3.9fr) minmax(0, 0.55fr) minmax(0, 0.85fr);
  align-items: center;
  column-gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid #555;
  background: #000;
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row.head {
  border-bottom: 2px solid #fff;
  background: #000;
}

.cell {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}

.product-row.head .cell {
  font-size: clamp(16px, 1.45vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
}

.product-row:not(.head) .cell {
  font-size: clamp(18px, 1.6vw, 31px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.name {
  padding-right: 2px;
}

.size {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-aspect-ratio: 1/1) {
  .board {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    padding: 6px;
  }

  .product-row.head .cell {
    font-size: clamp(11px, 2.2vw, 17px);
  }

  .product-row:not(.head) .cell {
    font-size: clamp(12px, 2.6vw, 20px);
  }
}
