/* Mofu Store Filters - matches the approved prototype (2026-11-12) */
/* the theme's page title is replaced by the store's own heading */
.mofu-store-page .fl-post-header{display:none}
.mofu-store-page .fl-content{margin-top:16px!important;padding-top:0!important}
.mofu-store-page .fl-page-content{overflow-x:clip}
.mofu-store{
  --ms-pink:#d9546a; --ms-pink-dark:#c2405a; --ms-pink-soft:#fbe9ec; --ms-pink-line:#f1c3cb;
  --ms-ink:#1f1f24; --ms-muted:#6b6b75; --ms-line:#ececf0;
  /* wider than the theme's 1020px column: centred on the screen, up to 1360px */
  width:min(1360px, calc(100vw - 48px)); margin:0 0 60px calc(50% - min(680px, 50vw - 24px)); padding:0; color:var(--ms-ink); font-size:14px; box-sizing:border-box;
}
.mofu-store *{box-sizing:border-box}
.mofu-store a{text-decoration:none;color:inherit}
.mofu-store button{font:inherit;cursor:pointer}
.mofu-store.ms-loading .ms-main{opacity:.45;transition:opacity .15s}

/* ---------- artist banners ---------- */
.ms-artists{border:1.5px solid var(--ms-pink-line);border-radius:14px;padding:14px 18px 16px;margin-bottom:24px}
.ms-artists-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.ms-artists h3{margin:0;font-family:Lexend,sans-serif;font-weight:600;color:var(--ms-pink);font-size:15px}
.ms-hint{font-size:12.5px;color:var(--ms-muted)}
.ms-hint a{color:var(--ms-pink);text-decoration:underline}
.ms-banners{display:grid;grid-template-columns:repeat(var(--ms-cols,8),minmax(0,1fr));gap:10px;padding-top:2px}
/* every banner is a tile you can tick: hover lifts it, the circle top-left shows the state */
.ms-ab{position:relative;display:block;border-radius:8px;outline:2px solid transparent;outline-offset:2px;cursor:pointer;
  transition:opacity .15s,filter .15s,box-shadow .15s,outline-color .15s}
