*{
    margin: 0;
    padding: 0;
  }
  .navbar{
    height: 12%;
    align-items: center;
    height: 100px;
    position: absolute;
    z-index: 10;
    width: 100%;
    display: flex; 
    flex-flow: row;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7));
    position: fixed;
    font-family: roboto;
    position: fixed; top: 0px;
  }
  .logo {
    position: fixed; 
    width: 70px;
    margin-left: 50px;
    display: inline-block;
    margin-bottom: 60px;
  }
  .menu-icon{
    width: 30px;
    cursor: pointer;
    margin-left: 40px;
  }
  .search-box {
    position: fixed; 
    transform: translate(0%, 100%);
    background: #2f3640;
    height: 60px;
    border-radius: 40px;
    padding: 10px;
    margin-top: 0;
    margin-left: 200px;
    display: inline-block;
    margin-bottom: 120px;
   }
  .search-box:hover > .search-txt {
    width: 240px;
    padding: 0 6px;
   }
   
   .search-box:hover > .search-btn {
    background: white;
    color: black;
   }
   
   .search-btn {
    color: #e84118;
    float: right;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2f3640;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    color: white;
    cursor: pointer;
    
   }
   
   .search-btn > i {
    font-size: 30px;
   }
   
   .search-txt {
    border: none;
    background: none;
    outline: none;
    float: left;
    padding: 0;
    color: white;
    font-size: 16px;
    transition: 0.4s;
    line-height: 40px;
    width: 0px;
    font-weight: bold;
   }
   
   .menu {
       position: fixed; top: 25px; right: 50px;
   }
   
   .dropbtn {
   background-color: #2f3640;
   color: white;
   padding: 16px;
   font-size: 16px;
   border: none;
   cursor: pointer;
  }
  
  .dropdown {
   position: relative;
   display: inline-block;
  }
  
  .dropdown-content {
   display: none;
   position: absolute;
   background-color: #f9f9f9;
   min-width: 160px;
   box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
   z-index: 1;
  }
  
  button a, a:visited, a:hover, a:active {
   color: white;
   text-decoration: none;
  }
  
  .dropdown-content a {
   color: black;
   padding: 12px 16px;
   text-decoration: none;
   display: block;
  }
  
  .dropdown-content a:hover {background-color: rgb(70, 124, 243)}
  
  .dropdown:hover .dropdown-content {
   display: block;
  }
  
  .dropdown:hover .dropbtn {
   background-color: rgb(70, 124, 243);
  }
  
  button {
   border: 0;
  }
  
  @font-face {
     font-family: roboto;
     src: url('fonts/Roboto-Regular.ttf');
  }
  :root{
    --first-color: #efefef;
    --second-color: #DCFAFB;
    --third-color: #FFE8DF;
    --accent-color: #FF5151;
    --dark-color: #161616;
}
:root{
    --body-font: 'Open Sans';
    --h1-font-size: 1.5rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.75rem;
}
@media screen and (min-width: 768px){
    :root{
        --h1-font-size: 2rem;
        --normal-font-size: 1rem;
        --smaller-font-size: 0.813rem;
    }
}
*,::after,::before{
    box-sizing: border-box;
}
body{
    margin: 2rem 0 0 0;
    background-color: #fff;
    color: var(--dark-color);
    font-family: var(--body-font);
}
h1{
    font-size: var(--h1-font-size);
}
img{
    max-width: 100%;
    height: auto;
}
a{
    text-decoration: none;
}
.main {
    padding: 2rem 0;
}
.bd-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    align-items: center;
    gap: 2rem;
}
.title-shop{
    position: relative;
    margin: 0 2.5rem;
    padding-top: 100px;
    font-family: roboto;
    color: white;
}

.card{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    overflow: hidden;
}
article:nth-child(1){
    background-color: var(--first-color);
}
article:nth-child(2){
    background-color: var(--first-color);
}
article:nth-child(3){
    background-color: var(--first-color);
}
article:nth-child(4){
    background-color: var(--first-color);
}
.card__img{
    width: 180px;
    height: auto;
    padding: 3rem 0;
    transition: .5s;
    height: 260px;
}
.card__name{
    position: absolute;
    left: -25%;
    top: 0;
    width: 3.5rem;
    height: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    background-color: var(--dark-color);
    color: #fff;
    font-weight: bold;
    transition: .5s;
}
.card__name p{
    font-family: roboto;
}
.card__icon{
    font-size: 1.5rem;
    color: var(--dark-color);
}
.card__icon:hover{
    color: var(--accent-color);
}
.card__precis{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transition: .5s;
}
.card__preci{
    display: block;
    text-align: center;
}
.card__preci--before{
    font-size: var(--smaller-font-size);
    color: var(--accent-color);
    margin-bottom: .25rem;
    font-family: roboto;
}
.card__preci--now{
    font-size: var(--h3-font-size);
    font-weight: bold;
    font-family: roboto;
}
.card:hover{
    box-shadow: 0 .5rem 1rem #000;
}
.card:hover .card__name{
    left: 0;
}
.card:hover .card__img{
    transform: rotate(30deg);
    margin-left: 3.5rem;
}
.card:hover .card__precis{
    margin-left: 3.5rem;
    padding: 0 1.5rem;
}
@media screen and (min-width: 1200px){
    body{
        margin: 3rem 0 0 0;
    }
    .title-shop{
        margin: 0 5rem;
    }
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
}
#slider{
    overflow: hidden; 
  }
  #slider figure {
   position: relative;
   width: 500%;
   margin: 0;
   left: 0;
   animation: 20s slider linear infinite;
   position: fixed; top: 0px;
  }
  #slider figure img{
    width: 20%;
    float: left;
    filter: brightness(60%);
  }
  @keyframes slider{
    0%{
       left: 0%;
    }
    20%{
       left: 0%;
    }
    25%{
       left: -100%;
    }
    45%{
       left: -100%;
    }
    50%{
       left: -200%;
    }
    70%{
       left: -200%;
    }
    75%{
       left: -300%;
    }
    95%{
       left: -300%;
    }
    100%{
       left: -400%;
    }
  }