-
Notifications
You must be signed in to change notification settings - Fork 215
/
cart.css
156 lines (127 loc) · 2.57 KB
/
cart.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
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
background-color: #FFDEE9;
background-image: linear-gradient(0deg, #FFDEE9 0%, #B5FFFC 100%);
font-family: 'Roboto', sans-serif;
}
.shopping-cart {
min-width:725px;
max-width: max-content;
margin: 80px auto;
background-color: #FFDEE9;
box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.10);
border-radius: 6px;
height: max-content;
display: flex;
flex-direction: column;
padding:10px;
}
.title {
height: 60px;
border-bottom: 1px solid #f3a2ca;
padding: 20px 30px;
color: #E90074;
font-size: 18px;
font-weight: bold;
}
/* Item container */
.item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border-bottom: 1px solid #ddd;
}
.item:last-child {
border-bottom: none;
}
/* Buttons for quantity adjustment */
button {
padding: 5px 10px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #FF4191;
color: #fff;
transition: background-color 0.3s;
}
button:hover {
background-color: #920faf;
}
/* Quantity span */
span {
margin: 0 10px;
font-size: 18px;
}
/* Empty cart message */
#cart-items-container p {
text-align: center;
color: #777;
padding: 20px 0;
font-size: 18px;
}
/* Total price section */
.total-price {
margin-top: 20px;
text-align: right;
font-size: 20px;
font-weight: bold;
color: #333;
}
.total-price span {
color: #E90074;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.shopping-cart {
width: 95%;
}
.item {
flex-direction: column;
align-items: flex-start;
}
button {
margin-top: 5px;
}
}
.item-image {
width: 80px;
height: 80px;
object-fit: cover;
margin-right: 10px;
border-radius: 5px;
}
.cart-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.cart-table th, .cart-table td {
padding: 10px;
text-align: center;
}
.cart-table th {
color:#8E3E63;
font-weight: bold;
font-size: medium;
}
.item-image {
width: 50px;
height: 50px;
object-fit: cover;
}
.cart-row button {
margin: 0 5px;
}
.removebtn{
font-size: small;
padding-block: 8px;
padding-inline: 16px;;
}