/* 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 ---------- */
.ltrust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.ltrust__it { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.ltrust__it .trustbar__ic { width: 44px; height: 44px; border-radius: 13px; }
.ltrust__it .trustbar__ic svg { width: 22px; height: 22px; }
.ltrust__it b { display: block; font: 600 15px var(--display); letter-spacing: -.01em; }
.ltrust__it p { font-size: 12px; color: var(--mute); line-height: 1.35; }
.ltrust__it:nth-child(1) .trustbar__ic { background: #e6f7f0; color: var(--green); }
.ltrust__it:nth-child(3) .trustbar__ic { background: #e9efff; color: var(--blue); }
.ltrust__it:nth-child(4) .trustbar__ic { background: #f0ebff; color: var(--violet); }
@media (max-width: 1000px) { .ltrust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ltrust { grid-template-columns: 1fr 1fr; gap: 8px; } .ltrust__it { padding: 10px; gap: 8px; } .ltrust__it p { display: none; } .ltrust__it b { font-size: 13px; } .ltrust__it .trustbar__ic { width: 34px; height: 34px; } }

/* ---------- 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(26px, 3.4vw, 40px); }
.lhead p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.lsearch { flex: 0 1 440px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 5px 0 14px; 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-right: 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 2px 2px 0; 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; left: 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-right: 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 36px 0 14px; 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; right: 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: left; 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; left: 0; top: 0; bottom: 0; width: min(360px, 90vw); max-height: none; border-radius: 0 22px 22px 0; transform: translateX(-105%); transition: transform .25s ease; padding-bottom: 80px; }
  .lf.open { transform: none; }
  .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-left: auto; margin-right: 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-left: 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-left: 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-right: 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-right: 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; right: 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: left; }
.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 2.4px 2.4px 0; transform: rotate(45deg) translateY(-2px); }
@media (max-width: 640px) { .dd__menu { right: auto; left: auto; right: 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); }
