* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.button {
  height: fit-content;
  display: inline-block;
  padding: 10px 30px;
  font-size: 16px;
  color: #ffffff;
  background-color: #0f77e2;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #000000;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  background-color: #ffffff;
  color: #000000;
  cursor: default;
}

header {
  height: fit-content;
  width: 100%;
  background: transparent;
  z-index: 10;
  background: transparent;
  position: absolute;
  top: 0;

  a {
    text-decoration: none;
    color: #ffffff;
  }

  .upper {
    padding: 5px 100px;
    display: flex;
    justify-content: space-between;
    align-self: center;

    div {
      display: flex;
      align-items: center;
      gap: 20px;

      img {
        height: 30px;
        width: 30px;
        filter: brightness(0) invert(1);
      }
    }
  }

  .lower {
    padding: 10px 100px;
    display: flex;
    justify-content: space-between;
    align-self: center;
    transition: all 0.5s ease;

    .logo {
      height: 120px;
      width: auto;
    }

    button {
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .open-menu {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 20px;

      img {
        height: 50px;
        filter: brightness(0) invert(1);
      }
    }

    nav {
      display: flex;
      align-items: center;
      gap: 20px;
      z-index: 20;

      .close-menu {
        display: none;
      }

      a,
      span {
        cursor: pointer;
        text-decoration: none;
        color: #ffffff;
        font-weight: 500;
        font-size: 1.2rem;
        transition: color 0.3s ease;
      }

      a:hover,
      span:hover {
        color: #ffffffa8;
      }

      img {
        height: 20px;
        filter: brightness(0) invert(1);
      }

      .product-box {
        position: relative;

        span {
          padding: 10px 0;
          display: flex;
          align-items: center;
        }

        .product-link {
          width: 20rem;
          padding: 10px 20px;
          display: none;
          flex-direction: column;
          gap: 20px;
          background-color: #ffffff;
          border: 1px solid #000000;
          position: absolute;
          transform: translateX(-30%);
          z-index: 30;

          a {
            font-weight: normal;
            color: #000000;
          }
        }
      }

      .product-box:hover .product-link {
        display: flex;
      }

      #search {
        width: 8rem;
        padding: 6px 10px;
        border-radius: 8px;
        outline: none;
        border: 0;
        font-size: 1rem;
      }

      #search:hover {
        outline: 1px solid;
      }
    }
  }
}

footer {
  padding: 30px 100px;
  background: #192437;
  color: #ffffff;

  .upper {
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 80px;

    .logo {
      height: 200px;
      width: fit-content;
    }

    div {
      h3 {
        font-size: 2rem;
      }

      li {
        list-style: none;
        padding-top: 10px;
        padding-left: 2px;

        a {
          display: flex;
          gap: 10px;
          color: #ffffff;
          text-decoration: none;

          img {
            height: 30px;
            filter: brightness(0) invert(1);
          }
        }
      }

      .social-box {
        padding-top: 10px;
        display: flex;
        align-items: center;
        gap: 10px;

        a {
          padding: 8px;
          background: #0f1622;
          border-radius: 2px;
          transition: all 0.3s ease;
        }

        a:hover {
          background: #2f4569;
        }

        img {
          height: 30px;
          margin: auto;
          filter: brightness(0) invert(1);
        }
      }
    }
  }

  .lower {
    padding-top: 30px;
    text-align: center;
    border-top: 1px solid #ffffff;
  }
}

@media (max-width: 1023px) {
  header {
    .upper {
      display: none;
    }

    .lower {
      .open-menu {
        display: block;
      }
    }

    nav {
      height: 100dvh;
      min-width: 50vw;
      padding: 20px 50px;
      background-color: #ffffff;
      border: 1px solid #000000;
      flex-direction: column;
      position: absolute;
      top: 0px;
      right: 100vw;

      img {
        filter: brightness(1) invert(0) !important;
      }

      .close-menu {
        display: block !important;

        img {
          height: 50px;
        }
      }

      a,
      span {
        color: #000000 !important;
      }

      #search {
        border: 1px solid #000000 !important;
      }
    }
  }
}

@media (max-width: 767px) {
  header {
    .lower {
      padding: 10px 30px;

      .logo {
        height: 100px;
      }

      .open-menu {
        gap: 15px;
      }

      nav {
        .product-link {
          width: 12rem !important;

          a {
            font-size: 1rem;
          }
        }
      }
    }
  }

  footer {
    padding: 30px;

    .upper {
      flex-direction: column;
      gap: 40px;
    }
  }
}

@media (max-width: 639px) {
}
