-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_to_cart.css
136 lines (112 loc) · 2.03 KB
/
add_to_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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: white;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
header a {
color: white;
text-decoration: none;
}
.products-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.product-card {
background: white;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
text-align: center;
}
.product-card img {
width: 100%;
height: auto;
border-radius: 4px;
}
.product-card h2 {
margin: 1rem 0;
color: #333;
}
.price {
font-size: 1.25rem;
color: #2c5282;
font-weight: bold;
margin: 0.5rem 0;
}
button {
background: #2c5282;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background: #2a4365;
}
.cart-container {
max-width: 1000px;
margin: 2rem auto;
padding: 0 1rem;
}
.cart-item {
display: grid;
grid-template-columns: 3fr 1fr 1fr 1fr auto;
gap: 1rem;
align-items: center;
background: white;
padding: 1rem;
margin-bottom: 1rem;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.cart-summary {
background: white;
padding: 1rem;
border-radius: 4px;
margin-top: 2rem;
}
.summary-details {
margin: 1rem 0;
}
.checkout-btn {
width: 100%;
padding: 1rem;
font-size: 1.1rem;
background: #38a169;
}
.checkout-btn:hover {
background: #2f855a;
}
.quantity-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.quantity-controls button {
padding: 0.25rem 0.5rem;
}
.remove-btn {
background: #e53e3e;
}
.remove-btn:hover {
background: #c53030;
}