/* Shop overview: decluttered layout (no sidebar, square tiles, category sections).
   Loaded last on shop.html only; !important is needed to beat theme-dark-clean.css. */

.shop-clean {
  --clean-text: #f4f4ef;
  --clean-muted: rgba(244, 244, 239, 0.55);
  --clean-line: rgba(255, 255, 255, 0.1);
  --clean-line-strong: rgba(255, 255, 255, 0.22);
  --clean-surface: rgba(255, 255, 255, 0.035);
  --clean-accent: #38bdf8;
  --clean-accent-strong: #7dd3fc;
  --clean-pick: #fbbf24;
  --clean-owned: #34d399;
}

/* Full width now that the sidebar is gone */
main.shop-clean.new-store-overview[data-shop-overview] {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 24px clamp(16px, 3vw, 40px) 64px !important;
  display: block !important;
  color: var(--clean-text);
}

/* ---------- Editor's choice strip ---------- */
.pick-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--clean-line);
  border-radius: 12px;
  background: var(--clean-surface);
}

.pick-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--clean-pick);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pick-strip-slides {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.pick-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clean-text) !important;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.pick-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.pick-slide img {
  width: 56px;
  height: 32px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.pick-slide strong {
  flex: none;
  font-size: 14px;
  font-weight: 700;
}

.pick-slide span {
  min-width: 0;
  overflow: hidden;
  color: var(--clean-muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pick-slide:hover strong {
  color: var(--clean-pick);
}

.pick-strip-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.pick-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.pick-dot[aria-current="true"] {
  background: var(--clean-pick);
}

/* ---------- Page title ---------- */
.shop-page-title {
  margin: 44px 0 0;
  color: var(--clean-text);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ---------- Toolbar: search (extending full left), hide owned, sort ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
}

.shop-clean .shop-toolbar .store-search-bar {
  flex: 1 1 auto;
  max-width: none !important;
  margin: 0 !important;
  min-width: 180px;
}

/* ---------- Hide Owned checkbox (top toolbar) ---------- */
.shop-hide-owned {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--clean-line);
  border-radius: 10px;
  background: var(--clean-surface);
  color: var(--clean-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.shop-hide-owned:hover {
  border-color: var(--clean-line-strong);
  color: var(--clean-text);
}

.shop-hide-owned-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.shop-hide-owned-box {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
  transition: all 0.15s ease;
}

.shop-hide-owned-box svg {
  display: block;
}

.shop-hide-owned-input:checked + .shop-hide-owned-box {
  border-color: var(--clean-accent);
  background: var(--clean-accent);
  color: #03131d;
}

.shop-hide-owned-input:focus-visible ~ .shop-hide-owned-box {
  outline: 2px solid var(--clean-accent);
  outline-offset: 2px;
}

.shop-hide-owned:has(.shop-hide-owned-input:checked) {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: var(--clean-text);
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clean-muted);
  font-size: 13px;
}

.shop-sort select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--clean-line);
  border-radius: 10px;
  background: #11151a;
  color: var(--clean-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Subbar: Category jump links and filter chips on the same level ---------- */
.shop-subbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.shop-jump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.shop-jump[hidden] {
  display: none;
}

.shop-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--clean-line);
  border-radius: 10px;
  background: var(--clean-surface);
  color: var(--clean-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shop-chip:hover {
  border-color: var(--clean-line-strong);
}

.shop-chip img {
  width: 13px;
  height: 13px;
}

.shop-chip.is-pick svg { color: var(--clean-pick); }
.shop-chip.is-mac svg { color: #7dd3fc; }

.shop-chip[aria-pressed="true"] {
  border-color: var(--clean-accent);
  background: rgba(56, 189, 248, 0.14);
}

.shop-chip.is-pick[aria-pressed="true"] {
  border-color: var(--clean-pick);
  background: rgba(251, 191, 36, 0.12);
}

.shop-chip.is-amd[aria-pressed="true"] {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

.shop-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--clean-text) !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.shop-jump-link:hover {
  background: rgba(56, 189, 248, 0.18);
}

.shop-jump-link small {
  color: var(--clean-muted);
  font-size: 12px;
  font-weight: 600;
}

.shop-jump-glyph {
  display: inline-flex;
  color: var(--clean-accent);
}

.shop-jump-glyph svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ---------- Category sections ---------- */
.shop-section {
  margin-top: 40px;
  /* html already reserves 64px for the sticky header; this is just breathing room */
  scroll-margin-top: 16px;
}

.shop-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--clean-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.shop-section-title small {
  color: var(--clean-muted);
  font-size: 14px;
  font-weight: 600;
}

.shop-section-glyph {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: var(--clean-accent);
}

.shop-section-glyph svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.shop-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 26px;
}

/* Collapsed: the peek row fades to transparent and the button sits on the fade */
.shop-section.is-collapsed .shop-grid-clip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--peek-fade-start, 70%), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 var(--peek-fade-start, 70%), transparent 100%);
}

