/* Gamesrift — category and search pages (on top of home-main styles). */
#listing { padding: 18px 0 30px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }

/* ---------- categories on top: icons / images ---------- */
.ltop { position: relative; margin-bottom: 14px; }
.lcats { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; }
.lcats__track { flex: 1; display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; }
.lcats__track::-webkit-scrollbar { display: none; }
.lcats__track a { scroll-snap-align: start; flex: none; }
.lcats--ic a { width: 124px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 18px; text-align: center; transition: background .2s; }
.lcats--ic a:hover { background: var(--paper); }
.lcats__ic { width: 64px; height: 64px; border-radius: 20px; background: var(--paper); display: grid; place-items: center; transition: box-shadow .2s, transform .2s; color: var(--ink); }
.lcats__ic img, .lcats__ic .gicon { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.lcats__ic svg { width: 28px; height: 28px; }
.lcats--ic b { font-size: 13px; line-height: 1.2; }
.lcats--ic small { font-size: 11px; color: var(--mute); }
.lcats--ic a.on { background: var(--brand-soft); }
.lcats--ic a.on .lcats__ic { background: var(--card); box-shadow: 0 0 0 2px var(--brand); }
.lcats--img a { position: relative; width: 210px; height: 120px; border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; padding: 12px; transition: transform .2s; }
.lcats--img a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.lcats--img a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 14, .9), rgba(10, 10, 14, .15) 70%); }
.lcats--img a:first-child::before { background: linear-gradient(135deg, var(--brand), #ff8a3d); }
.lcats--img a:hover > img { transform: scale(1.06); }
.lcats--img a.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--brand); }
.lcats__lbl { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.lcats__lbl img, .lcats__lbl .gicon { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.lcats__lbl .gicon { padding: 0; font-size: 10px; }
.lcats__lbl b { font: 600 15px var(--display); line-height: 1.15; }
.lcats__lbl small { font-size: 11px; opacity: .85; }
@media (max-width: 640px) { .lcats .carr { display: none; } .lcats { padding: 10px; } .lcats--img a { width: 160px; height: 96px; } .lcats--ic a { width: 96px; } }

/* ---------- guarantees strip ---------- */

/* ---------- heading: H1, count, search ---------- */
.lhead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.lhead__t { display: flex; align-items: center; gap: 14px; }
.lhead__ic img, .lhead__ic .gicon { width: 56px; height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 8px; object-fit: contain; }
.lhead__ic .gicon { padding: 0; font-size: 16px; }
.lhead h1 { font-size: clamp(22px, 2.5vw, 31px); }
.lhead p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.lsearch { flex: 0 1 400px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--mute); }
.lsearch:focus-within { border-color: var(--ink); }
.lsearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: none; color: var(--ink); }
.lsearch .btn { height: 40px; border-radius: 10px; padding: 0 18px; }
@media (max-width: 640px) { .lsearch { flex-basis: 100%; } }

