.ptop {
  --ptop-bg: #000;
  --ptop-card: #1a1c24;
  --ptop-fg: #fff;
  --ptop-mut: #808080;
  --ptop-acc: #a3c618;
  --ptop-off: #e23d7a;
  --ptop-max: 1600px;
  --ptop-font: "Finlandica Text", "Finlandica", sans-serif;
  background: var(--ptop-bg);
  color: var(--ptop-fg);
  font-family: var(--ptop-font);
  padding: 8px 0 40px;
}

.ptop *,
.ptop *::before,
.ptop *::after {
  box-sizing: border-box;
}

.ptop-in {
  width: 100%;
  max-width: var(--ptop-max);
  margin: 0 auto;
  padding: 0 16px;
}

.ptop-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ptop-ttl {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ptop-fg);
}

.ptop a.ptop-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--ptop-acc) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ptop a.ptop-all:hover,
.ptop a.ptop-all:focus-visible {
  color: #b8d91f !important;
}

.ptop-arr {
  display: block;
  width: 16px;
  height: 16px;
}

.ptop-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ptop-card {
  position: relative;
  z-index: 0;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--ptop-card);
  overflow: visible;
}

.ptop-card:hover,
.ptop-card:focus-within {
  z-index: 4;
}

.ptop-pic {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.ptop-bads {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 12px);
}

.ptop-off,
.ptop-hit {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.ptop-off {
  background: var(--ptop-off);
  color: #fff;
}

.ptop-hit {
  background: var(--ptop-acc);
  color: #111;
  text-transform: uppercase;
}

.ptop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ptop-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.ptop a.ptop-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.ptop-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.ptop-pr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  min-width: 0;
}

.ptop-now {
  color: var(--ptop-acc);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.ptop-was {
  color: var(--ptop-mut);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: line-through;
  white-space: nowrap;
}

.ptop .ptop-buy.buy {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ptop-acc);
  color: #111;
  cursor: pointer;
}

.ptop .ptop-buy.buy:hover,
.ptop .ptop-buy.buy:focus-visible {
  background: #b8d91f;
}

.ptop .ptop-buy.buy.is-bought {
  background: #3a3d44;
  color: #8c9095;
  opacity: 1;
}

.ptop-ico {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 1100px) {
  .ptop-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ptop-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptop-pic {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
  }
}
