/* «All lots ▾» — the Faire department menu (operator grant 2026-09-07,
   artifact 53b999d7, mockup values 1:1). Desktop: rail + panel + strip inside
   the catbar panel; phone: two sheet levels inside the burger. Loaded by the
   chrome only while wholesale_mega_menu_faire_enabled is on. */

/* ── desktop: the catbar panel becomes the menu host ─────────────────── */
/* ⛔ THE PANEL MUST FIT THE SCREEN IT OPENS ON. Measured 2026-09-07 at
   1366×768 — the commonest laptop — the panel ran from y=136 to y=862: the
   Collections / Quick-picks strip started at 694 and its bottom was simply
   unreachable, with no affordance saying so. The cap is the viewport minus
   the chrome above it; on a tall screen nothing changes, on a short one the
   panel scrolls inside itself. `overscroll-behavior` keeps that scroll from
   running on into the page underneath. */
.wm-catbar-mega.mm-host { display: none; padding: 0; min-width: 0; width: 1120px; max-width: calc(100vw - 96px); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(26, 32, 44, .28); max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.wm-catbar-cell--all:hover > .wm-catbar-panel.mm-host, .wm-catbar-cell--all:focus-within > .wm-catbar-panel.mm-host { display: block; }
.mm { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto auto; }
/* ⛔ THE RAIL IS NOT ALLOWED TO SET THE MENU'S HEIGHT. Twenty-one departments
   made the rail 727 px tall, so the panel beside it was stretched to match and
   carried 126 px of empty space under its columns; on a 1366×768 laptop the
   whole menu then ran past the bottom of the screen. The cap is what fourteen
   departments occupy — the list keeps every one of them and scrolls, so
   nothing was moved a click deeper to buy the height back (2026-09-07). */
.mm-rail { grid-row: 1 / 3; background: #FAFAFC; border-right: 1px solid #F0EEF6; padding: 10px 8px; display: flex; flex-direction: column; gap: 0; max-height: 470px; }
.mm-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
           /* The cut row at the bottom edge is the affordance — it says there
              is more. The fade is what makes it read as deliberate rather than
              as a clipped element. */
           -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
           mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.mm-list:not(:hover) { scrollbar-color: #D9D5E6 transparent; }
.mm-host .mm-all { flex: none; }
.mm-host .mm-dept { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 9px; font-size: 13px; color: #1A202C; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.mm-host .mm-dept svg { margin-left: auto; color: #B5B2C6; opacity: 0; }
.mm-host .mm-dept:hover, .mm-host .mm-dept.is-on { background: #F1ECFA; color: #452B90; font-weight: 600; }
.mm-host .mm-dept:hover svg, .mm-host .mm-dept.is-on svg { opacity: 1; color: #452B90; }
/* Lazy rail (wsm_mega_rail_lazy_enabled): the rows ship without the 12px chevron
   svg (22 literal copies on proxied pages); the same mark is drawn here in the
   same 12px slot, same colours, same hover/is-on reveal. */
.mm-host .mm--lazy .mm-dept::after { content: ""; flex: none; box-sizing: border-box; width: 5px; height: 5px; margin: 0 3.5px 0 auto; border: solid #B5B2C6; border-width: 1.1px 1.1px 0 0; transform: rotate(45deg); opacity: 0; }
.mm-host .mm--lazy .mm-dept:hover::after, .mm-host .mm--lazy .mm-dept.is-on::after { opacity: 1; border-color: #452B90; }
.mm-host .mm--lazy[data-mm-rest] .mm-panels:empty { display: none; }
.mm-ini { width: 20px; height: 20px; border-radius: 7px; background: #fff; border: 1px solid #E4E2EE; display: grid; place-items: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; font-weight: 600; color: #556070; flex: none; }
.mm-dept.is-on .mm-ini, .mm-dept:hover .mm-ini { border-color: #452B90; color: #452B90; }
.mm-host .mm-all { display: block; margin-top: auto; padding: 12px 10px 6px; font-size: 13px; font-weight: 600; color: #452B90; text-decoration: none; }
/* The panel column keeps the tallest panel's height (head + 372px card +
   paddings) so the Collections / Quick picks strip below stays put while the
   pointer walks the rail (operator 2026-09-07: «jumps up and down»). */
.mm-panels { min-height: 450px; }
.mm-panel { padding: 20px 24px 16px; display: flex; flex-direction: column; min-height: 0; }
.mm-panel[hidden] { display: none; }
.mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mm-head h5 { margin: 0; font-family: Poppins, Poppins Fallback, Inter, Inter Fallback, sans-serif; font-size: 18px; font-weight: 600; color: #1A202C; }
.mm-host .mm-shopall { display: inline; padding: 0; font-size: 13px; font-weight: 600; color: #452B90; }
.mm-host .mm-all svg, .mm-host .mm-shopall svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }
/* Flex, not a 4+1 grid: a department with three columns put the featured
   card in a 1fr track and the card was cut off on the right (operator
   2026-09-07, Women's Clothing). The card keeps its own width whatever the
   column count. */
.mm-cols { flex: 1; display: flex; gap: 22px; }
.mm-col { flex: 1 1 0; min-width: 0; }
.mm-feat { flex: 0 0 232px; }
.mm-col h6, .mm-feat h6 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; font-weight: 700; }
/* A long brand line («TOMMY HILFIGER USA/HNDBAGS & S/L/G») ends in an
   ellipsis inside its column instead of running under the featured card
   (operator 2026-09-07, Handbags & Wallets). */
.mm-host .mm-col a { display: block; padding: 6px 0; font-size: 13.5px; color: #1A202C; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0; }
.mm-host .mm-col a:hover { color: #452B90; background: none; }
/* Hover fix, Faire benchmark (operator 2026-09-26, fix/mega-featured-lot-hover):
   the tile used to be forced small with a transform scaling it down to 82%, and then
   cropped to `height: 372px; overflow: hidden` to hide the un-scaled edges
   that trick left behind. That caused two measured, verified bugs: (1)
   `transform` was fought over by `.wm-card:hover` (wholesale-market.css,
   translateY lift) — same specificity, this sheet loads LAST, so the scale
   rule always won and the featured card never actually lifted on hover
   (measured with Playwright: computed `transform` stayed
   `matrix(0.82,0,0,0.82,0,0)` while hovered, instead of the lift); (2) the
   card's own hover box-shadow (10px 28px) was clipped by this element's
   `overflow: hidden`, and the un-scaled card was tall enough that its own
   bottom edge was clipped too (measured: card bottom sat ~1px past the
   372px box, closer on a card with one more meta line).
   Fixed by sizing the tile NATIVELY: a plain width, with the photo's height
   following from its own `aspect-ratio: 4/3` (wholesale-market.css) instead
   of a post-hoc scale. `.mm-panels { min-height: 450px }` already covers the
   card's native height, and the outer `.mm-host` already scrolls
   (`max-height: calc(100vh - 150px)`) if a panel ever needs more room, so
   nothing here has to crop anything — the shared card's own hover lift and
   shadow (wholesale-market.css `.wm-card:hover`) now just work, unclipped,
   like on every other card on the marketplace. */
.mm-feat .wm-card { width: 232px; }
.mm-feat .wm-card-cta, .mm-feat .wm-card-foot { display: none; }
/* Faire's own featured-tile hover: the photo gets a subtle zoom and the
   title underlines — scoped to the tile only, never the catalogue card. The
   photo's own `overflow: hidden` (wholesale-market.css `.wm-card-photo`)
   clips the zoom to the photo box, so the card's lift/shadow above is never
   clipped by it. */
.mm-feat .wm-card-photo img { transition: transform .25s ease; }
.mm-feat .wm-card:hover .wm-card-photo img,
.mm-feat .wm-card:focus-within .wm-card-photo img { transform: scale(1.045); }
.mm-feat .wm-card:hover .wm-card-title,
.mm-feat .wm-card:focus-within .wm-card-title { text-decoration: underline; }
.mm-foot { grid-column: 2; display: flex; gap: 28px; padding: 14px 24px 16px; border-top: 1px solid #F0EEF6; background: #fff; flex-wrap: wrap; }
.mm-foot-grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-foot-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; font-weight: 700; margin-right: 4px; }
.mm-host .mm-foot a { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #452B90; background: #FAFAFC; border: 1px solid #E4E2EE; border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.mm-host .mm-foot a:hover { background: #F4F2FA; border-color: #452B90; }

/* ── every other header item as the same shell (operator grant 2026-09-07,
   artifact 027980ac): a category → its department panel without the rail,
   More → the whole menu, Collections → tiles, Why buy → the promo cards ── */
.wm-catbar-cell:hover > .wm-catbar-panel.mm-host, .wm-catbar-cell:focus-within > .wm-catbar-panel.mm-host { display: block; }
.wm-catbar-mega.mm-host--dept, .wm-catbar-mega.mm-host--colls, .wm-catbar-mega.mm-host--why { width: 884px; }
.wm-catbar-cell--end > .wm-catbar-mega.mm-host--why { left: auto; right: 0; }
.mm--dept, .mm--colls, .mm--why { grid-template-columns: 1fr; }
.mm--dept .mm-foot, .mm--colls .mm-foot, .mm--why .mm-foot { grid-column: 1; }
.mm--dept .mm-panels { min-height: 0; }
.mm--dept .mm-panel--skeleton:not([hidden]) { display: flex; }
.mmc-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.mm-host .mmc-grid .wsf-coll { display: flex; flex-direction: column; justify-content: flex-end; min-height: 108px; padding: 14px 14px 12px; border-radius: 12px; white-space: normal; color: #1A202C; }
.mm-host .mmc-grid .wsf-coll b { font-size: 13.5px; font-weight: 700; }
.mm-host .mmc-grid .wsf-coll span { font-size: 11.5px; color: #556070; margin-top: 3px; }
.mmw-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.mm-host .mmw-card.wsm-promo-card { display: flex; flex: none; white-space: normal; min-height: 118px; padding: 16px 16px 14px; border-radius: 14px; gap: 6px; }
.mm-host .mmw-card .wsm-promo-title { font-size: 14px; max-width: none; }
.mmw-line { position: relative; font-size: 12px; color: #556070; line-height: 1.4; }
.mm-host .mmw-card .wsm-promo-cta { font-size: 12px; }
.mmw-side .mmw-new { border: 1px solid #E4E2EE; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FAFAFC; }
.mmw-new b { font-family: Poppins, Poppins Fallback, Inter, Inter Fallback, sans-serif; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #1A202C; }
.mmw-new span { font-size: 12.5px; color: #556070; line-height: 1.45; }
.mm-host .mmw-new .wm-btn { display: inline-flex; justify-content: center; white-space: normal; padding: 10px 16px; }
.mm-host .mmw-new .wm-btn:first-of-type { margin-top: 6px; }
/* the panel's link colour must not paint the solid button's text dark (operator 2026-09-07) */
.mm-host .mmw-new a.wm-btn-solid, .mm-host .mmw-new a.wm-btn-solid:hover, .mm-host .mmw-new a.wm-btn-solid:focus { color: #fff; background: #452B90; border-color: #452B90; }
.mm-host .mmw-new a.wm-btn-solid:hover { background: #3A2478; border-color: #3A2478; }
.mm-host .mmw-new a.wm-btn-outline { color: #1A202C; background: #fff; border-color: #1A202C; }
.mm-host .mmw-new a.wm-btn-outline:hover { background: #F4F2FA; color: #452B90; border-color: #452B90; }

/* ── skeleton while a department's panel is fetched (canon skPulse) ──── */
@keyframes mmPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.sk { display: block; height: 12px; border-radius: 6px; background: #EEF2F7; margin: 8px 0; width: 70%; animation: mmPulse 1.5s ease-in-out infinite; }
.sk.sk-h { height: 20px; width: 220px; margin: 0; }
.sk.sk-k { height: 10px; width: 90px; margin: 0 0 10px; }
.sk.sk-card { height: 300px; width: 232px; border-radius: 14px; }
.sk.sk-btn { height: 46px; width: 100%; border-radius: 999px; margin: 8px 0 6px; }
.sk.sk-row { height: 18px; width: 60%; margin: 16px 0; }
.mm-panel--skeleton[hidden], .mmm-l2--skeleton[hidden] { display: none; }

/* ── phone: two levels inside the burger sheet ───────────────────────── */
.mmm { display: block; }
.mmm [hidden] { display: none !important; }
.mmm-all { display: block; margin: 8px 0 6px; padding: 13px 16px; background: #452B90; color: #fff; border-radius: 999px; font-weight: 600; text-align: center; text-decoration: none; font-size: 15px; }
.mmm-all svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }
.mmm-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; font-weight: 700; margin: 18px 0 6px; }
.mmm-list { display: flex; flex-direction: column; }
.wmfab-sheet--f .mmm-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #F0EEF6; border-radius: 0; color: #1A202C; text-decoration: none; font-size: 15.5px; font-weight: 500; justify-content: flex-start; }
.mmm-row svg { margin-left: auto; color: #B5B2C6; }
.mmm .mm-ini { width: 28px; height: 28px; border-radius: 8px; background: #FAFAFC; font-size: 12px; }
.mmm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mmm-chips a { font-size: 13px; font-weight: 600; color: #452B90; background: #FAFAFC; border: 1px solid #E4E2EE; border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.mmm-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid #F0EEF6; font-family: Poppins, Poppins Fallback, Inter, Inter Fallback, sans-serif; font-size: 18px; }
.mmm-head b { flex: 1; font-weight: 600; color: #1A202C; }
.mmm-back { width: 36px; height: 36px; border: 1px solid #E4E2EE; border-radius: 999px; background: #fff; display: grid; place-items: center; color: #1A202C; cursor: pointer; }
.mmm-feat .wm-card { width: 100%; }

/* «Resale prices» column (hub flywheel §6a): DATA, not lots — tinted, with the median beside each brand (operator 08.09) */
.mm-col.mm-col--data{background:#F4F1FB;border-radius:12px;padding:12px 14px;margin:-12px -14px}
.mm-col.mm-col--data h6{color:#452B90}
.mm-col-sub{margin:-2px 0 8px;font:400 11.5px/1.35 Inter, Inter Fallback,sans-serif;color:#7A7290}
.mm-col.mm-col--data a em{font-style:normal;color:#452B90;font-weight:600;font-variant-numeric:tabular-nums;margin-left:4px}
.mmm-k.mmm-k--data{color:#452B90}
.mmm-k.mmm-k--data i{font-style:normal;font-weight:400;text-transform:none;letter-spacing:0;color:#7A7290}
.mmm-row em{font-style:normal;color:#452B90;font-weight:600;margin-left:6px}
