/* Buyer marketplace overrides. Header art and other store pages stay independent. */
body[data-page="shop"] {
  --sf-text: #242927;
  --sf-muted: #5d6661;
  --sf-line: #dce2de;
  --sf-wash: #f5f7f5;
  --sf-link: #086554;
  --sf-rail: 220px;
  --sf-gap: 22px;
  --subnav-row-height: 40px;
  color: var(--sf-text);
  background: #fff;
  letter-spacing: 0;
}

body[data-page="shop"] .ambient-layer { display: none; }

body[data-page="shop"] main {
  --ink: var(--sf-text);
  --muted: var(--sf-muted);
  --line: var(--sf-line);
  color: var(--sf-text);
  background: #fff;
}

body[data-page="shop"] main > .container,
body[data-page="shop"] main > section > .container,
body[data-page="shop"] .buyer-store-shortcuts.container {
  width: min(1560px, calc(100% - 40px));
  min-width: 0;
}

body[data-page="shop"] main :is(button, input, select, summary, .btn) {
  max-width: 100%;
  font-family: inherit;
  letter-spacing: 0;
}

body[data-page="shop"] main :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid #087c68;
  outline-offset: 3px;
}

body[data-page="shop"] .site-header {
  color: #fff;
  background: #171a19;
  border-bottom-color: #353d38;
}

body[data-page="shop"] .store-coming-soon-tape {
  width: 100%;
  min-height: 25px;
  margin: 0;
  gap: 24px;
  padding: 4px 20px;
  border: 0;
  border-bottom: 1px solid #dbe7df;
  color: #46524a;
  background: #edf5f0;
  box-shadow: none;
  transform: none;
}

body[data-page="shop"] .store-coming-soon-tape span {
  padding: 0;
  font-family: inherit;
  font-size: .67rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="shop"] .store-coming-soon-tape span:first-child { color: #176349; }
body[data-page="shop"] .store-coming-soon-tape span:nth-child(n + 3) { display: none; }
body[data-page="shop"] .store-coming-soon-tape span::before,
body[data-page="shop"] .store-coming-soon-tape span::after { content: none; }

body[data-page="shop"] .buyer-store-masthead {
  padding: 14px 0 10px;
  border: 0;
  background: #fff;
}

body[data-page="shop"] .buyer-store-masthead-inner { gap: 12px; align-items: center; }
body[data-page="shop"] .buyer-store-masthead-inner > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

body[data-page="shop"] .buyer-store-masthead .eyebrow { display: none; }
body[data-page="shop"] .buyer-store-masthead h1 {
  min-width: 0;
  margin: 0;
  color: #222725;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body[data-page="shop"] .buyer-store-masthead p:last-child {
  margin: 0;
  color: var(--sf-muted);
  font-size: .8rem;
}

body[data-page="shop"] .buyer-store-shortcuts {
  top: var(--site-header-height);
  z-index: 46;
  height: var(--subnav-row-height);
  min-height: var(--subnav-row-height);
  gap: 22px;
  padding: 0;
  border-bottom: 1px solid var(--sf-line);
  color: var(--sf-text);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: none;
}

body[data-page="shop"] .buyer-store-shortcuts::-webkit-scrollbar { display: none; }
body[data-page="shop"] .buyer-store-shortcuts a {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 34px;
  padding: 4px 1px;
  border: 0;
  border-radius: 0;
  color: #414a45;
  background: transparent;
}

body[data-page="shop"] .buyer-store-shortcuts a:hover,
body[data-page="shop"] .buyer-store-shortcuts a:focus-visible {
  color: var(--sf-link);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body[data-page="shop"] .buyer-store-shortcuts strong { font-size: .74rem; font-weight: 650; }
body[data-page="shop"] .buyer-store-shortcuts span { display: none; }

body[data-page="shop"] .store-market-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 18px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="shop"] .store-market-switch a {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #667069;
  background: transparent;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
}

body[data-page="shop"] .store-market-switch a:is([aria-current="page"], :hover, :focus-visible) {
  border-bottom-color: #168267;
  color: #184b3e;
  background: transparent;
}

body[data-page="shop"] #inventory { padding: 12px 0 36px; }

/* Keep the product departments above search at every viewport size. */
body[data-page="shop"] .storefront-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0 0 12px;
}

