/* Widen only the ancestors of a rendered catalog. Elementor's boxed inner
   container otherwise limits both the background and the product grid. */
:where(.site-content, .site-main, .entry-content, .wp-block-post-content, .has-global-padding, .alignfull):has(.sd-fe.sd-catalog),
:is(.entry-content, .wp-block-post-content) > :has(.sd-fe.sd-catalog),
.e-con.e-con-boxed:has(.sd-fe.sd-catalog) > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.has-global-padding:has(.sd-fe.sd-catalog) {
  padding-inline: 0 !important;
}

.sd-fe.sd-catalog {
  --store-bg: #101017;
  --store-panel: #191923;
  --store-border: #30303e;
  --store-muted: #aaaabc;
  --store-ink: #f4f4fa;
  --store-accent: #d7fa78;
  color: var(--store-ink);
  background: radial-gradient(ellipse at 76% 6%, #211c34 0, transparent 46%), var(--store-bg);
  animation: none;
  color-scheme: dark;
}

.sd-catalog [hidden] { display: none !important; }
.sd-catalog a { color: var(--store-ink); }
.sd-fe.sd-catalog .sd-store-brand,
.sd-fe.sd-catalog .sd-store-actions a { color: var(--store-ink); }
.sd-catalog a:hover { color: var(--store-accent); }
.sd-catalog :is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 3px;
}
.sd-catalog .sd-wrap { max-width: none; padding-inline: clamp(16px, 3.4cqw, 64px); }

.sd-catalog .sd-store-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--store-border);
}
.sd-catalog .sd-store-brand,
.sd-catalog .sd-store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.sd-catalog .sd-store-brand { white-space: nowrap; letter-spacing: -.025em; }
.sd-catalog .sd-brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--store-accent);
  color: #181e0c;
  font-size: 19px;
  font-weight: 900;
}
.sd-catalog .sd-sectionbar { margin: 0; }
.sd-catalog .sd-sectionbar-inner {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
.sd-catalog .sd-sectab {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--store-muted);
  font-size: 13px;
}
.sd-catalog .sd-sectab:hover { background: var(--store-panel); color: var(--store-ink); }
.sd-catalog .sd-sectab.active {
  color: var(--store-accent);
  background: #282d20;
  box-shadow: none;
}
.sd-catalog .sd-sectab-ico { display: none; }
.sd-catalog .sd-store-actions { gap: 14px; }
.sd-catalog .sd-store-actions .sd-store-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  background: var(--store-panel);
}
.sd-catalog .sd-cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--store-accent);
  color: #181e0c;
  font-size: 11px;
}

.sd-catalog .sd-catalog-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 6px 20px;
  margin: 32px 0 22px;
}
.sd-catalog .sd-catalog-heading h1,
.sd-catalog .sd-spotlight h2,
.sd-catalog .sd-catalog-list-heading h2 {
  margin: 0;
  color: var(--store-ink);
  font-family: inherit;
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 850;
}
.sd-catalog .sd-catalog-heading h1 { font-size: clamp(36px, 5.2cqw, 64px); }
.sd-catalog .sd-catalog-heading p { margin: 0 0 4px; color: var(--store-muted); font-size: 13px; }

.sd-catalog .sd-spotlights {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--store-border) transparent;
}
.sd-catalog .sd-spotlight {
  flex: 0 0 100%;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(300px, 34cqw, 436px);
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 22px;
  background: linear-gradient(120deg, #231d34, #303854);
  scroll-snap-align: start;
}
.sd-catalog .sd-spotlight-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 26%;
}
.sd-catalog .sd-spotlight-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sd-catalog .sd-spotlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #18151f 12%, rgba(24, 21, 31, .96) 26%, rgba(24, 21, 31, .22) 73%, transparent 100%),
              linear-gradient(0deg, rgba(19, 16, 24, .62), transparent 60%);
}
.sd-catalog .sd-spotlight-content {
  max-width: min(58%, 600px);
  padding: clamp(20px, 4.4cqw, 54px);
}
.sd-catalog .sd-spotlight h2 { font-size: clamp(30px, 4.3cqw, 53px); }
.sd-catalog .sd-spotlight-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--store-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .095em;
}
.sd-catalog .sd-spotlight-label span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  color: var(--store-ink);
  text-transform: none;
  letter-spacing: 0;
}
.sd-catalog .sd-spotlight-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 12px 0 0;
  color: #dddbea;
  font-size: 14px;
}
.sd-catalog .sd-spotlight-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sd-catalog .sd-spotlight-price { font-weight: 800; font-variant-numeric: tabular-nums; }

