:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #3a86ff;
  --accent-600: #2f6ed0;
  --danger: #ef476f;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.5);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0f1115, #0b0d10 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.product-card {
  width: 280px;
  height: 400px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: 1px solid rgba(255, 255, 255, 0.06);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.fav-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}
.fav-btn:active {
  transform: scale(0.98);
}
.fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.fav-btn[aria-pressed="true"] svg {
  fill: var(--danger);
  stroke: var(--danger);
}
.image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
}
.product-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.old-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.9;
}
.new-price {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.add-btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.add-btn:hover {
  background: var(--accent-600);
}
.add-btn:active {
  transform: translateY(1px);
}
@media (max-width: 319px) {
  .product-card {
    width: 100%;
    height: 400px;
  }
}
