forked from pawarvarad/E-commerce-web-development-technology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
socks-ecommerce-styles.css
88 lines (76 loc) · 1.75 KB
/
socks-ecommerce-styles.css
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
body {
font-family: Arial, sans-serif;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background-color: #f0f0f0;
}
h1 {
color: #333;
text-align: center;
}
/* Grid system for products */
#products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
gap: 20px; /* Space between grid items */
}
.product {
border: 1px solid #ddd;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Increased shadow for more emphasis */
text-align: center; /* Center content */
transition: transform 0.2s; /* Smooth animation */
}
.product:hover {
transform: translateY(-5px); /* Slight hover effect */
}
.product img {
width: 100%; /* Make image take full width of container */
max-width: 200px; /* Constrain the image size */
height: 200px; /* Set height to match the width */
object-fit: cover; /* Maintain aspect ratio */
margin-bottom: 10px;
}
.product h3 {
color: #2c3e50;
}
.product p {
color: #34495e;
}
.product button {
background-color: #3498db;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
border-radius: 4px;
}
.product button:hover {
background-color: #2980b9;
}
/* Styling for cart and checkout */
#cart {
margin-top: 20px;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#checkout {
display: block;
width: 100%;
padding: 15px;
background-color: #2ecc71;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
margin-top: 20px;
}
#checkout:hover {
background-color: #27ae60;
}