body[data-page="shop"] .storefront-preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: end;
  min-width: 0;
}
body[data-page="shop"] .storefront-preferences label { display: grid; gap: 4px; min-width: 0; flex: 0 1 170px; color: #35463b; font-size: .74rem; }
body[data-page="shop"] .storefront-preferences select { width: 100%; min-width: 0; height: 36px; padding: 4px 8px; border: 1px solid #a8bdb0; border-radius: 6px; color: #21372a; background: #fff; font-size: .83rem; }
body[data-page="shop"] .storefront-preferences p { flex: 1 1 220px; margin: 0; color: #4a5b50; font-size: .75rem; line-height: 1.5; }
body[data-page="shop"] .bubble-live { --sf-foil: linear-gradient(115deg, #b8ffe0, #f8f58c 48%, #fac6dc); }
body[data-page="shop"] .storefront-show-context { display: grid; gap: 3px; margin: 0; color: #23553f; font-size: .75rem; overflow-wrap: anywhere; }
body[data-page="shop"] .storefront-show-context span { font-weight: 700; }

body[data-page="shop"] .buyer-store-search-shell { min-width: 0; margin: 0; }
body[data-page="shop"] .buyer-store-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 0;
  min-height: 46px;
  border: 2px solid #303b34;
  border-radius: 6px;
  background: #fff;
}

body[data-page="shop"] .buyer-store-search-row:focus-within {
  border-color: #147c63;
  box-shadow: 0 0 0 3px #d9f2e5;
}

body[data-page="shop"] .buyer-store-search {
  display: block;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  box-shadow: none;
}

body[data-page="shop"] .buyer-store-search:focus-within { box-shadow: none; }
body[data-page="shop"] .buyer-store-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: inherit;
  color: #252d28;
  background: transparent;
  font-size: 1rem;
  font-weight: 450;
  text-overflow: ellipsis;
}

body[data-page="shop"] .buyer-store-search input::placeholder { color: #727b75; opacity: 1; }
body[data-page="shop"] .buyer-store-search input:focus-visible { outline: none; }
body[data-page="shop"] .storefront-search-submit {
  display: grid;
  width: 46px;
  height: 42px;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid #a9ddc6;
  border-radius: 0 3px 3px 0;
  color: #183c2f;
  background: #bff3d9;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

body[data-page="shop"] .storefront-search-submit:hover { background: #9deac4; }
body[data-page="shop"] .buyer-store-suggestions {
  border-color: #c5d6cb;
  color: var(--sf-text);
  background: #fff;
  box-shadow: 0 12px 28px #1c382329;
}

body[data-page="shop"] .buyer-store-suggestions button {
  min-width: 0;
  gap: 8px;
  border-bottom-color: #e5ebe7;
  color: #29352e;
  overflow-wrap: anywhere;
}

body[data-page="shop"] .buyer-store-suggestions button:is(:hover, :focus-visible) { background: #edf7f1; }
body[data-page="shop"] .buyer-store-suggestions span { color: #28624c; }
body[data-page="shop"] .buyer-store-suggestions em { border-color: #c1d9cb; color: #315e46; }

body[data-page="shop"] .storefront-departments {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7d4cb transparent;
}

body[data-page="shop"] .storefront-bubble {
  --sf-foil: linear-gradient(115deg, #bbf4df, #d2edf4 40%, #f6d4e3 70%, #f7e6a5);
  --sf-pattern: repeating-linear-gradient(135deg, transparent 0 9px, #ffffff70 10px, transparent 11px 20px);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 78px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid #8eaaa0;
  border-radius: 999px;
  color: #23342d;
  background: linear-gradient(180deg, #ffffff7a, #ffffff00 55%, #123e2412), var(--sf-pattern), var(--sf-foil);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 5px #1a3e2a10, 0 2px 0 #243e2724;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body[data-page="shop"] .storefront-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 28%, #ffffffad 48%, transparent 68%);
  transform: translateX(-110%);
  pointer-events: none;
}

body[data-page="shop"] .storefront-bubble::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff80;
  border-radius: inherit;
  pointer-events: none;
}

body[data-page="shop"] .storefront-bubble.bubble-buy { --sf-foil: linear-gradient(115deg, #8deac5, #c4f3ca 55%, #f3e6a7); }
body[data-page="shop"] .storefront-bubble.bubble-auction { --sf-foil: linear-gradient(115deg, #f5bdc9, #f6d8aa 55%, #b4eae2); }
body[data-page="shop"] .storefront-bubble.bubble-deck {
  --sf-foil: linear-gradient(115deg, #b3e9f2, #f0bddb 45%, #f2dc9b 76%, #b9eacf);
  --sf-pattern: repeating-linear-gradient(65deg, transparent 0 4px, #ffffff52 5px, transparent 6px 13px);
}
body[data-page="shop"] .storefront-bubble.bubble-supplies { --sf-foil: linear-gradient(115deg, #a9e5e9, #d4f4db 55%, #f4d2de); }
body[data-page="shop"] .storefront-bubble.bubble-sale { --sf-foil: linear-gradient(115deg, #f8d485, #f4bec8 52%, #d9f0b9); }

body[data-page="shop"] .storefront-bubble:is(.is-active, [aria-pressed="true"]) {
  border-color: #203f30;
  color: #172d23;
  box-shadow: 0 0 0 2px #263e30, inset 0 1px 0 #fff, inset 0 -4px 0 #4ebd8d55;
}

body[data-page="shop"] .storefront-bubble:hover {
  border-color: #355e48;
  box-shadow: 0 0 0 1px #568a6c, inset 0 1px 0 #fff;
}

body[data-page="shop"] .storefront-bubble:is(.is-active, [aria-pressed="true"]):hover {
  box-shadow: 0 0 0 2px #263e30, inset 0 1px 0 #fff, inset 0 -4px 0 #4ebd8d55;
}

body[data-page="shop"] .storefront-bubble:hover::before { animation: storefront-foil-pass .7s ease-out; }
body[data-page="shop"] .storefront-bubble [data-store-deal-count] {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: #313c32;
  font-size: .62rem;
}

@keyframes storefront-foil-pass { to { transform: translateX(110%); } }

body[data-page="shop"] .store-prelaunch-note {
  display: flex;
  gap: 9px;
  margin: 0 0 10px;
  padding: 8px 0;
  border: 0;
  border-block: 1px solid #e4e9e5;
  border-radius: 0;
  color: var(--sf-muted);
  background: transparent;
}

body[data-page="shop"] .store-prelaunch-note strong { color: #48584c; font-size: .72rem; }
body[data-page="shop"] .store-prelaunch-note p { display: inline; margin: 0 0 0 6px; font-size: .72rem; }
body[data-page="shop"] .store-lock-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: #e8f3ed;
  box-shadow: none;
  font-size: .85rem;
}

/* A single short row, never a second product grid or a hero. */
body[data-page="shop"] .top-ten-marketplace {
  margin: 0 0 8px;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--sf-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body[data-page="shop"] .top-ten-head { gap: 10px; margin: 0 0 7px; }
body[data-page="shop"] .top-ten-head .eyebrow { display: none; }
body[data-page="shop"] .top-ten-head h2 { margin: 0; color: #303a32; font-size: .95rem; line-height: 1.3; }
body[data-page="shop"] .top-ten-grid {
  display: flex;
  gap: 9px;
  max-height: 160px;
  padding: 2px 1px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #bbcbbf #f1f4f1;
  scroll-snap-type: x proximity;
}

body[data-page="shop"] .top-ten-card {
  position: relative;
  display: grid;
  flex: 0 0 148px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 76px 32px 18px;
  gap: 3px;
  min-width: 0;
  height: 148px;
  min-height: 0;
  padding: 7px;
  border: 1px solid #dce4de;
  border-radius: 6px;
  color: var(--sf-text);
  background: #fff;
  box-shadow: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
}

body[data-page="shop"] .top-ten-card:is(:hover, :focus-visible) { border-color: #368568; background: #f9fcfa; }
body[data-page="shop"] .top-ten-card img {
  display: block;
  grid-row: 1;
  width: 100%;
  height: 76px;
  min-height: 0;
  border-radius: 2px;
  object-fit: contain;
  background: #fff;
}

body[data-page="shop"] .top-ten-rank {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  display: inline-grid;
  grid-row: auto;
  width: auto;
  min-width: 23px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid #cee1d1;
  border-radius: 4px;
  color: #28573e;
  background: #eff9f1;
  box-shadow: none;
  font-size: .6rem;
}

body[data-page="shop"] .top-ten-copy {
  display: block;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
}

body[data-page="shop"] .top-ten-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #303a32;
  font-size: .69rem;
  font-weight: 650;
  line-height: 16px;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="shop"] .top-ten-copy small,
body[data-page="shop"] .top-ten-meta small { display: none; }
body[data-page="shop"] .top-ten-meta { grid-row: 3; gap: 4px; align-items: center; }
body[data-page="shop"] .top-ten-meta strong { color: #234c37; font-size: .75rem; line-height: 18px; }

/* Catalog controls remain above a plain, unframed filter rail. */
body[data-page="shop"] .storefront-results-toolbar {
  position: sticky;
  top: calc(var(--site-header-height) + var(--subnav-row-height));
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 2;
  grid-row: 1;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sf-line);
  background: #fff;
}

body[data-page="shop"] .store-catalog-status {
  min-width: 0;
  min-height: 0;
  margin: 0;
  color: var(--sf-muted);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-page="shop"] .store-catalog-status[data-state="loading"] { color: #28635b; }
body[data-page="shop"] .store-catalog-status[data-state="success"] { color: #40614c; }
body[data-page="shop"] .store-catalog-status[data-state="fallback"] { color: #795c19; }
body[data-page="shop"] .store-catalog-status[data-state="error"] { color: #a83248; }
body[data-page="shop"] .storefront-sort { display: flex; min-width: 0; align-items: center; gap: 8px; color: #59635c; font-size: .73rem; }
body[data-page="shop"] .storefront-sort select {
  width: 206px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #cbd6ce;
  border-radius: 4px;
  color: #2c3730;
  background: #fff;
  font-size: .74rem;
  cursor: pointer;
}

body[data-page="shop"] .storefront-filter-toggle { display: none; }
body[data-page="shop"] .storefront-layout { display: grid; grid-template-columns: var(--sf-rail) minmax(0, 1fr); column-gap: var(--sf-gap); align-items: start; min-width: 0; }
body[data-page="shop"] .storefront-results { grid-column: 2; grid-row: 2; min-width: 0; }
body[data-page="shop"] .shop-tools.store-tools.storefront-filters {
  position: sticky;
  top: calc(var(--site-header-height) + var(--subnav-row-height) + 12px);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  max-height: calc(100dvh - var(--site-header-height) - var(--subnav-row-height) - 24px);
  align-items: start;
  margin: 0;
  padding: 0 12px 12px 0;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #e5eae6;
  border-radius: 0;
  color: var(--sf-text);
  background: none;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #c5d0c8 transparent;
}

body[data-page="shop"] .storefront-filter-heading { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 6px; }
body[data-page="shop"] .storefront-filter-heading h2 { margin: 0; font-size: .9rem; font-weight: 750; }
body[data-page="shop"] .storefront-filter-heading button { padding: 4px 0; border: 0; color: #41694f; background: none; font-size: .7rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body[data-page="shop"] .storefront-filters label { display: grid; min-width: 0; gap: 6px; color: #505d53; font-size: .72rem; font-weight: 650; line-height: 1.35; }
body[data-page="shop"] .storefront-filters :is(select, input:not([type="range"])) {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cbd5ce;
  border-radius: 4px;
  color: #333e36;
  background: #fff;
  font-size: .76rem;
  font-weight: 450;
  text-overflow: ellipsis;
}

body[data-page="shop"] .storefront-filters select { cursor: pointer; }
body[data-page="shop"] .storefront-filters option { color: #28352c; background: #fff; }
body[data-page="shop"] .storefront-filters input::placeholder { color: #727d75; }
body[data-page="shop"] .storefront-filters input[type="range"] { width: 100%; min-width: 0; height: 24px; margin: 0; accent-color: #197d5e; cursor: pointer; }
body[data-page="shop"] .storefront-filters .store-taxonomy-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
body[data-page="shop"] .storefront-filters .price-range-readout { min-height: 0; padding: 0; border: 0; border-radius: 0; color: #31583e; background: none; font-size: .78rem; }

body[data-page="shop"] .buyer-filter-summary { min-height: 0; gap: 6px; margin: 0 0 10px; color: #5d6a60; font-size: .69rem; }
body[data-page="shop"] .buyer-filter-summary:empty { display: none; }
body[data-page="shop"] .buyer-filter-summary :is(strong, button) { padding: 5px 7px; border: 1px solid #d2ddd4; border-radius: 4px; color: #375c43; background: #f1f7f2; font-weight: 600; overflow-wrap: anywhere; }
body[data-page="shop"] .buyer-filter-summary button { border-color: #becfc2; color: #315e3d; background: #fff; }
body[data-page="shop"] .buyer-filter-summary strong.is-close-match { border-color: #e4ce92; color: #72540b; background: #fff8e5; }
body[data-page="shop"] .storefront-deal-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e8ccd9; border-left: 3px solid #d85893; border-radius: 4px; color: #713151; background: #fff6fa; font-size: .76rem; overflow-wrap: anywhere; }
body[data-page="shop"] .storefront-deal-notice :is(a, button) { color: #803158; }

/* Compact cards retain readable pricing; the floating preview never crops artwork. */
body[data-page="shop"] .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
body[data-page="shop"] .store-product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce3de;
  border-radius: 6px;
  color: var(--sf-text);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  contain-intrinsic-size: auto 520px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body[data-page="shop"] .store-product-card:hover { border-color: #a5b8ab; box-shadow: 0 3px 12px #293e2910; transform: none; }
body[data-page="shop"] .store-product-card .product-media { flex: 0 0 auto; aspect-ratio: 4 / 3; border-bottom: 1px solid #eef1ee; border-radius: 0; background: #fafbfa; }
body[data-page="shop"] .store-product-card .product-media img { width: 100%; height: 100%; padding: 12px; object-fit: contain; object-position: center; background: #fff; transform: none; transition: none; }
body[data-page="shop"] .store-product-card .product-media .store-catalog-art-thumb { right: 6px; bottom: 6px; width: 39px; height: 54px; padding: 2px; border: 1px solid #c6d3ca; border-radius: 3px; box-shadow: 0 2px 5px #17302021; pointer-events: none; }
body[data-page="shop"] .store-product-card .holo-sheen { display: none; }
body[data-page="shop"] .store-product-card .product-badge { top: 7px; left: 7px; max-width: calc(100% - 14px); padding: 3px 6px; border: 1px solid #d4e1d8; border-radius: 4px; color: #345840; background: #f4fbf5f2; backdrop-filter: none; font-size: .59rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
body[data-page="shop"] .storefront-sale-badge { position: absolute; z-index: 4; right: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 4px 6px; border: 1px solid #efbad2; border-radius: 4px; color: #843055; background: #fff0f7; font-size: .61rem; font-weight: 750; }
body[data-page="shop"] .store-product-card .product-body { display: flex; flex: 1 1 auto; grid-template-rows: none; min-width: 0; flex-direction: column; gap: 6px; padding: 10px; }
body[data-page="shop"] .store-product-card .card-kicker { margin: 0; color: #657368; font-size: .62rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
body[data-page="shop"] .store-product-card h3 { min-height: 2.6em; margin: 0; color: #252e28; font-size: .9rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
body[data-page="shop"] .store-listing-identifiers { margin: 0; color: #526457; font-size: .75rem; line-height: 1.4; }
body[data-page="shop"] .store-market-meta { gap: 4px 6px; margin: 0; color: #526457; font-size: .75rem; font-weight: 450; line-height: 1.4; overflow-wrap: anywhere; }
body[data-page="shop"] .store-market-meta a { min-width: 0; color: #1b6a51; text-decoration: none; overflow-wrap: anywhere; }
body[data-page="shop"] .store-market-meta a:hover { text-decoration: underline; }
body[data-page="shop"] .store-market-meta :is(span, strong) { color: #67746b; }
body[data-page="shop"] .seller-trust-badge,
body[data-page="shop"] .store-market-meta .seller-trust-badge { max-width: 100%; padding: 2px 5px; border: 1px solid #d1e8d7; border-radius: 4px; color: #356044; background: #eff8f0; font-size: .58rem; font-weight: 650; text-transform: none; overflow-wrap: anywhere; }
body[data-page="shop"] .store-product-card .product-description { display: none; }
body[data-page="shop"] .store-listing-facts { gap: 4px; }
body[data-page="shop"] .store-listing-facts span { padding: 2px 4px; border-radius: 3px; color: #475f50; background: #f1f5f2; font-size: .7rem; overflow-wrap: anywhere; }
body[data-page="shop"] .store-product-card .product-footer { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; margin: auto 0 0; padding-top: 4px; }
body[data-page="shop"] .store-price-stack { flex: 1 1 90px; gap: 3px; }
body[data-page="shop"] .store-current-price { color: #202b24; font-size: 1.18rem !important; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
body[data-page="shop"] .store-shipping-label { color: #5b6d60 !important; font-size: .65rem !important; font-weight: 450; line-height: 1.4; }
body[data-page="shop"] .storefront-saved-price { color: #97375e; font-size: .63rem; line-height: 1.3; overflow-wrap: anywhere; }
body[data-page="shop"] .store-product-placeholder { padding: 18px; color: #49644f; background: #eef5ef; font-family: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }

body[data-page="shop"] .store-checkout-button {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #a5cbb6;
  border-radius: 4px;
  color: #244d34;
  background: #eff9f1;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body[data-page="shop"] .store-product-card .product-footer > .store-checkout-button { min-height: 26px; padding: 3px 0; border: 0; color: var(--sf-link); background: none; font-size: .67rem; }
body[data-page="shop"] .store-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; margin-top: 3px; }
body[data-page="shop"] .store-card-actions .btn,
body[data-page="shop"] .store-detail-copy .btn {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #c7d6cc;
  border-radius: 4px;
  color: #354e3e;
  background: #fff;
  box-shadow: none;
  font-size: .69rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none;
  backdrop-filter: none;
}

body[data-page="shop"] .store-card-actions .btn:hover,
body[data-page="shop"] .store-detail-copy .btn:hover { border-color: #74a98a; background: #f0f8f2; transform: none; }
body[data-page="shop"] .store-card-actions > .btn-primary { grid-column: 1 / -1; order: -1; }
body[data-page="shop"] .store-card-actions .btn-primary,
body[data-page="shop"] .store-detail-copy .btn-primary { border-color: #81bc9d; color: #123d27; background: #bdf2d4; box-shadow: inset 0 1px 0 #ffffff8c; }
body[data-page="shop"] .store-card-actions .btn-primary:hover,
body[data-page="shop"] .store-detail-copy .btn-primary:hover { background: #a4e9c3; }
body[data-page="shop"] main :is(.btn, .store-checkout-button):disabled { border-color: #d4dad5; color: #727c74; background: #f1f3f1; box-shadow: none; cursor: not-allowed; }
body[data-page="shop"] .store-card-actions > .seller-trust-badge { grid-column: 1 / -1; width: fit-content; }
body[data-page="shop"] .store-card-actions details { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #e5ece6; }
body[data-page="shop"] .store-card-actions details summary { min-height: 30px; padding: 7px 2px; color: #5b6c60; font-size: .68rem; font-weight: 600; cursor: pointer; }
body[data-page="shop"] .store-card-actions details[open] summary { margin-bottom: 5px; color: #215b39; }
body[data-page="shop"] .store-card-actions details > :not(summary) { margin-bottom: 5px; }
body[data-page="shop"] .storefront-image-preview { position: fixed; z-index: 10000; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: min(720px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); padding: 10px; border: 1px solid #8acfb3; border-radius: 8px; color: #193c2b; background: #fff; box-shadow: 0 16px 48px #052c354d; }
body[data-page="shop"] .storefront-image-preview[hidden] { display: none; }
body[data-page="shop"] .storefront-image-preview img { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; background: #fff; }
body[data-page="shop"] .storefront-image-preview div { display: grid; gap: 5px; padding: 8px 4px 2px; }
body[data-page="shop"] .storefront-image-preview strong { font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
body[data-page="shop"] .storefront-image-preview span { color: #176c4f; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
body[data-page="shop"] .buyer-store-more { padding-top: 20px; }
body[data-page="shop"] .buyer-store-more .btn { min-height: 40px; padding: 9px 20px; border: 1px solid #becfc3; border-radius: 5px; color: #365b42; background: #fff; font-size: .78rem; box-shadow: none; }
body[data-page="shop"] .empty-state { padding: 32px 14px; border: 0; border-radius: 0; color: #627267; background: #f7faf7; font-size: .8rem; overflow-wrap: anywhere; }
body[data-page="shop"] .empty-state strong { color: #354b3b; font-size: .95rem; }

/* Seller context, details, and live shipping retain their own functional surfaces. */
body[data-page="shop"] .seller-storefront-context { margin: 0 0 14px; padding: 12px 0 12px 14px; border: 0; border-left: 3px solid #4cb18a; border-radius: 0; color: var(--sf-text); background: none; box-shadow: none; backdrop-filter: none; }
body[data-page="shop"] .seller-storefront-context .eyebrow { margin: 0; color: #337254; font-size: .65rem; letter-spacing: 0; }
body[data-page="shop"] .seller-storefront-context h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
body[data-page="shop"] .seller-storefront-context p:last-child { color: var(--sf-muted); font-size: .77rem; }
body[data-page="shop"] .seller-storefront-context .btn { min-height: 36px; padding: 7px 12px; border-color: #c9d9cd; border-radius: 4px; color: #366346; background: #fff; font-size: .73rem; }
body[data-page="shop"] .store-show-modal { padding: 18px; }
body[data-page="shop"] .store-show-panel { padding: 24px; border: 1px solid #d5e0d8; border-radius: 8px; color: var(--sf-text); background: #fff; box-shadow: 0 20px 70px #0005; backdrop-filter: none; }
body[data-page="shop"] .store-show-close { top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid #d1ded4; color: #455b4c; background: #f5f8f5; }
body[data-page="shop"] .store-show-head { padding-right: 32px; }
body[data-page="shop"] .store-show-head h2 { margin: 4px 0; font-size: 1.2rem; line-height: 1.3; }
body[data-page="shop"] .store-show-head p { color: var(--sf-muted); font-size: .8rem; }
body[data-page="shop"] .store-show-head .eyebrow { color: #447751; font-size: .65rem; letter-spacing: 0; }
body[data-page="shop"] .store-show-results { grid-template-columns: minmax(0, 1fr); }
body[data-page="shop"] .store-detail-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; }
body[data-page="shop"] .store-detail-layout > * { min-width: 0; }
body[data-page="shop"] .store-detail-media { border-radius: 4px; background: #f7faf7; }
body[data-page="shop"] .store-detail-media img,
body[data-page="shop"] .store-detail-media.has-catalog-art img { min-height: 0; max-height: 560px; padding: 10px; object-fit: contain; background: #fff; }
body[data-page="shop"] .store-detail-media.has-catalog-art { grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); }
body[data-page="shop"] .store-detail-media figcaption { color: #637668; }
body[data-page="shop"] .store-detail-copy h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
body[data-page="shop"] .store-detail-copy > p { font-size: .8rem; overflow-wrap: anywhere; }
body[data-page="shop"] .store-detail-copy dl { gap: 0 14px; margin: 14px 0; }
body[data-page="shop"] .store-detail-copy dl div { min-width: 0; padding: 9px 0; border: 0; border-bottom: 1px solid #e2e9e3; border-radius: 0; background: none; }
body[data-page="shop"] .store-detail-copy dt { color: #6a7a6e; font-size: .62rem; }
body[data-page="shop"] .store-detail-copy dd { color: #324937; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
body[data-page="shop"] .store-checkout-status { color: #366c45; overflow-wrap: anywhere; }
body[data-page="shop"] #shipping-quote { padding: 16px 0 30px; }
body[data-page="shop"] .shipping-quote-panel { padding: 20px 0; border: 0; border-top: 1px solid var(--sf-line); border-radius: 0; color: var(--sf-text); background: #fff; box-shadow: none; backdrop-filter: none; }
body[data-page="shop"] .shipping-quote-panel .eyebrow { color: #3c7750; font-size: .68rem; letter-spacing: 0; }
body[data-page="shop"] .shipping-quote-panel h2 { font-size: 1.3rem; line-height: 1.3; }
body[data-page="shop"] .shipping-quote-panel > p { color: var(--sf-muted); font-size: .82rem; }
body[data-page="shop"] .shipping-quote-form { gap: 14px; margin-top: 18px; }
body[data-page="shop"] .shipping-field { min-width: 0; }
body[data-page="shop"] .shipping-field > span { color: #485d4e; }
body[data-page="shop"] .shipping-field > small { color: #6a7b6d; }
body[data-page="shop"] .shipping-field :is(input, select) { min-width: 0; min-height: 42px; border: 1px solid #c9d7cc; border-radius: 4px; color: #293f2e; background: #fff; font-size: 1rem; }
body[data-page="shop"] .shipping-field input[readonly] { color: #5a6c5e; background: #f4f7f4; }
body[data-page="shop"] .shipping-form-actions .btn { min-height: 42px; padding: 9px 15px; border: 1px solid #86bea0; border-radius: 4px; color: #16402a; background: #bdf2d4; box-shadow: none; font-size: .78rem; }
body[data-page="shop"] .shipping-rate { min-width: 0; border-color: #d8e2da; border-radius: 5px; background: #f8fbf8; }
body[data-page="shop"] .shipping-rate > div { min-width: 0; overflow-wrap: anywhere; }
body[data-page="shop"] .shipping-rate strong { color: #354d3b; }
body[data-page="shop"] .shipping-rate small { color: #657869; }
body[data-page="shop"] .shipping-rate-price { color: #2b6941; }
body[data-page="shop"] .shipping-quote-status { color: #5c7263; overflow-wrap: anywhere; }
body[data-page="shop"] .shipping-quote-status[data-state="loading"] { color: #25685c; }
body[data-page="shop"] .shipping-quote-status[data-state="success"] { color: #2d7045; }
body[data-page="shop"] .shipping-quote-status[data-state="error"] { color: #a4344f; }
body[data-page="shop"] .shipping-quote-status[data-state="unavailable"] { color: #7d611b; }
body[data-page="shop"] .shipping-provider-disclosure { color: #6d6646; background: #fcfaee; }
body[data-page="shop"] .site-footer { color: #e5ece6; background: #1c211e; }

/* Compact desktop: keep three useful columns alongside the 220px rail. */
@media (max-width: 1199px) {
  body[data-page="shop"] .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="shop"] .storefront-command-bar { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  body[data-page="shop"] .storefront-departments { justify-content: flex-start; }
}

/* Mobile navigation and filter panel: in flow, beneath the sticky controls. */
@media (max-width: 800px) {
  body[data-page="shop"] { --sf-gap: 0px; }
  body[data-page="shop"] main > .container,
  body[data-page="shop"] main > section > .container,
  body[data-page="shop"] .buyer-store-shortcuts.container { width: calc(100% - 24px); }
  body[data-page="shop"] .buyer-store-masthead { padding: 12px 0 6px; }
  body[data-page="shop"] .buyer-store-masthead h1 { font-size: 1.3rem; }
  body[data-page="shop"] .buyer-store-masthead p:last-child { font-size: .72rem; }
  body[data-page="shop"] .buyer-store-shortcuts { gap: 18px; }
  body[data-page="shop"] .storefront-command-bar { gap: 6px; padding-bottom: 8px; }
  body[data-page="shop"] .storefront-departments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-inline: 0; padding: 4px 3px 7px; overflow: visible; }
  body[data-page="shop"] .storefront-bubble { width: 100%; min-width: 0; height: 40px; padding-inline: 7px; font-size: .72rem; white-space: normal; }
  body[data-page="shop"] .storefront-bubble span { overflow-wrap: anywhere; }
  body[data-page="shop"] .storefront-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body[data-page="shop"] .storefront-preferences label { min-width: 0; }
  body[data-page="shop"] .storefront-preferences label:last-of-type { grid-column: 1 / -1; }
  body[data-page="shop"] .storefront-preferences p { grid-column: 1 / -1; }
  body[data-page="shop"] .storefront-results-toolbar { grid-column: 1; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; min-height: 72px; margin-bottom: 12px; padding: 7px 0; }
  body[data-page="shop"] .storefront-filter-toggle { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid #c4d4c8; border-radius: 4px; color: #3a5e45; background: #fff; font-size: .73rem; font-weight: 650; line-height: 1.2; cursor: pointer; }
  body[data-page="shop"] .storefront-filter-toggle[aria-expanded="true"] { border-color: #3a8060; color: #235439; background: #e6f7eb; }
  body[data-page="shop"] .storefront-sort { justify-self: end; width: min(100%, 247px); }
  body[data-page="shop"] .storefront-sort select { width: 100%; min-width: 0; font-size: .72rem; }
  body[data-page="shop"] .store-catalog-status { grid-column: 1 / -1; grid-row: 2; font-size: .69rem; }
  body[data-page="shop"] .storefront-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-page="shop"] .shop-tools.store-tools.storefront-filters { position: static; display: none; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; gap: 13px; margin: 0 0 16px; padding: 0 0 16px; overflow: visible; border: 0; border-bottom: 1px solid var(--sf-line); }
  body[data-page="shop"] .storefront-results { grid-column: 1; grid-row: 3; }
  body[data-page="shop"].storefront-filters-open .shop-tools.store-tools.storefront-filters { display: grid; }
  body[data-page="shop"] .storefront-filter-heading { grid-column: 1 / -1; }
  body[data-page="shop"] .storefront-filters .store-taxonomy-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  body[data-page="shop"] .storefront-filters :is(input:not([type="range"]), select) { min-height: 42px; font-size: 1rem; }
  body[data-page="shop"] .shop-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
  body[data-page="shop"] .store-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body[data-page="shop"] .store-show-panel { padding: 18px; }
  body[data-page="shop"] .store-detail-media img { max-height: 380px; }
}

/* Small phones: compact but readable two-column listing cards. */
@media (max-width: 540px) {
  body[data-page="shop"] .store-coming-soon-tape { gap: 14px; padding-inline: 12px; }
  body[data-page="shop"] .store-coming-soon-tape span { font-size: .61rem; }
  body[data-page="shop"] .buyer-store-masthead h1 { font-size: 1.2rem; }
  body[data-page="shop"] .store-market-switch { width: 100%; gap: 16px; }
  body[data-page="shop"] .store-market-switch a { flex: 0 1 auto; font-size: .69rem; }
  body[data-page="shop"] #inventory { padding-top: 9px; }
  body[data-page="shop"] .buyer-store-search input { padding-inline: 10px; font-size: 1rem; }
  body[data-page="shop"] .store-prelaunch-note { padding-block: 7px; line-height: 1.35; }
  body[data-page="shop"] .store-prelaunch-note p { margin-left: 4px; font-size: .66rem; }
  body[data-page="shop"] .store-prelaunch-note strong { font-size: .67rem; }
  body[data-page="shop"] .top-ten-card { flex-basis: 136px; }
  body[data-page="shop"] .store-product-card .product-body { gap: 6px; padding: 9px; }
  body[data-page="shop"] .store-product-card h3 { font-size: .875rem; }
  body[data-page="shop"] .store-product-card .product-media { aspect-ratio: 1 / 1; }
  body[data-page="shop"] .store-product-card .product-media img { padding: 9px; }
  body[data-page="shop"] .store-product-card .product-media .store-catalog-art-thumb { width: 30px; height: 42px; padding: 2px; }
  body[data-page="shop"] .store-product-card .product-description { display: none; }
  body[data-page="shop"] .store-listing-facts { display: flex; }
  body[data-page="shop"] .store-listing-facts span { font-size: .75rem; }
  body[data-page="shop"] .store-shipping-label { display: block; }
  body[data-page="shop"] .store-product-card .product-footer { flex-direction: column; align-items: stretch; }
  body[data-page="shop"] .store-price-stack { flex: 0 1 auto; }
  body[data-page="shop"] .store-current-price { font-size: 1.125rem !important; }
  body[data-page="shop"] .store-shipping-label { font-size: .75rem !important; }
  body[data-page="shop"] .store-card-actions { gap: 5px; }
  body[data-page="shop"] .store-card-actions .btn { min-height: 34px; padding: 6px 4px; font-size: .63rem; }
  body[data-page="shop"] .store-card-actions > .btn-primary { font-size: .68rem; }
  body[data-page="shop"] .store-card-actions details summary { font-size: .64rem; }
  body[data-page="shop"] .storefront-filters .store-taxonomy-tools { grid-template-columns: minmax(0, 1fr); }
  body[data-page="shop"] .seller-storefront-context { gap: 10px; align-items: flex-start; }
  body[data-page="shop"] .seller-storefront-context .btn { width: auto; }
  body[data-page="shop"] .store-show-modal { padding: 8px; }
  body[data-page="shop"] .store-show-panel { max-height: calc(100dvh - 16px); padding: 15px; }
  body[data-page="shop"] .store-detail-copy dl { grid-template-columns: minmax(0, 1fr); }
  body[data-page="shop"] .store-detail-copy h3 { font-size: 1.1rem; }
  body[data-page="shop"] .shipping-rate { gap: 8px; padding: 12px; }
  body[data-page="shop"] .shipping-security-check > div { max-width: 100%; }
}

/* 320px minimum viewport: 150px cards, 8px gutter, 6px page margins. */
@media (max-width: 380px) {
  body[data-page="shop"] main > .container,
  body[data-page="shop"] main > section > .container,
  body[data-page="shop"] .buyer-store-shortcuts.container { width: calc(100% - 12px); }
  body[data-page="shop"] .shop-grid { gap: 8px; }
  body[data-page="shop"] .storefront-sort { gap: 5px; }
  body[data-page="shop"] .storefront-sort > span { font-size: .65rem; }
  body[data-page="shop"] .storefront-filter-toggle { padding-inline: 9px; }
  body[data-page="shop"] .storefront-bubble { font-size: .66rem; }
  body[data-page="shop"] .shop-tools.store-tools.storefront-filters { grid-template-columns: minmax(0, 1fr); }
  body[data-page="shop"] .store-coming-soon-tape span:nth-child(2) { display: none; }
}

/* Foil motion is decorative and never required to identify the selection. */
@media (prefers-reduced-motion: reduce) {
  body[data-page="shop"] main *,
  body[data-page="shop"] main *::before,
  body[data-page="shop"] main *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.store-discovery-counts { border-top: 1px solid #53646b; padding: 12px 0; margin-bottom: 14px; }
.store-discovery-counts summary { cursor: pointer; padding: 8px 0; font-weight: 700; }
.store-discovery-counts > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.store-discovery-counts > div > p { grid-column: 1 / -1; }
.store-discovery-counts li { overflow-wrap: anywhere; }
[data-product-empty] nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
