File size: 1,279 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@800&display=swap");

.popular {
  position: relative;
  top: 80px;
  left: 34px;
  width: 96%;
}

.popular-head {
  font-family: "Noto Sans", sans-serif;
  font-size: 25px;
  text-align: center;
  color: rgb(38, 38, 38);
}

.electronics,
.jwellery,
.men,
.women {
  cursor: pointer;
  width: 50px;
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}
.jwellery,
.men,
.women {
  margin-left: 40px;
}

.popular-items {
  display: flex;
  margin-top: 45px;
  justify-content: center;
}

img {
  transition: background-color 0.3s ease;
}

/* MEDIA QUERIES  */

@media (max-width: 768px) {
  .popular {
    width: 93%;
  }
}

@media (max-width: 530px) {
  .popular {
    width: 87%;
  }
  .electronics,
  .jwellery,
  .men,
  .women {
    width: 38px;
  }
}

@media (max-width: 420px) {
  .popular {
    width: 84%;
  }
  .electronics,
  .jwellery,
  .men,
  .women {
    width: 32px;
  }
  .popular-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, 70px);
    grid-gap: 10px;
    justify-content: center;
    align-items: center;
  }
  .jwellery,
  .men,
  .women {
    margin: 0;
  }
  .popular-head{
    font-size: 20px;
  }
}