@@ -127,6 +127,8 @@ nav {
127127 background-color : var (--white );
128128 position : absolute;
129129 top : 60px ;
130+ left : 0 ;
131+ width : 100% ;
130132 padding : 24px ;
131133}
132134.mobile-menu a {
@@ -157,14 +159,18 @@ nav {
157159
158160
159161/* Aside (product detail y carrito) */
160- . product-detail {
162+ aside {
161163 background-color : var (--white );
162164 width : 360px ;
163- padding : 0 24px ;
164165 box-sizing : border-box;
165166 position : absolute;
166167 right : 0 ;
167168}
169+
170+ /* ShoppingCart */
171+ # shoppingCartContainer {
172+ padding : 0 24px ;
173+ }
168174.title-container {
169175 display : flex;
170176}
@@ -233,6 +239,65 @@ nav {
233239 height : 50px ;
234240}
235241
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+
236301
237302/* Product List */
238303.cards-container {
@@ -251,26 +316,26 @@ nav {
251316 border-radius : 20px ;
252317 object-fit : cover;
253318}
254- .product-info {
319+ .product-card . product- info {
255320 display : flex;
256321 justify-content : space-between;
257322 align-items : center;
258323 margin-top : 12px ;
259324}
260- .product-info figure {
325+ .product-card . product- info figure {
261326 margin : 0 ;
262327}
263- .product-info figure img {
328+ .product-card . product- info figure img {
264329 width : 35px ;
265330 height : 35px ;
266331}
267- .product-info div p : nth-child (1 ) {
332+ .product-card . product- info div p : nth-child (1 ) {
268333 font-weight : bold;
269334 font-size : var (--md );
270335 margin-top : 0 ;
271336 margin-bottom : 4px ;
272337}
273- .product-info div p : nth-child (2 ) {
338+ .product-card . product- info div p : nth-child (2 ) {
274339 font-size : var (--sm );
275340 margin-top : 0 ;
276341 margin-bottom : 0 ;
@@ -292,7 +357,7 @@ nav {
292357 display : none;
293358 }
294359
295- . product-detail {
360+ aside {
296361 width : 100% ;
297362 }
298363
0 commit comments