-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
179 lines (154 loc) · 3.42 KB
/
style.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
* {
border: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: #f0f5ff; /* Light bluish background color */
color: #333;
}
header {
/* position: sticky;
top: 0; */
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.5em 3em; /* Increased padding */
background: linear-gradient(
to right,
#61a5ff,
#98c0ff
); /* Gradient background with bluish colors */
}
header * {
cursor: pointer;
}
.productscontainer {
display: grid;
grid-template-columns: repeat(
auto-fit,
minmax(300px, 1fr)
); /* Adjusted grid item size */
gap: 30px; /* Increased gap */
padding: 2em; /* Increased padding */
background: #e0e8ff; /* Light bluish background */
border-radius: 20px; /* Rounded corners */
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1); /* Subtle box shadow */
}
.productscontainer .product {
display: flex;
flex-direction: column;
gap: 20px; /* Increased gap */
align-items: center;
background: #cfdfff; /* Lighter bluish background color */
padding: 20px;
border-radius: 15px;
}
.addtocart {
background-image: url('https://d3dyfaf3iutrxo.cloudfront.net/general/upload/019055d9d67644ef8231997569a3aab2.png');
height: 20px;
width: 20px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.ptitle {
height: 50px;
overflow-y: auto;
}
.product img {
border-bottom: 1px solid #bcc7e3; /* Lighter bluish border */
}
.priceandaddtocart {
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
}
.carticon {
display: flex;
gap: 16px;
}
.carticon::after {
content: attr(items);
}
.cartui {
width: 45vw;
background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
padding: 30px; /* Increased padding */
display: flex;
flex-direction: column;
position: fixed;
right: -999px;
top: 0;
transition: all 0.5s ease;
z-index: 99;
height: 100vh;
border-left: 1px solid #9bb8ff; /* Border for separation with bluish color */
}
.cartopened {
right: 0;
}
.cartui .closecart {
border-bottom: 1px solid #9bb8ff; /* Border for separation with bluish color */
margin-bottom: 1.5em;
cursor: pointer;
}
.cartui .pccontainer {
height: 75vh;
overflow-y: auto; /* Scrollbar for overflow */
display: flex;
flex-direction: column;
gap: 20px; /* Increased gap */
}
.nameandprice {
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 1.5em 0; /* Increased margin */
}
.pnp {
display: flex;
gap: 20px; /* Increased gap */
}
button {
cursor: pointer;
padding: 15px 25px; /* Adjusted padding */
border-radius: 10px;
background: #61a5ff; /* Bluish primary button color */
box-shadow: 0px 4px 10px rgba(97, 165, 255, 0.2); /* Soft shadow with bluish color */
color: white;
transition: transform 0.3s ease;
}
button:hover {
transform: translateY(-3px);
}
.overlay {
background: rgba(51, 51, 51, 0.5); /* Semi-transparent overlay */
position: fixed;
width: 100vw;
height: 100vh;
z-index: 99;
display: none;
}
.cartproduct {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0; /* Adjusted padding */
border-bottom: 1px solid #bcc7e3; /* Lighter bluish border */
}
.pnp .img {
width: 9rem;
height: 8rem;
}
.pnp .img img {
width: 9rem;
height: 8rem;
}
@media screen and (max-width: 700px) {
.cartui {
width: 90vw;
}
}