#print-view {
  display: none;
}

@page {
  size: A4 portrait;
  margin: 13mm;
}

@media print {
  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #211b16 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    display: block !important;
    overflow: visible !important;
  }

  body > :not(#print-view) {
    display: none !important;
  }

  #print-view {
    display: block !important;
    width: 100%;
    font-family: "Noto Sans", "Microsoft YaHei", sans-serif;
    font-size: 9pt;
    line-height: 1.5;
  }

  .print-overview {
    break-after: page;
  }

  .print-overview h1 {
    margin: 0 0 2mm;
    font-size: 22pt;
    font-weight: 500;
  }

  .print-overview p {
    margin: 0 0 7mm;
    color: #6b5b4b;
  }

  .print-overview table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-overview th {
    padding: 2mm 1.5mm;
    border-bottom: 1px solid #6b5b4b;
    text-align: left;
    font-size: 8pt;
  }

  .print-overview th:nth-child(1) { width: 16mm; }
  .print-overview th:nth-child(2) { width: 85mm; }
  .print-overview th:nth-child(3) { width: 30mm; }

  .print-overview td {
    padding: 1.4mm 1.5mm;
    border-bottom: 1px solid #d8d0c7;
    vertical-align: middle;
    overflow-wrap: anywhere;
  }

  .print-overview tr {
    break-inside: avoid;
  }

  .print-list-image img,
  .print-list-image span {
    display: block;
    width: 12mm;
    height: 12mm;
    object-fit: contain;
  }

  .print-list-image span {
    color: #777;
    font-size: 7pt;
  }

  .print-overview strong,
  .print-overview small {
    display: block;
  }

  .print-overview strong {
    font-weight: 600;
  }

  .print-overview small {
    color: #73675c;
    font-size: 7pt;
  }

  .print-list-price {
    color: #4a3927;
    font-weight: 700;
    white-space: nowrap;
  }

  .print-product {
    break-after: page;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-product:last-child {
    break-after: auto;
  }

  .print-product-meta {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2mm;
    border-bottom: 1px solid #bdb1a4;
    color: #6b5b4b;
    font-size: 8pt;
  }

  .print-product h2 {
    margin: 4mm 0 3mm;
    font-size: 17pt;
    font-weight: 500;
    line-height: 1.35;
  }

  .print-product-price {
    display: flex;
    align-items: baseline;
    gap: 8mm;
    margin-bottom: 5mm;
    color: #4a3927;
    font-size: 16pt;
    font-weight: 700;
  }

  .print-product-price span {
    color: #65594d;
    font-size: 9pt;
    font-weight: 400;
  }

  .print-product-layout {
    display: grid;
    grid-template-columns: 69mm minmax(0, 1fr);
    gap: 7mm;
    align-items: start;
  }

  .print-product figure {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 69mm;
    height: 91mm;
    margin: 0;
    border: 1px solid #ddd6cf;
  }

  .print-product figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .print-product dl {
    margin: 0;
  }

  .print-field {
    padding: 1.5mm 0;
    border-bottom: 1px solid #e4ddd6;
    break-inside: avoid;
  }

  .print-field dt {
    color: #6b5b4b;
    font-size: 8pt;
    font-weight: 700;
  }

  .print-field dd {
    margin: 0.6mm 0 0;
    overflow-wrap: anywhere;
  }

  .print-source-link {
    display: inline-block;
    margin-top: 5mm;
    color: #4a3927;
    text-decoration: underline;
  }
}
