.products-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-top h3 {
  margin: 0;
  font-size: 28px;
}

.product-description {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.product-image-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badges {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px;
  align-items: start;
}

.product-price-badge,
.product-commission-badge,
.product-reward-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.product-price-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}

.product-commission-badge {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.product-reward-badge {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.product-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-link {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-sizing: border-box;
}

.copy-btn {
  width: fit-content;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .product-card {
    padding: 18px;
  }

  .product-image-wrap {
    height: 280px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .product-link,
  .copy-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .product-card {
    gap: 16px;
    padding: 16px;
  }

  .product-top h3 {
    font-size: 24px;
  }

  .product-description {
    font-size: 13px;
    line-height: 1.5;
  }

  .product-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-price-badge,
  .product-commission-badge,
  .product-reward-badge {
    justify-self: stretch;
    justify-content: center;
    font-size: 14px;
    padding: 7px 12px;
  }

  .product-image-wrap {
    height: 220px;
  }
}