/* ---------- layout ---------- */
.lgrid { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.lmain { min-width: 0; }

/* ---------- filters ---------- */
.lf { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 16px 16px; scrollbar-width: thin; }
.lf__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.lf__head b { font: 600 18px var(--display); }
.lf__clear { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.lf__close, .lf__apply { display: none; }
.fg { border-bottom: 1px solid var(--line); padding: 4px 0; }
.fg summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; font-weight: 700; font-size: 14px; }
.fg summary::-webkit-details-marker { display: none; }
.fg summary i { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-3px); transition: transform .2s; }
.fg[open] summary i { transform: rotate(-225deg) translateY(-2px); }
.fg__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; }
.fc { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; transition: background .15s; }
.fc:hover { background: var(--paper); }
.fc input { position: absolute; opacity: 0; pointer-events: none; }
.fc__box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.fc input:checked + .fc__box { background: var(--brand); border-color: var(--brand); }
.fc input:checked + .fc__box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.fc--radio .fc__box { border-radius: 50%; }
.fc--radio input:checked + .fc__box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.fc__t { flex: 1; }
.fc__n { font-size: 12px; color: var(--mute); background: var(--paper); padding: 1px 8px; border-radius: 999px; }
.fc--off { opacity: .4; cursor: default; }
.fc--off:hover { background: none; }
.fg--sw { padding: 12px 0; }
.sw { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw__t { flex: 1; }
.sw__t b { display: block; font-size: 14px; }
.sw__t small { font-size: 12px; color: var(--mute); }
.sw__track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.sw__track i { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked ~ .sw__track { background: var(--brand); }
.sw input:checked ~ .sw__track i { transform: translateX(-18px); }
.lf__bg { display: none; }

/* ---------- toolbar ---------- */
.ltool { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ltool__f { display: none; height: 42px; }
.ltool__f b { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.ltool__n { font-size: 14px; color: var(--mute); margin-left: auto; }
.lsort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.lsort select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 0 36px; font: 600 14px var(--body); color: var(--ink); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2314151b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/14px no-repeat; appearance: none; cursor: pointer; outline: 0; }
.lview { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.lview button { width: 36px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--mute); }
.lview button.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.chip--clear { background: none; color: var(--brand-ink); }

/* ---------- products ---------- */
.lprods { display: grid; gap: 16px; }
.lprods--grid { grid-template-columns: repeat(3, 1fr); }
.lprods--grid.lprods--B { grid-template-columns: repeat(4, 1fr); }
.lprods--list { grid-template-columns: 1fr; gap: 10px; }
.lprods--list .cardC__img { width: 160px; }
.lprods--list .cardC__name { font-size: 15px; white-space: normal; }
.lprods > * { animation: rise .35s both; min-width: 0; }
.is-oos .cardA__img img, .is-oos > img, .is-oos .cardC__img img { filter: grayscale(1) opacity(.55); }
.is-oos .cardA__img::after, .is-oos .cardC__img::after { content: "Sold out"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(20, 21, 27, .35); }
.is-oos .price b { color: var(--mute); }
.notify { height: 38px; padding: 0 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; }
.notify:hover { border-color: var(--ink); }
.notify.done { background: #e6f7f0; color: #067a54; border-color: #bfe9d8; }
.cardC .notify { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.lpager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.lpager__more { min-width: 220px; }
.lpager__nums { display: flex; gap: 4px; align-items: center; }
.lpager__nums button { min-width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.lpager__nums button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lpager__nums button:disabled { opacity: .4; cursor: default; }
.lpager__nums span { padding: 0 4px; color: var(--mute); }
.lempty { text-align: center; padding: 40px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lempty h3 { font-size: 22px; }
.lempty > p { color: var(--mute); margin-bottom: 8px; }
.lempty__pop { align-self: flex-start; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.lempty .lprods { width: 100%; text-align: right; grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) { .lprods--grid.lprods--B { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
  .lgrid { grid-template-columns: 1fr; }
  .ltool__f { display: inline-flex; }
  .lf { position: fixed; z-index: 95; right: 0; top: 0; bottom: 0; width: min(360px, 90vw); max-height: none; border-radius: 22px 0 0 22px; transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; padding-bottom: 80px; }
  .lf.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .lf.open + .lmain + .lf__bg, .lf__bg { display: none; }
  .lf__close { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); font-size: 20px; }
  .lf__clear { margin-right: auto; margin-left: 10px; }
  .lf__apply { display: flex; position: sticky; bottom: 0; margin-top: 14px; }
  .lprods--grid, .lprods--grid.lprods--B { grid-template-columns: repeat(2, 1fr); }
  .lempty .lprods { grid-template-columns: repeat(2, 1fr); }
}
body.noscroll .lf__bg { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(14, 15, 20, .45); }
@media (min-width: 1001px) { body.noscroll .lf__bg { display: none; } }
@media (max-width: 640px) {
  .ltool { gap: 8px; }
  .ltool__n { order: 3; flex-basis: 100%; margin: 0; }
  .lsort span { display: none; }
  .lsort { margin-right: auto; }
  .lprods--grid, .lprods--grid.lprods--B { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lprods--list .cardC__img { width: 110px; }
  .lprods .cardA__name { font-size: 13px; }
  .lprods .cardA__foot .price b { font-size: 17px; }
  .lprods .cardA__plat { width: 34px; height: 34px; }
  .lprods .cardA__glob { height: 24px; padding: 0 7px; font-size: 9px; }
}

/* fixes */
body.noscroll main { z-index: 96; }
.lprods--list .cartbtn { opacity: 1; transform: none; background: var(--brand); color: #fff; }
.lprods--list .cardC { padding: 12px; }

/* ---------- round 2: full-height filters, collapsed groups, show more, sort dropdown ---------- */
@media (min-width: 1001px) { .lf { position: static; max-height: none; overflow: visible; } }
.fg summary { gap: 8px; }
.fg summary i { margin-right: auto; }
.fg__sel { font: 700 11px var(--body); background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.fg__more { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-top: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--blue); }
.fg__more:hover { background: var(--paper); }
.fg__more i { width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.fg__more i.up { transform: rotate(-225deg) translateY(-1px); }

.dd { position: relative; }
.dd__btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: 600 14px var(--body); color: var(--ink); white-space: nowrap; transition: border-color .2s; }
.dd__btn:hover, .dd.open .dd__btn { border-color: var(--ink); }
.dd__btn i { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); transition: transform .2s; }
.dd.open .dd__btn i { transform: rotate(-225deg) translateY(-1px); }
.dd__menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; min-width: 230px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-h); display: none; }
.dd.open .dd__menu { display: block; animation: drop .16s ease-out; }
.dd__menu button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font: 500 14px var(--body); color: var(--ink-2); text-align: right; }
.dd__menu button:hover { background: var(--paper); color: var(--ink); }
.dd__menu button.on { color: var(--ink); font-weight: 700; background: var(--brand-soft); }
.dd__menu button.on::after { content: ""; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translateY(-2px); }
@media (max-width: 640px) { .dd__menu { left: auto; right: auto; left: 0; } }

/* on the main/home shell: the review switcher is hidden there, keep it for the listing variants */
html body.vs-on .vs { display: block !important; }
html body.vs-on .vs.open { display: flex !important; }
.lprods--list .cardA__pf { margin: 2px 0 4px; }

/* sold out: no price, just the status */
.is-oos .price b, .is-oos .price s, .is-oos .cardA__off, .is-oos .off { display: none; }
.is-oos .price::before { content: "Out of stock"; font: 700 15px var(--body); color: var(--mute); }
/* phone: the search box may shrink below the input's natural width (2026-11-28) */
.lsearch { min-width: 0; }
@media (max-width: 640px) { .lsearch .btn { padding: 0 14px; white-space: nowrap; } }

/* 2026-11-28 compact mobile category listing (owner OK) */
@media (max-width: 760px){
  .crumbs,.ltop,.lsearch,.ltool__n,.lsort>span{display:none!important}
  .lhead{display:block!important;margin:14px 0 12px!important;padding:0!important}
  .lhead__t{display:flex!important;align-items:center!important;gap:12px!important}
  .lhead__ic{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:12px!important;background:#fff!important;box-shadow:0 1px 4px rgba(20,21,27,.08)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:4px!important}
  .lhead__ic img{width:36px!important;height:36px!important;max-width:none!important;object-fit:contain!important;border-radius:8px!important;padding:0!important}
  #listing{padding-top:4px!important}
  #listing>.wrap{padding-top:0!important}
  .lhead h1{font-size:19px!important;line-height:1.2!important;margin:0!important}
  .lhead p{font-size:13px!important;margin:3px 0 0!important;color:#7b7a85!important}
  .ltool{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 14px!important;flex-wrap:nowrap!important}
  .ltool__f{height:40px!important;padding:0 14px!important;font-size:14px!important;flex:0 0 auto!important}
  .lsort{flex:1 1 auto!important;min-width:0!important;margin:0!important}
  .lsort .dd,.lsort .dd__btn{width:100%!important}
  .lsort .dd__btn{height:40px!important;font-size:14px!important;padding:0 14px!important;justify-content:space-between!important}
  .lview{height:40px!important;flex:0 0 auto!important;padding:3px!important}
  .lview a{width:34px!important;height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important}
}

/* 2026-11-28 phone trust strip (variant B, no icons) + smaller category icon on listing cards, phone only (owner OK) */
.ltrust{display:none}
@media (max-width: 760px){
  /* one line of fixed height: a wrap in the fallback font used to push the grid down when the web font came (CLS) */
  .ltrust{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;height:34px;justify-content:space-between;align-items:center;gap:6px;margin:0 0 12px;padding:0 10px;background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(20,21,27,.08)}
  .ltrust span,.ltrust a{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font:600 11.5px/1.2 var(--body);color:#3d3c46}
  .ltrust a{text-decoration:none}
  .ltrust a:hover{text-decoration:underline}
  .ltrust .tic{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:var(--brand);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
  .lprods .cardA__plat{width:28px!important;height:28px!important;right:8px!important;top:8px!important;border-radius:9px!important;box-shadow:0 2px 8px rgba(0,0,0,.2)!important}
  .lprods .cardA__plat img,.lprods .cardA__plat .gicon{width:20px!important;height:20px!important;border-radius:5px!important}
}
@media (max-width: 380px){ .ltrust{justify-content:center} .ltrust span,.ltrust a{font-size:11px} }

/* series pills under the title (owner, 2026-11-29: one row like his example): soft pills without borders, the active one dark,
   a round arrow over the right end; desktop only */
.lser { position: relative; margin: -4px 0 22px; }
.lser__track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-left: 56px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); }
.lser__track::-webkit-scrollbar { display: none; }
.lser__p { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; background: rgba(20, 21, 27, .06);
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s; }
.lser__p:hover { background: rgba(20, 21, 27, .11); color: var(--ink); }
.lser__p.on { background: #15161a; color: #fff; }
.lser__next { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 1px 2px rgba(20, 21, 27, .12), 0 4px 12px rgba(20, 21, 27, .1); font-size: 20px; line-height: 1; color: var(--ink); display: grid; place-items: center; }
.lser__next:hover { background: #15161a; color: #fff; }
@media (max-width: 899px) { .lser { display: none; } }
.ltrust::-webkit-scrollbar{display:none}
