/* Catalog-only corrections, using the existing Maybesmart palette and type. */
body.ms-interior .ms-shop-layout {
  --catalog-gap: 24px;
  --catalog-radius: 16px;
  --catalog-photo: oklch(99.7% .001 290);
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px var(--ms-gutter, 20px) 72px;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}
body.ms-interior .ms-shop-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--catalog-gap);
  align-content: start;
  align-items: center;
}
body.ms-interior .ms-shop-main .woocommerce-products-header {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
}
body.ms-interior .ms-shop-main .woocommerce-products-header__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.6px;
}
body.ms-interior .ms-shop-main > .woocommerce-notices-wrapper:empty { display: none; }
body.ms-interior .ms-shop-main > .woocommerce-notices-wrapper:not(:empty) { grid-column: 1 / -1; }
body.ms-interior .ms-shop-main > .ms-supplier-note {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 64ch;
  color: var(--ms-muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}
body.ms-interior .ms-shop-main .woocommerce-ordering {
  grid-column: 2;
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.ms-interior .ms-shop-main .woocommerce-ordering select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  background-color: var(--ms-surface);
  color: var(--ms-text);
  font-size: 14px;
}
body.ms-interior #ms-shop-grid { grid-column: 1 / -1; min-width: 0; margin-top: 28px; }
body.ms-interior #ms-shop-sentinel { grid-column: 1 / -1; }
body.ms-interior .ms-shop-layout .ms-filter { top: 120px; padding-top: 8px; }
body.admin-bar.ms-interior .ms-shop-layout .ms-filter { top: 152px; }
body.ms-interior .ms-shop-layout .ms-filter__inner {
  padding: 0 20px 8px 0;
  max-height: calc(100dvh - 152px);
  background: none;
  border: 0;
  border-right: 1px solid var(--ms-line);
  border-radius: 0;
  gap: 24px;
  scrollbar-color: var(--ms-line) transparent;
}
body.admin-bar.ms-interior .ms-shop-layout .ms-filter__inner { max-height: calc(100dvh - 184px); }
body.ms-interior .ms-shop-layout .ms-filter__title { margin-bottom: 8px; color: var(--ms-text); font-size: 15px; }
body.ms-interior .ms-shop-layout .ms-check { padding-block: 7px; }
body.ms-interior .ms-shop-layout .ms-filter__more { min-height: 32px; margin-top: 4px; font-size: 14px; border: 0; text-decoration: underline; text-underline-offset: 4px; }
body.ms-interior.woocommerce .ms-shop-layout ul.products {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  gap: var(--catalog-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product {
  padding: 16px;
  border-radius: var(--catalog-radius);
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  box-shadow: none;
  transition: border-color .18s ease-out;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product:hover {
  transform: none;
  background: var(--ms-surface);
  border-color: var(--ms-accent);
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  margin: 0 0 18px !important;
  background: var(--catalog-photo);
  border-radius: 10px;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 2.8em;
  margin: 0 0 12px;
  padding: 0;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product .price {
  margin: auto 0 18px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ms-text) !important;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product .price :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol) { color: inherit !important; }
body.ms-interior.woocommerce .ms-shop-layout .ms-supplier-price-request { font-size: 14px; font-weight: 400; color: var(--ms-muted); }
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product a.button.ms-supplier-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--ms-accent) 32%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ms-accent) 10%, var(--ms-surface));
  color: var(--ms-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color .18s ease-out, border-color .18s ease-out;
}
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product a.ms-supplier-button::after { content: '\2197'; font-size: 18px; line-height: 1; color: var(--ms-accent); }
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product a.ms-supplier-button:hover {
  filter: none;
  background: color-mix(in srgb, var(--ms-accent) 18%, var(--ms-surface));
  border-color: var(--ms-accent);
}
body.ms-interior .ms-shop-layout :is(a, button, select):focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 4px; }
body.ms-interior.woocommerce .ms-shop-layout ul.products li.product.outofstock::before { top: 24px; left: 24px; border-radius: 6px; }
@media (max-width: 1439px) {
  body.ms-interior .ms-shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  body.ms-interior .ms-shop-main { grid-template-columns: minmax(0, 1fr); }
  body.ms-interior .ms-shop-main .woocommerce-ordering { grid-column: 1; justify-self: end; margin-top: 20px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.ms-interior .ms-shop-layout { padding-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.ms-interior .ms-shop-layout .ms-filter { position: static; padding: 0; }
  body.ms-interior .ms-shop-layout .ms-filter__mtoggle { min-height: 44px; border-radius: 10px; background: var(--ms-surface); border: 1px solid var(--ms-line); }
  body.ms-interior .ms-shop-layout .ms-filter__inner { padding: 20px; max-height: 65dvh; background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: 12px; }
  body.ms-interior .ms-shop-layout .ms-check { min-height: 44px; }
  body.ms-interior .ms-shop-layout .ms-filter__more { min-height: 44px; }
  body.ms-interior .ms-shop-main .woocommerce-products-header__title { font-size: 30px; }
}
@media (max-width: 540px) {
  body.ms-interior .ms-shop-layout { --catalog-gap: 16px; padding-inline: 16px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products { grid-template-columns: minmax(0, 1fr); }
  body.ms-interior.woocommerce .ms-shop-layout ul.products li.product { padding: 20px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products li.product img { aspect-ratio: 3 / 2; padding: 20px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products li.product .woocommerce-loop-product__title { min-height: 0; font-size: 18px; }
  body.ms-interior.woocommerce .ms-shop-layout ul.products li.product a.button.ms-supplier-button { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ms-interior .ms-shop-layout *, body.ms-interior .ms-shop-layout *::after { transition: none !important; }
}

body.ms-interior .ms-shop-main > .page-description,
body.ms-interior .ms-shop-main > .term-description {
  grid-column: 1 / -1;
  max-width: 78ch;
  margin: 28px 0 8px;
  line-height: 1.55;
}
body.ms-interior .ms-shop-main > :is(.page-description, .term-description) p { margin: 0 0 .55em; }
body.ms-interior .ms-shop-main > :is(.page-description, .term-description) p a {
  text-decoration: underline;
  text-underline-offset: .16em;
}
