.cat-cards-section {
      width: 100%;
      padding: 0 0 8px;
      margin-top: 18px;
    }
    .cat-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
      gap: 12px;
    }
    .cat-card {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      height: 140px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.10);
      transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
      user-select: none;
    }
    .cat-card:hover {
      transform: translateY(-3px);
      border-color: rgba(255,255,255,0.28);
      box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    }
    .cat-card.active-category {
      border-color: rgba(255,255,255,0.75);
      box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 12px 32px rgba(0,0,0,0.45);
    }
    .cat-card__bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      pointer-events: none;
      transition: transform .3s ease;
    }
    .cat-card:hover .cat-card__bg {
      transform: scale(1.06);
    }
    .cat-card__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
    }
    .cat-card__label {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 8px 10px;
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      letter-spacing: 0.2px;
      text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    }
    .cat-card__sub {
      font-size: 11px;
      font-weight: 400;
      opacity: 0.72;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cat-card--plain {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 10px;
    }
    .cat-card--plain .cat-card__label {
      position: static;
      padding: 0;
      font-size: 13px;
    }


    .server-toolbar--compact {
      display: flex;
      flex-direction: row !important;
      align-items: center;
      gap: 12px;
      flex-wrap: nowrap;
    }
    .server-toolbar--compact .global-server-select-custom {
      flex: 0 0 auto;
    }
    .server-toolbar--compact .product-search {
      flex: 1;
      max-width: none;
    }


    .purchase-buttons-row {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }
    .purchase-buttons-row .purchase-button {
      margin-top: 0;
      flex: 1;
    }
    .purchase-button--gift .price { display: none; }
    #giftSteamIdInput:focus {
      border-color: #00aaff !important;
      box-shadow: 0 0 0 3px rgba(0,170,255,0.18);
    }
    #giftSteamIdInput.is-valid   { border-color: rgba(0,200,100,0.6) !important; }
    #giftSteamIdInput.is-invalid { border-color: rgba(255,80,80,0.6) !important; }
    .auth-open-btn {
      appearance: none;
      -webkit-appearance: none;
      border: 0;
      background: transparent !important;
      padding: 0;
      cursor: pointer;
      font: inherit;
      outline: none;
    }
    .auth-open-btn:hover,
    .auth-open-btn:active,
    .auth-open-btn:focus,
    .auth-open-btn:focus-visible {
      background: transparent !important;
      box-shadow: none !important;
      outline: none;
    }
    .auth-open-btn .auth-login-box {
      border: 0;
      font: inherit;
      overflow: hidden;
      justify-content: center;
      border-radius: 8px;
      background: rgba(255,255,255,0.20) !important;
      box-shadow: none !important;
      background-clip: padding-box;
    }
    .auth-open-btn:hover .auth-login-box,
    .auth-open-btn .auth-login-box:hover {
      background: #ff5c5c !important;
      box-shadow: 0 4px 15px rgb(255 0 0 / 50%) !important;
    }
    .auth-login-icon {
      width: 16px;
      height: 16px;
      margin-right: 10px;
      color: #fff;
      font-size: 16px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 16px;
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
    }
    .auth-modal-content {
      width: min(460px, 94vw);
      padding: 18px 18px 20px;
      text-align: center;
    }
    .auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 10px 28px 18px;
    }
    .auth-tab {
      min-height: 44px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.20);
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    }
    .auth-tab:hover,
    .auth-tab.is-active {
      color: #fff;
      border-color: rgba(255,92,92,.35);
      background: linear-gradient(90deg, #ff5c5c, #f33c3cc4);
      box-shadow: 0 4px 15px rgb(255 0 0 / 36%);
    }
    .auth-form { display: none; }
    .auth-form.is-active { display: block; }
    .auth-field {
      margin-bottom: 12px;
      text-align: left;
    }
    .auth-field label {
      display: block;
      margin-bottom: 7px;
      font-size: 13px;
      color: #bfc6d0;
      font-weight: 500;
    }
    .auth-field input {
      width: 100%;
      box-sizing: border-box;
      height: 46px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.06);
      color: #fff;
      padding: 0 14px;
      outline: none;
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .auth-field input:focus {
      border-color: rgba(255,92,92,.62);
      box-shadow: 0 0 0 3px rgba(255,92,92,.14);
      background: rgba(255,255,255,.08);
    }
    .auth-captcha-row {
      display: grid;
      grid-template-columns: 110px 1fr 42px;
      gap: 8px;
      align-items: center;
    }
    .auth-captcha-code {
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.15);
      font-weight: 900;
      letter-spacing: .18em;
      user-select: none;
      color: #fff;
    }
    .auth-icon-btn {
      height: 46px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.06);
      color: #fff;
      cursor: pointer;
      transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }
    .auth-icon-btn:hover {
      background: rgba(255,255,255,.14);
      border-color: rgba(255,255,255,.25);
      transform: translateY(-1px);
    }
    .auth-submit {
      width: 100%;
      min-height: 46px;
      margin-top: 4px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      background: rgba(255,255,255,.20);
      transition: background .3s ease, box-shadow .3s ease, transform .2s ease;
    }
    .auth-submit:hover {
      background: linear-gradient(90deg, #ff5c5c, #f33c3cc4);
      box-shadow: 0 4px 15px rgb(255 0 0 / 42%);
      transform: translateY(-1px);
    }
    .auth-link-btn {
      width: 100%;
      margin-top: 10px;
      border: 0;
      background: transparent !important;
      background-color: transparent !important;
      color: rgba(255,255,255,.72);
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      box-shadow: none !important;
      transform: none !important;
      transition: color .18s ease;
    }
    .auth-link-btn:hover {
      color: #fff;
      background: transparent !important;
      background-color: transparent !important;
      box-shadow: none !important;
      transform: none !important;
    }
    .auth-resend-verify {
      display: none;
      margin-top: 6px;
      width: auto;
      margin-left: auto;
      margin-right: auto;
      align-self: center;
      justify-content: center;
    }
    .auth-resend-verify.is-visible {
      display: inline-flex;
    }
    .auth-resend-verify:disabled {
      opacity: .55;
      cursor: not-allowed;
    }
    .auth-message {
      min-height: 20px;
      margin: 10px 0 0;
      font-size: 13px;
      color: rgba(255,255,255,.72);
      line-height: 1.45;
    }
    .auth-message.is-error { color: #ff8a8a; }
    .auth-message.is-ok { color: #7ee787; }
    @media (max-width: 520px) {
      .auth-tabs { margin-left: 0; margin-right: 0; }
      .auth-captcha-row { grid-template-columns: 1fr 42px; }
      .auth-captcha-code { grid-column: 1 / -1; }
    }

/* Catalog menus use the existing server selector buttons and dropdowns. */
.catalog-filters.server-toolbar { display:flex; flex-direction:row; flex-wrap:wrap; gap:12px; align-items:center; }
.catalog-filter-field { position:relative; flex:0 0 230px; width:230px; min-width:0; }
.catalog-filter-field .custom-select { width:100%; font:inherit; text-align:left; }
.catalog-filter-copy { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; font-size:13px; }
.catalog-filter-caption { color:rgba(255,255,255,.55); font-size:10px; }
.catalog-filter-field .custom-select > i { opacity:.65; font-size:14px; }
.catalog-filter-field .custom-options[hidden] { display:none; }
.catalog-filter-field .custom-options { padding:8px; box-sizing:border-box; }
.catalog-filter-field .custom-option { width:100%; box-sizing:border-box; border:0; background:transparent; font:inherit; text-align:left; justify-content:space-between; gap:8px; font-size:13px; }
.catalog-filter-field .custom-option + .custom-option { margin-top:5px; }
.catalog-filter-field .custom-option i { visibility:hidden; font-size:11px; }
.catalog-filter-field .custom-option.selected i { visibility:visible; }
.catalog-filter-field .custom-option.selected { background:rgba(255,255,255,.10); }
.catalog-filter-field:has(.custom-options.show) { z-index:30; }
.catalog-filter-field:has(.custom-options.show) .custom-select { border-color:var(--ss-stroke-strong); background:var(--ss-bg-hover); }
.catalog-filter-field:has(.custom-options.show) .arrow-down { transform:rotate(225deg); }
.catalog-filter-field .custom-option:focus-visible { outline:1px solid var(--ss-stroke-strong); outline-offset:-1px; }
.server-toolbar--compact:has(.catalog-filters) { flex-wrap:wrap; width:100%; }
.catalog-search-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:16px 0 18px; }
.catalog-search-row .product-search-wrap { margin:0 0 0 auto; flex:0 1 240px; min-width:0; }
.catalog-search-row .product-search { width:100%; max-width:240px; }
.catalog-search-row .product-search input,
.server-toolbar--compact:has(.catalog-filters) .product-search input { height:56px; box-sizing:border-box; }
.server-toolbar--compact:has(.catalog-filters) .product-search { flex:0 1 240px; max-width:240px; margin-left:auto; }
html[data-site-template="pandora"] .pandora-catalog-toolbar:has(.catalog-filters) .pandora-search { flex:0 1 240px; max-width:240px; margin-left:auto; height:48px; box-sizing:border-box; }
html[data-site-template="pandora"] .catalog-filter-field .custom-select { transform:none; height:48px; padding:0 14px; }
@media(max-width:760px) {
  .catalog-filters { width:100%; }
  .catalog-filter-field { flex:1 1 200px; width:100%; }
  .catalog-search-row .product-search-wrap { flex-basis:240px; }
}

.category-menu-icon { display:inline-block; width:18px; height:18px; margin-right:8px; vertical-align:middle; object-fit:contain; font-size:18px; line-height:18px; flex-shrink:0; pointer-events:none; }

/* Span the entire catalog and keep the message readable over custom backgrounds. */
.product-section > .catalog-empty {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 36px 20px;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  text-align: center;
}
.catalog-empty .catalog-empty__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: transparent;
  color: #dbe5f1;
}
.catalog-empty__icon svg { width: 30px; height: 30px; }
.catalog-empty .catalog-empty__title { margin: 0; color: #f1f5f9; font-size: 18px; font-weight: 600; line-height: 1.4; }
.catalog-empty .catalog-empty__hint { max-width: 440px; margin: 0; color: #b9c4d2; font-size: 14px; line-height: 1.6; }
@media (max-width: 480px) {
  .product-section > .catalog-empty { min-height: 220px; padding: 28px 16px; }
}
html[data-site-template="pandora"] .pandora-category .category-menu-icon { width:18px; height:18px; font-size:18px; margin-right:0; }
