/* MarketKit Commerce 2.3 — scoped, additive; never changes header positioning, address size or cart icon. */
body.mk-shell .mk23-commerce-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 2px 0 22px; padding: 13px 15px; border-radius: 18px;
  border: 1px solid #e3ebf7; background: linear-gradient(125deg,#fff 10%,#f7faff 100%);
  box-shadow: 0 10px 24px rgba(25,66,130,.045);
}
body.mk-shell .mk23-quick-filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; min-width: 0; }
body.mk-shell .mk23-filter-pill {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none;
  min-height: 39px; padding: 7px 14px; border-radius: 999px; border: 1px solid #e0e8f5;
  color: #30496e; background: #fff; font-size: 13px; font-weight: 750; white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
body.mk-shell .mk23-filter-pill span { color: #2461d5; font-size: 17px; line-height: 1; }
body.mk-shell .mk23-filter-pill:hover, body.mk-shell .mk23-filter-pill:focus-visible {
  border-color: #8bacf3; color: #0d48b4; transform: translateY(-1px);
}
body.mk-shell .mk23-filter-pill.is-selected { color: #fff; background: #2057d5; border-color: #2057d5; }
body.mk-shell .mk23-filter-pill.is-selected span { color: #fff; }
body.mk-shell .mk23-view-toggle { display: flex; flex: none; gap: 5px; border: 1px solid #dfe8f6; border-radius: 12px; padding: 4px; background: #fff; }
body.mk-shell .mk23-view-toggle button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: #6b7d97; border-radius: 8px; font-size: 21px; line-height: 1; cursor: pointer; }
body.mk-shell .mk23-view-toggle button[aria-pressed="true"] { color: #1249b4; background: #eaf1ff; }
body.mk-shell .mk23-view-toggle button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
/* Optional list layout is scoped to catalog results (home rails and comparisons remain unchanged). */
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-card {
  display: grid; grid-template-columns: minmax(155px, 240px) minmax(0,1fr); align-items: stretch;
  min-height: 210px; max-width: none; width: 100%; padding: 12px; gap: 16px; border-radius: 22px;
}
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-image { height: 100%; min-height: 186px; border-radius: 16px; overflow: hidden; }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-photo-link { height: 100%; }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; gap: 8px; padding: 6px 16px 6px 0; }
body.mk-shell[dir="rtl"] .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy,
html[dir="rtl"] body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy { padding: 6px 0 6px 16px; }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy h3 { font-size: clamp(16px,1.4vw,21px); }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy .mk-card-description { display: block; max-width: 66ch; }
body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-card-price-wrap { align-items: flex-start; }
/* Actual savings/stock facts, never artificial countdowns or invented order volumes. */
body.mk-shell .mk23-purchase-facts { display: flex; gap: 9px; flex-wrap: wrap; margin: 12px 0; }
body.mk-shell .mk23-fact { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 1px solid #d2eade; border-radius: 12px; background: #f0fcf5; color: #16643b; font-size: 13px; font-weight: 700; }
body.mk-shell .mk23-fact.mk23-low-stock { color: #92541e; border-color: #f5dabc; background: #fff8ec; }
body.mk-shell .mk23-fact .woocommerce-Price-amount { font-weight: 800; }
body.mk-shell .mk23-policy-links { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
body.mk-shell .mk23-policy-links a { color: #1e57b7; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; font-weight: 700; }
/* Real transactional feature: opt-in stock alerts (visible only for unavailable products). */
body.mk-shell .mk23-stock-watch { margin: 15px 0; border: 1px solid #dbe8fb; background: linear-gradient(140deg,#f8fbff,#fff); border-radius: 18px; padding: clamp(15px,2vw,22px); max-width: 100%; }
body.mk-shell .mk23-watch-head strong { display: block; font-size: 16px; color: #17355e; font-weight: 800; }
body.mk-shell .mk23-watch-head p { margin: 5px 0 12px; font-size: 13px; line-height: 1.7; color: #61738c; }
body.mk-shell .mk23-watch-input { display: flex; gap: 8px; width: 100%; }
body.mk-shell .mk23-watch-input input[type="email"] { flex: 1; min-width: 0; width: 100%; min-height: 44px; border: 1px solid #d4e0f2; border-radius: 10px; background: #fff; color: #203855; font: inherit; padding: 10px 12px; }
body.mk-shell .mk23-watch-input button { flex: none; border: 0; border-radius: 10px; background: #2458df; color: #fff; font: inherit; font-weight: 800; padding: 10px 18px; cursor: pointer; }
body.mk-shell .mk23-watch-input button:disabled { opacity: .58; cursor: wait; }
body.mk-shell .mk23-watch-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.65; color: #5d6d87; margin: 12px 0 0; cursor: pointer; }
body.mk-shell .mk23-watch-consent input { flex: 0 0 auto; margin-top: 3px; width: 15px; height: 15px; }
body.mk-shell .mk23-watch-result { font-size: 13px; margin: 7px 0 0; min-height: 0; line-height: 1.6; color: #1c5a9d; }
body.mk-shell .mk23-watch-result[data-error="1"] { color: #b52d36; }
body.mk-shell .mk23-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
body.mk-shell .mk-quick-dialog .mk23-stock-watch { margin: 12px 18px 18px; }
body.mk-shell .mk23-stock-watch :focus-visible { outline: 2px solid #2057d5; outline-offset: 3px; }
@media (max-width: 767px) {
 body.mk-shell .mk23-commerce-bar { flex-direction: column; align-items: stretch; padding: 10px; margin-bottom: 14px; gap: 8px; }
 body.mk-shell .mk23-quick-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; overscroll-behavior-x: contain; }
 body.mk-shell .mk23-filter-pill { padding: 7px 11px; font-size: 12px; min-height: 36px; }
 body.mk-shell .mk23-view-toggle { align-self: flex-end; }
 body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-card { grid-template-columns: minmax(96px,36%) minmax(0,1fr); gap: 10px; padding: 8px; min-height: 155px; }
 body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-image { min-height: 145px; }
 body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy { padding: 3px 0; gap: 5px; }
 body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-product-copy h3 { font-size: 14px; }
 body.mk-shell .mk-catalog-results.mk23-list-view .mk-catalog-grid .mk-card-description { display: none; }
 body.mk-shell .mk23-watch-input { flex-wrap: wrap; }
 body.mk-shell .mk23-watch-input button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
 body.mk-shell .mk23-filter-pill { transition: none; }
}
