Refactor product card styles for improved aesthetics and smoother hover effects
This commit is contained in:
parent
a090f5adcf
commit
54763c4f8c
@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
/* ─── Product Card ─── */
|
/* ─── Product Card ─── */
|
||||||
.product-card {
|
.product-card {
|
||||||
background: linear-gradient(145deg, #2d3b50 0%, #202b3d 100%);
|
background: #2d3b50;
|
||||||
border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
|
border: 1px solid var(--border-subtle);
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius-lg);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: var(--shadow-sm);
|
box-shadow: var(--shadow-sm);
|
||||||
@ -35,12 +35,12 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
inset: -1px;
|
inset: -1px;
|
||||||
border-radius: var(--radius-lg);
|
border-radius: var(--radius-lg);
|
||||||
padding: 2px;
|
padding: 1px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
135deg,
|
135deg,
|
||||||
rgba(0, 113, 227, 0.5),
|
rgba(37, 99, 235, 0.3),
|
||||||
rgba(74, 222, 128, 0.3),
|
rgba(74, 222, 128, 0.2),
|
||||||
rgba(236, 72, 153, 0.4)
|
rgba(37, 99, 235, 0.1)
|
||||||
);
|
);
|
||||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||||
-webkit-mask-composite: xor;
|
-webkit-mask-composite: xor;
|
||||||
@ -59,7 +59,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 120px;
|
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;
|
opacity: 0;
|
||||||
transition: opacity var(--transition-smooth);
|
transition: opacity var(--transition-smooth);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@ -67,9 +67,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.product-card:hover {
|
.product-card:hover {
|
||||||
transform: translateY(-4px);
|
transform: translateY(2px);
|
||||||
box-shadow: 0 25px 50px -12px rgba(0, 113, 227, 0.25);
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
|
||||||
background: linear-gradient(145deg, #32445e 0%, #253147 100%);
|
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user