/* wsm-stock-worlds.css: the catalogue's stock worlds UI (TZ-stock-worlds-1to1.md §3, wave W3), loaded by
   MarketController only while StockWorldsView::current() holds a context (flag wsm_stock_worlds_enabled or
   ?preview=worlds). Values are the approved mockup's (artifacts/stock-worlds/project/Main.dc.html, Phone.dc.html).
   Brand purple stays on buttons: nothing here uses it. */

/* §3.1 the world tabs in the header (the live .rst-tabs slot, desktop only: the slot is hidden below 1025px) */
.rst-tabs.sw-wt{gap:2px}
.sw-wt .rst-tab{height:64px;padding:0 14px 0 8px;gap:8px}
.sw-wt .rst-tab::after{left:14px;right:14px}
.sw-wt .rst-tab .rst-ti,.sw-wt .rst-tab:hover .rst-ti,.sw-wt .rst-tab[aria-selected="true"] .rst-ti{width:48px;height:48px;border-radius:0;background:none;transition:transform .25s cubic-bezier(.2,.8,.3,1.4)}
.sw-wt .rst-tab .rst-ti img{width:48px;height:48px;display:block;filter:saturate(.82);transition:filter .2s}
.sw-wt .rst-tab:hover .rst-ti{transform:translateY(-2px) scale(1.08)}
.sw-wt .rst-tab:hover .rst-ti img,.sw-wt .rst-tab[aria-selected="true"] .rst-ti img{filter:none}
/* narrower desktops: the mockup is drawn at 1440; in the live 1fr auto 1fr header five labelled 64px tabs (~694px)
   push the right nav out of the window below that. 1280 to 1439 keeps the labels on smaller tabs; 1025 to 1279
   (the live header drops its ghost Log in there too) shows the selected world's label only, the others stay named
   for screen readers (the text is still in the link) */
@media (min-width:1025px) and (max-width:1439px){.sw-wt .rst-tab{padding:0 8px 0 4px;gap:6px;font-size:14px}.sw-wt .rst-tab::after{left:8px;right:8px}.sw-wt .rst-tab .rst-ti,.sw-wt .rst-tab:hover .rst-ti,.sw-wt .rst-tab[aria-selected="true"] .rst-ti,.sw-wt .rst-tab .rst-ti img{width:40px;height:40px}}
@media (min-width:1025px) and (max-width:1279px){.sw-wt .rst-tab:not([aria-selected="true"]){font-size:0;gap:0}.sw-wt .rst-tab:not([aria-selected="true"])::after{left:4px;right:4px}}
/* the home (and any page with the hero search, Ivan 18.11: Airbnb's tabs on its home): wholesale-search-tabs.css hides the
   header's tabs while the hero carries the search; the world tabs stay, centred in the top bar (grid column 2, row 1) */
@media (min-width:1025px){body:has(form[data-wma-hero]) .wm-header--apex.rst-hd:not(.is-mini):not(.rst-open) .rst-tabs.sw-wt{display:flex}}
@media (prefers-reduced-motion:reduce){.sw-wt .rst-tab .rst-ti,.pw-t img{transition:none}.sw-wt .rst-tab:hover .rst-ti,.pw-t:hover img{transform:none}}

/* §3.10 the phone's world tabs, under the header; the desktop header carries them at 1025px and up */
.pw-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:10px 12px 0;border-bottom:1px solid #E9E6F0;background:#fff}
.pw-tabs::-webkit-scrollbar{display:none}
.pw-t{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 10px 10px;font:500 12px Inter,sans-serif;color:#6A6580;text-decoration:none;border-bottom:2px solid transparent;cursor:pointer}
.pw-t img{width:44px;height:44px;display:block;filter:saturate(.82);transition:transform .25s cubic-bezier(.2,.8,.3,1.4)}
.pw-t:hover img{transform:translateY(-2px) scale(1.06)}
.pw-t[aria-selected="true"]{color:#17142B;font-weight:600;border-bottom-color:#17142B}
.pw-t[aria-selected="true"] img{filter:none}
.pw-t:focus-visible{outline:2px solid #17142B;outline-offset:-2px}
@media (min-width:1025px){.pw-tabs{display:none}}

/* §3.7 + §3.8 «Wholesale near you in <country>», right above the footer */
.sw-insp{margin-top:64px;padding:48px 40px 40px;background:#F6F3EE;border-top:1px solid #E9E6F0;margin-bottom:0}
.sw-insp + .wma-ftr{margin-top:0}
body:has(.sw-insp) .wma-ftr{margin-top:0}
.sw-in{max-width:1360px;margin:0 auto}
.sw-insp h2{margin:0 0 8px;font:600 22px/1.3 Poppins,sans-serif;color:#17142B;letter-spacing:-.01em}
.sw-it{display:flex;gap:24px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #DEDBE4}
.sw-it::-webkit-scrollbar{display:none}
.sw-itab{flex:0 0 auto;padding:14px 0 12px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;font:500 14px Inter,sans-serif;color:#6A6580;cursor:pointer;white-space:nowrap}
.sw-itab:hover{color:#17142B}
.sw-itab[aria-selected="true"]{color:#17142B;font-weight:600;border-bottom-color:#17142B}
.sw-itab:focus-visible{outline:2px solid #17142B;outline-offset:2px}
.sw-ig{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;padding:28px 0 4px}
.sw-ig[hidden]{display:none}
.sw-il{display:block;min-width:0;text-decoration:none;color:#17142B}
.sw-il .sw-ilt{display:block;font:600 14px/1.35 Inter,sans-serif;color:#17142B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-il .sw-ils{display:block;margin-top:2px;font:400 14px/1.35 Inter,sans-serif;color:#6A6580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-il:hover .sw-ilt{text-decoration:underline}
.sw-ig:not(.is-more) .sw-x{display:none}
.sw-il.sw-im{align-self:start}
.sw-im .sw-ilt{display:inline-flex;align-items:center;gap:4px;font:600 14px Inter,sans-serif;color:#17142B;text-decoration:underline}
.sw-im .sw-ilt svg{flex:0 0 auto}

/* §3.6 the supplier card (the lot card's .wac frame): a Closo cover in the photo slot (Ivan 18.11: never a supplier
 * logo, photo, icon or initial tile), the world tag on sand, a factory's two buttons above the stretched card link */
.sw-tag{background:#F6F3EE;color:#17142B}
/* nothing sizes the card past its grid cell (phone 390): the cover is out of flow, the card's one column is clamped
 * and a long tag («Factory · Made to order and ready stock») ends in an ellipsis */
.sw-sc .wac-ph img{position:absolute;inset:0}
.wm-card.sw-sc{grid-template-columns:minmax(0,1fr)}
.sw-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sw-fbtns{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;position:relative;z-index:2}
.sw-fbtns .wm-btn-solid,.sw-fbtns .wm-btn-ghost{font-size:13px;padding:8px 14px;cursor:pointer}
@media (max-width:1024px){
  /* §3.6 phone: the factory buttons are desktop only (the card opens the profile) */
  .sw-fbtns{display:none}
  .sw-insp{margin-top:40px;padding:32px 16px 24px}
  .sw-insp h2{margin:0 0 4px;font-size:20px}
  .sw-it{gap:20px}
  .sw-itab{padding:12px 0 10px}
  .sw-ig{grid-template-columns:1fr 1fr;gap:20px 16px;padding:22px 0 4px}
  /* a phone shows 9 links of a page, then Show more */
  .sw-ig:not(.is-more) .sw-il:not(.sw-im):nth-child(n+10){display:none}
}
