.dyws-catalog { display: grid; gap: 28px; }
.dyws-catalog .dyws-category {
  background: var(--dyws-color-surface);
  padding: 28px;
  border-radius: 22px;
  scroll-margin-top: 20px;
}
.dyws-catalog h2 { font: 700 1.7em var(--dyws-heading-font, Georgia, serif); margin: 0 0 18px; }
.dyws-catalog h2::after { content: ''; display: block; width: 44px; height: 4px; background: var(--dyws-color-accent); border-radius: 4px; margin-top: 12px; }
.dyws-catalog h3 { font-size: 1em; margin: 0; }
.dyws-catalog p { line-height: 1.5; color: var(--dyws-color-muted); }
.dyws-catalog button {
  font: inherit; cursor: pointer; min-height: 48px; min-width: 96px;
  padding: 10px 18px; border: 0; border-radius: 12px;
  background: var(--dyws-color-accent); color: var(--dyws-color-button-text);
  font-weight: 700; white-space: normal; max-width: 156px; line-height: 1.25;
}
.dyws-catalog button, .dyws-catalog select { touch-action: manipulation; }
.dyws-catalog :focus-visible { outline: 3px solid var(--dyws-color-emphasis); outline-offset: 5px; }
.dyws-catalog .dyws-product { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px 0; }
.dyws-catalog .dyws-product p { margin: 8px 0; font-size: 1em; max-width: 620px; }
.dyws-catalog .dyws-product-action { display: flex; flex-direction: column; align-items: end; gap: 12px; white-space: nowrap; }
.dyws-catalog .dyws-product-action > span { color: var(--dyws-color-emphasis); }
.dyws-catalog select { font: inherit; padding: 10px; min-height: 48px; border-radius: 8px; background: var(--dyws-color-bg); color: var(--dyws-color-text); border: 1px solid var(--dyws-color-muted); }
.dyws-catalog .dyws-item-controls { width: 144px; }
.dyws-catalog .dyws-item-add { width: 144px; max-width: none; min-height: 48px; }
.dyws-catalog .dyws-item-stepper { display: grid; grid-template-columns: 48px 48px 48px; align-items: center; background: var(--dyws-color-raised); border-radius: 12px; }
.dyws-catalog [hidden] { display: none !important; }
.dyws-catalog .dyws-item-stepper button { min-width: 48px; width: 48px; min-height: 48px; max-width: 48px; padding: 8px; font-size: 1.2em; }
.dyws-catalog .dyws-item-stepper output { text-align: center; font-weight: 700; color: var(--dyws-color-text); }
.dyws-catalog button:disabled { opacity: .5; }
.dyws-catalog .dyws-category-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; align-items: start; }
.dyws-catalog .dyws-category-photo { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; margin-top: 20px; }
.dyws-catalog .dyws-products { min-width: 0; }
.dyws-catalog .dyws-product-image { width: 100%; max-width: 24rem; max-height: 16rem; object-fit: cover; border-radius: 12px; }
@media (max-width: 800px) {
  .dyws-catalog .dyws-category-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .dyws-catalog .dyws-category-photo { margin-top: 0; width: 100%; border-radius: 0; }
  .dyws-catalog .dyws-category:has(.dyws-category-photo) { padding-inline: 0; overflow: hidden; }
  .dyws-catalog .dyws-category:has(.dyws-category-photo) > h2 { padding-inline: 18px; }
  .dyws-catalog .dyws-products { padding-inline: 18px; }
}
@media (max-width: 650px) {
  .dyws-catalog .dyws-category { padding: 22px 18px; }
  .dyws-catalog .dyws-category:has(.dyws-category-photo) { padding-inline: 0; }
  .dyws-catalog .dyws-product { gap: 14px; }
  .dyws-catalog .dyws-product-action button { padding: 10px 14px; }
  .dyws-catalog .dyws-item-stepper button { padding: 8px; }
}
@media (max-width: 430px) {
  .dyws-catalog .dyws-product { grid-template-columns: minmax(0,1fr) 144px; }
  .dyws-catalog .dyws-product-action { white-space: normal; }
  .dyws-catalog .dyws-product h3, .dyws-catalog .dyws-product p { overflow-wrap: anywhere; }
}
.dyws-catalog .dyws-category-layout:not(:has(> .dyws-category-photo)) { grid-template-columns: minmax(0,1fr); }

/* Keep the diner imagery and layout; refine the reusable catalog surfaces. */
.dyws-catalog .dyws-category { background:var(--dyws-panel-fill); border-radius:28px; box-shadow:var(--dyws-panel-shadow); }
.dyws-catalog h2 { font-weight:500; }
.dyws-catalog h2::after { background:var(--dyws-color-warm); height:3px; }
.dyws-catalog button { border-radius:999px; background:var(--dyws-action-fill); color:var(--dyws-color-bg); }
.dyws-catalog .dyws-item-stepper { border-radius:999px; }
.dyws-catalog .dyws-product-action > span { color:var(--dyws-color-warm); font-weight:600; font-variant-numeric:tabular-nums; }
.dyws-catalog select { border-radius:14px; }
.dyws-catalog :focus-visible { outline-color:var(--dyws-color-warm); }
@media(forced-colors:active) { .dyws-catalog button { background:ButtonFace; color:ButtonText; border:1px solid ButtonText; } }
