.public-products {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  align-items: end;
}

main .product-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-color: rgba(216, 185, 107, .28);
  background: linear-gradient(145deg, rgba(31, 29, 25, .98), rgba(13, 13, 15, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .2);
}

main .product-filters label { display: grid; gap: 6px; min-width: 0; width: auto; padding: 0; border: 0; background: transparent; color: var(--premium-muted, var(--muted)); font-size: 12px; font-weight: 700; }
main .product-filters label.wide { grid-column: span 2; }
main .product-filters input, main .product-filters select { box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px; width: 100%; }
.product-filter-actions { align-items: end; display: flex; gap: 8px; }
.product-filter-actions button { flex: 1 1 0; min-height: 46px; }

.public-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-product-card h3,
.public-product-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.public-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.public-product-kind,
.public-product-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.public-product-kind { background: #e8f2ee; color: #174f43; }
.public-product-status { background: #eef0f3; color: #34404a; }
.public-product-price { font-size: 18px; color: #17211d; }
.public-product-description { color: #52605a; line-height: 1.5; }
.product-rejection-reason { margin-top: 6px !important; color: #9a2f2f; }
.public-product-card .primary-command { align-self: end; margin-top: 4px; width: 100%; }
body .public-product-image,
.catalog-dialog .product-detail-gallery .product-image-placeholder {
  color: var(--premium-muted, #c9c1af);
  background: radial-gradient(circle at 76% 22%, rgba(216, 185, 107, .14), transparent 38%), linear-gradient(145deg, #252421, #111214 72%);
}
.advanced-band .advanced-item {
  color: var(--premium-text, #f4efe5);
  border-color: rgba(216, 185, 107, .24);
  background: linear-gradient(145deg, rgba(31, 29, 25, .98), rgba(13, 13, 15, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .2);
}
.catalog-dialog article {
  color: var(--premium-text, #f4efe5);
  border: 1px solid rgba(216, 185, 107, .34);
  background: linear-gradient(145deg, rgba(34, 32, 28, .99), rgba(13, 13, 15, .99) 64%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 28px 70px rgba(0, 0, 0, .55);
}
.catalog-dialog article p,
.catalog-dialog article dt { color: var(--premium-muted, #c9c1af); }
.seller-orders { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.seller-orders h3 { font-size: 18px; margin: 0; }
.order-list { display: grid; gap: 10px; margin-top: 14px; }
.order-row { align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1.7fr) minmax(150px, .7fr) auto; padding: 14px; }
.order-row h3, .order-row h4 { font-size: 15px; margin: 0 0 5px; overflow-wrap: anywhere; }
.order-row p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 2px 0; overflow-wrap: anywhere; }
.order-amount { color: var(--text); font-size: 15px; white-space: nowrap; }
.order-actions { align-items: stretch; display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.order-actions button { min-height: 40px; }
.order-detail-dialog dl { display: grid; gap: 8px; margin: 0; }
.order-detail-dialog dl > div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.order-detail-dialog dt { color: var(--muted); }
.order-detail-dialog dd { margin: 0; overflow-wrap: anywhere; }
.order-status { align-items: center; background: var(--green-soft); border: 1px solid rgba(30, 142, 103, .28); border-radius: 999px; color: var(--green-strong); display: inline-flex; font-size: 11px; font-weight: 800; min-height: 26px; padding: 4px 9px; width: fit-content; }
.order-status.warning { background: var(--amber-soft); border-color: rgba(190, 126, 25, .28); color: #8a5c0d; }
.checkout-summary { background: var(--page); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 6px; margin: 16px 0; padding: 14px; }
.checkout-summary h3 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.checkout-summary p { color: var(--muted); font-size: 12px; margin: 0; }
.checkout-summary strong { font-size: 18px; }
.checkout-fields { margin-top: 0; }
.payment-method { align-items: center; background: var(--green-soft); border-inline-start: 3px solid var(--green); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin: 14px 0; padding: 12px; }
.payment-method span { color: var(--soft); font-size: 13px; }
.checkout-dialog form > footer { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 900px) {
  .public-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .public-products { margin-top: 24px; padding-top: 20px; }
  main .product-filters { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  main .product-filters label.wide { grid-column: auto; }
  .product-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .public-product-grid { grid-template-columns: minmax(0, 1fr); }
  .order-row { grid-template-columns: 1fr; }
  .order-actions { justify-content: stretch; }
  .order-actions button { flex: 1 1 150px; }
  .checkout-dialog form > footer { display: grid; grid-template-columns: 1fr; }
  .order-detail-dialog dl > div { grid-template-columns: 1fr; gap: 4px; }
}

.order-finance { margin-block-start: 12px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.order-finance dl { margin: 8px 0 0; }
.order-finance dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); gap: 8px; padding-block: 3px; }
.order-finance dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.order-actions a, .order-actions button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
