.order-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.order-heading .page-heading { margin-bottom: 27px; }
.primary-button, .secondary-button, .danger-button, .catalog-select {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 1px solid #75623b; border-radius: 5px; font-size: 14px; line-height: 1.4;
}
.primary-button { background: #c5aa68; color: #171b15; font-weight: 600; }
.primary-button:hover { background: #dcc38c; }
.secondary-button, .catalog-select { background: #292d24; color: var(--text); border-color: #4e5543; }
.secondary-button:hover, .catalog-select:hover { border-color: var(--gold); }
.danger-button { background: #5c302b; color: #f3d7c3; border-color: #8c5141; }
button:disabled { opacity: .48; cursor: not-allowed; }
.nav-short { display: none; }
.book-art img { clip-path: inset(21% 0 0 0); transform: translateY(-10%); }
.catalog-toolbar, .help-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.catalog-toolbar .search, .help-toolbar .search { flex: 1; max-width: 470px; min-width: 210px; }
.category-select select { background: var(--surface); color: var(--text); padding: 10px 35px 10px 14px; border: 1px solid var(--line); border-radius: 5px; min-height: 44px; }
.catalog-demo, .help-source { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.catalog-card { display: flex; flex-direction: column; align-items: center; text-align:center; padding: 20px 17px 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.catalog-card .item-icon { width: 76px; height: 76px; margin: 0 auto 10px; }
.catalog-card h2 { font: 18px/1.35 var(--serif); margin: 5px 0 12px; overflow-wrap: anywhere; height:2.7em; min-height:2.7em; width:100%; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.catalog-price { color: var(--gold); font-size: 14px; margin: auto 0 13px; }
.catalog-price span { display: block; font-size: 12px; color: var(--muted); }
.catalog-select { width: 100%; }
.quantity-input { width: 120px; max-width: 100%; padding: 10px 12px; min-height: 46px; border: 1px solid #66714f; border-radius: 5px; color: var(--text); background: #151a14; }
.field-label { display: block; font-size: 14px; margin: 15px 0 8px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.form-error { color: #efb7a3; font-size: 14px; margin: 10px 0; }
.form-error:empty { display: none; }
.order-actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.order-actions h3 { color: #dcc58e; }
.pickup-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.action-unavailable { color: var(--muted); font-size: 14px; }
.cancel-options { margin-top: 22px; }
.cancel-option { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.cancel-option strong { font-size: 14px; font-weight: 500; }
.cancel-option p { font-size: 13px; color: var(--muted); margin: 5px 0; }
.cancel-option button { flex-shrink: 0; }
.badge.cancelled { color: #d0b5a9; background: #352b26; border-color: #5d4738; }
.action-notice { margin: 20px 42px 0; border: 1px solid #65764a; background: #242c1d; border-radius: 6px; padding: 14px 18px; font-size: 14px; color: #d5dfc6; }
.help-section { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; margin-bottom: 13px; }
.help-section summary { padding: 17px 20px; font-size: 17px; cursor: pointer; color: #e4d4ac; }
.help-section[open] summary { border-bottom: 1px solid var(--line); }
.help-text { white-space: pre-wrap; padding: 20px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.help-text a { color: #d9bf7c; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .order-heading { flex-wrap: wrap; align-items: flex-start; gap: 0; margin-bottom: 20px; }
  .order-heading .page-heading { margin-bottom: 14px; width: 100%; }
  .catalog-toolbar .search, .help-toolbar .search { min-width: 100%; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-card { padding: 16px 12px 12px; }
  .catalog-card h2 { font-size: 17px; }
  .action-notice { margin: 16px 16px 0; }
  .help-text { padding: 16px; }
  .help-section summary { padding: 16px; font-size: 16px; }
  .cancel-option { flex-wrap: wrap; }
}
