@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');
:root {
  font-family: 'DM Sans', 'Noto Serif SC', sans-serif;
  color: #20352a;
  background: #f7f6f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-bottom: 100px;
}
.shop-head {
  height: 66px;
  padding: 0 max(22px, calc((100vw - 1080px) / 2));
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e8e7df;
  background: #fbfaf7;
}
.brand {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #294632;
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Serif SC';
  font-weight: 700;
}
.shop-head span {
  font-size: 14px;
  color: #68766b;
}
.shop {
  max-width: 1080px;
  margin: auto;
  padding: 24px 22px 55px;
}
.hero {
  min-height: 270px;
  border-radius: 7px;
  padding: 43px 48px;
  color: #f9f5e9;
  background:
    linear-gradient(90deg, rgba(26, 45, 34, 0.83), rgba(26, 45, 34, 0.18)),
    linear-gradient(130deg, #526849, #788b61 56%, #d3c49d);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(33px, 6vw, 55px);
  line-height: 1.38;
  letter-spacing: 0.06em;
  margin: 8px 0;
}
.hero p {
  margin: 2px 0;
  color: #e3e5d8;
}
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 38px 0 18px;
}
.section-title small {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #859084;
}
.section-title h2 {
  font-family: 'Noto Serif SC';
  font-weight: 500;
  margin: 3px 0;
  font-size: 25px;
}
.section-title span {
  color: #818b80;
  font-size: 13px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.product {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eeeee8;
}
.product img,
.product-art {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(145deg, #d9dfcf, #a5b392 55%, #e6d8b9);
}
.product-body {
  padding: 15px 17px 18px;
}
.product h3 {
  font-family: 'Noto Serif SC';
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 500;
}
.product p {
  color: #7d857d;
  font-size: 13px;
  line-height: 1.6;
  min-height: 40px;
  margin: 0 0 16px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 18px;
  color: #a36935;
  font-weight: 600;
}
.price small {
  font-size: 11px;
  font-weight: 400;
}
.buy {
  border: 0;
  background: #e8eee6;
  color: #2f5138;
  border-radius: 3px;
  padding: 8px 13px;
  cursor: pointer;
}
.product-detail-dialog {
  width: min(520px, calc(100% - 32px));
}
.detail-image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin: 10px auto 20px;
  border-radius: 5px;
  background: #f5f5f0;
}
.detail-description {
  color: #737d74;
  line-height: 1.8;
  white-space: pre-wrap;
}
.detail-price {
  color: #a36935;
  font-size: 24px;
  font-weight: 600;
}
.loading,
.empty {
  color: #858c83;
  grid-column: 1/-1;
  padding: 30px;
  text-align: center;
}
.pay-dock {
  position: fixed;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(22px, calc((100vw - 1080px) / 2));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e8e8df;
  box-shadow: 0 -5px 20px #2536260a;
}
.pay-dock div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pay-dock small,
.muted {
  color: #8a9289;
  font-size: 12px;
}
.pay-dock b {
  font-size: 14px;
  font-weight: 500;
}
.pay-dock button,
.primary {
  border: 0;
  border-radius: 4px;
  background: #294632;
  color: white;
  padding: 13px 28px;
  font-size: 14px;
  cursor: pointer;
}
dialog {
  border: 0;
  border-radius: 8px;
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  box-shadow: 0 20px 80px #12201833;
  color: #20352a;
}
dialog::backdrop {
  background: #12201888;
}
dialog h2 {
  font-family: 'Noto Serif SC';
  font-weight: 500;
  margin: 5px 0;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
}
.dialog-close button {
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #899189;
}
.amount-input {
  display: flex;
  align-items: center;
  font-size: 25px;
  margin: 25px 0;
  border-bottom: 1px solid #dfe3dc;
  padding: 10px 0;
}
.amount-input input {
  font: inherit;
  border: 0;
  outline: 0;
  width: 100%;
  color: #20352a;
}
.amount-input input[readonly] {
  cursor: default;
}
.amount-input input[readonly]::-webkit-inner-spin-button,
.amount-input input[readonly]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.recipient-fields {
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
}
.recipient-fields[hidden] {
  display: none;
}
.recipient-fields label {
  display: grid;
  gap: 6px;
  color: #68766b;
  font-size: 13px;
}
.recipient-fields input,
.recipient-fields textarea {
  width: 100%;
  border: 1px solid #dfe3dc;
  border-radius: 4px;
  padding: 10px 11px;
  color: #20352a;
  font: inherit;
  resize: vertical;
}
.primary {
  width: 100%;
}
.payment-options {
  display: grid;
  gap: 10px;
}
.secondary {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #cbd7ca;
  border-radius: 4px;
  background: #fff;
  color: #294632;
  font-size: 14px;
  cursor: pointer;
}
.secondary:disabled,
.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.qr-dialog {
  text-align: center;
}
.qr-dialog h2 {
  margin-top: 8px;
}
.payment-qr {
  display: block;
  width: min(280px, 80vw);
  height: auto;
  margin: 20px auto 12px;
  image-rendering: pixelated;
}
.qr-order {
  color: #8a9289;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.qr-status {
  color: #294632;
  font-weight: 600;
}
@media (max-width: 680px) {
  .hero {
    min-height: 235px;
    padding: 30px 25px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product img,
  .product-art {
    height: 145px;
  }
  .product-body {
    padding: 12px;
  }
  .product h3 {
    font-size: 15px;
  }
  .product p {
    font-size: 12px;
  }
  .buy {
    padding: 7px 10px;
  }
  .shop {
    padding: 16px 14px 35px;
  }
  .shop-head {
    padding: 0 15px;
  }
}
@media (max-width: 390px) {
  .products {
    grid-template-columns: 1fr;
  }
  .product img,
  .product-art {
    height: 190px;
  }
}
.buy:disabled,
#pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
