-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
206 lines (181 loc) · 4.05 KB
/
Copy pathstyle.css
File metadata and controls
206 lines (181 loc) · 4.05 KB
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 10px;
background-color: #f9f9f9;
color: #333;
line-height: 1.6;
box-sizing: border-box;
}
.container {
max-width: 1200px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1,
h2 {
text-align: center;
color: #444;
padding: 5px 0px;
}
p {
line-height: 1.4;
}
.filter-sort {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
.filter-sort select {
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1em;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23333" viewBox="0 0 4 5"><path d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 8px 10px;
cursor: pointer;
width: auto;
min-width: 150px;
}
.filter-sort select:focus {
border-color: #66afe9;
outline: 0;
box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}
.product-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-top: 20px;
}
img {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the image covers the container */
border-radius: 4px 4px 0 0;
}
.product {
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out;
background-color: #fff;
display: flex;
flex-direction: column;
padding-bottom: 10px;
}
.product:hover {
transform: translateY(-5px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.product-image-container {
width: 100%;
min-height: 300px; /* Ensures at least 400px height */
max-height: 50vh; /* Grows with the screen size */
overflow: hidden;
margin-bottom: 10px;
border-radius: 4px 4px 0 0;
display: flex;
justify-content: center;
align-items: center;
}
.product-image-container img {
display: block;
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
.product h2 {
margin-top: 10px;
font-size: 1.15em;
color: #333;
line-height: 1.2;
margin: 0;
}
.product p{
line-height: 0;
padding: 0px 15px;
}
.product .price{
font-weight: bold;
}
form {
margin-top: 20px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f8f8f8;
}
form label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}
form input[type="text"],
form input[type="number"],
form textarea,
form select {
width: 100%;
padding: 10px 5px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 1em;
}
form textarea {
resize: vertical;
}
form input[type="submit"] {
background-color: #007bff;
color: white;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.1em;
transition: background-color 0.2s ease-in-out;
}
form input[type="submit"]:hover {
background-color: #0056b3;
}
.error {
color: #d8000c;
background-color: #ffbaba;
border: 1px solid #d8000c;
border-radius: 4px;
padding: 10px;
margin-top: 5px;
font-size: 0.9em;
}
a {
color: #007bff;
text-decoration: none;
transition: color 0.2s ease-in-out;
}
a:hover {
text-decoration: underline;
color: #0056b3;
}
@media screen and (max-width: 1024px) {
.product-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 425px) {
.product-grid {
grid-template-columns: repeat(1, 1fr);
}
}