-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproducts.css
More file actions
59 lines (51 loc) · 966 Bytes
/
products.css
File metadata and controls
59 lines (51 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #f5f5f5;
}
header {
display: flex;
justify-content: space-between;
padding: 20px;
background: black;
color: white;
}
.product-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
}
.product-card {
background: white;
border-radius: 12px;
padding: 15px;
text-align: center;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.product-card:hover {
transform: scale(1.03);
}
.product-card img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 8px;
}
.product-card h3 {
margin: 10px 0;
}
.product-card p {
font-weight: bold;
color: green;
}
.product-card button {
padding: 10px 15px;
border: none;
background: black;
color: white;
border-radius: 6px;
cursor: pointer;
}