* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* reset css */
header {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 10px;
}

/* thanh tiêu đề */
.topbar {
  font-size: 15px;
  text-transform: uppercase;
  color: white;
  background-color: #9b0e62;
  padding: 8px 15px;
  text-align: center;
  font-weight: bold;
  font-family: sans-serif;
  border-bottom: 4px solid #000;
}

/* tiêu đề đầu */
.topcenter {
  display: flex;
  margin: 0 auto;
  justify-content: space-around;

  /* logo */
  .logo {
    width: 300px;

    img {
      width: 200px;
    }
  }

  /* muc tim kiem */
  .search {
    display: flex;
    justify-content: space-around;
    padding: 38px 0 0;

    .searchselect {
      margin-left: 30px;

      select {
        width: 200px;
        padding: 8px 2px;
        border-radius: 4px;
        border: 1px solid lightgrey;
      }
    }

    /* icon tim kiem */
    .sicon {
      position: absolute;
      right: 5px;
      top: 8px;

      button {
        font-size: 20px;
        background: none;
        border: none;

        &:hover {
          cursor: pointer;
        }
      }
    }

    /* thanh tim kiem */
    .searchbar {
      position: relative;

      input {
        padding: 8px 5px;
        width: 400px;
        font-style: italic;
        border-radius: 5px;
        border: 1px solid lightgrey;
      }
    }
  }

  /* style don hang  */
  .cart {
    display: flex;
    margin-left: 30px;
    padding: 38px 0 0;

    a {
      display: block;
      text-align: center;
      text-decoration: none;
      color: #666;

      &:hover {
        color: #9b0e62;
      }
    }

    /* style gio hang */
    .giohang {
      margin-left: 10px;
      font-size: 36px;
    }
  }
}

/* tieu de 2 */
.btom {
  display: flex;
  margin-top: 20px;
  text-align: center;
  justify-content: space-evenly;

  .bar {
    display: flex;
    font-size: 24px;
    padding-top: 3px;
  }

  /* dropdown link */
  .dropdown {
    margin-left: 15px;
    position: relative;

    &:hover .ddcontent {
      display: block;
    }

    #dd {
      font-weight: bold;
    }

    .ddcontent {
      display: none;
      margin-top: 10px;
      text-align: left;
      position: absolute;
      z-index: 1;

      ul {
        background-color: #9b0e62;
        min-width: 200px;

        li {
          list-style: none;
          padding: 10px 10px;
          font-weight: bold;
          font-size: 20px;
          border: 1px solid white;

          &:hover {
            background-color: #f4139a;
          }

          a {
            text-decoration: none;
            text-transform: capitalize;
            color: white;
          }
        }
      }
    }
  }

  /* link san pham   */
  .link {
    padding-top: 10px;
    margin-left: 20px;

    a {
      font-size: 16px;
      text-decoration: none;
      text-transform: uppercase;
      color: black;
      margin: 0 10px;

      &:hover {
        color: #9b0e62;
      }
    }

    #ex {
      font-weight: bold;
      color: #9b0e62;
    }
  }
}

/* .order */
.order {
  display: flex;
  margin-left: 85px;

  .od1,
  .od2 {
    display: flex;

    i {
      font-size: 20px;
    }

    #od {
      font-size: 10px;
    }

    .phone {
      padding-left: 8px;
      text-align: left;

      span {
        display: block;
      }

      #num {
        font-size: 24px;
        font-weight: bold;
      }
    }
  }

  /* od2 */
  .od2 {
    margin-left: 20px;
  }
}

main {
  background-color: #e71995;

  .lazymg {
    img {
      width: 100%;
      border-top: 5px solid #000;
    }
  }

  .feature {
    width: 80%;
    margin: 0 auto;

    .box {
      margin-top: 200px;
      margin: 0 auto;
      width: 45%;
      height: 500px;

      .boxcontent {
        padding: 30px 20px;
        border-radius: 4px;
        width: 80%;
        text-align: center;
        color: white;
        font-weight: lighter;

        img {
          width: 400px;
          height: 400px;
        }

        a {
          all: unset;
          cursor: pointer;
        }
      }

    }
  }
}

/* đóng footer */
footer {
  background-color: rgb(54, 54, 54);
  height: 450px;

  section {
    position: relative;
    width: 80%;
    margin: 0 auto;
    height: 100%;

    .media {
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      position: absolute;
      display: flex;

      a {
        background-color: black;
        margin-left: 5px;
        padding: 5px;
        border-radius: 50%;
        border: 2px solid white;

        i {
          font-size: 20px;
          padding: 0 10px;
          color: white;

          &:hover {
            color: #9b0e62;
          }
        }
      }
    }

    .footertop {
      padding-top: 50px;
      padding-bottom: 80px;
      display: flex;
      justify-content: space-between;

      .col {
        color: white;

        h3 {
          padding-bottom: 20px;
        }

        a {
          color: rgb(209, 209, 209);
          text-decoration: none;
          display: block;

          &:hover {
            color: white;
          }
        }
      }
    }

    .footerbot {
      padding-top: 20px;
      border-top: 1px solid white;
      display: flex;
      justify-content: space-between;
      align-content: center;

      .left {
        color: white;
        font-size: 12px;
      }

      .right {

        img {
          width: 150px;
        }
      }

    }
  }
}