@@ -127,6 +127,8 @@ nav {
127
127
background-color : var (--white );
128
128
position : absolute;
129
129
top : 60px ;
130
+ left : 0 ;
131
+ width : 100% ;
130
132
padding : 24px ;
131
133
}
132
134
.mobile-menu a {
@@ -157,14 +159,18 @@ nav {
157
159
158
160
159
161
/* Aside (product detail y carrito) */
160
- . product-detail {
162
+ aside {
161
163
background-color : var (--white );
162
164
width : 360px ;
163
- padding : 0 24px ;
164
165
box-sizing : border-box;
165
166
position : absolute;
166
167
right : 0 ;
167
168
}
169
+
170
+ /* ShoppingCart */
171
+ # shoppingCartContainer {
172
+ padding : 0 24px ;
173
+ }
168
174
.title-container {
169
175
display : flex;
170
176
}
@@ -233,6 +239,65 @@ nav {
233
239
height : 50px ;
234
240
}
235
241
242
+ /* ProductDetail */
243
+ .product-detail-close {
244
+ background : var (--white );
245
+ width : 14px ;
246
+ height : 14px ;
247
+ position : absolute;
248
+ top : 24px ;
249
+ left : 24px ;
250
+ z-index : 2 ;
251
+ padding : 12px ;
252
+ border-radius : 50% ;
253
+ }
254
+ .product-detail-close : hover {
255
+ cursor : pointer;
256
+ }
257
+ # productDetail > img : nth-child (2 ) {
258
+ width : 100% ;
259
+ height : 360px ;
260
+ object-fit : cover;
261
+ border-radius : 0 0 20px 20px ;
262
+ }
263
+ # productDetail .product-info {
264
+ margin : 24px 24px 0 24px ;
265
+ }
266
+ # productDetail .product-info p : nth-child (1 ) {
267
+ font-weight : bold;
268
+ font-size : var (--md );
269
+ margin-top : 0 ;
270
+ margin-bottom : 4px ;
271
+ }
272
+ # productDetail .product-info p : nth-child (2 ) {
273
+ color : var (--very-light-pink );
274
+ font-size : var (--md );
275
+ margin-top : 0 ;
276
+ margin-bottom : 36px ;
277
+ }
278
+ # productDetail .product-info p : nth-child (3 ) {
279
+ color : var (--very-light-pink );
280
+ font-size : var (--sm );
281
+ margin-top : 0 ;
282
+ margin-bottom : 36px ;
283
+ }
284
+ .primary-button {
285
+ background-color : var (--hospital-green );
286
+ border-radius : 8px ;
287
+ border : none;
288
+ color : var (--white );
289
+ width : 100% ;
290
+ cursor : pointer;
291
+ font-size : var (--md );
292
+ font-weight : bold;
293
+ height : 50px ;
294
+ }
295
+ .add-to-cart-button {
296
+ display : flex;
297
+ align-items : center;
298
+ justify-content : center;
299
+ }
300
+
236
301
237
302
/* Product List */
238
303
.cards-container {
@@ -251,26 +316,26 @@ nav {
251
316
border-radius : 20px ;
252
317
object-fit : cover;
253
318
}
254
- .product-info {
319
+ .product-card . product- info {
255
320
display : flex;
256
321
justify-content : space-between;
257
322
align-items : center;
258
323
margin-top : 12px ;
259
324
}
260
- .product-info figure {
325
+ .product-card . product- info figure {
261
326
margin : 0 ;
262
327
}
263
- .product-info figure img {
328
+ .product-card . product- info figure img {
264
329
width : 35px ;
265
330
height : 35px ;
266
331
}
267
- .product-info div p : nth-child (1 ) {
332
+ .product-card . product- info div p : nth-child (1 ) {
268
333
font-weight : bold;
269
334
font-size : var (--md );
270
335
margin-top : 0 ;
271
336
margin-bottom : 4px ;
272
337
}
273
- .product-info div p : nth-child (2 ) {
338
+ .product-card . product- info div p : nth-child (2 ) {
274
339
font-size : var (--sm );
275
340
margin-top : 0 ;
276
341
margin-bottom : 0 ;
@@ -292,7 +357,7 @@ nav {
292
357
display : none;
293
358
}
294
359
295
- . product-detail {
360
+ aside {
296
361
width : 100% ;
297
362
}
298
363
0 commit comments