.store-route {
  --shop-width: 1440px;
  --shop-gutter: 112px;
  --shop-bg: #0c0e10;
  --shop-text: #f3f3f1;
  --shop-muted: #a7adb4;
  --shop-accent: #f45248;
  --shop-line: #292d31;
  min-height: 100vh;
  min-height: 100dvh;
  background: #090b0d;
}
.store-route .screen-red-streaks,
.store-route .home-header-search,
.store-route .home-brand-wordmark,
.store-route .mobile-home-navigation { display: none; }
.store-route.is-store-filter-open { overflow: hidden; }
.shop-page { width: min(var(--shop-width), calc(100% - var(--shop-gutter))); margin: 0 auto; padding: 40px 0 56px; }
.shop-page *, .shop-page *::before, .shop-page *::after { min-width: 0; }
.shop-page svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shop-page :is(a, button, input, select):focus-visible { outline: 2px solid #f3776f; outline-offset: 3px; }
.shop-page button, .shop-page select { font: inherit; }
.shop-search {
  display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: 4px 10px; margin: 0 0 18px;
  border: 1px solid #30353d; border-radius: 10px; background: #15181b;
}
.shop-search:focus-within { border-color: #858b91; outline: 2px solid #f452481c; outline-offset: 2px; }
.shop-search input { width: 100%; flex: 1 1 0; min-height: 44px; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--shop-text); font-size: 16px; }
.shop-search input::placeholder { color: #a3aab1; opacity: 1; }
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
.shop-search:has(.shop-search-clear) input::-webkit-search-cancel-button { display: none; }
.shop-search-submit, .shop-search-clear { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #e8ebed; cursor: pointer; }
.shop-search-submit svg { width: 24px; height: 24px; }
.shop-search-clear svg { width: 19px; height: 19px; }
.shop-search-submit:hover, .shop-search-clear:hover { color: #fff; background: #21262b; }
.shop-page.is-loading .shop-search { border-color: #a6505b; }
.shop-page.is-loading .shop-catalog { opacity: .55; pointer-events: none; }

.shop-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); margin: 0 0 18px; }
.shop-category { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 68px; padding: 4px 0 10px; color: var(--shop-muted); text-align: center; }
.shop-category svg { width: 24px; height: 24px; stroke-width: 1.5; }
.shop-category > span { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.shop-category.is-selected { color: var(--shop-text); }
.shop-category.is-selected::after { content: ""; position: absolute; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--shop-accent); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shop-filter-open, .shop-sort { min-height: 44px; border: 1px solid #353b40; border-radius: 9px; background: #101417; color: var(--shop-text); }
.shop-filter-open { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; cursor: pointer; }
.shop-filter-open svg { width: 22px; height: 22px; }
.shop-filter-open > span:not(.shop-filter-dot) { font-size: 14px; white-space: nowrap; }
.shop-filter-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--shop-accent); }
.shop-sort { position: relative; flex: 0 1 180px; margin-left: auto; }
.shop-sort select { display: block; width: 100%; min-height: 44px; padding: 9px 34px 9px 14px; appearance: none; border: 0; border-radius: inherit; background: transparent; color: inherit; font-size: 14px; cursor: pointer; }
.shop-sort option { background: #171b1e; color: var(--shop-text); }
.shop-sort > svg { position: absolute; top: 11px; right: 10px; width: 22px; height: 22px; pointer-events: none; }
.shop-sort-apply { min-height: 44px; margin: 6px; padding: 8px 12px; border: 1px solid #4b535a; border-radius: 6px; color: var(--shop-text); background: #171b1e; cursor: pointer; }
.shop-filter-summary { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: -4px 0 14px; padding-left: 12px; border: 1px solid var(--shop-line); border-radius: 8px; background: #15191c; color: #dce0e3; font-size: 13px; overflow-wrap: anywhere; }
.shop-filter-summary > a { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; }
.shop-filter-summary svg { width: 16px; height: 16px; }

.shop-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.shop-game-card { position: relative; overflow: hidden; border: 1px solid #2b3239; border-radius: 11px; background: #121519; transition: border-color .18s ease, background-color .18s ease; }
.shop-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.shop-card-link:focus-visible { outline: 2px solid #ff6b73; outline-offset: -3px; }
.shop-game-card:focus-within { border-color: #f15b62; }
.shop-card-cover { position: relative; aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; background: #1b2027; }
.shop-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #222936, #15191f); color: #7f8999; }
.shop-cover-fallback svg { width: 38px; height: 38px; }
.shop-cover-fallback span { font-size: .65rem; letter-spacing: .16em; font-weight: 600; }
.shop-card-cover > picture { position: absolute; inset: 0; display: block; }
.shop-card-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shop-card-cover img[hidden] { display: none !important; }
.shop-card-discount { position: absolute; top: 10px; left: 10px; padding: 4px 8px; color: #fff; background: #bd1821; border: 1px solid #e74349; border-radius: 5px; font-size: .75rem; font-weight: 700; line-height: 1.5; }
.shop-card-info { display: flex; flex-direction: column; flex: 1; padding: 10px 12px; }
.shop-card-info h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin: 0; color: var(--shop-text); font-size: .94rem; font-weight: 650; line-height: 1.35; }
.shop-card-title-mobile { display: none; }
.shop-card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 5px; }
.shop-card-platform { margin: 0; flex-shrink: 0; color: var(--shop-muted); font-size: .75rem; line-height: 1.5; }
.shop-card-prices { margin-left: auto; display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.shop-card-old-price { color: #949da6; font-size: .75rem; white-space: nowrap; }
.shop-card-price { color: #ff3d47; font-size: 1.03rem; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.shop-card-price.is-free { color: #79ce9b; }
.shop-card-price-label { color: var(--shop-muted); font-size: .7rem; }
.shop-card-price.is-reference { color: #d5dbe3; }
.shop-card-price.is-unavailable { color: var(--shop-muted); font-size: .85rem; }
.shop-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; margin-top: 6px; padding: 32px 20px; border: 1px solid var(--shop-line); border-radius: 12px; background: #121519; text-align: center; overflow-wrap: anywhere; }
.shop-empty .shop-empty-icon { width: 32px; height: 32px; color: var(--shop-accent); }
.shop-empty h2 { margin: 0; color: var(--shop-text); font-size: 1.15rem; font-weight: 650; line-height: 1.4; }
.shop-empty p { max-width: 38ch; margin: 0; color: var(--shop-muted); font-size: .9rem; line-height: 1.7; }
.shop-recovery { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 3px; padding: 10px 22px; border: 1px solid #e6655d; border-radius: 8px; color: #fff; background: #d53e36; font-size: 14px; font-weight: 600; }
.shop-page .shop-feed-footer { gap: 8px; padding-top: 20px; }
.shop-feed-retry, .shop-page-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border: 1px solid #50585f; border-radius: 8px; background: #15191c; color: var(--shop-text); font-size: 14px; cursor: pointer; }
.shop-feed-retry[hidden] { display: none; }
.shop-filter-dialog:not([open]) { display: none; }
.shop-filter-dialog:not(.category-filter-sheet) { width: min(calc(100% - 32px), 460px); max-height: 80vh; max-height: 80dvh; margin: auto; padding: 20px; border: 1px solid #363d43; border-radius: 16px; color: var(--shop-text); background: #171b1e; box-shadow: 0 20px 80px #0009; overflow-y: auto; }
.shop-filter-dialog:not(.category-filter-sheet)::backdrop { background: #000a; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-header h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-header button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; color: #e5e5e1; background: transparent; font-size: 30px; cursor: pointer; }
.shop-filter-dialog:not(.category-filter-sheet) label, .shop-filter-fallback label { display: block; margin-bottom: 8px; font-size: 14px; color: #c6ccd1; }
.shop-filter-dialog:not(.category-filter-sheet) select, .shop-filter-fallback select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #4b535a; border-radius: 8px; color: var(--shop-text); background: #101417; font-size: 16px; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-actions > a, .shop-filter-dialog:not(.category-filter-sheet) .shop-filter-actions > button, .shop-filter-fallback button { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; border: 1px solid #4b535a; border-radius: 8px; background: #101417; color: var(--shop-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.shop-filter-dialog:not(.category-filter-sheet) .shop-filter-actions > button { border-color: #e6655d; background: #d53e36; color: #fff; }
.shop-filter-fallback { display: grid; gap: 8px; margin-top: 20px; padding: 16px; border: 1px solid var(--shop-line); border-radius: 10px; }

@media (hover: hover) {
  .shop-game-card:hover { background: #171b20; border-color: #964149; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shop-game-card:hover .shop-card-cover img { transform: scale(1.025); }
}
@media (max-width: 1199px) {
  .store-route { --shop-gutter: 64px; }
  .shop-page { padding-top: 32px; }
  .shop-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.store-route {
    --shop-gutter: clamp(24px, 6.8vw, 44px);
    width: 100%; min-width: 0; min-height: 100vh; min-height: 100dvh;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    color: var(--shop-text); background: var(--shop-bg);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  }
  .store-route main { width: 100%; min-width: 0; }
  .store-route .main-nav, .store-route .mobile-menu-toggle,
  .store-route .header-account, .store-route .header-tools .search-box { display: none !important; }
  .store-route .site-header { position: relative; height: auto; min-height: 56px; border: 0; background: var(--shop-bg); box-shadow: none; backdrop-filter: none; }
  .store-route .header-inner { width: calc(100% - var(--shop-gutter)); min-height: 56px; margin-inline: auto; gap: 8px; }
  .store-route .site-header .header-brand { flex: 1 1 0; width: auto; min-width: 0; margin: 0; gap: 7px; align-self: center; justify-content: flex-start; }
  .store-route .brand-logo { position: static; flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; transform: none; filter: none; }
  .store-route .home-brand-wordmark { display: block; min-width: 0; padding-right: 2px; overflow: hidden; text-overflow: ellipsis; color: var(--shop-text); font-size: clamp(16px, 4.5vw, 23px); font-weight: 900; font-style: italic; line-height: 1.2; letter-spacing: -.7px; white-space: nowrap; }
  .store-route .home-brand-wordmark > span { color: #e6382e; }
  .store-route .header-tools { position: static; flex: 0 0 auto; margin: 0 0 0 auto; gap: 4px; transform: none; }
  .store-route .home-header-search, .store-route .cart-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 8px; background: none; color: var(--shop-text); box-shadow: none; cursor: pointer; }
  .store-route .header-tools svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
  .store-route .cart-count { top: 0; right: -2px; min-width: 16px; height: 16px; font-size: 10px; }
  .store-route .cart-count[hidden] { display: none !important; }
  .shop-page { padding: 0 0 20px; }
  .shop-search { min-height: 44px; gap: 3px; padding: 0 3px; margin-bottom: 12px; border-radius: 10px; }
  .shop-search input { min-height: 42px; padding-block: 8px; }
  .shop-search-submit svg { width: 22px; height: 22px; }
  .shop-search input::placeholder { font-size: 14px; }
  .shop-categories { width: 100%; gap: 2px; margin-bottom: 14px; }
  .shop-category { min-height: 60px; gap: 6px; padding: 5px 0 9px; }
  .shop-category svg { width: 23px; height: 23px; }
  .shop-category > span { font-size: 12px; }
  .shop-category.is-selected::after { width: 36px; height: 2px; }
  .shop-toolbar { gap: 10px; margin-bottom: 14px; }
  .shop-filter-open { padding: 9px 12px; }
  .shop-sort { flex-basis: 160px; }
  .shop-sort select { padding-left: 12px; }
  .shop-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .shop-game-card { border-radius: 10px; }
  .shop-card-cover { aspect-ratio: 16 / 9; }
  .shop-card-info { padding: 8px 10px; }
  .shop-card-info h2 { min-height: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
  .shop-card-title-desktop { display: none; }
  .shop-card-title-mobile { display: inline; }
  .shop-card-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 0; padding-top: 3px; }
  .shop-card-platform { max-width: 100%; font-size: 11px; line-height: 1.3; }
  .shop-card-prices { max-width: 100%; justify-content: flex-start; gap: 2px 5px; margin: 0; }
  .shop-card-price { color: var(--shop-text); font-size: 16px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; }
  .shop-card-old-price { font-size: 10px; }
  .shop-card-price.is-free { color: #79ce9b; }
  .shop-card-price.is-reference { color: #d5dbe3; }
  .shop-card-price.is-unavailable { color: var(--shop-muted); font-size: 12px; }
  .shop-card-price-label { font-size: 10px; }
  .shop-card-discount { top: 7px; left: 7px; padding: 2px 5px; font-size: 10px; }
  .shop-cover-fallback svg { width: 26px; height: 26px; }
  .shop-cover-fallback span { font-size: 9px; }
  .shop-empty { padding: 28px 16px; }
  .shop-empty h2 { font-size: 19px; }
  .shop-filter-dialog:not(.category-filter-sheet) { margin: auto auto max(12px, env(safe-area-inset-bottom, 0px)); }
  .store-route .mobile-home-navigation { display: grid; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 69px; padding: 7px calc(var(--shop-gutter) / 2) calc(9px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #24292d; background: #0c0f11; }
  .store-route .mobile-home-navigation > a { min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-height: 46px; color: #b4bac0; font-size: 11px; text-align: center; overflow-wrap: anywhere; }
  .store-route .mobile-home-navigation svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .store-route .mobile-home-navigation > a[aria-current="page"] { color: var(--shop-accent); }
  .store-route .mobile-home-navigation > a[aria-current="page"] svg { fill: currentColor; stroke-width: 0; }
}
@media (max-width: 350px) {
  .shop-card-info { padding-inline: 8px; }
  .shop-card-info h2 { font-size: 13px; }
  .shop-card-price { font-size: 15px; }
  .shop-filter-open { gap: 6px; padding-inline: 10px; }
  .shop-sort { flex-basis: 148px; }
  .shop-sort select { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-search, .shop-game-card, .shop-card-cover img { transition: none; }
}
