-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.css
162 lines (139 loc) · 3 KB
/
product.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* Reset and basic styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Courier New', Courier, monospace;
line-height: 1.6;
background-color: #121212; /* Dark background */
color: #ffffff; /* Light text */
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header styles */
.site-header {
background-color: #1f1f1f;
color: #61dafb;
padding: 10px 0;
text-align: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.site-header h1 {
margin-bottom: 10px;
color: #61dafb; /* Header text color */
}
.site-header nav ul {
list-style-type: none;
}
.site-header nav ul li {
display: inline-block;
margin: 0 10px;
}
.site-header nav ul li a {
color: #61dafb; /* Navigation link color */
text-decoration: none;
font-weight: bold;
padding: 10px;
transition: all 0.3s ease;
}
.site-header nav ul li a:hover {
background-color: #444;
border-radius: 5px;
}
/* Main content styles */
.products-listing {
padding-top: 80px; /* Adjust for fixed header */
}
.filters {
background-color: #333;
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.filters h2 {
color: #61dafb; /* Filter heading color */
margin-bottom: 10px;
}
.filters label {
display: block;
margin-bottom: 5px;
color: #ffffff; /* Filter label color */
}
.filters select,
.filters input[type="range"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
}
.product-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.product {
background-color: #44475a; /* Product background */
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
transition: transform 0.3s ease-in-out;
}
.product:hover {
transform: scale(1.05);
}
.product img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin-bottom: 10px;
}
.product h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #ffb86c; /* Product name color */
}
.product p {
color: #f1fa8c; /* Product description color */
margin-bottom: 15px;
}
.product .btn {
display: inline-block;
padding: 8px 20px;
background-color: #50fa7b; /* Button color */
color: #282c34; /* Button text color */
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.product .btn:hover {
background-color: #3dc763; /* Button hover color */
}
/* Footer styles */
.site-footer {
background-color: #222;
color: #ffffff;
padding: 20px 0;
text-align: center;
}
/* Cart popup styles (not fully implemented in this snippet) */
#cart {
position: fixed;
top: 10px;
right: 10px;
background-color: #1f1f1f;
color: #ffffff;
width: 300px;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
z-index: 1000;
display: none;
}