body {
  background:
    radial-gradient(circle at 18% 0%, rgba(85, 184, 107, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(216, 168, 70, 0.14), transparent 28rem),
    #0c120b;
}

.shop-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px);
}

.shop-hero {
  display: grid;
  gap: 28px;
  padding: 0 0 clamp(28px, 5vw, 56px);
}

.shop-hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.back-link {
  width: max-content;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.legal-button {
  min-height: 40px;
}

.shop-legal-intro {
  max-width: 820px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(216, 168, 70, 0.42);
  border-radius: 8px;
  background: rgba(216, 168, 70, 0.1);
  color: #f4e4b7;
  line-height: 1.5;
}

.shop-payment-methods {
  display: grid;
  gap: 5px;
  max-width: 820px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(85, 184, 107, 0.36);
  border-radius: 8px;
  background: rgba(85, 184, 107, 0.08);
  color: var(--muted);
  line-height: 1.45;
}

.shop-payment-methods strong {
  color: var(--text);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin-top: 14px;
}

.shop-filter {
  min-height: 38px;
  border: 1px solid rgba(244, 240, 230, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 0 14px;
}

.shop-filter:hover,
.shop-filter.is-active {
  border-color: rgba(216, 168, 70, 0.62);
  background: rgba(216, 168, 70, 0.14);
  color: var(--text);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.shop-content {
  display: grid;
  gap: 22px;
}

.section-title {
  margin-bottom: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
}

.product,
.checkout,
.coins-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 32, 22, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.product {
  overflow: hidden;
}

.product__art {
  aspect-ratio: 1 / 1;
  background-image: url("/assets/donate-sprite.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  background-color: #06200f;
}

.product__art--coins {
  background-position: 0 0;
}

.product__art--claim {
  background-position: 50% 0;
}

.product__art--auction {
  background-position: 100% 0;
}

.product__art--warp {
  background-position: 0 100%;
}

.product__art--knight {
  background-position: 50% 100%;
}

.product__art--king {
  background-position: 100% 100%;
}

.product__art--addon-region,
.product__art--addon-time-weather,
.product__art--addon-anvil,
.product__art--addon-duke-kit,
.product__art--addon-king-kit,
.product__art--addon-kit-bundle {
  background-image: url("/assets/addons-sprite.png");
  background-size: 300% 200%;
  background-color: #07170e;
}

.product__art--addon-region {
  background-position: 0 0;
}

.product__art--addon-time-weather {
  background-position: 50% 0;
}

.product__art--addon-anvil {
  background-position: 100% 0;
}

.product__art--addon-duke-kit {
  background-position: 0 100%;
}

.product__art--addon-king-kit {
  background-position: 50% 100%;
}

.product__art--addon-kit-bundle {
  background-position: 100% 100%;
}

.product__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product__commands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product__feature {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.product__feature strong {
  color: var(--gold);
  font-size: 14px;
}

.product__feature span {
  color: #dff6df;
  font-weight: 800;
  text-align: right;
}

.product__commands li {
  padding: 5px 8px;
  border: 1px solid rgba(85, 184, 107, 0.28);
  border-radius: 8px;
  background: rgba(85, 184, 107, 0.09);
  color: #dff6df;
  font-size: 13px;
  font-weight: 800;
}

.product__kit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.product__kit h3 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
}

.product__kit p {
  margin: 0;
  min-height: 0;
}

.product__kit ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.product__kit li::marker {
  color: var(--green);
}

.product__notice {
  padding: 10px 12px;
  border: 1px solid rgba(234, 217, 49, 0.28);
  border-radius: 8px;
  background: rgba(234, 217, 49, 0.08);
  color: #f4e9a8;
  font-weight: 800;
}

.product h2,
.checkout h2 {
  margin: 0;
  font-size: 22px;
}

.product p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.product button {
  min-width: 118px;
}

.product button:disabled {
  cursor: not-allowed;
  filter: saturate(0.7);
  opacity: 0.65;
}

.checkout {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.coins-block {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.coins-block__art {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 1 / 1;
  align-self: center;
}

.coins-block__body {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
}

.coins-block__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.coin-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 18px;
}

.coin-total strong {
  color: var(--gold);
  font-size: 24px;
}

.cart-list {
  display: grid;
  gap: 10px;
  min-height: 74px;
}

.empty,
.checkout__note,
.checkout__legal,
.checkout__steps {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.checkout__steps {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout__steps h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
}

.checkout__steps ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.checkout__legal {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.checkout__legal a {
  color: #f0cd7e;
  font-weight: 800;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item span {
  color: var(--muted);
}

.cart-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.cart-price s {
  color: rgba(244, 240, 230, 0.55);
  font-size: 13px;
}

.cart-price strong {
  color: var(--gold);
}

.cart-item button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  font-size: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 12px;
}

.checkout__button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .checkout {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-hero__nav {
    align-items: stretch;
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-filter {
    flex: 1 1 calc(50% - 8px);
    padding: 0 10px;
  }

  .coins-block {
    grid-template-columns: 1fr;
  }

  .coins-block__art {
    min-height: 220px;
    aspect-ratio: 1 / 1;
  }

  .product p {
    min-height: 0;
  }
}
