.shop-app {
  max-width: 1200px;
}
.store-intro {
  position: relative;
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.store-intro h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 550;
  margin: 0 0 24px;
}
.store-intro em {
  color: var(--accent);
  font-style: normal;
}
.store-intro .muted {
  font-size: 15px;
}
.store-intro .intro-foot {
  margin-top: 36px;
}
.store-index {
  position: absolute;
  right: 20px;
  top: 50px;
  font-size: 210px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -18px;
  color: #d9ed8918;
  transform: rotate(-8deg);
  user-select: none;
}
.store-index span {
  display: block;
  letter-spacing: 4px;
  font: 12px monospace;
  color: #a4b57a;
  margin-top: 20px;
  text-align: center;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 46px 0 24px;
}
.catalog-heading .eyebrow {
  margin-bottom: 12px;
}
h2 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
.catalog-heading h2 {
  margin: 0;
}
.store-notice {
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  background: #d9ed8908;
  color: #c4ccba;
  font-size: 13px;
  line-height: 1.7;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}
.product {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.product:hover {
  border-color: #76825c;
}
.product .eyebrow {
  margin-bottom: 18px;
}
.product h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 550;
}
.product p.muted {
  min-height: 44px;
  font-size: 13px;
  margin: 0 0 28px;
}
.product .price {
  font-size: 40px;
  letter-spacing: -1.5px;
  font-weight: 550;
  margin: 0;
}
.price span {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
.product .hint {
  margin: 8px 0 28px;
}
.product .button {
  margin-top: auto;
}
.receipt {
  margin: 36px 0;
  padding: 30px;
}
.order-details {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  font-size: 13px;
}
.order-details div:last-child {
  grid-column: 1/-1;
}
.order-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.order-details dd {
  margin: 0;
  font:
    13px/1.8 ui-monospace,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.receipt textarea {
  min-height: 150px;
  font:
    13px/2 ui-monospace,
    Consolas,
    monospace;
  color: var(--accent);
}
.receipt .result-actions {
  flex-wrap: wrap;
}
.lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.lookup-grid h2 {
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.lookup-grid .muted {
  font-size: 13px;
  max-width: 320px;
}
.lookup-grid form > label:first-child {
  margin-top: 0;
}
.lookup-grid .wide {
  margin-top: 24px;
}
.recent-order {
  display: block;
  background: none;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  min-height: 44px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.recent-order:hover {
  color: var(--accent);
}
.store-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.store-guide span {
  font: 12px monospace;
  color: var(--accent);
}
.store-guide h3 {
  font-size: 14px;
  font-weight: 550;
}
.store-guide p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 270px;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
.checkout-total strong {
  font-size: 30px;
  color: var(--accent);
  font-weight: 550;
}
.empty-products {
  grid-column: 1/-1;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.manage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0;
}
.manage-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}
.manage-products {
  list-style: none;
  padding: 0;
}
.manage-products li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.manage-products p {
  margin: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
}
.manage-orders {
  margin-top: 24px;
}
.manage-grid form > label:first-child {
  margin-top: 0;
}
.manage-grid textarea {
  min-height: 100px;
}
.manage-orders .result-actions {
  justify-content: end;
}
@media (max-width: 850px) {
  .store-index {
    right: -30px;
    font-size: 180px;
    opacity: 0.5;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage-grid {
    grid-template-columns: 1fr;
  }
  .lookup-grid {
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .store-intro {
    padding: 40px 0;
  }
  .store-intro h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .store-index {
    display: none;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .product p.muted {
    min-height: 0;
  }
  .product .price {
    font-size: 36px;
  }
  .lookup-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .lookup-grid h2 br {
    display: none;
  }
  .lookup-grid h2 {
    font-size: 26px;
  }
  .store-guide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .store-guide p {
    max-width: none;
  }
  .order-details {
    grid-template-columns: 1fr;
  }
  .receipt {
    padding: 22px;
  }
  .order-details div:last-child {
    grid-column: auto;
  }
  .catalog-heading h2 {
    font-size: 24px;
  }
  .shop-app .top-right .button {
    font-size: 12px;
  }
  .manage-top {
    align-items: start;
    gap: 16px;
  }
  .intro-foot {
    gap: 10px;
    flex-direction: row;
    font-size: 10px;
  }
  .intro-foot span:before {
    margin-right: 4px;
  }
}

#payment-qr {
  margin: 24px 0;
}
#payment-canvas {
  width: 240px;
  height: 240px;
  max-width: 100%;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product {
  padding: 24px;
}
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }
  .topbar .brand-caption {
    display: none;
  }
  .topbar .top-right {
    gap: 0;
  }
  .topbar .top-right .button {
    padding: 8px;
    font-size: 11px;
  }
}
