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);
}

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

.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__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.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 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;
}

.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 {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.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-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) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

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

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