.customer-shell.home-shell { grid-template-rows: auto minmax(0,1fr) auto; }
.home-shell > .customer-top {
  display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center;
  gap: 4px; min-height: 59px; padding: calc(5px + env(safe-area-inset-top)) 10px 5px;
  text-align: center; background: var(--paper);
}
.home-shell > .customer-top h1 { font-size: 16px; }
.catalog-mark { display: block; width: 35px; height: 35px; margin: auto; }
.customer-shell > .catalog-page {
  display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 0; padding: 0; overflow: hidden;
}
.catalog-hero { padding: 16px 16px 15px; border-bottom: 1px solid var(--warm-line); background: #edf2ea; }
.catalog-hero p { margin: 0; color: #536359; font-size: 12px; line-height: 1.5; }
.catalog-hero .catalog-kicker { color: #48715b; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.catalog-hero h2 { margin: 4px 0 5px; font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.catalog-layout {
  display: grid; grid-template-columns: clamp(78px,24%,96px) minmax(0,1fr);
  grid-template-rows: minmax(0,1fr); min-height: 0;
}
.catalog-categories, .catalog-products {
  min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #b8c8b9 transparent;
}
.catalog-categories { padding: 8px 0; border-right: 1px solid var(--warm-line); background: #edf0ea; }
.catalog-categories button {
  display: block; width: 100%; min-height: 44px; padding: 6px 8px 6px 23px;
  border: 0; border-radius: 0; background: transparent; font-size: 13px; text-align: left;
}
.catalog-categories .catalog-group {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding-inline-start: 11px; font-size: 14px; font-weight: 750;
}
.catalog-group svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.catalog-group[aria-expanded="false"] svg { transform: rotate(-90deg); }
.catalog-categories .catalog-category[aria-pressed="true"] {
  background: var(--paper); color: var(--forest); box-shadow: inset 3px 0 #315a49; font-weight: 750;
}
.catalog-categories .catalog-other { padding-inline-start: 11px; }
.catalog-products { padding: 11px 10px 13px; }
.catalog-categories button:focus-visible, .catalog-products:focus-visible,
.catalog-products .template-card:focus-visible { outline-offset: -3px; }
.catalog-product-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 3px 0 9px;
}
.catalog-product-heading h2 { margin: 0; font-size: 16px; }
.catalog-product-heading span { color: #536359; font-size: 11px; }
.catalog-products .template-grid { gap: 8px; }
.catalog-products .template-card {
  display: flex; flex-direction: column; border-color: var(--warm-line); border-radius: 10px; box-shadow: none;
}
.catalog-products .template-image { width: 100%; flex-shrink: 0; background: #fff; }
.catalog-products .template-image > img { object-fit: contain; }
.catalog-products .template-meta { padding: 7px 8px 9px; }
.catalog-products .template-meta strong { font-size: 12px; overflow-wrap: anywhere; }
.catalog-empty { display: grid; place-content: center; min-height: 200px; padding: 10px; text-align: center; }
.catalog-empty strong { font-size: 14px; }
.catalog-empty p { margin: 5px 0 0; color: #536359; font-size: 12px; line-height: 1.55; }
.home-shell .nav-item.active { border-radius: 8px; background: #edf2ea; }
