.shop-section {
  position: relative;
  z-index: 2;
}

.shop-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.shop-head--app-top {
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
}

.shop-head--app-top .sprite-shop-top-tabs--hero {
  margin: 0;
}

.shop-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.shop-status {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  background: rgba(245, 197, 24, 0.1);
  color: #ffe9a0;
  font-size: 0.88rem;
  font-weight: 700;
}

.shop-head--fortnite .shop-status {
  display: none !important;
}

.shop-head--fortnite .shop-status span {
  display: block;
}

.sprite-shop-top-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem;
  border-radius: 11px;
  border: 1px solid rgba(245, 197, 24, 0.32);
  background: rgba(17, 24, 39, 0.34);
  margin: 0 0 1rem;
}

.sprite-shop-top-tabs--hero {
  margin: 0 0 1.2rem;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.8));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.26);
}

.sprite-shop-top-tabs__item {
  min-height: 2.1rem;
  padding: 0.42rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #dbe7f8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.sprite-shop-top-tabs__item.is-active {
  border-color: rgba(255, 220, 120, 0.92);
  background: linear-gradient(180deg, rgba(255, 231, 161, 0.33), rgba(245, 197, 24, 0.2));
  color: #ffedbe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.sprite-shop-top-tabs__item:hover,
.sprite-shop-top-tabs__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 102, 0.72);
}

.sprite-shop-top-panels {
  width: 100%;
}

.sprite-shop-top-panel[hidden] {
  display: none !important;
}

.sprite-shop-app-grid {
  display: grid;
  gap: 0.85rem;
}

.sprite-shop-app-placeholder {
  border: 1px solid rgba(203, 213, 225, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31, 43, 62, 0.85), rgba(24, 34, 50, 0.82));
  padding: 1rem 1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.sprite-shop-creator-card {
  display: grid;
  grid-template-columns: minmax(170px, 260px) 1fr;
  gap: 0.8rem;
  border: 1px solid rgba(203, 213, 225, 0.36);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 46, 68, 0.85), rgba(21, 31, 48, 0.86));
  padding: 0.8rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.sprite-shop-creator-card__media {
  border-radius: 10px;
  overflow: hidden;
  min-height: 120px;
}

.sprite-shop-creator-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sprite-shop-creator-card__content {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.sprite-shop-creator-card__content h3 {
  margin: 0;
  font-size: 1.22rem;
}

.sprite-shop-creator-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  color: #93c5fd;
  font-weight: 800;
}

.sprite-shop-photo-plans {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.sprite-shop-app-buy-btn {
  min-height: 2.45rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 216, 88, 0.88);
  background: linear-gradient(180deg, #ffe9ab 0%, #f8cd58 56%, #deab17 100%);
  color: #312300;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0.36rem 0.84rem;
  box-shadow:
    0 8px 18px rgba(233, 175, 29, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.sprite-shop-app-buy-btn:hover,
.sprite-shop-app-buy-btn:focus-visible {
  border-color: rgba(255, 226, 131, 0.98);
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(233, 175, 29, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sprite-shop-app-buy-btn:active {
  transform: translateY(0);
}

.sprite-shop-app-buy-btn:disabled {
  opacity: 0.64;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.sprite-shop-app-status {
  min-height: 1.15em;
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #b8c8dd;
}

.sprite-shop-app-status.is-error {
  color: #fca5a5;
}

.sprite-shop-app-placeholder h3 {
  margin: 0;
  font-size: 1.12rem;
}

.sprite-shop-app-placeholder p {
  margin: 0.5rem 0 0;
  font-size: 0.91rem;
  color: #d0d9e6;
}

.sprite-shop-head-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 2.6rem;
  gap: 0;
}

.sprite-shop-creators-dd {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  margin: 0;
  height: 100%;
}

.sprite-shop-creators-dd[hidden] {
  display: none !important;
}

.sprite-shop-creators-dd select {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 1px solid #111827;
  border-right: 0;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b2f4d' d='M1 1.2 6 6.8 11 1.2'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  background-size: 0.7rem;
  color: #1b2f4d;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 1.8rem 0 0.7rem;
}

.shop-head--fortnite .sprite-shop-vbucks {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 100%;
  min-height: 0;
  min-width: 4.4rem;
  width: auto;
  border-radius: 0;
  padding: 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1;
}

.sprite-shop-refresh-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  padding: 0 0.6rem;
  cursor: pointer;
  color: #475569;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

.sprite-shop-refresh-btn .sprites-ico {
  font-size: 1rem;
}

.sprite-shop-refresh-btn:active {
  background: rgba(245, 197, 24, 0.18);
}

.sprite-shop-refresh-btn.is-loading {
  opacity: 0.5;
  cursor: wait;
}

@keyframes shop-spin {
  to { transform: rotate(360deg); }
}

.sprite-shop-refresh-btn.is-loading .sprites-ico {
  animation: shop-spin 0.8s linear infinite;
}

.shop-head--fortnite {
  margin: -0.85rem calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shop-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  transform: translateY(0);
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: rise 0.7s ease both;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.45);
}

.shop-card:nth-child(2) { animation-delay: 0.05s; }
.shop-card:nth-child(3) { animation-delay: 0.1s; }
.shop-card:nth-child(4) { animation-delay: 0.15s; }
.shop-card:nth-child(5) { animation-delay: 0.2s; }
.shop-card:nth-child(6) { animation-delay: 0.25s; }

.shop-card-media {
  aspect-ratio: 1;
  background: #10141c;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.7rem 0.85rem;
  gap: 0.3rem;
}

.shop-card-body h3 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
}

.shop-card-body p {
  margin: 0;
  font-size: 0.78rem;
  color: inherit;
  opacity: 0.7;
}

.shop-card-body .shop-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
  width: 100%;
}

.shop-price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5c518, #e0a800);
  border: 0;
  color: #141414;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(224, 168, 0, 0.35);
}

.shop-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid #f5c518;
  background: transparent;
  color: #f5c518;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}

.shop-buy-btn:hover,
.shop-buy-btn:focus-visible {
  background: #f5c518;
  color: #141414;
}

@media (max-width: 1000px) {
  .sprite-shop-creator-card {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .sprite-shop-photo-plans {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
