Refactor product card styles for improved aesthetics and smoother hover effects

This commit is contained in:
Fabian Schieder 2026-03-31 00:48:17 +02:00
parent a090f5adcf
commit 54763c4f8c

View File

@ -13,8 +13,8 @@
/* ─── Product Card ─── */
.product-card {
background: linear-gradient(145deg, #2d3b50 0%, #202b3d 100%);
border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
background: #2d3b50;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-sm);
@ -35,12 +35,12 @@
position: absolute;
inset: -1px;
border-radius: var(--radius-lg);
padding: 2px;
padding: 1px;
background: linear-gradient(
135deg,
rgba(0, 113, 227, 0.5),
rgba(74, 222, 128, 0.3),
rgba(236, 72, 153, 0.4)
rgba(37, 99, 235, 0.3),
rgba(74, 222, 128, 0.2),
rgba(37, 99, 235, 0.1)
);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
@ -59,7 +59,7 @@
left: 0;
right: 0;
height: 120px;
background: linear-gradient(180deg, rgba(236, 72, 153, 0.06), transparent);
background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent);
opacity: 0;
transition: opacity var(--transition-smooth);
pointer-events: none;
@ -67,9 +67,8 @@
}
.product-card:hover {
transform: translateY(-4px);
box-shadow: 0 25px 50px -12px rgba(0, 113, 227, 0.25);
background: linear-gradient(145deg, #32445e 0%, #253147 100%);
transform: translateY(2px);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
border-color: transparent;
}