.catalog { font-size: 18px; padding-bottom: 0; }
.catalog .page-head { padding-block: 20px; }
.catalog .page-head h1 { margin: 0 0 4px; }
.catalog .page-head p { line-height: 1.5; }

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px 20px;
}
.catalog-controls label { display: block; font-weight: 700; }
.catalog-search { display: flex; gap: 8px; margin-top: 4px; }
.catalog-controls input,
.catalog-controls select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.catalog-controls select { display: block; margin-top: 4px; }
.catalog-search .btn { flex-shrink: 0; min-height: 48px; font-size: 18px; padding-inline: 16px; }
.catalog .view-toggle button, .catalog .sort select { min-height: 44px; font-size: 16px; }
.catalog .sort { margin-left: 0; font-size: 16px; gap: 6px; }
.catalog .result-count .link-btn { min-height: 44px; font-size: 16px; text-decoration: underline; }
.catalog :is(button, a, input, select):focus-visible { outline: 2px solid var(--green-800); outline-offset: 2px; }
.catalog .qty :is(button, input):focus-visible { outline: 3px solid #a96900; outline-offset: -4px; }

.catalog .sheet-help { font-size: 17px; color: var(--ink); }
.catalog .sheet thead th { font-size: 16px; }
.catalog .sheet .s-qty { text-align: center; }
.catalog .s-name { min-height: 44px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.catalog .s-name img { width: 36px; height: 50px; }
.catalog .s-name small { font-size: 16px; color: var(--ink); }
.catalog-unit { display: block; margin-left: 48px; font-size: 16px; color: var(--green-900); }
.catalog .qty button { width: 44px; height: 44px; flex-shrink: 0; }
.catalog .qty button:not(:disabled) { background: var(--green-50); color: var(--green-900); }
.catalog .qty button[data-step="1"]:not(:disabled) { background: var(--green-800); color: var(--white); }
.catalog .qty button svg { width: 20px; height: 20px; }
.catalog .qty input { width: 60px; height: 44px; font-size: 18px; }
.catalog .qty.g-qty input { width: auto; }
.catalog .g-card { --gc-btn-h: 48px; --gc-btn-font: 16px; }
.catalog .g-body h3, .catalog .g-body h3 small {
  display: block;
  height: auto;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 18px;
}
.catalog .g-actions { flex-wrap: wrap; }
.catalog .g-cta { min-width: min(100%, 145px); }

.catalog .order-bar { bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.catalog .ob-btn { min-height: 48px; font-size: 18px; }
.catalog #ob-count { font-size: 17px; }
body.catalog.has-order-bar { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
body.catalog.has-order-bar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
html:has(.catalog.has-order-bar) { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

@media (max-width: 600px) {
  .catalog-controls { grid-template-columns: minmax(0, 1fr); }
  .catalog .sheet tbody th, .catalog .sheet td { padding: 8px; }
  .catalog .s-name { gap: 6px; font-size: 17px; }
  .catalog .s-name img { width: 24px; height: 36px; }
  .catalog-unit { margin-left: 30px; }
  .catalog .s-qty-ctl input { width: 46px; }
}