.ms-ab img{width:100%;aspect-ratio:5/2;object-fit:cover;border-radius:8px;display:block}
.ms-ab-txt{aspect-ratio:5/2;background:var(--ms-pink-soft);display:grid;place-items:center;border-radius:8px;font-family:Lexend,sans-serif;font-weight:600;font-size:12px;color:var(--ms-pink-dark);text-align:center;padding:0 4px}
/* no movement on hover (a moving tile slips out from under the mouse and flickers): shadow + outline only */
.ms-ab:hover,.ms-ab:focus-visible{box-shadow:0 5px 14px rgba(217,84,106,.28);outline-color:var(--ms-pink-line)}
.ms-sel .ms-ab:not(.on){opacity:.5;filter:saturate(.6)}
.ms-ab.empty{opacity:.3;filter:grayscale(1)}
.ms-ab:hover{opacity:1!important;filter:none!important}
.ms-ab.on{outline-color:var(--ms-pink)}
.ms-tick{position:absolute;left:5px;top:5px;width:20px;height:20px;box-sizing:border-box;border-radius:50%;background:rgba(255,255,255,.92);border:1.5px solid rgba(0,0,0,.18);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:background-color .15s,border-color .15s;pointer-events:none}
/* checkmark = small drawn icon (crisp at any size), pink preview on hover, white when selected */
.ms-tick::after{content:"";position:absolute;inset:0;background:no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.4' fill='none' stroke='%23d9546a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");opacity:0;transition:opacity .15s}
.ms-ab:hover .ms-tick::after{opacity:.45}
.ms-ab.on .ms-tick{background:var(--ms-pink);border-color:#fff}
.ms-ab.on .ms-tick::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");opacity:1}
/* "All artists" tile */
.ms-all .ms-ab-txt{display:flex;flex-direction:column;justify-content:center;gap:1px;border:1.5px dashed var(--ms-pink-line)}
.ms-all .ms-ab-txt b{font-size:13px}
.ms-all .ms-ab-txt small{font-weight:400;font-size:11px;color:var(--ms-muted)}
.ms-all.on .ms-ab-txt{background:var(--ms-pink);border:1.5px solid var(--ms-pink);color:#fff}
.ms-all.on .ms-ab-txt small{color:#fff;opacity:.85}
.ms-sel .ms-all:not(.on){opacity:1;filter:none}

/* ---------- layout ---------- */
.ms-wrap{display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;align-items:start}

/* ---------- sidebar ---------- */
/* sticks just below the site header (--mofu-header-h is set by the Mofu Header Autohide plugin: the
   header's visible height, 0 while it is hidden); if it is taller than the screen it scrolls by itself */
.ms-side{position:sticky;top:calc(var(--mofu-header-h, 0px) + 16px);max-height:calc(100vh - var(--mofu-header-h, 0px) - 32px);display:flex;flex-direction:column;border:1.5px solid var(--ms-pink-line);border-radius:14px;background:#fff;overflow:hidden;transition:top .28s ease,max-height .28s ease}
.ms-side-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ms-side-head{background:var(--ms-pink);color:#fff;font-family:Lexend,sans-serif;font-weight:600;font-size:16px;padding:13px 18px;display:flex;align-items:center;gap:12px}
.ms-side-head a{margin-left:auto;font-size:12px;font-weight:400;text-decoration:underline;color:#fff}
.ms-close,.ms-grab,.ms-sheet-foot,.ms-toolbar .ms-fbtn,.ms-toolbar .ms-break{display:none}
.ms-search,.ms-find{display:flex;align-items:center;gap:8px;border:1.5px solid var(--ms-line);border-radius:999px;padding:7px 12px;margin:14px 18px 4px}
.ms-find{border-radius:8px;border-width:1px;margin:0 0 8px;padding:6px 10px}
#mofu-store .ms-search input,#mofu-store .ms-find input{border:0!important;outline:0;flex:1;min-width:0;font:inherit;font-size:13px;background:transparent!important;padding:0!important;margin:0;height:auto!important;line-height:1.4;box-shadow:none!important;border-radius:0}
.ms-search span,.ms-find span{font-size:12px}
.ms-group{padding:14px 18px 16px;border-top:1px solid var(--ms-line)}
.ms-search + .ms-group{border-top:0}
.ms-g-title{font-family:Lexend,sans-serif;font-weight:600;font-size:14px;margin-bottom:10px}
.ms-list,.ms-sub{list-style:none;margin:0;padding:0}
.ms-row{position:relative}
.ms-opt{display:flex;align-items:center;gap:10px;padding:5px 22px 5px 0;font-size:13.5px;line-height:1.25}
.ms-opt:hover .ms-lbl{color:var(--ms-pink-dark)}
.ms-box{width:17px;height:17px;border:1.5px solid #c9c9d1;border-radius:5px;flex:none;display:grid;place-items:center;background:#fff}
.ms-opt.on .ms-box{background:var(--ms-pink);border-color:var(--ms-pink)}
.ms-opt.on .ms-box::after{content:"";width:8px;height:4px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.ms-opt.on{font-weight:500}
.ms-lbl{display:flex;flex-direction:column;min-width:0}
.ms-lbl small{font-size:11px;color:#9a9aa4;font-weight:400;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-cnt{margin-left:auto;color:var(--ms-muted);font-size:12px;background:#f4f4f7;border-radius:999px;padding:1px 8px;flex:none}
.ms-opt.on .ms-cnt{background:var(--ms-pink-soft);color:var(--ms-pink-dark)}
/* expand button: fixed slot on the right so all counts line up */
.ms-exp{position:absolute;right:0;top:6px;width:18px;height:18px;border:0;padding:0;border-radius:50%;background:var(--ms-pink-soft);color:var(--ms-pink-dark);font-size:9px;line-height:18px;text-align:center}
.ms-row.open > .ms-exp{transform:rotate(180deg)}
.ms-sub{display:none}
.ms-row.open > .ms-sub{display:block}
.ms-row.open > .ms-opt .ms-lbl small{display:none}
/* tree lines: a branch per sub-item, a rounded L on the last one */
.ms-sub .ms-row{margin-left:8px;padding-left:22px}
.ms-sub .ms-row::before{content:"";position:absolute;left:0;top:0;bottom:0;border-left:2px solid var(--ms-pink-line)}
.ms-sub .ms-row::after{content:"";position:absolute;left:0;top:50%;width:14px;border-top:2px solid var(--ms-pink-line)}
.ms-sub .ms-row.last::before{bottom:calc(50% - 1px);width:14px;border-bottom:2px solid var(--ms-pink-line);border-bottom-left-radius:6px}
.ms-sub .ms-row.last::after{display:none}
.ms-sub .ms-opt{font-size:12.5px;color:var(--ms-muted);padding-right:22px}
.ms-row.grp{border-top:1px dashed var(--ms-line);margin-top:4px;padding-top:4px}
.ms-more{display:inline-block;margin-top:8px;color:var(--ms-pink);font-weight:500;font-size:13px;background:none;border:0;padding:0}
.ms-morebox{display:none;margin-top:8px;border:1px solid var(--ms-line);border-radius:10px;padding:4px 6px 4px 10px;max-height:250px;overflow-y:auto}
.ms-morebox.open{display:block}
.ms-az{display:block;margin-top:10px;color:var(--ms-pink);font-weight:500;font-size:13px}
.ms-row.hide{display:none}
.ms-pills{display:flex;flex-wrap:wrap;gap:6px}
.ms-pill{border:1.5px solid var(--ms-line);border-radius:999px;padding:5px 11px;font-size:12.5px}
.ms-pill i{font-style:normal;color:var(--ms-muted);font-size:11px}
.ms-pill.on{background:var(--ms-pink);border-color:var(--ms-pink);color:#fff}
.ms-pill.on i{color:#fff;opacity:.8}
.ms-stock{display:flex;align-items:center;justify-content:space-between;font-size:13.5px}
.ms-toggle{width:36px;height:20px;border-radius:20px;background:#d6d6dd;position:relative;transition:background .15s}
.ms-toggle::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.ms-stock.on .ms-toggle{background:var(--ms-pink)}
.ms-stock.on .ms-toggle::after{left:18px}

/* ---------- main ---------- */
.ms-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.ms-toolbar h1{font-family:Lexend,sans-serif;font-size:26px;margin:0}
.ms-res{color:var(--ms-muted)}
.ms-sort{margin-left:auto;border:1.5px solid var(--ms-pink-line);border-radius:8px;padding:8px 12px;font:inherit;background:#fff;width:auto}
.ms-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;align-items:center}
.ms-chip{background:var(--ms-pink-soft);color:var(--ms-pink-dark)!important;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:500}
.ms-chip::after{content:" ✕";font-weight:400;opacity:.7}
.ms-clear{color:var(--ms-muted)!important;font-size:13px;text-decoration:underline!important;margin-left:4px}
.mofu-store a:hover,.mofu-store a:focus{text-decoration:none}
#mofu-store .ms-main ul.products{padding:0!important;margin:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 22px}
.ms-main .woocommerce ul.products::before,.ms-main .woocommerce ul.products::after{display:none!important}
#mofu-store .ms-main ul.products li.product{width:100%!important;max-width:none!important;justify-self:stretch!important;margin:0!important;float:none!important;clear:none!important}
.ms-pages{display:flex;gap:6px;justify-content:center;margin:26px 0 0;flex-wrap:wrap}
.ms-pages a,.ms-pages b,.ms-pages span{min-width:34px;height:34px;display:grid;place-items:center;border-radius:8px;border:1.5px solid var(--ms-line);font-weight:500}
.ms-pages b{background:var(--ms-pink);border-color:var(--ms-pink);color:#fff}
.ms-pages span{border:0}
.ms-none{padding:40px 0;color:var(--ms-muted)}
.ms-none a{color:var(--ms-pink);text-decoration:underline}

/* ---------- A–Z page ---------- */
.ms-az-page{columns:3 260px;column-gap:40px}
.ms-az-page section{break-inside:avoid;margin-bottom:18px}
.ms-az-page h2{font-family:Lexend,sans-serif;color:var(--ms-pink);font-size:20px;margin:0 0 6px;border-bottom:1.5px solid var(--ms-pink-line)}
.ms-az-page ul{list-style:none;margin:0;padding:0}
.ms-az-page li a{display:flex;gap:6px;padding:4px 0}
.ms-az-page li a:hover{color:var(--ms-pink-dark)}
.ms-az-page small{color:var(--ms-muted)}
.ms-az-page i{font-style:normal;margin-left:auto;color:var(--ms-muted);font-size:12px}

/* ---------- phone ---------- */
@media (max-width:860px){
  .mofu-store{width:auto;margin:6px 0 40px;font-size:13px}
  .ms-wrap{display:block}
  .ms-artists{padding:12px 0 12px 12px}
  .ms-artists-head{padding-right:12px}
  .ms-banners{display:flex;overflow-x:auto;gap:8px;padding:3px 12px 3px 3px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .ms-banners::-webkit-scrollbar{display:none}
  .ms-ab{flex:0 0 138px;scroll-snap-align:start}
  .ms-toolbar{flex-wrap:wrap;gap:8px}
  .ms-toolbar h1{font-size:22px}
  .ms-res{font-size:12px}
  .ms-toolbar .ms-break{display:block;flex-basis:100%;height:0}
  .ms-sort{margin-left:0;flex:1 1 0;min-width:0;padding:0 12px;height:44px}
  .ms-toolbar .ms-fbtn{display:block;flex:1 1 0;height:44px;padding:0}
  .ms-toolbar{margin-bottom:8px}
  .ms-fbtn{border:0;border-radius:10px;padding:11px 0;background:var(--ms-pink);color:#fff;font-weight:500;font-size:14px}
  .ms-fbtn b{display:inline-block;background:#fff;color:var(--ms-pink);border-radius:999px;font-size:11px;line-height:17px;min-width:17px;margin-left:4px}
  .ms-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .ms-chip{white-space:nowrap;font-size:12px;padding:5px 10px}
  #mofu-store .ms-main ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
  /* sidebar becomes a bottom sheet */
  .ms-side{display:none;position:fixed;left:0;right:0;bottom:0;top:64px;max-height:none;transition:none;z-index:99999;border-radius:18px 18px 0 0;border:0;box-shadow:0 -8px 30px rgba(0,0,0,.25);flex-direction:column}
  .ms-sheet-open .ms-side{display:flex}
  .ms-side-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .ms-grab{display:block;width:40px;height:4px;border-radius:4px;background:rgba(255,255,255,.7);position:absolute;top:6px;left:50%;margin-left:-20px;z-index:2}
  .ms-side-head{padding:18px 18px 12px;font-size:17px}
  .ms-close{display:inline;background:none;border:0;color:#fff;font-size:18px;padding:0 0 0 4px}
  .ms-close{margin-left:auto}
  .ms-side-head a + .ms-close{margin-left:14px}
  .ms-sheet-foot{display:block;padding:12px 16px 18px;background:#fff;border-top:1px solid var(--ms-line)}
  .ms-show{display:block;width:100%;border:0;border-radius:12px;background:var(--ms-pink);color:#fff;font-size:15px;font-weight:500;padding:13px 0}
  .ms-backdrop{position:fixed;inset:0;background:rgba(20,20,30,.45);z-index:99998}
  .ms-opt{padding-top:7px;padding-bottom:7px}
  .ms-exp{top:8px}
}
body.ms-noscroll{overflow:hidden}
.ms-az-head{display:flex;align-items:baseline;gap:18px;margin-bottom:6px}
.ms-az-head h1{font-family:Lexend,sans-serif;font-size:28px;margin:0}
.ms-az-head a{color:var(--ms-pink)!important;font-weight:500}

/* ---------- theme button styles must not leak into the store's buttons ----------
   The theme gives every <button> a blue look and, while pressed (:active / :focus), position:relative + top:1px.
   That made the expand arrow jump out of its place on mouse-down, so the click never landed. */
#mofu-store button,#mofu-store button:hover,#mofu-store button:focus,#mofu-store button:active{
  background-image:none!important;text-shadow:none!important;box-shadow:none!important;text-transform:none;letter-spacing:normal;
  margin:0;min-height:0;transform:none}
#mofu-store .ms-exp,#mofu-store .ms-exp:hover,#mofu-store .ms-exp:focus,#mofu-store .ms-exp:active{
  position:absolute!important;top:6px!important;right:0!important;left:auto!important;bottom:auto!important;display:block!important;
  width:18px!important;height:18px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
  background:var(--ms-pink-soft)!important;color:var(--ms-pink-dark)!important;font-size:9px!important;line-height:18px!important;text-align:center;outline:0}
#mofu-store .ms-exp:hover{background:var(--ms-pink-line)!important}
#mofu-store .ms-exp:focus-visible{box-shadow:0 0 0 2px var(--ms-pink)!important}
#mofu-store .ms-row.open > .ms-exp{transform:rotate(180deg)!important}
#mofu-store .ms-more,#mofu-store .ms-more:hover,#mofu-store .ms-more:focus,#mofu-store .ms-more:active{
  position:static!important;top:auto!important;background:none!important;border:0!important;padding:0!important;color:var(--ms-pink)!important;font-size:13px!important;font-weight:500}
#mofu-store .ms-close,#mofu-store .ms-close:hover,#mofu-store .ms-close:focus,#mofu-store .ms-close:active{
  position:static!important;top:auto!important;background:none!important;border:0!important;color:#fff!important}
#mofu-store .ms-fbtn,#mofu-store .ms-fbtn:hover,#mofu-store .ms-fbtn:focus,#mofu-store .ms-fbtn:active,
#mofu-store .ms-show,#mofu-store .ms-show:hover,#mofu-store .ms-show:focus,#mofu-store .ms-show:active{
  position:static!important;top:auto!important;background:var(--ms-pink)!important;border:0!important;color:#fff!important}
@media (max-width:860px){
  #mofu-store .ms-exp,#mofu-store .ms-exp:hover,#mofu-store .ms-exp:focus,#mofu-store .ms-exp:active{top:8px!important}
}
#mofu-store .ms-side-head .ms-close{margin-left:auto!important}
#mofu-store .ms-side-head a + .ms-close{margin-left:14px!important}
/* "More series": the extra rows unfold inside the same list */
.ms-list.ms-collapsed > .ms-row.ms-extra{display:none}
.ms-list.ms-searching > .ms-row.ms-extra:not(.hide){display:block}

/* ---------- artist banner outline: the theme sets a:hover/a:focus {outline:0}, which wiped the hover
   outline and made a SELECTED banner lose its pink frame while hovered. Full outline, every state. */
#mofu-store .ms-ab,#mofu-store .ms-ab:focus{outline:2px solid transparent!important;outline-offset:2px!important}
#mofu-store .ms-ab:hover,#mofu-store .ms-ab:focus-visible{outline:2px solid var(--ms-pink-line)!important;outline-offset:2px!important}
#mofu-store .ms-ab.on,#mofu-store .ms-ab.on:hover,#mofu-store .ms-ab.on:focus{outline:2px solid var(--ms-pink)!important;outline-offset:2px!important}
#mofu-store .ms-ab img{transition:none!important}
