@font-face {
  font-family: Spoqa;
  src: url("/assets/Spoqa-Regular.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  background: #eceee9;
  color: #292e25;
  font:
    14px/1.85 Spoqa,
    "Malgun Gothic",
    sans-serif;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1260px;
  margin: 24px auto;
  background: #fafbf8;
  border-radius: 20px;
  padding: 34px 40px 100px;
  min-height: 95vh;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
header img {
  width: 154px;
  height: auto;
}
header p {
  font-size: 11px;
  color: #626b5b;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #616c56;
  margin: 0 0 6px;
}
h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 8px 0 15px;
  font-weight: 500;
}
h2 {
  font-size: 21px;
  font-weight: 500;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 14px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: #626a5b;
  font-size: 12px;
}
.status {
  padding: 15px 18px;
  border-radius: 5px;
  background: #eef1ea;
  margin: 20px 0;
  font-size: 12px;
}
.status:empty {
  display: none;
}
.error {
  background: #f7ece6;
  color: #773d29;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  min-height: 38px;
  background: #34412b;
  color: white;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  transition: background 0.18s;
}
.button:hover {
  background: #526545;
}
.button.secondary {
  background: #e5eade;
  color: #303c26;
}
.button.secondary:hover {
  background: #d6decc;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #657451;
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px;
  background: #ecefe7;
  border-radius: 6px;
  margin: 24px 0;
}
.nav a {
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
}
.nav a[aria-current="page"],
.nav a:hover {
  background: white;
}
.cards {
  display: grid;
  gap: 18px;
}
.card {
  padding: 24px;
  background: #f0f2ec;
  border-radius: 7px;
  min-width: 0;
}
.card > p,
.card li {
  font-size: 12px;
}
.card form {
  margin-top: 16px;
}
.card .facts {
  font-size: 12px;
}
.facts {
  margin: 15px 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  margin: 7px 0;
}
.facts dt {
  color: #65705b;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
input,
select,
textarea {
  padding: 10px 12px;
  min-width: 0;
  border: 1px solid #d5dccd;
  border-radius: 5px;
  background: white;
  width: 100%;
  font-size: 15px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.product {
  min-width: 0;
}
.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ecedeb;
  padding: 20px;
  border-radius: 6px;
}
.photo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product h3 {
  font-size: 14px;
  margin: 15px 0 5px;
}
.product .model {
  font-size: 11px;
  color: #626b5a;
  overflow-wrap: anywhere;
  margin: 0 0 12px;
}
.product select {
  font-size: 12px;
  margin-bottom: 10px;
}
.product .actions {
  gap: 6px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 25px 0;
}
.toolbar label {
  flex: 1;
  min-width: 170px;
}
.badge {
  display: inline-block;
  background: #e1e8d9;
  color: #39472d;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #dde3d5;
  vertical-align: top;
  white-space: nowrap;
}
th {
  font-weight: 500;
  background: #e8ede1;
}
.pin {
  font:
    500 27px/1.5 Spoqa,
    sans-serif;
  letter-spacing: 5px;
  display: block;
  padding: 18px;
  background: white;
  border-radius: 4px;
  margin: 12px 0;
}
.footer {
  margin-top: 40px;
  font-size: 11px;
  color: #64705a;
}
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: #34412b;
  color: #fff;
  padding: 6px;
  border-radius: 9px;
  z-index: 3;
  box-shadow: 0 4px 18px #29332318;
}
.bottom-nav a {
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 5px;
  white-space: nowrap;
}
.bottom-nav a:hover,
.bottom-nav a[aria-current="page"] {
  background: #536448;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.stock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(180px, 230px) auto;
  gap: 12px;
  align-items: end;
}
.stock-item p {
  min-width: 0;
  margin: 0;
}
.stock-item .check {
  align-self: center;
  line-height: 1.5;
}
.stock-item button {
  width: auto;
  white-space: nowrap;
}
.stock-item input:not([type="checkbox"]) {
  width: 100%;
}
.stock-item.cart-item{grid-template-columns:minmax(0,1fr) 110px auto}
@media (max-width: 800px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell {
    margin: 12px;
    padding: 22px 20px 105px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .nav a {
    padding: 8px 11px;
  }
  .card {
    padding: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .bottom-nav {
    bottom: 10px;
    max-width: calc(100% - 24px);
  }
  .bottom-nav a {
    padding: 9px 17px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  header {
    gap: 12px;
    margin-bottom: 25px;
  }
  header img {
    width: 135px;
  }
  header p {
    font-size: 10px;
  }
  .stock-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .stock-item.cart-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .stock-item p {
    grid-column: 1/-1;
  }
  .stock-item button {
    grid-column: 1/-1;
  }
  .facts > div {
    grid-template-columns: 90px 1fr;
  }
  .toolbar label {
    min-width: 125px;
  }
  .product .button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .photo {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
