
/* =========================================================
   MPV21 — Marketplace UX, Navigation & Async Feedback
   Desktop-only navigation changes. Existing mobile menu remains locked.
========================================================= */
@media (min-width:901px){
  .topbar .global-header-actions{gap:5px}
  .topbar .global-header-actions .action-chip{min-width:72px}
  .topbar .global-header-actions .header-page-extra{display:none!important}

  .topbar .navstrip.marketplace-desktop-menu.mpv21-dropdown-nav{
    min-height:50px;
    padding:5px 7px;
    overflow:visible;
    display:block;
  }
  .mp-desktop-nav-inner{display:flex;align-items:center;gap:5px;position:relative}
  .mp-nav-home,.mp-nav-link,.mp-nav-trigger{
    min-height:38px;padding:0 13px;border:1px solid transparent;border-radius:11px;background:transparent;color:#625d68;
    display:inline-flex;align-items:center;gap:7px;font:800 11px/1 Arial;cursor:pointer;transition:.18s
  }
  .mp-nav-home:hover,.mp-nav-link:hover,.mp-nav-trigger:hover,.mp-nav-drop.open>.mp-nav-trigger{
    background:#fff;border-color:#e7e1eb;color:#211d2a;box-shadow:0 5px 16px rgba(45,37,63,.07)
  }
  .mp-nav-home>span,.mp-nav-link>span,.mp-nav-trigger>span{width:16px;height:16px;display:inline-flex}
  .mp-nav-trigger em{font-style:normal;font-size:13px;color:#8e8796;margin-left:2px}
  .mp-nav-trigger i.mp-menu-updates-count{position:static;margin-left:3px}
  .mp-nav-drop{position:relative;padding:0;margin:0}
  .mp-nav-panel{
    position:absolute;z-index:130;left:0;top:calc(100% - 2px);width:min(700px,calc(100vw - 56px));
    border:1px solid #e6e0e9;border-radius:22px;background:rgba(255,254,251,.99);box-shadow:0 28px 80px rgba(35,29,47,.18);
    padding:18px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
  }
  .mp-nav-panel:before{content:"";position:absolute;left:0;right:0;top:-10px;height:12px}
  .mp-account-panel{width:min(520px,calc(100vw - 56px))}
  .mp-nav-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 4px 14px;border-bottom:1px solid #eee9f0}
  .mp-nav-panel-head small{display:block;font-size:8px;letter-spacing:.14em;font-weight:900;color:#7c6bd8}
  .mp-nav-panel-head b{display:block;margin-top:4px;font-size:17px;color:#211d2a}
  .mp-nav-panel-head>a{font-size:10px;font-weight:900;color:#6351c9}
  .mp-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px 0}
  .mp-shop-category{min-height:62px;padding:9px 11px;border:1px solid #eee8ef;border-radius:14px;background:#fff;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;transition:.18s ease}
  .mp-shop-category:hover{border-color:#dcd3f5;background:#faf8ff;transform:translateY(-1px)}
  .mp-shop-category-mark{width:36px;height:36px;border-radius:11px;background:#f2effc;color:#6552cf;display:grid;place-items:center}.mp-shop-category-mark svg{width:16px;height:16px}
  .mp-shop-category b,.mp-account-grid b{display:block;font-size:11px;color:#2b2630}
  .mp-shop-category small,.mp-account-grid small{display:block;margin-top:4px;color:#918996;font-size:8.5px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mp-nav-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding-top:13px;border-top:1px solid #eee9f0}
  .mp-nav-shortcuts a{min-height:48px;padding:8px 9px;border-radius:12px;background:#f8f6f3;display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;transition:.18s ease}
  .mp-nav-shortcuts a>span{grid-row:1/3;width:26px;height:26px;border-radius:8px;background:#fff;display:grid;place-items:center;color:#6652d0}.mp-nav-shortcuts a>span svg{width:13px;height:13px}
  .mp-nav-shortcuts b{font-size:9px}.mp-nav-shortcuts small{display:none}
  .mp-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px}
  .mp-account-grid>a{min-height:62px;padding:9px 11px;border:1px solid #eee8ef;border-radius:16px;background:#fff;display:grid;grid-template-columns:38px 1fr;align-items:center;gap:11px;position:relative;transition:.18s ease}
  .mp-account-grid>a:hover{background:#faf8ff;border-color:#ddd4f6}
  .mp-account-grid>a>span{width:34px;height:34px;border-radius:11px;background:#f2effc;color:#6754d9;display:grid;place-items:center}
  .mp-nav-drop::after{content:"";position:absolute;z-index:129;left:-8px;right:-8px;top:calc(100% - 5px);height:12px;pointer-events:auto}
  .mp-nav-shortcuts a:hover{background:#f2eff8;transform:translateY(-1px)}
  .mp-nav-loading{grid-column:1/-1;padding:20px;text-align:center;color:#8e8793;font-size:10px}
  .mp-nav-partner{margin-left:auto;min-height:39px;padding:5px 13px;border:1px solid #d9eadf;border-radius:12px;background:#edf8f1;display:flex;align-items:center;gap:9px;color:#245c3e}
  .mp-nav-partner>span{width:20px;height:20px}.mp-nav-partner small{display:block;font-size:7px;letter-spacing:.08em}.mp-nav-partner b{display:block;font-size:10px;margin-top:2px}
  .mp-menu-updates-count{min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#ff755f;color:#fff;display:grid;place-items:center;font-style:normal;font-size:8px;font-weight:900}
  .mp-menu-updates-count.hidden{display:none!important}
}
@media (min-width:901px) and (max-width:1180px){
  .mp-nav-shortcuts{grid-template-columns:repeat(2,1fr)}
  .topbar .global-header-actions .action-copy{display:none!important}
  .topbar .global-header-actions .action-chip{min-width:43px;width:43px;justify-content:center}
}
@media(max-width:900px){
  .mpv21-dropdown-nav{display:none!important}
}

/* Uniform inventory cards: never compress cards into unreadable slivers. */
@media(min-width:721px){
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
  .product-card{min-width:0;display:flex;flex-direction:column}
  .product-card .product-body{display:flex;flex-direction:column;flex:1}
  .product-card .product-card-foot{margin-top:auto}
  .price-drop-track{
    display:grid;
    grid-template-columns:none!important;
    grid-auto-flow:column;
    grid-auto-columns:clamp(220px,19vw,270px)!important;
    gap:14px;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    padding:2px 2px 10px;
  }
  .price-drop-card{width:auto;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column}
  .price-drop-body{display:flex;flex-direction:column;flex:1}
  .price-drop-add{margin-top:auto}
  .price-drop-media{height:170px}
}
@media(min-width:1450px){
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}
  .price-drop-track{grid-auto-columns:250px!important}
}

/* Shared processing states. */
.mp-button-busy{pointer-events:none!important;cursor:wait!important;opacity:.86!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.mp-busy-spinner{width:15px;height:15px;flex:0 0 15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:mpv21spin .7s linear infinite}
.mp-busy-text{font-size:inherit;font-weight:inherit}
@keyframes mpv21spin{to{transform:rotate(360deg)}}

@media(min-width:901px){
 .mp-standalone-updates{position:fixed;z-index:115;right:22px;top:20px;min-height:42px;padding:0 13px;border:1px solid #e2dce8;border-radius:13px;background:rgba(255,254,251,.96);box-shadow:0 10px 30px rgba(35,29,47,.12);display:flex;align-items:center;gap:7px;color:#37313d;font-size:10px;font-weight:900;backdrop-filter:blur(14px)}
 .mp-standalone-updates>span{width:18px;height:18px;color:#6754d9}.mp-standalone-updates .header-badge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#ff755f;color:#fff;display:grid;place-items:center;font-size:8px;font-style:normal;border:2px solid #fff}
 .mp-standalone-updates .header-badge.hidden{display:none!important}
}
@media(max-width:900px){.mp-standalone-updates{display:none!important}}


/* 2026-09 premium Marketplace mega-menu */
@media(min-width:901px){
 .mpv21-dropdown-nav{padding:6px 10px}
 .mp-desktop-nav-inner{gap:7px}
 .mp-nav-home,.mp-nav-link,.mp-nav-trigger{min-height:40px;padding:0 14px;border-radius:10px;font-size:11px}
 .mp-nav-drop.open>.mp-nav-trigger{background:#fff;border-color:#ded8e5;box-shadow:0 7px 22px rgba(35,29,47,.09)}
 .mp-nav-panel{top:calc(100% + 3px);padding:0;border-radius:18px;border-color:#ddd7e1;background:#fffdf9;box-shadow:0 30px 90px rgba(30,25,38,.20);overflow:hidden;backdrop-filter:none}
 .mp-shop-panel{width:min(960px,calc(100vw - 48px))}
 .mp-account-panel{width:min(760px,calc(100vw - 48px));left:-120px}
 .mp-mega-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:22px 24px 18px;background:linear-gradient(135deg,#201b2b 0%,#302543 68%,#3b2b38 100%);color:#fff}
 .mp-mega-head small,.mp-account-identity small,.mp-menu-label{font-size:7.5px;letter-spacing:.14em;font-weight:900}
 .mp-mega-head small{color:#cbbcf5}.mp-mega-head b{display:block;margin-top:5px;font-size:21px;line-height:1.15}.mp-mega-head p{margin:7px 0 0;max-width:560px;color:#cbc4d0;font-size:9px;line-height:1.5}
 .mp-mega-viewall{flex:0 0 auto;margin-top:4px;padding:10px 13px;border:1px solid rgba(255,255,255,.17);border-radius:9px;background:rgba(255,255,255,.07);color:#fff;font-size:9px;font-weight:900}
 .mp-shop-layout{display:grid;grid-template-columns:230px minmax(0,1fr)}
 .mp-shop-discover{padding:20px;border-right:1px solid #ebe5df;background:#f8f5ef}
 .mp-shop-discover>.mp-menu-label{display:block;margin:0 0 9px;color:#998975}
 .mp-shop-discover>a{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;padding:10px 8px;border-radius:9px;color:#302b31;transition:.16s}
 .mp-shop-discover>a:hover{background:#fff;box-shadow:0 4px 14px rgba(45,37,34,.06);transform:translateX(2px)}
 .mp-shop-discover>a>span{width:30px;height:30px;border-radius:8px;background:#eee7dc;color:#5d4e3f;display:grid;place-items:center}.mp-shop-discover>a>span svg{width:14px;height:14px}
 .mp-shop-discover b{display:block;font-size:10px}.mp-shop-discover small{display:block;margin-top:2px;color:#8a8179;font-size:8px}
 .mp-shop-categories{padding:18px 22px}
 .mp-shop-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:13px}
 .mp-shop-section-head>div>span{display:block;color:#7a6a9f}.mp-shop-section-head>div>small{display:block;margin-top:4px;color:#8e8790;font-size:8.5px}
 .mp-menu-category-search{width:230px;height:36px;padding:0 9px;border:1px solid #e1dce5;border-radius:9px;background:#fff;display:flex;align-items:center;gap:7px}
 .mp-menu-category-search>span{width:14px;height:14px;color:#7a6a9f}.mp-menu-category-search input{width:100%;border:0;outline:0;background:transparent;font:700 9px Arial,sans-serif;color:#342f37}
 .mp-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0}
 .mp-shop-category{min-height:66px;padding:10px 11px;border-radius:10px;border-color:#eee8e2;grid-template-columns:34px minmax(0,1fr) 18px;gap:9px}
 .mp-shop-category:hover{background:#f7f3fc;border-color:#d9cdef;transform:none;box-shadow:0 6px 18px rgba(75,56,101,.06)}
 .mp-shop-category-mark{width:34px;height:34px;border-radius:9px;background:#eee9f7;color:#5d48a8}
 .mp-shop-category b{font-size:10px}.mp-shop-category small{font-size:8px}.mp-shop-category>em{font-style:normal;color:#9a8daa;font-size:12px}
 .mp-shop-empty{padding:20px 4px;color:#807982;font-size:9px}.mp-shop-empty a{font-weight:900;color:#674cc1}
 .mp-shop-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 22px;border-top:1px solid #ebe5df;background:#fbf8f3;font-size:8.5px;color:#7e756d}.mp-shop-footer b{color:#3a342f}.mp-shop-footer a{color:#6048b3;font-weight:900}
 .mp-account-identity{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:13px;padding:20px 22px;background:linear-gradient(135deg,#f3effb,#fffaf1)}
 .mp-account-avatar{width:44px;height:44px;border-radius:13px;background:#281f38;color:#fff;display:grid;place-items:center}.mp-account-avatar svg{width:20px;height:20px}
 .mp-account-identity small{color:#7a62bd}.mp-account-identity b{display:block;margin-top:4px;font-size:16px;color:#27222c}.mp-account-identity p{margin:4px 0 0;color:#89818a;font-size:8.5px}
 .mp-account-identity>a{padding:9px 12px;border-radius:9px;background:#2b2238;color:#fff;font-size:9px;font-weight:900}
 .mp-account-groups{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:18px 22px}
 .mp-account-group:first-child{padding-right:18px;border-right:1px solid #eee8e2}.mp-account-group:last-child{padding-left:18px}
 .mp-account-group-title{margin-bottom:8px;color:#9a8d82;font-size:7.5px;letter-spacing:.13em;font-weight:900}
 .mp-account-links{display:grid;gap:4px}
 .mp-account-links>a{min-height:54px;padding:7px 8px;border-radius:10px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;position:relative;border:1px solid transparent}
 .mp-account-links>a:hover{background:#f8f5fb;border-color:#ece5f4}
 .mp-account-links>a>span{width:32px;height:32px;border-radius:9px;background:#f0ebf8;color:#634daf;display:grid;place-items:center}.mp-account-links>a>span svg{width:14px;height:14px}
 .mp-account-links b{display:block;font-size:10px;color:#322d34}.mp-account-links small{display:block;margin-top:2px;color:#918992;font-size:8px}
 .mp-account-links .mp-menu-updates-count{position:absolute;right:8px;top:8px}
 .mp-account-support{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 22px;border-top:1px solid #ebe5df;background:#fbf8f3}
 .mp-account-support>div{display:flex;align-items:center;gap:9px}.mp-account-support>div>span{width:28px;height:28px;border-radius:8px;background:#eee9f7;color:#644eae;display:grid;place-items:center}.mp-account-support b{display:block;font-size:9px}.mp-account-support small{display:block;margin-top:2px;color:#8d858c;font-size:8px}.mp-account-support>a{font-size:8.5px;font-weight:900;color:#6048b3}
}
@media(min-width:901px) and (max-width:1100px){
 .mp-shop-panel{width:min(820px,calc(100vw - 32px))}
 .mp-account-panel{left:-70px}
 .mp-shop-layout{grid-template-columns:200px minmax(0,1fr)}
 .mp-menu-category-search{width:190px}
}


/* 2026-09 mega-menu spacing refinement: left aligned, calmer density */
@media(min-width:901px){
  .mp-shop-panel{width:min(1000px,calc(100vw - 44px))}
  .mp-shop-layout{grid-template-columns:250px minmax(0,1fr)}
  .mp-shop-discover{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:4px!important;
    padding:22px 18px!important;
  }
  .mp-shop-discover>a{
    display:grid!important;
    width:100%!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    justify-content:start!important;
    text-align:left!important;
    min-height:58px;
    padding:10px 10px!important;
  }
  .mp-shop-discover>a>div,
  .mp-shop-discover>a b,
  .mp-shop-discover>a small{text-align:left!important}
  .mp-shop-categories{padding:20px 24px}
  .mp-shop-section-head{align-items:center;margin-bottom:16px}
  .mp-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
  .mp-shop-category{
    justify-content:start!important;
    text-align:left!important;
    padding:11px 12px!important;
    min-height:72px;
  }
  .mp-shop-category>span:nth-child(2),
  .mp-shop-category b,
  .mp-shop-category small{text-align:left!important}
  .mp-shop-category small{white-space:normal;line-height:1.35;max-width:100%}

  .mp-account-panel{width:min(650px,calc(100vw - 44px));left:-90px}
  .mp-account-identity{grid-template-columns:46px minmax(0,1fr) auto;padding:22px 24px}
  .mp-account-groups{
    display:block!important;
    padding:18px 24px 20px!important;
  }
  .mp-account-group{
    padding:0!important;
    border:0!important;
  }
  .mp-account-group + .mp-account-group{
    margin-top:16px;
    padding-top:16px!important;
    border-top:1px solid #eee8e2!important;
  }
  .mp-account-group-title{margin-bottom:9px}
  .mp-account-links{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .mp-account-links>a{
    width:100%!important;
    min-height:58px;
    grid-template-columns:36px minmax(0,1fr)!important;
    justify-content:start!important;
    text-align:left!important;
    padding:8px 10px!important;
  }
  .mp-account-links>a>div,
  .mp-account-links b,
  .mp-account-links small{text-align:left!important}
  .mp-account-support{
    align-items:center;
    padding:14px 24px;
  }
}
@media(min-width:901px) and (max-width:1100px){
  .mp-shop-panel{width:min(860px,calc(100vw - 28px))}
  .mp-shop-layout{grid-template-columns:220px minmax(0,1fr)}
  .mp-account-panel{width:min(620px,calc(100vw - 28px));left:-55px}
}