.shop-tile.is-peek {
  transform: none !important;
}

.shop-section.is-collapsed .shop-section-toggle {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.shop-section-toggle {
  display: block;
  margin: 26px auto 0;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--clean-line-strong);
  border-radius: 999px;
  background: var(--clean-surface);
  color: var(--clean-text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shop-section-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.shop-section.is-pick .shop-section-glyph {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--clean-pick);
}

.shop-section.is-pick .shop-section-glyph svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

/* ---------- Square tile: full-bleed art; name, price and cart sit on a fade at the bottom ---------- */
.shop-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--clean-line);
  border-radius: 14px;
  background: var(--clean-surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

/* Dark at the bottom, fading to fully transparent over the art */
.shop-tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(9, 12, 16, 0.94) 0%,
    rgba(9, 12, 16, 0.78) 38%,
    rgba(9, 12, 16, 0.32) 72%,
    rgba(9, 12, 16, 0) 100%
  );
  pointer-events: none;
}

.shop-tile:hover,
.shop-tile:focus-within {
  border-color: var(--clean-line-strong);
  transform: translateY(-2px);
}

.shop-tile-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
  color: var(--clean-text) !important;
  text-decoration: none !important;
}

.shop-tile-card:focus-visible {
  outline: 2px solid var(--clean-accent);
  outline-offset: -2px;
  border-radius: 14px 14px 0 0;
}

.shop-tile-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.shop-tile-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-tile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.shop-tile-video.is-playing {
  opacity: 1;
}

.shop-tile:hover .shop-tile-art img {
  transform: scale(1.04);
}

.shop-tile-glyph svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
}