.sd-catalog :is(.sd-store-primary, .sd-store-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  font: 750 13px/1.25 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.sd-catalog .sd-store-primary { background: var(--store-accent); color: #181e0c; }
.sd-catalog .sd-store-primary { transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.sd-catalog .sd-store-primary:hover { background: #e9ffa9; color: #181e0c; box-shadow: 0 5px 18px #d7fa7833; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sd-catalog .sd-store-primary:hover { transform: translateY(-2px); }
}
.sd-catalog .sd-store-primary:active { transform: scale(.97); }
.sd-catalog .sd-store-primary:disabled { cursor: wait; opacity: .7; }
.sd-catalog .sd-store-secondary { border-color: var(--store-border); }

.sd-catalog .sd-catalog-list { margin-top: 28px; }
.sd-catalog .sd-catalog-list-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sd-catalog .sd-catalog-list-heading h2 { font-size: clamp(24px, 3.1cqw, 36px); }
.sd-catalog .sd-catalog-count { color: var(--store-muted); font-size: 13px; }
.sd-catalog .sd-catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  margin-bottom: 18px;
}
.sd-catalog .sd-catalog-search { position: relative; }
.sd-catalog .sd-search,
.sd-catalog .sd-sort-sel {
  width: 100%;
  min-height: 44px;
  background: var(--store-panel);
  color: var(--store-ink);
  border: 1px solid var(--store-border);
  border-radius: 8px;
}
.sd-catalog .sd-search { padding: 8px 42px 8px 13px; }
.sd-catalog .sd-search::placeholder { color: var(--store-muted); opacity: 1; }
.sd-catalog .sd-catalog-search button {
  position: absolute;
  inset: 6px 6px 6px auto;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--store-ink);
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}
.sd-catalog .sd-catalog-search button:hover { background: #373747; }
.sd-catalog .sd-catalog-genres {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-catalog .sd-catalog-genres button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  color: var(--store-muted);
  background: var(--store-panel);
  font: 650 13px/1.2 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.sd-catalog .sd-catalog-genres button:hover,
.sd-catalog .sd-catalog-genres button[aria-pressed="true"] {
  border-color: #62774b;
  color: var(--store-accent);
  background: #282d20;
}
.sd-catalog .sd-catalog-empty {
  margin: 0;
  padding: 36px 16px;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  background: var(--store-panel);
  color: var(--store-muted);
  text-align: center;
}
.sd-catalog .sd-catalog-empty p { margin: 0 0 14px; }

.sd-catalog .sd-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: 16px;
}
.sd-catalog .sd-gcard {
  background: var(--store-panel);
  border-color: var(--store-border);
  border-radius: 14px;
  transition: border-color .2s;
}
.sd-catalog .sd-gcard:hover, .sd-catalog .sd-gcard:focus-within {
  border-color: #666477;
  box-shadow: none;
  transform: none;
}
.sd-catalog .sd-gcard-cover { background: linear-gradient(145deg, #2f2848, #1d2536); }
.sd-catalog .sd-catalog-cover-link { position: absolute; inset: 0; }
.sd-catalog .sd-catalog-badges {
  position: absolute;
  inset: 9px 56px auto 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}
.sd-catalog .sd-catalog-badges span {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--store-accent);
  background: #202519;
  font-size: 11px;
  font-weight: 800;
}
.sd-catalog .sd-wish-btn { width: 40px; height: 40px; }
.sd-catalog .sd-wish-btn:focus-visible { outline-offset: 1px; }
.sd-catalog .sd-gcard-body { padding: 14px; gap: 6px; }
.sd-catalog .sd-gcard-body h3 { margin: 0; line-height: 1.3; }
.sd-catalog .sd-gcard-title { font-size: clamp(16px, 1.65cqw, 19px); overflow: visible; display: block; }
.sd-catalog .sd-gcard-tagline { margin: 0; font-size: 13px; color: var(--store-muted); }
.sd-catalog .sd-catalog-genre { color: #c3b8ee; font-size: 12px; font-weight: 700; }
.sd-catalog .sd-catalog-rating { margin-left: auto; color: var(--store-muted); font-size: 12px; }
.sd-catalog .sd-gcard-footer {
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 12px;
  align-items: center;
  flex-direction: row;
}
.sd-catalog .sd-catalog-price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sd-catalog .sd-catalog-price del { margin-left: 3px; color: var(--store-muted); font-size: 12px; font-weight: 500; }
.sd-catalog .sd-gcard-footer :is(.sd-store-primary, .sd-store-secondary) { margin-left: auto; }

@container sdfe (max-width: 810px) {
  .sd-catalog .sd-store-header .sd-sectionbar { order: 3; flex-basis: 100%; }
}
@container sdfe (max-width: 625px) {
  .sd-catalog .sd-spotlight { min-height: 350px; border-radius: 16px; }
  .sd-catalog .sd-spotlight-art { inset: 0; }
  .sd-catalog .sd-spotlight::after {
    background: linear-gradient(0deg, #18151f 14%, rgba(24,21,31,.86) 43%, rgba(24,21,31,.09) 100%);
  }
  .sd-catalog .sd-spotlight-content { max-width: 100%; }
  .sd-catalog .sd-gcard-title { font-size: 16px; }
}
@container sdfe (max-width: 420px) {
  .sd-catalog .sd-store-header { gap: 10px; }
  .sd-catalog .sd-store-actions { gap: 8px; font-size: 12px; }
  .sd-catalog .sd-store-brand { font-size: 12px; gap: 6px; }
  .sd-catalog .sd-brand-mark { width: 29px; height: 29px; font-size: 16px; }
  .sd-catalog .sd-store-actions .sd-store-cart { padding-inline: 8px; }
  .sd-catalog .sd-catalog-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sd-catalog .sd-store-primary { transition: none; }
  .sd-catalog .sd-store-primary:active { transform: none; }
  .sd-catalog .sd-gcard, .sd-catalog .sd-gcard-cover img, .sd-catalog .sd-wish-btn { transition: none; }
  .sd-catalog .sd-gcard:hover .sd-gcard-cover img, .sd-catalog .sd-wish-btn:hover { transform: none; }
}
.sd-offer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(20px, 4vw, 60px);
}
.sd-offer .sd-offer-cover {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: var(--store-panel);
}
.sd-offer .sd-offer-panel {
  align-self: start;
  margin-top: 32px;
  padding: clamp(18px, 3vw, 32px);
  background: var(--store-panel);
  border: 1px solid var(--store-border);
  border-radius: 18px;
}
.sd-offer .sd-offer-panel p { margin-top: 0; }
.sd-offer .sd-offer-price { font-size: clamp(22px, 3vw, 34px); font-weight: 850; }
.sd-offer .sd-offer-note { color: var(--store-muted); font-size: 13px; }
.sd-offer [data-sd-offer-total] { font-weight: 750; color: var(--store-accent); }
.sd-offer [data-sd-offer-error] { color: #ffabab; }
.sd-offer .sd-offer-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.sd-offer .sd-offer-gallery img { width: 100%; border-radius: 10px; }
@container sdfe (max-width: 700px) {
  .sd-offer-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-offer .sd-offer-panel { margin-top: 0; }
}