.shop-tile-name {
  position: relative;
  z-index: 2;
  padding: 12px 14px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: "Unbounded", var(--sf-pro), system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shop-tile-pick {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(10, 12, 14, 0.7);
  color: var(--clean-pick);
  backdrop-filter: blur(6px);
}

.shop-tile-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* Quick-add hover cart button next to Buy button */
.shop-tile-quick-cart {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  flex: none;
}

.shop-tile:hover .shop-tile-quick-cart,
.shop-tile:focus-within .shop-tile-quick-cart,
.shop-tile-quick-cart.is-in-cart {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.shop-tile-quick-cart:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.shop-tile-quick-cart:active {
  transform: scale(0.96) !important;
}

.shop-tile-quick-cart .cart-icon-idle {
  display: block;
}

.shop-tile-quick-cart .cart-icon-active {
  display: none;
}

.shop-tile-quick-cart.is-in-cart {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.shop-tile-quick-cart.is-in-cart:hover {
  background: rgba(16, 185, 129, 0.32);
  border-color: rgba(52, 211, 153, 0.7);
  color: #34d399;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
}

.shop-tile-quick-cart.is-in-cart .cart-icon-idle {
  display: none;
}

.shop-tile-quick-cart.is-in-cart .cart-icon-active {
  display: block;
}

@media (hover: none) {
  .shop-tile-quick-cart {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.shop-tile-buy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px 14px;
}

.shop-tile-price {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  font-size: 14px;
}

.shop-tile-price b {
  color: var(--clean-text);
  font-weight: 700;
  white-space: nowrap;
}

.shop-tile-price em {
  color: rgba(244, 244, 239, 0.7);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.shop-tile.is-owned .shop-tile-price {
  opacity: 0.5;
}

.shop-clean .shop-tile-cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--clean-accent);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
  color: #03131d !important;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.shop-clean .shop-tile-cart:hover {
  background: var(--clean-accent-strong);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.42);
}

.shop-clean .shop-tile-cart:active {
  transform: scale(0.98);
}

.shop-tile-owned {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  color: var(--clean-owned);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Empty state + socials ---------- */
.shop-empty {
  margin: 48px 0;
  color: var(--clean-muted);
  text-align: center;
}

.shop-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
}

.shop-socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clean-line);
  border-radius: 10px;
  color: var(--clean-muted) !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.shop-socials a:hover {
  border-color: var(--clean-line-strong);
  color: var(--clean-text) !important;
}

@media (max-width: 720px) {
  .pick-slide span,
  .pick-strip-label {
    display: none;
  }

  /* Compact top: slim pick strip, smaller title, search + sort on one row, filters on one row */
  main.shop-clean.new-store-overview[data-shop-overview] {
    padding-top: 14px !important;
  }

  .pick-strip {
    height: 46px;
  }

  .shop-page-title {
    margin-top: 18px;
    font-size: 30px;
  }

  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    margin: 12px 0 0;
  }

  .shop-clean .shop-toolbar .store-search-bar {
    grid-row: 1;
    grid-column: 1 / -1;
    max-width: none !important;
    margin: 0 !important;
  }

  .shop-hide-owned {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    height: 34px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .shop-sort {
    grid-row: 2;
    grid-column: 2;
  }

  .shop-sort > span {
    display: none;
  }

  .shop-clean .shop-sort select {
    width: 104px !important;
    height: 34px !important;
    padding: 0 10px 0 14px !important;
    border-radius: 999px !important;
  }

  .shop-subbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .shop-subbar::-webkit-scrollbar {
    display: none;
  }

  .shop-jump {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 0;
    flex: none;
  }

  .shop-jump-link {
    flex: none;
    height: 32px;
    font-size: 12.5px;
  }

  .shop-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: none;
  }

  .shop-chip {
    flex: none;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .shop-section {
    margin-top: 26px;
    /* the header scrolls away on phones, so cancel most of html's 64px header offset */
    scroll-margin-top: -40px;
  }

  .shop-section-title {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .shop-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  /* Narrow tiles: stack price over a full-width cart button */
  .shop-tile {
    aspect-ratio: 3 / 4;
  }

  .shop-tile::after {
    inset: 30% 0 0;
  }

  .shop-tile-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .shop-tile-name {
    padding: 10px 10px 0;
    font-size: 14px;
  }

  .shop-section.is-collapsed .shop-section-toggle {
    margin-top: -26px;
  }

  .shop-tile-actions {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .shop-tile-actions .shop-clean .shop-tile-cart,
  .shop-tile-actions .shop-tile-cart,
  .shop-tile-actions .shop-tile-owned {
    flex: 1;
    width: auto !important;
  }

  .shop-clean .shop-tile-cart,
  .shop-tile-owned {
    width: 100%;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pick-slide,
  .shop-tile,
  .shop-tile-art img {
    transition: none;
  }
}

/* Phones: Mac and AMD are compatibility details; keep the filter row to Editor's Picks */
@media (max-width: 720px) {
  .shop-filter-chips .shop-chip.is-mac,
  .shop-filter-chips .shop-chip.is-amd {
    display: none !important;
  }
}

/* ---------- Compatibility icons on tiles (Mac / Nvidia / AMD) ---------- */
.shop-tile-compat {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(10, 12, 14, 0.62);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.shop-tile-compat img {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* ---------- Wide screens: 4 tiles a row (centered), plus a subtle section sidebar ---------- */
.shop-side {
  display: none;
}

@media (min-width: 1200px) {
  main.shop-clean.new-store-overview[data-shop-overview] {
    max-width: 1140px !important;
  }

  .shop-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .shop-tile-name {
    font-size: 17px;
  }

  .shop-tile-buy {
    gap: 8px;
    padding: 8px 10px 10px 12px;
  }

  .shop-tile-price {
    font-size: 13px;
  }

  .shop-tile-price em {
    font-size: 12px;
  }

  .shop-clean .shop-tile-cart,
  .shop-tile-owned {
    height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }
}

/* The sidebar sits in the empty space left of the centered grid, so it needs room */
@media (min-width: 1440px) {
  .shop-side {
    position: fixed;
    z-index: 5;
    top: 50%;
    left: clamp(24px, calc((100vw - 1140px) / 2 - 190px), 120px);
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 148px;
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  .shop-side.is-visible {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
  }

  .shop-side[hidden] {
    display: none;
  }

  .shop-side-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .shop-side-link {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: rgba(244, 244, 239, 0.42) !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: color 0.2s ease;
  }

  .shop-side-link:hover,
  .shop-side-link.is-active {
    color: var(--clean-text) !important;
  }

  .shop-side-link.is-empty,
  .shop-side-link.is-empty:hover {
    color: rgba(244, 244, 239, 0.2) !important;
    cursor: default;
  }

  .shop-side-bar {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
  }

  .shop-side-bar b {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(244, 244, 239, 0.28);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
  }

  .shop-side-link.is-active .shop-side-bar b {
    background: rgba(244, 244, 239, 0.75);
  }

  .shop-side-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .shop-side-heading {
    margin: 0 0 6px;
    color: rgba(244, 244, 239, 0.32);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .shop-side-filter {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 30px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(244, 244, 239, 0.5);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .shop-side-filter img,
  .shop-side-filter svg {
    flex: none;
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.75;
  }

  .shop-side-filter.is-hide-owned svg {
    color: var(--clean-accent);
  }

  .shop-side-filter span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shop-side-filter:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--clean-text);
  }

  .shop-side-filter:hover svg {
    opacity: 1;
  }

  .shop-side-check {
    box-sizing: border-box;
    flex: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
  }

  .shop-side-filter[aria-pressed="true"] {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--clean-text);
  }

  .shop-side-filter[aria-pressed="true"] img,
  .shop-side-filter[aria-pressed="true"] svg {
    opacity: 1;
  }

  .shop-side-filter[aria-pressed="true"] .shop-side-check {
    border-color: rgba(244, 244, 239, 0.8);
    background: rgba(244, 244, 239, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a0c10' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
  }
}

@media (max-width: 720px) {
  .shop-tile-compat {
    top: 6px;
    left: 6px;
    gap: 5px;
    height: 21px;
    padding: 0 6px;
  }

  .shop-tile-compat img {
    width: 11px;
    height: 11px;
  }
}

/* ---------- Floating search: stays under the header while you scroll ---------- */
.shop-search-spot {
  display: block;
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0 auto;
}

.shop-search-spot[hidden] {
  display: none;
}

.shop-clean .shop-toolbar .store-search-bar.is-floating {
  position: fixed !important;
  z-index: 40;
  top: 76px;
  left: 50%;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin: 0 !important;
  transform: translateX(-50%);
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(12, 15, 19, 0.66) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  animation: shop-search-float-in 0.2s ease;
}

.shop-clean .shop-toolbar .store-search-bar.is-floating:hover,
.shop-clean .shop-toolbar .store-search-bar.is-floating:focus-within {
  background: rgba(12, 15, 19, 0.82) !important;
}

@keyframes shop-search-float-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
}

@media (max-width: 720px) {
  .shop-search-spot {
    grid-row: 1;
    grid-column: 1;
    max-width: none;
    margin: 0;
  }

  .shop-clean .shop-toolbar .store-search-bar.is-floating {
    top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-clean .shop-toolbar .store-search-bar.is-floating {
    animation: none;
  }
}
